tentative fix for issue 3 (ex 53)
[mplib] / src / texk / web2c / mpdir / lib / 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="mp.w"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 build
829 build_cpu
830 build_vendor
831 build_os
832 host
833 host_cpu
834 host_vendor
835 host_os
836 CC
837 CFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CC
841 EXEEXT
842 OBJEXT
843 DEPDIR
844 am__include
845 am__quote
846 AMDEP_TRUE
847 AMDEP_FALSE
848 AMDEPBACKSLASH
849 CCDEPMODE
850 am__fastdepCC_TRUE
851 am__fastdepCC_FALSE
852 GREP
853 EGREP
854 LN_S
855 ECHO
856 AR
857 RANLIB
858 CPP
859 CXX
860 CXXFLAGS
861 ac_ct_CXX
862 CXXDEPMODE
863 am__fastdepCXX_TRUE
864 am__fastdepCXX_FALSE
865 CXXCPP
866 F77
867 FFLAGS
868 ac_ct_F77
869 LIBTOOL
870 LIBOBJS
871 LTLIBOBJS'
872 ac_subst_files=''
873       ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 CPP
882 CXX
883 CXXFLAGS
884 CCC
885 CXXCPP
886 F77
887 FFLAGS'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
909
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
935
936 ac_prev=
937 ac_dashdash=
938 for ac_option
939 do
940   # If the previous option needs an argument, assign it.
941   if test -n "$ac_prev"; then
942     eval $ac_prev=\$ac_option
943     ac_prev=
944     continue
945   fi
946
947   case $ac_option in
948   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949   *)    ac_optarg=yes ;;
950   esac
951
952   # Accept the important Cygnus configure options, so we can diagnose typos.
953
954   case $ac_dashdash$ac_option in
955   --)
956     ac_dashdash=yes ;;
957
958   -bindir | --bindir | --bindi | --bind | --bin | --bi)
959     ac_prev=bindir ;;
960   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961     bindir=$ac_optarg ;;
962
963   -build | --build | --buil | --bui | --bu)
964     ac_prev=build_alias ;;
965   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966     build_alias=$ac_optarg ;;
967
968   -cache-file | --cache-file | --cache-fil | --cache-fi \
969   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970     ac_prev=cache_file ;;
971   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973     cache_file=$ac_optarg ;;
974
975   --config-cache | -C)
976     cache_file=config.cache ;;
977
978   -datadir | --datadir | --datadi | --datad)
979     ac_prev=datadir ;;
980   -datadir=* | --datadir=* | --datadi=* | --datad=*)
981     datadir=$ac_optarg ;;
982
983   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984   | --dataroo | --dataro | --datar)
985     ac_prev=datarootdir ;;
986   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988     datarootdir=$ac_optarg ;;
989
990   -disable-* | --disable-*)
991     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992     # Reject names that are not valid shell variable names.
993     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995    { (exit 1); exit 1; }; }
996     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997     eval enable_$ac_feature=no ;;
998
999   -docdir | --docdir | --docdi | --doc | --do)
1000     ac_prev=docdir ;;
1001   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002     docdir=$ac_optarg ;;
1003
1004   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005     ac_prev=dvidir ;;
1006   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007     dvidir=$ac_optarg ;;
1008
1009   -enable-* | --enable-*)
1010     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011     # Reject names that are not valid shell variable names.
1012     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014    { (exit 1); exit 1; }; }
1015     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016     eval enable_$ac_feature=\$ac_optarg ;;
1017
1018   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020   | --exec | --exe | --ex)
1021     ac_prev=exec_prefix ;;
1022   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024   | --exec=* | --exe=* | --ex=*)
1025     exec_prefix=$ac_optarg ;;
1026
1027   -gas | --gas | --ga | --g)
1028     # Obsolete; use --with-gas.
1029     with_gas=yes ;;
1030
1031   -help | --help | --hel | --he | -h)
1032     ac_init_help=long ;;
1033   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034     ac_init_help=recursive ;;
1035   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036     ac_init_help=short ;;
1037
1038   -host | --host | --hos | --ho)
1039     ac_prev=host_alias ;;
1040   -host=* | --host=* | --hos=* | --ho=*)
1041     host_alias=$ac_optarg ;;
1042
1043   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044     ac_prev=htmldir ;;
1045   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046   | --ht=*)
1047     htmldir=$ac_optarg ;;
1048
1049   -includedir | --includedir | --includedi | --included | --include \
1050   | --includ | --inclu | --incl | --inc)
1051     ac_prev=includedir ;;
1052   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053   | --includ=* | --inclu=* | --incl=* | --inc=*)
1054     includedir=$ac_optarg ;;
1055
1056   -infodir | --infodir | --infodi | --infod | --info | --inf)
1057     ac_prev=infodir ;;
1058   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059     infodir=$ac_optarg ;;
1060
1061   -libdir | --libdir | --libdi | --libd)
1062     ac_prev=libdir ;;
1063   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064     libdir=$ac_optarg ;;
1065
1066   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067   | --libexe | --libex | --libe)
1068     ac_prev=libexecdir ;;
1069   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070   | --libexe=* | --libex=* | --libe=*)
1071     libexecdir=$ac_optarg ;;
1072
1073   -localedir | --localedir | --localedi | --localed | --locale)
1074     ac_prev=localedir ;;
1075   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076     localedir=$ac_optarg ;;
1077
1078   -localstatedir | --localstatedir | --localstatedi | --localstated \
1079   | --localstate | --localstat | --localsta | --localst | --locals)
1080     ac_prev=localstatedir ;;
1081   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083     localstatedir=$ac_optarg ;;
1084
1085   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086     ac_prev=mandir ;;
1087   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088     mandir=$ac_optarg ;;
1089
1090   -nfp | --nfp | --nf)
1091     # Obsolete; use --without-fp.
1092     with_fp=no ;;
1093
1094   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095   | --no-cr | --no-c | -n)
1096     no_create=yes ;;
1097
1098   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100     no_recursion=yes ;;
1101
1102   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104   | --oldin | --oldi | --old | --ol | --o)
1105     ac_prev=oldincludedir ;;
1106   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109     oldincludedir=$ac_optarg ;;
1110
1111   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112     ac_prev=prefix ;;
1113   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114     prefix=$ac_optarg ;;
1115
1116   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117   | --program-pre | --program-pr | --program-p)
1118     ac_prev=program_prefix ;;
1119   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121     program_prefix=$ac_optarg ;;
1122
1123   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124   | --program-suf | --program-su | --program-s)
1125     ac_prev=program_suffix ;;
1126   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128     program_suffix=$ac_optarg ;;
1129
1130   -program-transform-name | --program-transform-name \
1131   | --program-transform-nam | --program-transform-na \
1132   | --program-transform-n | --program-transform- \
1133   | --program-transform | --program-transfor \
1134   | --program-transfo | --program-transf \
1135   | --program-trans | --program-tran \
1136   | --progr-tra | --program-tr | --program-t)
1137     ac_prev=program_transform_name ;;
1138   -program-transform-name=* | --program-transform-name=* \
1139   | --program-transform-nam=* | --program-transform-na=* \
1140   | --program-transform-n=* | --program-transform-=* \
1141   | --program-transform=* | --program-transfor=* \
1142   | --program-transfo=* | --program-transf=* \
1143   | --program-trans=* | --program-tran=* \
1144   | --progr-tra=* | --program-tr=* | --program-t=*)
1145     program_transform_name=$ac_optarg ;;
1146
1147   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148     ac_prev=pdfdir ;;
1149   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150     pdfdir=$ac_optarg ;;
1151
1152   -psdir | --psdir | --psdi | --psd | --ps)
1153     ac_prev=psdir ;;
1154   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155     psdir=$ac_optarg ;;
1156
1157   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158   | -silent | --silent | --silen | --sile | --sil)
1159     silent=yes ;;
1160
1161   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162     ac_prev=sbindir ;;
1163   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164   | --sbi=* | --sb=*)
1165     sbindir=$ac_optarg ;;
1166
1167   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169   | --sharedst | --shareds | --shared | --share | --shar \
1170   | --sha | --sh)
1171     ac_prev=sharedstatedir ;;
1172   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175   | --sha=* | --sh=*)
1176     sharedstatedir=$ac_optarg ;;
1177
1178   -site | --site | --sit)
1179     ac_prev=site ;;
1180   -site=* | --site=* | --sit=*)
1181     site=$ac_optarg ;;
1182
1183   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184     ac_prev=srcdir ;;
1185   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186     srcdir=$ac_optarg ;;
1187
1188   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189   | --syscon | --sysco | --sysc | --sys | --sy)
1190     ac_prev=sysconfdir ;;
1191   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193     sysconfdir=$ac_optarg ;;
1194
1195   -target | --target | --targe | --targ | --tar | --ta | --t)
1196     ac_prev=target_alias ;;
1197   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198     target_alias=$ac_optarg ;;
1199
1200   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201     verbose=yes ;;
1202
1203   -version | --version | --versio | --versi | --vers | -V)
1204     ac_init_version=: ;;
1205
1206   -with-* | --with-*)
1207     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210       { echo "$as_me: error: invalid package name: $ac_package" >&2
1211    { (exit 1); exit 1; }; }
1212     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213     eval with_$ac_package=\$ac_optarg ;;
1214
1215   -without-* | --without-*)
1216     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1223
1224   --x)
1225     # Obsolete; use --with-x.
1226     with_x=yes ;;
1227
1228   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229   | --x-incl | --x-inc | --x-in | --x-i)
1230     ac_prev=x_includes ;;
1231   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233     x_includes=$ac_optarg ;;
1234
1235   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237     ac_prev=x_libraries ;;
1238   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240     x_libraries=$ac_optarg ;;
1241
1242   -*) { echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244    { (exit 1); exit 1; }; }
1245     ;;
1246
1247   *=*)
1248     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252    { (exit 1); exit 1; }; }
1253     eval $ac_envvar=\$ac_optarg
1254     export $ac_envvar ;;
1255
1256   *)
1257     # FIXME: should be removed in autoconf 3.0.
1258     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1262     ;;
1263
1264   esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269   { echo "$as_me: error: missing argument to $ac_option" >&2
1270    { (exit 1); exit 1; }; }
1271 fi
1272
1273 # Be sure to have absolute directory names.
1274 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275                 datadir sysconfdir sharedstatedir localstatedir includedir \
1276                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277                 libdir localedir mandir
1278 do
1279   eval ac_val=\$$ac_var
1280   case $ac_val in
1281     [\\/$]* | ?:[\\/]* )  continue;;
1282     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283   esac
1284   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285    { (exit 1); exit 1; }; }
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297   if test "x$build_alias" = x; then
1298     cross_compiling=maybe
1299     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300     If a cross compiler is detected then cross compile mode will be used." >&2
1301   elif test "x$build_alias" != "x$host_alias"; then
1302     cross_compiling=yes
1303   fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315   { echo "$as_me: error: Working directory cannot be determined" >&2
1316    { (exit 1); exit 1; }; }
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318   { echo "$as_me: error: pwd does not report name of working directory" >&2
1319    { (exit 1); exit 1; }; }
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324   ac_srcdir_defaulted=yes
1325   # Try the directory containing this script, then the parent directory.
1326   ac_confdir=`$as_dirname -- "$0" ||
1327 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328          X"$0" : 'X\(//\)[^/]' \| \
1329          X"$0" : 'X\(//\)$' \| \
1330          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1331 echo X"$0" |
1332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)[^/].*/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)$/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\).*/{
1345             s//\1/
1346             q
1347           }
1348           s/.*/./; q'`
1349   srcdir=$ac_confdir
1350   if test ! -r "$srcdir/$ac_unique_file"; then
1351     srcdir=..
1352   fi
1353 else
1354   ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1359    { (exit 1); exit 1; }; }
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1364    { (exit 1); exit 1; }; }
1365         pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368   srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378   eval ac_env_${ac_var}_value=\$${ac_var}
1379   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387   # Omit some internal or obsolete options to make the list less imposing.
1388   # This message is too long to be a string in the A/UX 3.1 sh.
1389   cat <<_ACEOF
1390 \`configure' configures this package to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400   -h, --help              display this help and exit
1401       --help=short        display options specific to this package
1402       --help=recursive    display the short help of all the included packages
1403   -V, --version           display version information and exit
1404   -q, --quiet, --silent   do not print \`checking...' messages
1405       --cache-file=FILE   cache test results in FILE [disabled]
1406   -C, --config-cache      alias for \`--cache-file=config.cache'
1407   -n, --no-create         do not create output files
1408       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411   --prefix=PREFIX         install architecture-independent files in PREFIX
1412                           [$ac_default_prefix]
1413   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                           [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424   --bindir=DIR           user executables [EPREFIX/bin]
1425   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1426   --libexecdir=DIR       program executables [EPREFIX/libexec]
1427   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1428   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1429   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1430   --libdir=DIR           object code libraries [EPREFIX/lib]
1431   --includedir=DIR       C header files [PREFIX/include]
1432   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1433   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1434   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1435   --infodir=DIR          info documentation [DATAROOTDIR/info]
1436   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1437   --mandir=DIR           man documentation [DATAROOTDIR/man]
1438   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1439   --htmldir=DIR          html documentation [DOCDIR]
1440   --dvidir=DIR           dvi documentation [DOCDIR]
1441   --pdfdir=DIR           pdf documentation [DOCDIR]
1442   --psdir=DIR            ps documentation [DOCDIR]
1443 _ACEOF
1444
1445   cat <<\_ACEOF
1446
1447 Program names:
1448   --program-prefix=PREFIX            prepend PREFIX to installed program names
1449   --program-suffix=SUFFIX            append SUFFIX to installed program names
1450   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1451
1452 System types:
1453   --build=BUILD     configure for building on BUILD [guessed]
1454   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459
1460   cat <<\_ACEOF
1461
1462 Optional Features:
1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465   --enable-shared[=PKGS]  build shared libraries [default=yes]
1466   --enable-static[=PKGS]  build static libraries [default=yes]
1467   --enable-fast-install[=PKGS]
1468                           optimize for fast installation [default=yes]
1469   --disable-dependency-tracking  speeds up one-time build
1470   --enable-dependency-tracking   do not reject slow dependency extractors
1471   --disable-libtool-lock  avoid locking (might break parallel builds)
1472
1473 Optional Packages:
1474   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477   --with-pic              try to use only PIC/non-PIC objects [default=use
1478                           both]
1479   --with-tags[=TAGS]      include additional configurations [automatic]
1480
1481 Some influential environment variables:
1482   CC          C compiler command
1483   CFLAGS      C compiler flags
1484   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485               nonstandard directory <lib dir>
1486   LIBS        libraries to pass to the linker, e.g. -l<library>
1487   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488               you have headers in a nonstandard directory <include dir>
1489   CPP         C preprocessor
1490   CXX         C++ compiler command
1491   CXXFLAGS    C++ compiler flags
1492   CXXCPP      C++ preprocessor
1493   F77         Fortran 77 compiler command
1494   FFLAGS      Fortran 77 compiler flags
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504   # If there are subdirs, report their specific --help.
1505   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506     test -d "$ac_dir" || continue
1507     ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513   # A ".." for each directory in $ac_dir_suffix.
1514   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515   case $ac_top_builddir_sub in
1516   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518   esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526   .)  # We are building in place.
1527     ac_srcdir=.
1528     ac_top_srcdir=$ac_top_builddir_sub
1529     ac_abs_top_srcdir=$ac_pwd ;;
1530   [\\/]* | ?:[\\/]* )  # Absolute name.
1531     ac_srcdir=$srcdir$ac_dir_suffix;
1532     ac_top_srcdir=$srcdir
1533     ac_abs_top_srcdir=$srcdir ;;
1534   *) # Relative name.
1535     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536     ac_top_srcdir=$ac_top_build_prefix$srcdir
1537     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541     cd "$ac_dir" || { ac_status=$?; continue; }
1542     # Check for guested configure.
1543     if test -f "$ac_srcdir/configure.gnu"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546     elif test -f "$ac_srcdir/configure"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure" --help=recursive
1549     else
1550       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551     fi || ac_status=$?
1552     cd "$ac_pwd" || { ac_status=$?; break; }
1553   done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558   cat <<\_ACEOF
1559 configure
1560 generated by GNU Autoconf 2.61
1561
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567   exit
1568 fi
1569 cat >config.log <<_ACEOF
1570 This file contains any messages produced by compilers while
1571 running configure, to aid debugging if configure makes a mistake.
1572
1573 It was created by $as_me, which was
1574 generated by GNU Autoconf 2.61.  Invocation command line was
1575
1576   $ $0 $@
1577
1578 _ACEOF
1579 exec 5>>config.log
1580 {
1581 cat <<_ASUNAME
1582 ## --------- ##
1583 ## Platform. ##
1584 ## --------- ##
1585
1586 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591
1592 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1594
1595 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1596 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1597 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1598 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1599 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1600 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1601 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1602
1603 _ASUNAME
1604
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   echo "PATH: $as_dir"
1611 done
1612 IFS=$as_save_IFS
1613
1614 } >&5
1615
1616 cat >&5 <<_ACEOF
1617
1618
1619 ## ----------- ##
1620 ## Core tests. ##
1621 ## ----------- ##
1622
1623 _ACEOF
1624
1625
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_configure_args=
1632 ac_configure_args0=
1633 ac_configure_args1=
1634 ac_must_keep_next=false
1635 for ac_pass in 1 2
1636 do
1637   for ac_arg
1638   do
1639     case $ac_arg in
1640     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642     | -silent | --silent | --silen | --sile | --sil)
1643       continue ;;
1644     *\'*)
1645       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646     esac
1647     case $ac_pass in
1648     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649     2)
1650       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1651       if test $ac_must_keep_next = true; then
1652         ac_must_keep_next=false # Got value, back to normal.
1653       else
1654         case $ac_arg in
1655           *=* | --config-cache | -C | -disable-* | --disable-* \
1656           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658           | -with-* | --with-* | -without-* | --without-* | --x)
1659             case "$ac_configure_args0 " in
1660               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661             esac
1662             ;;
1663           -* ) ac_must_keep_next=true ;;
1664         esac
1665       fi
1666       ac_configure_args="$ac_configure_args '$ac_arg'"
1667       ;;
1668     esac
1669   done
1670 done
1671 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1672 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673
1674 # When interrupted or exit'd, cleanup temporary files, and complete
1675 # config.log.  We remove comments because anyway the quotes in there
1676 # would cause problems or look ugly.
1677 # WARNING: Use '\'' to represent an apostrophe within the trap.
1678 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679 trap 'exit_status=$?
1680   # Save into config.log some information that might help in debugging.
1681   {
1682     echo
1683
1684     cat <<\_ASBOX
1685 ## ---------------- ##
1686 ## Cache variables. ##
1687 ## ---------------- ##
1688 _ASBOX
1689     echo
1690     # The following way of writing the cache mishandles newlines in values,
1691 (
1692   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1693     eval ac_val=\$$ac_var
1694     case $ac_val in #(
1695     *${as_nl}*)
1696       case $ac_var in #(
1697       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1698 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1699       esac
1700       case $ac_var in #(
1701       _ | IFS | as_nl) ;; #(
1702       *) $as_unset $ac_var ;;
1703       esac ;;
1704     esac
1705   done
1706   (set) 2>&1 |
1707     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1708     *${as_nl}ac_space=\ *)
1709       sed -n \
1710         "s/'\''/'\''\\\\'\'''\''/g;
1711           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712       ;; #(
1713     *)
1714       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715       ;;
1716     esac |
1717     sort
1718 )
1719     echo
1720
1721     cat <<\_ASBOX
1722 ## ----------------- ##
1723 ## Output variables. ##
1724 ## ----------------- ##
1725 _ASBOX
1726     echo
1727     for ac_var in $ac_subst_vars
1728     do
1729       eval ac_val=\$$ac_var
1730       case $ac_val in
1731       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732       esac
1733       echo "$ac_var='\''$ac_val'\''"
1734     done | sort
1735     echo
1736
1737     if test -n "$ac_subst_files"; then
1738       cat <<\_ASBOX
1739 ## ------------------- ##
1740 ## File substitutions. ##
1741 ## ------------------- ##
1742 _ASBOX
1743       echo
1744       for ac_var in $ac_subst_files
1745       do
1746         eval ac_val=\$$ac_var
1747         case $ac_val in
1748         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749         esac
1750         echo "$ac_var='\''$ac_val'\''"
1751       done | sort
1752       echo
1753     fi
1754
1755     if test -s confdefs.h; then
1756       cat <<\_ASBOX
1757 ## ----------- ##
1758 ## confdefs.h. ##
1759 ## ----------- ##
1760 _ASBOX
1761       echo
1762       cat confdefs.h
1763       echo
1764     fi
1765     test "$ac_signal" != 0 &&
1766       echo "$as_me: caught signal $ac_signal"
1767     echo "$as_me: exit $exit_status"
1768   } >&5
1769   rm -f core *.core core.conftest.* &&
1770     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771     exit $exit_status
1772 ' 0
1773 for ac_signal in 1 2 13 15; do
1774   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775 done
1776 ac_signal=0
1777
1778 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1779 rm -f -r conftest* confdefs.h
1780
1781 # Predefined preprocessor variables.
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_NAME "$PACKAGE_NAME"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_STRING "$PACKAGE_STRING"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805 _ACEOF
1806
1807
1808 # Let the site file select an alternate cache file if it wants to.
1809 # Prefer explicitly selected file to automatically selected ones.
1810 if test -n "$CONFIG_SITE"; then
1811   set x "$CONFIG_SITE"
1812 elif test "x$prefix" != xNONE; then
1813   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 else
1815   set x "$ac_default_prefix/share/config.site" \
1816         "$ac_default_prefix/etc/config.site"
1817 fi
1818 shift
1819 for ac_site_file
1820 do
1821   if test -r "$ac_site_file"; then
1822     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 echo "$as_me: loading site script $ac_site_file" >&6;}
1824     sed 's/^/| /' "$ac_site_file" >&5
1825     . "$ac_site_file"
1826   fi
1827 done
1828
1829 if test -r "$cache_file"; then
1830   # Some versions of bash will fail to source /dev/null (special
1831   # files actually), so we avoid doing that.
1832   if test -f "$cache_file"; then
1833     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 echo "$as_me: loading cache $cache_file" >&6;}
1835     case $cache_file in
1836       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837       *)                      . "./$cache_file";;
1838     esac
1839   fi
1840 else
1841   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 echo "$as_me: creating cache $cache_file" >&6;}
1843   >$cache_file
1844 fi
1845
1846 # Check that the precious variables saved in the cache have kept the same
1847 # value.
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851   eval ac_new_set=\$ac_env_${ac_var}_set
1852   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853   eval ac_new_val=\$ac_env_${ac_var}_value
1854   case $ac_old_set,$ac_new_set in
1855     set,)
1856       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,set)
1860       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862       ac_cache_corrupted=: ;;
1863     ,);;
1864     *)
1865       if test "x$ac_old_val" != "x$ac_new_val"; then
1866         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1869 echo "$as_me:   former value:  $ac_old_val" >&2;}
1870         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1871 echo "$as_me:   current value: $ac_new_val" >&2;}
1872         ac_cache_corrupted=:
1873       fi;;
1874   esac
1875   # Pass precious variables to config.status.
1876   if test "$ac_new_set" = set; then
1877     case $ac_new_val in
1878     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1879     *) ac_arg=$ac_var=$ac_new_val ;;
1880     esac
1881     case " $ac_configure_args " in
1882       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1883       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1884     esac
1885   fi
1886 done
1887 if $ac_cache_corrupted; then
1888   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1892    { (exit 1); exit 1; }; }
1893 fi
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911 ac_ext=c
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918 am__api_version="1.9"
1919 ac_aux_dir=
1920 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1921   if test -f "$ac_dir/install-sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install-sh -c"
1924     break
1925   elif test -f "$ac_dir/install.sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install.sh -c"
1928     break
1929   elif test -f "$ac_dir/shtool"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/shtool install -c"
1932     break
1933   fi
1934 done
1935 if test -z "$ac_aux_dir"; then
1936   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1938    { (exit 1); exit 1; }; }
1939 fi
1940
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1948
1949
1950 # Find a good install program.  We prefer a C program (faster),
1951 # so one script is as good as another.  But avoid the broken or
1952 # incompatible versions:
1953 # SysV /etc/install, /usr/sbin/install
1954 # SunOS /usr/etc/install
1955 # IRIX /sbin/install
1956 # AIX /bin/install
1957 # AmigaOS /C/install, which installs bootblocks on floppy discs
1958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1961 # OS/2's system install, which has a completely different semantic
1962 # ./install, which can be erroneously created by make from ./install.sh.
1963 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1964 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1965 if test -z "$INSTALL"; then
1966 if test "${ac_cv_path_install+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972   IFS=$as_save_IFS
1973   test -z "$as_dir" && as_dir=.
1974   # Account for people who put trailing slashes in PATH elements.
1975 case $as_dir/ in
1976   ./ | .// | /cC/* | \
1977   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1978   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1979   /usr/ucb/* ) ;;
1980   *)
1981     # OSF1 and SCO ODT 3.0 have their own names for install.
1982     # Don't use installbsd from OSF since it installs stuff as root
1983     # by default.
1984     for ac_prog in ginstall scoinst install; do
1985       for ac_exec_ext in '' $ac_executable_extensions; do
1986         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1987           if test $ac_prog = install &&
1988             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1989             # AIX install.  It has an incompatible calling convention.
1990             :
1991           elif test $ac_prog = install &&
1992             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1993             # program-specific install script used by HP pwplus--don't use.
1994             :
1995           else
1996             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1997             break 3
1998           fi
1999         fi
2000       done
2001     done
2002     ;;
2003 esac
2004 done
2005 IFS=$as_save_IFS
2006
2007
2008 fi
2009   if test "${ac_cv_path_install+set}" = set; then
2010     INSTALL=$ac_cv_path_install
2011   else
2012     # As a last resort, use the slow shell script.  Don't cache a
2013     # value for INSTALL within a source directory, because that will
2014     # break other packages using the cache if that directory is
2015     # removed, or if the value is a relative name.
2016     INSTALL=$ac_install_sh
2017   fi
2018 fi
2019 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2020 echo "${ECHO_T}$INSTALL" >&6; }
2021
2022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023 # It thinks the first close brace ends the variable substitution.
2024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2025
2026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2027
2028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2029
2030 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2031 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2032 # Just in case
2033 sleep 1
2034 echo timestamp > conftest.file
2035 # Do `set' in a subshell so we don't clobber the current shell's
2036 # arguments.  Must try -L first in case configure is actually a
2037 # symlink; some systems play weird games with the mod time of symlinks
2038 # (eg FreeBSD returns the mod time of the symlink's containing
2039 # directory).
2040 if (
2041    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2042    if test "$*" = "X"; then
2043       # -L didn't work.
2044       set X `ls -t $srcdir/configure conftest.file`
2045    fi
2046    rm -f conftest.file
2047    if test "$*" != "X $srcdir/configure conftest.file" \
2048       && test "$*" != "X conftest.file $srcdir/configure"; then
2049
2050       # If neither matched, then we have a broken ls.  This can happen
2051       # if, for instance, CONFIG_SHELL is bash and it inherits a
2052       # broken ls alias from the environment.  This has actually
2053       # happened.  Such a system could not be considered "sane".
2054       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2055 alias in your environment" >&5
2056 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2057 alias in your environment" >&2;}
2058    { (exit 1); exit 1; }; }
2059    fi
2060
2061    test "$2" = conftest.file
2062    )
2063 then
2064    # Ok.
2065    :
2066 else
2067    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2068 Check your system clock" >&5
2069 echo "$as_me: error: newly created file is older than distributed files!
2070 Check your system clock" >&2;}
2071    { (exit 1); exit 1; }; }
2072 fi
2073 { echo "$as_me:$LINENO: result: yes" >&5
2074 echo "${ECHO_T}yes" >&6; }
2075 test "$program_prefix" != NONE &&
2076   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2077 # Use a double $ so make ignores it.
2078 test "$program_suffix" != NONE &&
2079   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2080 # Double any \ or $.  echo might interpret backslashes.
2081 # By default was `s,x,x', remove it if useless.
2082 cat <<\_ACEOF >conftest.sed
2083 s/[\\$]/&&/g;s/;s,x,x,$//
2084 _ACEOF
2085 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2086 rm -f conftest.sed
2087
2088 # expand $ac_aux_dir to an absolute path
2089 am_aux_dir=`cd $ac_aux_dir && pwd`
2090
2091 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2092 # Use eval to expand $SHELL
2093 if eval "$MISSING --run true"; then
2094   am_missing_run="$MISSING --run "
2095 else
2096   am_missing_run=
2097   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2098 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2099 fi
2100
2101 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2102   # We used to keeping the `.' as first argument, in order to
2103   # allow $(mkdir_p) to be used without argument.  As in
2104   #   $(mkdir_p) $(somedir)
2105   # where $(somedir) is conditionally defined.  However this is wrong
2106   # for two reasons:
2107   #  1. if the package is installed by a user who cannot write `.'
2108   #     make install will fail,
2109   #  2. the above comment should most certainly read
2110   #     $(mkdir_p) $(DESTDIR)$(somedir)
2111   #     so it does not work when $(somedir) is undefined and
2112   #     $(DESTDIR) is not.
2113   #  To support the latter case, we have to write
2114   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2115   #  so the `.' trick is pointless.
2116   mkdir_p='mkdir -p --'
2117 else
2118   # On NextStep and OpenStep, the `mkdir' command does not
2119   # recognize any option.  It will interpret all options as
2120   # directories to create, and then abort because `.' already
2121   # exists.
2122   for d in ./-p ./--version;
2123   do
2124     test -d $d && rmdir $d
2125   done
2126   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2127   if test -f "$ac_aux_dir/mkinstalldirs"; then
2128     mkdir_p='$(mkinstalldirs)'
2129   else
2130     mkdir_p='$(install_sh) -d'
2131   fi
2132 fi
2133
2134 for ac_prog in gawk mawk nawk awk
2135 do
2136   # Extract the first word of "$ac_prog", so it can be a program name with args.
2137 set dummy $ac_prog; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_prog_AWK+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   if test -n "$AWK"; then
2144   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   for ac_exec_ext in '' $ac_executable_extensions; do
2152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153     ac_cv_prog_AWK="$ac_prog"
2154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155     break 2
2156   fi
2157 done
2158 done
2159 IFS=$as_save_IFS
2160
2161 fi
2162 fi
2163 AWK=$ac_cv_prog_AWK
2164 if test -n "$AWK"; then
2165   { echo "$as_me:$LINENO: result: $AWK" >&5
2166 echo "${ECHO_T}$AWK" >&6; }
2167 else
2168   { echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6; }
2170 fi
2171
2172
2173   test -n "$AWK" && break
2174 done
2175
2176 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2178 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2179 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   cat >conftest.make <<\_ACEOF
2183 SHELL = /bin/sh
2184 all:
2185         @echo '@@@%%%=$(MAKE)=@@@%%%'
2186 _ACEOF
2187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2189   *@@@%%%=?*=@@@%%%*)
2190     eval ac_cv_prog_make_${ac_make}_set=yes;;
2191   *)
2192     eval ac_cv_prog_make_${ac_make}_set=no;;
2193 esac
2194 rm -f conftest.make
2195 fi
2196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2197   { echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6; }
2199   SET_MAKE=
2200 else
2201   { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2203   SET_MAKE="MAKE=${MAKE-make}"
2204 fi
2205
2206 rm -rf .tst 2>/dev/null
2207 mkdir .tst 2>/dev/null
2208 if test -d .tst; then
2209   am__leading_dot=.
2210 else
2211   am__leading_dot=_
2212 fi
2213 rmdir .tst 2>/dev/null
2214
2215 # test to see if srcdir already configured
2216 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2217    test -f $srcdir/config.status; then
2218   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2219 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2220    { (exit 1); exit 1; }; }
2221 fi
2222
2223 # test whether we have cygpath
2224 if test -z "$CYGPATH_W"; then
2225   if (cygpath --version) >/dev/null 2>/dev/null; then
2226     CYGPATH_W='cygpath -w'
2227   else
2228     CYGPATH_W=echo
2229   fi
2230 fi
2231
2232
2233 # Define the identity of the package.
2234  PACKAGE=libmplib
2235  VERSION=0.1.0
2236
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE "$PACKAGE"
2240 _ACEOF
2241
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define VERSION "$VERSION"
2245 _ACEOF
2246
2247 # Some tools Automake needs.
2248
2249 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2250
2251
2252 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2253
2254
2255 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2256
2257
2258 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2259
2260
2261 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2262
2263 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2264
2265 # Installed binaries are usually stripped using `strip' when the user
2266 # run `make install-strip'.  However `strip' might not be the right
2267 # tool to use in cross-compilation environments, therefore Automake
2268 # will honor the `STRIP' environment variable to overrule this program.
2269 if test "$cross_compiling" != no; then
2270   if test -n "$ac_tool_prefix"; then
2271   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}strip; ac_word=$2
2273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2275 if test "${ac_cv_prog_STRIP+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if test -n "$STRIP"; then
2279   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284   IFS=$as_save_IFS
2285   test -z "$as_dir" && as_dir=.
2286   for ac_exec_ext in '' $ac_executable_extensions; do
2287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2288     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294 IFS=$as_save_IFS
2295
2296 fi
2297 fi
2298 STRIP=$ac_cv_prog_STRIP
2299 if test -n "$STRIP"; then
2300   { echo "$as_me:$LINENO: result: $STRIP" >&5
2301 echo "${ECHO_T}$STRIP" >&6; }
2302 else
2303   { echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6; }
2305 fi
2306
2307
2308 fi
2309 if test -z "$ac_cv_prog_STRIP"; then
2310   ac_ct_STRIP=$STRIP
2311   # Extract the first word of "strip", so it can be a program name with args.
2312 set dummy strip; ac_word=$2
2313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2315 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   if test -n "$ac_ct_STRIP"; then
2319   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324   IFS=$as_save_IFS
2325   test -z "$as_dir" && as_dir=.
2326   for ac_exec_ext in '' $ac_executable_extensions; do
2327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328     ac_cv_prog_ac_ct_STRIP="strip"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334 IFS=$as_save_IFS
2335
2336 fi
2337 fi
2338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2339 if test -n "$ac_ct_STRIP"; then
2340   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2341 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2342 else
2343   { echo "$as_me:$LINENO: result: no" >&5
2344 echo "${ECHO_T}no" >&6; }
2345 fi
2346
2347   if test "x$ac_ct_STRIP" = x; then
2348     STRIP=":"
2349   else
2350     case $cross_compiling:$ac_tool_warned in
2351 yes:)
2352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2353 whose name does not start with the host triplet.  If you think this
2354 configuration is useful to you, please write to autoconf@gnu.org." >&5
2355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet.  If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2358 ac_tool_warned=yes ;;
2359 esac
2360     STRIP=$ac_ct_STRIP
2361   fi
2362 else
2363   STRIP="$ac_cv_prog_STRIP"
2364 fi
2365
2366 fi
2367 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2368
2369 # We need awk for the "check" target.  The system "awk" is bad on
2370 # some platforms.
2371 # Always define AMTAR for backward compatibility.
2372
2373 AMTAR=${AMTAR-"${am_missing_run}tar"}
2374
2375 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2376
2377
2378
2379
2380
2381 ac_config_headers="$ac_config_headers config.h"
2382
2383 # Check whether --enable-shared was given.
2384 if test "${enable_shared+set}" = set; then
2385   enableval=$enable_shared; p=${PACKAGE-default}
2386     case $enableval in
2387     yes) enable_shared=yes ;;
2388     no) enable_shared=no ;;
2389     *)
2390       enable_shared=no
2391       # Look at the argument we got.  We use all the common list separators.
2392       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2393       for pkg in $enableval; do
2394         IFS="$lt_save_ifs"
2395         if test "X$pkg" = "X$p"; then
2396           enable_shared=yes
2397         fi
2398       done
2399       IFS="$lt_save_ifs"
2400       ;;
2401     esac
2402 else
2403   enable_shared=yes
2404 fi
2405
2406
2407 # Check whether --enable-static was given.
2408 if test "${enable_static+set}" = set; then
2409   enableval=$enable_static; p=${PACKAGE-default}
2410     case $enableval in
2411     yes) enable_static=yes ;;
2412     no) enable_static=no ;;
2413     *)
2414      enable_static=no
2415       # Look at the argument we got.  We use all the common list separators.
2416       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2417       for pkg in $enableval; do
2418         IFS="$lt_save_ifs"
2419         if test "X$pkg" = "X$p"; then
2420           enable_static=yes
2421         fi
2422       done
2423       IFS="$lt_save_ifs"
2424       ;;
2425     esac
2426 else
2427   enable_static=yes
2428 fi
2429
2430
2431 # Check whether --enable-fast-install was given.
2432 if test "${enable_fast_install+set}" = set; then
2433   enableval=$enable_fast_install; p=${PACKAGE-default}
2434     case $enableval in
2435     yes) enable_fast_install=yes ;;
2436     no) enable_fast_install=no ;;
2437     *)
2438       enable_fast_install=no
2439       # Look at the argument we got.  We use all the common list separators.
2440       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2441       for pkg in $enableval; do
2442         IFS="$lt_save_ifs"
2443         if test "X$pkg" = "X$p"; then
2444           enable_fast_install=yes
2445         fi
2446       done
2447       IFS="$lt_save_ifs"
2448       ;;
2449     esac
2450 else
2451   enable_fast_install=yes
2452 fi
2453
2454
2455 # Make sure we can run config.sub.
2456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2457   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2458 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2459    { (exit 1); exit 1; }; }
2460
2461 { echo "$as_me:$LINENO: checking build system type" >&5
2462 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2463 if test "${ac_cv_build+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   ac_build_alias=$build_alias
2467 test "x$ac_build_alias" = x &&
2468   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2469 test "x$ac_build_alias" = x &&
2470   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2471 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2472    { (exit 1); exit 1; }; }
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2476    { (exit 1); exit 1; }; }
2477
2478 fi
2479 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2480 echo "${ECHO_T}$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2482 *-*-*) ;;
2483 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2484 echo "$as_me: error: invalid value of canonical build" >&2;}
2485    { (exit 1); exit 1; }; };;
2486 esac
2487 build=$ac_cv_build
2488 ac_save_IFS=$IFS; IFS='-'
2489 set x $ac_cv_build
2490 shift
2491 build_cpu=$1
2492 build_vendor=$2
2493 shift; shift
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2496 build_os=$*
2497 IFS=$ac_save_IFS
2498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2499
2500
2501 { echo "$as_me:$LINENO: checking host system type" >&5
2502 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2503 if test "${ac_cv_host+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test "x$host_alias" = x; then
2507   ac_cv_host=$ac_cv_build
2508 else
2509   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2510     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 fi
2516 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2517 echo "${ECHO_T}$ac_cv_host" >&6; }
2518 case $ac_cv_host in
2519 *-*-*) ;;
2520 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2521 echo "$as_me: error: invalid value of canonical host" >&2;}
2522    { (exit 1); exit 1; }; };;
2523 esac
2524 host=$ac_cv_host
2525 ac_save_IFS=$IFS; IFS='-'
2526 set x $ac_cv_host
2527 shift
2528 host_cpu=$1
2529 host_vendor=$2
2530 shift; shift
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2533 host_os=$*
2534 IFS=$ac_save_IFS
2535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2536
2537
2538 DEPDIR="${am__leading_dot}deps"
2539
2540 ac_config_commands="$ac_config_commands depfiles"
2541
2542
2543 am_make=${MAKE-make}
2544 cat > confinc << 'END'
2545 am__doit:
2546         @echo done
2547 .PHONY: am__doit
2548 END
2549 # If we don't find an include directive, just comment out the code.
2550 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2551 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2552 am__include="#"
2553 am__quote=
2554 _am_result=none
2555 # First try GNU make style include.
2556 echo "include confinc" > confmf
2557 # We grep out `Entering directory' and `Leaving directory'
2558 # messages which can occur if `w' ends up in MAKEFLAGS.
2559 # In particular we don't look at `^make:' because GNU make might
2560 # be invoked under some other name (usually "gmake"), in which
2561 # case it prints its new name instead of `make'.
2562 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2563    am__include=include
2564    am__quote=
2565    _am_result=GNU
2566 fi
2567 # Now try BSD make style include.
2568 if test "$am__include" = "#"; then
2569    echo '.include "confinc"' > confmf
2570    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2571       am__include=.include
2572       am__quote="\""
2573       _am_result=BSD
2574    fi
2575 fi
2576
2577
2578 { echo "$as_me:$LINENO: result: $_am_result" >&5
2579 echo "${ECHO_T}$_am_result" >&6; }
2580 rm -f confinc confmf
2581
2582 # Check whether --enable-dependency-tracking was given.
2583 if test "${enable_dependency_tracking+set}" = set; then
2584   enableval=$enable_dependency_tracking;
2585 fi
2586
2587 if test "x$enable_dependency_tracking" != xno; then
2588   am_depcomp="$ac_aux_dir/depcomp"
2589   AMDEPBACKSLASH='\'
2590 fi
2591
2592
2593 if test "x$enable_dependency_tracking" != xno; then
2594   AMDEP_TRUE=
2595   AMDEP_FALSE='#'
2596 else
2597   AMDEP_TRUE='#'
2598   AMDEP_FALSE=
2599 fi
2600
2601
2602
2603 ac_ext=c
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   if test -n "$CC"; then
2617   ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638   { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2640 else
2641   { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2643 fi
2644
2645
2646 fi
2647 if test -z "$ac_cv_prog_CC"; then
2648   ac_ct_CC=$CC
2649   # Extract the first word of "gcc", so it can be a program name with args.
2650 set dummy gcc; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   if test -n "$ac_ct_CC"; then
2657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664   for ac_exec_ext in '' $ac_executable_extensions; do
2665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666     ac_cv_prog_ac_ct_CC="gcc"
2667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6; }
2680 else
2681   { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2683 fi
2684
2685   if test "x$ac_ct_CC" = x; then
2686     CC=""
2687   else
2688     case $cross_compiling:$ac_tool_warned in
2689 yes:)
2690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet.  If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&5
2693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2694 whose name does not start with the host triplet.  If you think this
2695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698     CC=$ac_ct_CC
2699   fi
2700 else
2701   CC="$ac_cv_prog_CC"
2702 fi
2703
2704 if test -z "$CC"; then
2705           if test -n "$ac_tool_prefix"; then
2706     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}cc; ac_word=$2
2708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then
2711   echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713   if test -n "$CC"; then
2714   ac_cv_prog_CC="$CC" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719   IFS=$as_save_IFS
2720   test -z "$as_dir" && as_dir=.
2721   for ac_exec_ext in '' $ac_executable_extensions; do
2722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723     ac_cv_prog_CC="${ac_tool_prefix}cc"
2724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725     break 2
2726   fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 CC=$ac_cv_prog_CC
2734 if test -n "$CC"; then
2735   { echo "$as_me:$LINENO: result: $CC" >&5
2736 echo "${ECHO_T}$CC" >&6; }
2737 else
2738   { echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6; }
2740 fi
2741
2742
2743   fi
2744 fi
2745 if test -z "$CC"; then
2746   # Extract the first word of "cc", so it can be a program name with args.
2747 set dummy cc; ac_word=$2
2748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   if test -n "$CC"; then
2754   ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756   ac_prog_rejected=no
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762   for ac_exec_ext in '' $ac_executable_extensions; do
2763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2765        ac_prog_rejected=yes
2766        continue
2767      fi
2768     ac_cv_prog_CC="cc"
2769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770     break 2
2771   fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 if test $ac_prog_rejected = yes; then
2777   # We found a bogon in the path, so make sure we never use it.
2778   set dummy $ac_cv_prog_CC
2779   shift
2780   if test $# != 0; then
2781     # We chose a different compiler from the bogus one.
2782     # However, it has the same basename, so the bogon will be chosen
2783     # first if we set CC to just the basename; use the full file name.
2784     shift
2785     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2786   fi
2787 fi
2788 fi
2789 fi
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792   { echo "$as_me:$LINENO: result: $CC" >&5
2793 echo "${ECHO_T}$CC" >&6; }
2794 else
2795   { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2797 fi
2798
2799
2800 fi
2801 if test -z "$CC"; then
2802   if test -n "$ac_tool_prefix"; then
2803   for ac_prog in cl.exe
2804   do
2805     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2809 if test "${ac_cv_prog_CC+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   if test -n "$CC"; then
2813   ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820   for ac_exec_ext in '' $ac_executable_extensions; do
2821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834   { echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6; }
2836 else
2837   { echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6; }
2839 fi
2840
2841
2842     test -n "$CC" && break
2843   done
2844 fi
2845 if test -z "$CC"; then
2846   ac_ct_CC=$CC
2847   for ac_prog in cl.exe
2848 do
2849   # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$ac_ct_CC"; then
2857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_ac_ct_CC="$ac_prog"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2880 else
2881   { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885
2886   test -n "$ac_ct_CC" && break
2887 done
2888
2889   if test "x$ac_ct_CC" = x; then
2890     CC=""
2891   else
2892     case $cross_compiling:$ac_tool_warned in
2893 yes:)
2894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet.  If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&5
2897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2898 whose name does not start with the host triplet.  If you think this
2899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2900 ac_tool_warned=yes ;;
2901 esac
2902     CC=$ac_ct_CC
2903   fi
2904 fi
2905
2906 fi
2907
2908
2909 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details." >&2;}
2913    { (exit 1); exit 1; }; }
2914
2915 # Provide some information about the compiler.
2916 echo "$as_me:$LINENO: checking for C compiler version" >&5
2917 ac_compiler=`set X $ac_compile; echo $2`
2918 { (ac_try="$ac_compiler --version >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler --version >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928 { (ac_try="$ac_compiler -v >&5"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compiler -v >&5") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }
2938 { (ac_try="$ac_compiler -V >&5"
2939 case "(($ac_try" in
2940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941   *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944   (eval "$ac_compiler -V >&5") 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }
2948
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 int
2957 main ()
2958 {
2959
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 ac_clean_files_save=$ac_clean_files
2965 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2966 # Try to create an executable without -o first, disregard a.out.
2967 # It will help us diagnose broken compilers, and finding out an intuition
2968 # of exeext.
2969 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2970 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2971 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2972 #
2973 # List of possible output files, starting from the most likely.
2974 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2975 # only as a last resort.  b.out is created by i960 compilers.
2976 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2977 #
2978 # The IRIX 6 linker writes into existing files which may not be
2979 # executable, retaining their permissions.  Remove them first so a
2980 # subsequent execution test works.
2981 ac_rmfiles=
2982 for ac_file in $ac_files
2983 do
2984   case $ac_file in
2985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2986     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2987   esac
2988 done
2989 rm -f $ac_rmfiles
2990
2991 if { (ac_try="$ac_link_default"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_link_default") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; then
3001   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3005 # Autoconf.
3006 for ac_file in $ac_files ''
3007 do
3008   test -f "$ac_file" || continue
3009   case $ac_file in
3010     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3011         ;;
3012     [ab].out )
3013         # We found the default executable, but exeext='' is most
3014         # certainly right.
3015         break;;
3016     *.* )
3017         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018         then :; else
3019            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020         fi
3021         # We set ac_cv_exeext here because the later test for it is not
3022         # safe: cross compilers may not add the suffix if given an `-o'
3023         # argument, so we may need to know it at that point already.
3024         # Even if this section looks crufty: it has the advantage of
3025         # actually working.
3026         break;;
3027     * )
3028         break;;
3029   esac
3030 done
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3032
3033 else
3034   ac_file=''
3035 fi
3036
3037 { echo "$as_me:$LINENO: result: $ac_file" >&5
3038 echo "${ECHO_T}$ac_file" >&6; }
3039 if test -z "$ac_file"; then
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: C compiler cannot create executables
3046 See \`config.log' for more details." >&2;}
3047    { (exit 77); exit 77; }; }
3048 fi
3049
3050 ac_exeext=$ac_cv_exeext
3051
3052 # Check that the compiler produces executables we can run.  If not, either
3053 # the compiler is broken, or we cross compile.
3054 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3055 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3056 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3057 # If not cross compiling, check that we can run a simple program.
3058 if test "$cross_compiling" != yes; then
3059   if { ac_try='./$ac_file'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069     cross_compiling=no
3070   else
3071     if test "$cross_compiling" = maybe; then
3072         cross_compiling=yes
3073     else
3074         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3075 If you meant to cross compile, use \`--host'.
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details." >&2;}
3080    { (exit 1); exit 1; }; }
3081     fi
3082   fi
3083 fi
3084 { echo "$as_me:$LINENO: result: yes" >&5
3085 echo "${ECHO_T}yes" >&6; }
3086
3087 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3088 ac_clean_files=$ac_clean_files_save
3089 # Check that the compiler produces executables we can run.  If not, either
3090 # the compiler is broken, or we cross compile.
3091 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3092 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3093 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3094 echo "${ECHO_T}$cross_compiling" >&6; }
3095
3096 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3097 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3098 if { (ac_try="$ac_link"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_link") 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; then
3108   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3111 # `rm'.
3112 for ac_file in conftest.exe conftest conftest.*; do
3113   test -f "$ac_file" || continue
3114   case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117           break;;
3118     * ) break;;
3119   esac
3120 done
3121 else
3122   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&2;}
3126    { (exit 1); exit 1; }; }
3127 fi
3128
3129 rm -f conftest$ac_cv_exeext
3130 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3131 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3132
3133 rm -f conftest.$ac_ext
3134 EXEEXT=$ac_cv_exeext
3135 ac_exeext=$EXEEXT
3136 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3137 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3138 if test "${ac_cv_objext+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_compile") 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; then
3167   for ac_file in conftest.o conftest.obj conftest.*; do
3168   test -f "$ac_file" || continue;
3169   case $ac_file in
3170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3171     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3172        break;;
3173   esac
3174 done
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&2;}
3183    { (exit 1); exit 1; }; }
3184 fi
3185
3186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 fi
3188 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3189 echo "${ECHO_T}$ac_cv_objext" >&6; }
3190 OBJEXT=$ac_cv_objext
3191 ac_objext=$OBJEXT
3192 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3193 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3194 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203
3204 int
3205 main ()
3206 {
3207 #ifndef __GNUC__
3208        choke me
3209 #endif
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_compile") 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } && {
3229          test -z "$ac_c_werror_flag" ||
3230          test ! -s conftest.err
3231        } && test -s conftest.$ac_objext; then
3232   ac_compiler_gnu=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         ac_compiler_gnu=no
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3242
3243 fi
3244 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3245 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3246 GCC=`test $ac_compiler_gnu = yes && echo yes`
3247 ac_test_CFLAGS=${CFLAGS+set}
3248 ac_save_CFLAGS=$CFLAGS
3249 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3250 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_g+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_save_c_werror_flag=$ac_c_werror_flag
3255    ac_c_werror_flag=yes
3256    ac_cv_prog_cc_g=no
3257    CFLAGS="-g"
3258    cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } && {
3287          test -z "$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        } && test -s conftest.$ac_objext; then
3290   ac_cv_prog_cc_g=yes
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295         CFLAGS=""
3296       cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } && {
3325          test -z "$ac_c_werror_flag" ||
3326          test ! -s conftest.err
3327        } && test -s conftest.$ac_objext; then
3328   :
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333         ac_c_werror_flag=$ac_save_c_werror_flag
3334          CFLAGS="-g"
3335          cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341
3342 int
3343 main ()
3344 {
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_compile") 2>conftest.er1
3358   ac_status=$?
3359   grep -v '^ *+' conftest.er1 >conftest.err
3360   rm -f conftest.er1
3361   cat conftest.err >&5
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } && {
3364          test -z "$ac_c_werror_flag" ||
3365          test ! -s conftest.err
3366        } && test -s conftest.$ac_objext; then
3367   ac_cv_prog_cc_g=yes
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373 fi
3374
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 fi
3377
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 fi
3380
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382    ac_c_werror_flag=$ac_save_c_werror_flag
3383 fi
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3386 if test "$ac_test_CFLAGS" = set; then
3387   CFLAGS=$ac_save_CFLAGS
3388 elif test $ac_cv_prog_cc_g = yes; then
3389   if test "$GCC" = yes; then
3390     CFLAGS="-g -O2"
3391   else
3392     CFLAGS="-g"
3393   fi
3394 else
3395   if test "$GCC" = yes; then
3396     CFLAGS="-O2"
3397   else
3398     CFLAGS=
3399   fi
3400 fi
3401 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3402 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3403 if test "${ac_cv_prog_cc_c89+set}" = set; then
3404   echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406   ac_cv_prog_cc_c89=no
3407 ac_save_CC=$CC
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <stdarg.h>
3415 #include <stdio.h>
3416 #include <sys/types.h>
3417 #include <sys/stat.h>
3418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3419 struct buf { int x; };
3420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3421 static char *e (p, i)
3422      char **p;
3423      int i;
3424 {
3425   return p[i];
3426 }
3427 static char *f (char * (*g) (char **, int), char **p, ...)
3428 {
3429   char *s;
3430   va_list v;
3431   va_start (v,p);
3432   s = g (p, va_arg (v,int));
3433   va_end (v);
3434   return s;
3435 }
3436
3437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3438    function prototypes and stuff, but not '\xHH' hex character constants.
3439    These don't provoke an error unfortunately, instead are silently treated
3440    as 'x'.  The following induces an error, until -std is added to get
3441    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3442    array size at least.  It's necessary to write '\x00'==0 to get something
3443    that's true only with -std.  */
3444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3445
3446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3447    inside strings and character constants.  */
3448 #define FOO(x) 'x'
3449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3450
3451 int test (int i, double x);
3452 struct s1 {int (*f) (int a);};
3453 struct s2 {int (*f) (double a);};
3454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3455 int argc;
3456 char **argv;
3457 int
3458 main ()
3459 {
3460 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3466         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 do
3468   CC="$ac_save_CC $ac_arg"
3469   rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3471 case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476   (eval "$ac_compile") 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } && {
3483          test -z "$ac_c_werror_flag" ||
3484          test ! -s conftest.err
3485        } && test -s conftest.$ac_objext; then
3486   ac_cv_prog_cc_c89=$ac_arg
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext
3495   test "x$ac_cv_prog_cc_c89" != "xno" && break
3496 done
3497 rm -f conftest.$ac_ext
3498 CC=$ac_save_CC
3499
3500 fi
3501 # AC_CACHE_VAL
3502 case "x$ac_cv_prog_cc_c89" in
3503   x)
3504     { echo "$as_me:$LINENO: result: none needed" >&5
3505 echo "${ECHO_T}none needed" >&6; } ;;
3506   xno)
3507     { echo "$as_me:$LINENO: result: unsupported" >&5
3508 echo "${ECHO_T}unsupported" >&6; } ;;
3509   *)
3510     CC="$CC $ac_cv_prog_cc_c89"
3511     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3513 esac
3514
3515
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521
3522 depcc="$CC"   am_compiler_list=
3523
3524 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3525 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3526 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3530   # We make a subdir and do the tests there.  Otherwise we can end up
3531   # making bogus files that we don't know about and never remove.  For
3532   # instance it was reported that on HP-UX the gcc test will end up
3533   # making a dummy file named `D' -- because `-MD' means `put the output
3534   # in D'.
3535   mkdir conftest.dir
3536   # Copy depcomp to subdir because otherwise we won't find it if we're
3537   # using a relative directory.
3538   cp "$am_depcomp" conftest.dir
3539   cd conftest.dir
3540   # We will build objects and dependencies in a subdirectory because
3541   # it helps to detect inapplicable dependency modes.  For instance
3542   # both Tru64's cc and ICC support -MD to output dependencies as a
3543   # side effect of compilation, but ICC will put the dependencies in
3544   # the current directory while Tru64 will put them in the object
3545   # directory.
3546   mkdir sub
3547
3548   am_cv_CC_dependencies_compiler_type=none
3549   if test "$am_compiler_list" = ""; then
3550      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3551   fi
3552   for depmode in $am_compiler_list; do
3553     # Setup a source with many dependencies, because some compilers
3554     # like to wrap large dependency lists on column 80 (with \), and
3555     # we should not choose a depcomp mode which is confused by this.
3556     #
3557     # We need to recreate these files for each test, as the compiler may
3558     # overwrite some of them when testing with obscure command lines.
3559     # This happens at least with the AIX C compiler.
3560     : > sub/conftest.c
3561     for i in 1 2 3 4 5 6; do
3562       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3563       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3564       # Solaris 8's {/usr,}/bin/sh.
3565       touch sub/conftst$i.h
3566     done
3567     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3568
3569     case $depmode in
3570     nosideeffect)
3571       # after this tag, mechanisms are not by side-effect, so they'll
3572       # only be used when explicitly requested
3573       if test "x$enable_dependency_tracking" = xyes; then
3574         continue
3575       else
3576         break
3577       fi
3578       ;;
3579     none) break ;;
3580     esac
3581     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3582     # mode.  It turns out that the SunPro C++ compiler does not properly
3583     # handle `-M -o', and we need to detect this.
3584     if depmode=$depmode \
3585        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3586        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3587        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3588          >/dev/null 2>conftest.err &&
3589        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3590        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3591        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3592       # icc doesn't choke on unknown options, it will just issue warnings
3593       # or remarks (even with -Werror).  So we grep stderr for any message
3594       # that says an option was ignored or not supported.
3595       # When given -MP, icc 7.0 and 7.1 complain thusly:
3596       #   icc: Command line warning: ignoring option '-M'; no argument required
3597       # The diagnosis changed in icc 8.0:
3598       #   icc: Command line remark: option '-MP' not supported
3599       if (grep 'ignoring option' conftest.err ||
3600           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3601         am_cv_CC_dependencies_compiler_type=$depmode
3602         break
3603       fi
3604     fi
3605   done
3606
3607   cd ..
3608   rm -rf conftest.dir
3609 else
3610   am_cv_CC_dependencies_compiler_type=none
3611 fi
3612
3613 fi
3614 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3615 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3616 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3617
3618
3619
3620 if
3621   test "x$enable_dependency_tracking" != xno \
3622   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3623   am__fastdepCC_TRUE=
3624   am__fastdepCC_FALSE='#'
3625 else
3626   am__fastdepCC_TRUE='#'
3627   am__fastdepCC_FALSE=
3628 fi
3629
3630
3631 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3632 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3633 if test "${lt_cv_path_SED+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   # Loop through the user's path and test for sed and gsed.
3637 # Then use that list of sed's as ones to test for truncation.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643   for lt_ac_prog in sed gsed; do
3644     for ac_exec_ext in '' $ac_executable_extensions; do
3645       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3646         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3647       fi
3648     done
3649   done
3650 done
3651 lt_ac_max=0
3652 lt_ac_count=0
3653 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3654 # along with /bin/sed that truncates output.
3655 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3656   test ! -f $lt_ac_sed && continue
3657   cat /dev/null > conftest.in
3658   lt_ac_count=0
3659   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3660   # Check for GNU sed and select it if it is found.
3661   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3662     lt_cv_path_SED=$lt_ac_sed
3663     break
3664   fi
3665   while true; do
3666     cat conftest.in conftest.in >conftest.tmp
3667     mv conftest.tmp conftest.in
3668     cp conftest.in conftest.nl
3669     echo >>conftest.nl
3670     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3671     cmp -s conftest.out conftest.nl || break
3672     # 10000 chars as input seems more than enough
3673     test $lt_ac_count -gt 10 && break
3674     lt_ac_count=`expr $lt_ac_count + 1`
3675     if test $lt_ac_count -gt $lt_ac_max; then
3676       lt_ac_max=$lt_ac_count
3677       lt_cv_path_SED=$lt_ac_sed
3678     fi
3679   done
3680 done
3681
3682 fi
3683
3684 SED=$lt_cv_path_SED
3685 { echo "$as_me:$LINENO: result: $SED" >&5
3686 echo "${ECHO_T}$SED" >&6; }
3687
3688 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3689 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3690 if test "${ac_cv_path_GREP+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693   # Extract the first word of "grep ggrep" to use in msg output
3694 if test -z "$GREP"; then
3695 set dummy grep ggrep; ac_prog_name=$2
3696 if test "${ac_cv_path_GREP+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   ac_path_GREP_found=false
3700 # Loop through the user's path and test for each of PROGNAME-LIST
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_prog in grep ggrep; do
3707   for ac_exec_ext in '' $ac_executable_extensions; do
3708     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3709     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3710     # Check for GNU ac_path_GREP and select it if it is found.
3711   # Check for GNU $ac_path_GREP
3712 case `"$ac_path_GREP" --version 2>&1` in
3713 *GNU*)
3714   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3715 *)
3716   ac_count=0
3717   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3718   while :
3719   do
3720     cat "conftest.in" "conftest.in" >"conftest.tmp"
3721     mv "conftest.tmp" "conftest.in"
3722     cp "conftest.in" "conftest.nl"
3723     echo 'GREP' >> "conftest.nl"
3724     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726     ac_count=`expr $ac_count + 1`
3727     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3728       # Best one so far, save it but keep looking for a better one
3729       ac_cv_path_GREP="$ac_path_GREP"
3730       ac_path_GREP_max=$ac_count
3731     fi
3732     # 10*(2^10) chars as input seems more than enough
3733     test $ac_count -gt 10 && break
3734   done
3735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736 esac
3737
3738
3739     $ac_path_GREP_found && break 3
3740   done
3741 done
3742
3743 done
3744 IFS=$as_save_IFS
3745
3746
3747 fi
3748
3749 GREP="$ac_cv_path_GREP"
3750 if test -z "$GREP"; then
3751   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3752 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3753    { (exit 1); exit 1; }; }
3754 fi
3755
3756 else
3757   ac_cv_path_GREP=$GREP
3758 fi
3759
3760
3761 fi
3762 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3763 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3764  GREP="$ac_cv_path_GREP"
3765
3766
3767 { echo "$as_me:$LINENO: checking for egrep" >&5
3768 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3769 if test "${ac_cv_path_EGREP+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3773    then ac_cv_path_EGREP="$GREP -E"
3774    else
3775      # Extract the first word of "egrep" to use in msg output
3776 if test -z "$EGREP"; then
3777 set dummy egrep; ac_prog_name=$2
3778 if test "${ac_cv_path_EGREP+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   ac_path_EGREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785 do
3786   IFS=$as_save_IFS
3787   test -z "$as_dir" && as_dir=.
3788   for ac_prog in egrep; do
3789   for ac_exec_ext in '' $ac_executable_extensions; do
3790     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3791     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3792     # Check for GNU ac_path_EGREP and select it if it is found.
3793   # Check for GNU $ac_path_EGREP
3794 case `"$ac_path_EGREP" --version 2>&1` in
3795 *GNU*)
3796   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3797 *)
3798   ac_count=0
3799   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3800   while :
3801   do
3802     cat "conftest.in" "conftest.in" >"conftest.tmp"
3803     mv "conftest.tmp" "conftest.in"
3804     cp "conftest.in" "conftest.nl"
3805     echo 'EGREP' >> "conftest.nl"
3806     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808     ac_count=`expr $ac_count + 1`
3809     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3810       # Best one so far, save it but keep looking for a better one
3811       ac_cv_path_EGREP="$ac_path_EGREP"
3812       ac_path_EGREP_max=$ac_count
3813     fi
3814     # 10*(2^10) chars as input seems more than enough
3815     test $ac_count -gt 10 && break
3816   done
3817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818 esac
3819
3820
3821     $ac_path_EGREP_found && break 3
3822   done
3823 done
3824
3825 done
3826 IFS=$as_save_IFS
3827
3828
3829 fi
3830
3831 EGREP="$ac_cv_path_EGREP"
3832 if test -z "$EGREP"; then
3833   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3834 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3835    { (exit 1); exit 1; }; }
3836 fi
3837
3838 else
3839   ac_cv_path_EGREP=$EGREP
3840 fi
3841
3842
3843    fi
3844 fi
3845 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3846 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3847  EGREP="$ac_cv_path_EGREP"
3848
3849
3850
3851 # Check whether --with-gnu-ld was given.
3852 if test "${with_gnu_ld+set}" = set; then
3853   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3854 else
3855   with_gnu_ld=no
3856 fi
3857
3858 ac_prog=ld
3859 if test "$GCC" = yes; then
3860   # Check if gcc -print-prog-name=ld gives a path.
3861   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3862 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3863   case $host in
3864   *-*-mingw*)
3865     # gcc leaves a trailing carriage return which upsets mingw
3866     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3867   *)
3868     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3869   esac
3870   case $ac_prog in
3871     # Accept absolute paths.
3872     [\\/]* | ?:[\\/]*)
3873       re_direlt='/[^/][^/]*/\.\./'
3874       # Canonicalize the pathname of ld
3875       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3876       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3877         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3878       done
3879       test -z "$LD" && LD="$ac_prog"
3880       ;;
3881   "")
3882     # If it fails, then pretend we aren't using GCC.
3883     ac_prog=ld
3884     ;;
3885   *)
3886     # If it is relative, then search for the first ld in PATH.
3887     with_gnu_ld=unknown
3888     ;;
3889   esac
3890 elif test "$with_gnu_ld" = yes; then
3891   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3892 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3893 else
3894   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3895 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3896 fi
3897 if test "${lt_cv_path_LD+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   if test -z "$LD"; then
3901   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3902   for ac_dir in $PATH; do
3903     IFS="$lt_save_ifs"
3904     test -z "$ac_dir" && ac_dir=.
3905     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3906       lt_cv_path_LD="$ac_dir/$ac_prog"
3907       # Check to see if the program is GNU ld.  I'd rather use --version,
3908       # but apparently some variants of GNU ld only accept -v.
3909       # Break only if it was the GNU/non-GNU ld that we prefer.
3910       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3911       *GNU* | *'with BFD'*)
3912         test "$with_gnu_ld" != no && break
3913         ;;
3914       *)
3915         test "$with_gnu_ld" != yes && break
3916         ;;
3917       esac
3918     fi
3919   done
3920   IFS="$lt_save_ifs"
3921 else
3922   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3923 fi
3924 fi
3925
3926 LD="$lt_cv_path_LD"
3927 if test -n "$LD"; then
3928   { echo "$as_me:$LINENO: result: $LD" >&5
3929 echo "${ECHO_T}$LD" >&6; }
3930 else
3931   { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3933 fi
3934 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3935 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3936    { (exit 1); exit 1; }; }
3937 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3938 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3939 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3943 case `$LD -v 2>&1 </dev/null` in
3944 *GNU* | *'with BFD'*)
3945   lt_cv_prog_gnu_ld=yes
3946   ;;
3947 *)
3948   lt_cv_prog_gnu_ld=no
3949   ;;
3950 esac
3951 fi
3952 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3953 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3954 with_gnu_ld=$lt_cv_prog_gnu_ld
3955
3956
3957 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3958 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3959 if test "${lt_cv_ld_reload_flag+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   lt_cv_ld_reload_flag='-r'
3963 fi
3964 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3965 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3966 reload_flag=$lt_cv_ld_reload_flag
3967 case $reload_flag in
3968 "" | " "*) ;;
3969 *) reload_flag=" $reload_flag" ;;
3970 esac
3971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3972 case $host_os in
3973   darwin*)
3974     if test "$GCC" = yes; then
3975       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3976     else
3977       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3978     fi
3979     ;;
3980 esac
3981
3982 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3983 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3984 if test "${lt_cv_path_NM+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$NM"; then
3988   # Let the user override the test.
3989   lt_cv_path_NM="$NM"
3990 else
3991   lt_nm_to_check="${ac_tool_prefix}nm"
3992   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3993     lt_nm_to_check="$lt_nm_to_check nm"
3994   fi
3995   for lt_tmp_nm in $lt_nm_to_check; do
3996     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3997     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3998       IFS="$lt_save_ifs"
3999       test -z "$ac_dir" && ac_dir=.
4000       tmp_nm="$ac_dir/$lt_tmp_nm"
4001       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4002         # Check to see if the nm accepts a BSD-compat flag.
4003         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4004         #   nm: unknown option "B" ignored
4005         # Tru64's nm complains that /dev/null is an invalid object file
4006         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4007         */dev/null* | *'Invalid file or object type'*)
4008           lt_cv_path_NM="$tmp_nm -B"
4009           break
4010           ;;
4011         *)
4012           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4013           */dev/null*)
4014             lt_cv_path_NM="$tmp_nm -p"
4015             break
4016             ;;
4017           *)
4018             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4019             continue # so that we can try to find one that supports BSD flags
4020             ;;
4021           esac
4022           ;;
4023         esac
4024       fi
4025     done
4026     IFS="$lt_save_ifs"
4027   done
4028   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4029 fi
4030 fi
4031 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4032 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4033 NM="$lt_cv_path_NM"
4034
4035 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4036 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4037 LN_S=$as_ln_s
4038 if test "$LN_S" = "ln -s"; then
4039   { echo "$as_me:$LINENO: result: yes" >&5
4040 echo "${ECHO_T}yes" >&6; }
4041 else
4042   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4043 echo "${ECHO_T}no, using $LN_S" >&6; }
4044 fi
4045
4046 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4047 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4048 if test "${lt_cv_deplibs_check_method+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   lt_cv_file_magic_cmd='$MAGIC_CMD'
4052 lt_cv_file_magic_test_file=
4053 lt_cv_deplibs_check_method='unknown'
4054 # Need to set the preceding variable on all platforms that support
4055 # interlibrary dependencies.
4056 # 'none' -- dependencies not supported.
4057 # `unknown' -- same as none, but documents that we really don't know.
4058 # 'pass_all' -- all dependencies passed with no checks.
4059 # 'test_compile' -- check by making test program.
4060 # 'file_magic [[regex]]' -- check by looking for files in library path
4061 # which responds to the $file_magic_cmd with a given extended regex.
4062 # If you have `file' or equivalent on your system and you're not sure
4063 # whether `pass_all' will *always* work, you probably want this one.
4064
4065 case $host_os in
4066 aix4* | aix5*)
4067   lt_cv_deplibs_check_method=pass_all
4068   ;;
4069
4070 beos*)
4071   lt_cv_deplibs_check_method=pass_all
4072   ;;
4073
4074 bsdi[45]*)
4075   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4076   lt_cv_file_magic_cmd='/usr/bin/file -L'
4077   lt_cv_file_magic_test_file=/shlib/libc.so
4078   ;;
4079
4080 cygwin*)
4081   # func_win32_libid is a shell function defined in ltmain.sh
4082   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4083   lt_cv_file_magic_cmd='func_win32_libid'
4084   ;;
4085
4086 mingw* | pw32*)
4087   # Base MSYS/MinGW do not provide the 'file' command needed by
4088   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4089   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4090   lt_cv_file_magic_cmd='$OBJDUMP -f'
4091   ;;
4092
4093 darwin* | rhapsody*)
4094   lt_cv_deplibs_check_method=pass_all
4095   ;;
4096
4097 freebsd* | kfreebsd*-gnu | dragonfly*)
4098   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4099     case $host_cpu in
4100     i*86 )
4101       # Not sure whether the presence of OpenBSD here was a mistake.
4102       # Let's accept both of them until this is cleared up.
4103       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4104       lt_cv_file_magic_cmd=/usr/bin/file
4105       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4106       ;;
4107     esac
4108   else
4109     lt_cv_deplibs_check_method=pass_all
4110   fi
4111   ;;
4112
4113 gnu*)
4114   lt_cv_deplibs_check_method=pass_all
4115   ;;
4116
4117 hpux10.20* | hpux11*)
4118   lt_cv_file_magic_cmd=/usr/bin/file
4119   case $host_cpu in
4120   ia64*)
4121     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4122     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4123     ;;
4124   hppa*64*)
4125     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]'
4126     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4127     ;;
4128   *)
4129     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4130     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4131     ;;
4132   esac
4133   ;;
4134
4135 interix3*)
4136   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4137   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4138   ;;
4139
4140 irix5* | irix6* | nonstopux*)
4141   case $LD in
4142   *-32|*"-32 ") libmagic=32-bit;;
4143   *-n32|*"-n32 ") libmagic=N32;;
4144   *-64|*"-64 ") libmagic=64-bit;;
4145   *) libmagic=never-match;;
4146   esac
4147   lt_cv_deplibs_check_method=pass_all
4148   ;;
4149
4150 # This must be Linux ELF.
4151 linux*)
4152   lt_cv_deplibs_check_method=pass_all
4153   ;;
4154
4155 netbsd*)
4156   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4157     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4158   else
4159     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4160   fi
4161   ;;
4162
4163 newos6*)
4164   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4165   lt_cv_file_magic_cmd=/usr/bin/file
4166   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4167   ;;
4168
4169 nto-qnx*)
4170   lt_cv_deplibs_check_method=unknown
4171   ;;
4172
4173 openbsd*)
4174   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4175     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4176   else
4177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4178   fi
4179   ;;
4180
4181 osf3* | osf4* | osf5*)
4182   lt_cv_deplibs_check_method=pass_all
4183   ;;
4184
4185 solaris*)
4186   lt_cv_deplibs_check_method=pass_all
4187   ;;
4188
4189 sysv4 | sysv4.3*)
4190   case $host_vendor in
4191   motorola)
4192     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]'
4193     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4194     ;;
4195   ncr)
4196     lt_cv_deplibs_check_method=pass_all
4197     ;;
4198   sequent)
4199     lt_cv_file_magic_cmd='/bin/file'
4200     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4201     ;;
4202   sni)
4203     lt_cv_file_magic_cmd='/bin/file'
4204     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4205     lt_cv_file_magic_test_file=/lib/libc.so
4206     ;;
4207   siemens)
4208     lt_cv_deplibs_check_method=pass_all
4209     ;;
4210   pc)
4211     lt_cv_deplibs_check_method=pass_all
4212     ;;
4213   esac
4214   ;;
4215
4216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4217   lt_cv_deplibs_check_method=pass_all
4218   ;;
4219 esac
4220
4221 fi
4222 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4223 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4224 file_magic_cmd=$lt_cv_file_magic_cmd
4225 deplibs_check_method=$lt_cv_deplibs_check_method
4226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4227
4228
4229
4230
4231 # If no C compiler was specified, use CC.
4232 LTCC=${LTCC-"$CC"}
4233
4234 # If no C compiler flags were specified, use CFLAGS.
4235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4236
4237 # Allow CC to be a program name with arguments.
4238 compiler=$CC
4239
4240
4241 # Check whether --enable-libtool-lock was given.
4242 if test "${enable_libtool_lock+set}" = set; then
4243   enableval=$enable_libtool_lock;
4244 fi
4245
4246 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4247
4248 # Some flags need to be propagated to the compiler or linker for good
4249 # libtool support.
4250 case $host in
4251 ia64-*-hpux*)
4252   # Find out which ABI we are using.
4253   echo 'int i;' > conftest.$ac_ext
4254   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255   (eval $ac_compile) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; then
4259     case `/usr/bin/file conftest.$ac_objext` in
4260     *ELF-32*)
4261       HPUX_IA64_MODE="32"
4262       ;;
4263     *ELF-64*)
4264       HPUX_IA64_MODE="64"
4265       ;;
4266     esac
4267   fi
4268   rm -rf conftest*
4269   ;;
4270 *-*-irix6*)
4271   # Find out which ABI we are using.
4272   echo '#line 4272 "configure"' > conftest.$ac_ext
4273   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274   (eval $ac_compile) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; then
4278    if test "$lt_cv_prog_gnu_ld" = yes; then
4279     case `/usr/bin/file conftest.$ac_objext` in
4280     *32-bit*)
4281       LD="${LD-ld} -melf32bsmip"
4282       ;;
4283     *N32*)
4284       LD="${LD-ld} -melf32bmipn32"
4285       ;;
4286     *64-bit*)
4287       LD="${LD-ld} -melf64bmip"
4288       ;;
4289     esac
4290    else
4291     case `/usr/bin/file conftest.$ac_objext` in
4292     *32-bit*)
4293       LD="${LD-ld} -32"
4294       ;;
4295     *N32*)
4296       LD="${LD-ld} -n32"
4297       ;;
4298     *64-bit*)
4299       LD="${LD-ld} -64"
4300       ;;
4301     esac
4302    fi
4303   fi
4304   rm -rf conftest*
4305   ;;
4306
4307 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4308   # Find out which ABI we are using.
4309   echo 'int i;' > conftest.$ac_ext
4310   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311   (eval $ac_compile) 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }; then
4315     case `/usr/bin/file conftest.o` in
4316     *32-bit*)
4317       case $host in
4318         x86_64-*linux*)
4319           LD="${LD-ld} -m elf_i386"
4320           ;;
4321         ppc64-*linux*|powerpc64-*linux*)
4322           LD="${LD-ld} -m elf32ppclinux"
4323           ;;
4324         s390x-*linux*)
4325           LD="${LD-ld} -m elf_s390"
4326           ;;
4327         sparc64-*linux*)
4328           LD="${LD-ld} -m elf32_sparc"
4329           ;;
4330       esac
4331       ;;
4332     *64-bit*)
4333       case $host in
4334         x86_64-*linux*)
4335           LD="${LD-ld} -m elf_x86_64"
4336           ;;
4337         ppc*-*linux*|powerpc*-*linux*)
4338           LD="${LD-ld} -m elf64ppc"
4339           ;;
4340         s390*-*linux*)
4341           LD="${LD-ld} -m elf64_s390"
4342           ;;
4343         sparc*-*linux*)
4344           LD="${LD-ld} -m elf64_sparc"
4345           ;;
4346       esac
4347       ;;
4348     esac
4349   fi
4350   rm -rf conftest*
4351   ;;
4352
4353 *-*-sco3.2v5*)
4354   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4355   SAVE_CFLAGS="$CFLAGS"
4356   CFLAGS="$CFLAGS -belf"
4357   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4358 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4359 if test "${lt_cv_cc_needs_belf+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   ac_ext=c
4363 ac_cpp='$CPP $CPPFLAGS'
4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
4368      cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h.  */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h.  */
4374
4375 int
4376 main ()
4377 {
4378
4379   ;
4380   return 0;
4381 }
4382 _ACEOF
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (ac_try="$ac_link"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_link") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && {
4397          test -z "$ac_c_werror_flag" ||
4398          test ! -s conftest.err
4399        } && test -s conftest$ac_exeext &&
4400        $as_test_x conftest$ac_exeext; then
4401   lt_cv_cc_needs_belf=yes
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406         lt_cv_cc_needs_belf=no
4407 fi
4408
4409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4410       conftest$ac_exeext conftest.$ac_ext
4411      ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417 fi
4418 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4419 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4420   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4421     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4422     CFLAGS="$SAVE_CFLAGS"
4423   fi
4424   ;;
4425 sparc*-*solaris*)
4426   # Find out which ABI we are using.
4427   echo 'int i;' > conftest.$ac_ext
4428   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429   (eval $ac_compile) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; then
4433     case `/usr/bin/file conftest.o` in
4434     *64-bit*)
4435       case $lt_cv_prog_gnu_ld in
4436       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4437       *)    LD="${LD-ld} -64" ;;
4438       esac
4439       ;;
4440     esac
4441   fi
4442   rm -rf conftest*
4443   ;;
4444
4445
4446 esac
4447
4448 need_locks="$enable_libtool_lock"
4449
4450
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4457 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4460   CPP=
4461 fi
4462 if test -z "$CPP"; then
4463   if test "${ac_cv_prog_CPP+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466       # Double quotes because CPP needs to be expanded
4467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468     do
4469       ac_preproc_ok=false
4470 for ac_c_preproc_warn_flag in '' yes
4471 do
4472   # Use a header file that comes with gcc, so configuring glibc
4473   # with a fresh cross-compiler works.
4474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475   # <limits.h> exists even on freestanding compilers.
4476   # On the NeXT, cc -E runs the code through the compiler's parser,
4477   # not just through cpp. "Syntax error" is here to catch this case.
4478   cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h.  */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h.  */
4484 #ifdef __STDC__
4485 # include <limits.h>
4486 #else
4487 # include <assert.h>
4488 #endif
4489                      Syntax error
4490 _ACEOF
4491 if { (ac_try="$ac_cpp conftest.$ac_ext"
4492 case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4498   ac_status=$?
4499   grep -v '^ *+' conftest.er1 >conftest.err
4500   rm -f conftest.er1
4501   cat conftest.err >&5
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); } >/dev/null && {
4504          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4505          test ! -s conftest.err
4506        }; then
4507   :
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512   # Broken: fails on valid input.
4513 continue
4514 fi
4515
4516 rm -f conftest.err conftest.$ac_ext
4517
4518   # OK, works on sane cases.  Now check whether nonexistent headers
4519   # can be detected and how.
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 #include <ac_nonexistent.h>
4527 _ACEOF
4528 if { (ac_try="$ac_cpp conftest.$ac_ext"
4529 case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4535   ac_status=$?
4536   grep -v '^ *+' conftest.er1 >conftest.err
4537   rm -f conftest.er1
4538   cat conftest.err >&5
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } >/dev/null && {
4541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4542          test ! -s conftest.err
4543        }; then
4544   # Broken: success on invalid input.
4545 continue
4546 else
4547   echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4549
4550   # Passes both tests.
4551 ac_preproc_ok=:
4552 break
4553 fi
4554
4555 rm -f conftest.err conftest.$ac_ext
4556
4557 done
4558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559 rm -f conftest.err conftest.$ac_ext
4560 if $ac_preproc_ok; then
4561   break
4562 fi
4563
4564     done
4565     ac_cv_prog_CPP=$CPP
4566
4567 fi
4568   CPP=$ac_cv_prog_CPP
4569 else
4570   ac_cv_prog_CPP=$CPP
4571 fi
4572 { echo "$as_me:$LINENO: result: $CPP" >&5
4573 echo "${ECHO_T}$CPP" >&6; }
4574 ac_preproc_ok=false
4575 for ac_c_preproc_warn_flag in '' yes
4576 do
4577   # Use a header file that comes with gcc, so configuring glibc
4578   # with a fresh cross-compiler works.
4579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4580   # <limits.h> exists even on freestanding compilers.
4581   # On the NeXT, cc -E runs the code through the compiler's parser,
4582   # not just through cpp. "Syntax error" is here to catch this case.
4583   cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 #ifdef __STDC__
4590 # include <limits.h>
4591 #else
4592 # include <assert.h>
4593 #endif
4594                      Syntax error
4595 _ACEOF
4596 if { (ac_try="$ac_cpp conftest.$ac_ext"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } >/dev/null && {
4609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4610          test ! -s conftest.err
4611        }; then
4612   :
4613 else
4614   echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617   # Broken: fails on valid input.
4618 continue
4619 fi
4620
4621 rm -f conftest.err conftest.$ac_ext
4622
4623   # OK, works on sane cases.  Now check whether nonexistent headers
4624   # can be detected and how.
4625   cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h.  */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h.  */
4631 #include <ac_nonexistent.h>
4632 _ACEOF
4633 if { (ac_try="$ac_cpp conftest.$ac_ext"
4634 case "(($ac_try" in
4635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636   *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } >/dev/null && {
4646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647          test ! -s conftest.err
4648        }; then
4649   # Broken: success on invalid input.
4650 continue
4651 else
4652   echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655   # Passes both tests.
4656 ac_preproc_ok=:
4657 break
4658 fi
4659
4660 rm -f conftest.err conftest.$ac_ext
4661
4662 done
4663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4664 rm -f conftest.err conftest.$ac_ext
4665 if $ac_preproc_ok; then
4666   :
4667 else
4668   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4669 See \`config.log' for more details." >&5
4670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4671 See \`config.log' for more details." >&2;}
4672    { (exit 1); exit 1; }; }
4673 fi
4674
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680
4681
4682 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4683 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4684 if test "${ac_cv_header_stdc+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693 #include <stdlib.h>
4694 #include <stdarg.h>
4695 #include <string.h>
4696 #include <float.h>
4697
4698 int
4699 main ()
4700 {
4701
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4708 case "(($ac_try" in
4709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710   *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713   (eval "$ac_compile") 2>conftest.er1
4714   ac_status=$?
4715   grep -v '^ *+' conftest.er1 >conftest.err
4716   rm -f conftest.er1
4717   cat conftest.err >&5
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); } && {
4720          test -z "$ac_c_werror_flag" ||
4721          test ! -s conftest.err
4722        } && test -s conftest.$ac_objext; then
4723   ac_cv_header_stdc=yes
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728         ac_cv_header_stdc=no
4729 fi
4730
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732
4733 if test $ac_cv_header_stdc = yes; then
4734   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4735   cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741 #include <string.h>
4742
4743 _ACEOF
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745   $EGREP "memchr" >/dev/null 2>&1; then
4746   :
4747 else
4748   ac_cv_header_stdc=no
4749 fi
4750 rm -f conftest*
4751
4752 fi
4753
4754 if test $ac_cv_header_stdc = yes; then
4755   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4756   cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h.  */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h.  */
4762 #include <stdlib.h>
4763
4764 _ACEOF
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766   $EGREP "free" >/dev/null 2>&1; then
4767   :
4768 else
4769   ac_cv_header_stdc=no
4770 fi
4771 rm -f conftest*
4772
4773 fi
4774
4775 if test $ac_cv_header_stdc = yes; then
4776   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4777   if test "$cross_compiling" = yes; then
4778   :
4779 else
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 #include <ctype.h>
4787 #include <stdlib.h>
4788 #if ((' ' & 0x0FF) == 0x020)
4789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4791 #else
4792 # define ISLOWER(c) \
4793                    (('a' <= (c) && (c) <= 'i') \
4794                      || ('j' <= (c) && (c) <= 'r') \
4795                      || ('s' <= (c) && (c) <= 'z'))
4796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797 #endif
4798
4799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4800 int
4801 main ()
4802 {
4803   int i;
4804   for (i = 0; i < 256; i++)
4805     if (XOR (islower (i), ISLOWER (i))
4806         || toupper (i) != TOUPPER (i))
4807       return 2;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest$ac_exeext
4812 if { (ac_try="$ac_link"
4813 case "(($ac_try" in
4814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815   *) ac_try_echo=$ac_try;;
4816 esac
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818   (eval "$ac_link") 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4822   { (case "(($ac_try" in
4823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824   *) ac_try_echo=$ac_try;;
4825 esac
4826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827   (eval "$ac_try") 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; }; then
4831   :
4832 else
4833   echo "$as_me: program exited with status $ac_status" >&5
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 ( exit $ac_status )
4838 ac_cv_header_stdc=no
4839 fi
4840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4841 fi
4842
4843
4844 fi
4845 fi
4846 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4847 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4848 if test $ac_cv_header_stdc = yes; then
4849
4850 cat >>confdefs.h <<\_ACEOF
4851 #define STDC_HEADERS 1
4852 _ACEOF
4853
4854 fi
4855
4856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4867                   inttypes.h stdint.h unistd.h
4868 do
4869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h.  */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h.  */
4881 $ac_includes_default
4882
4883 #include <$ac_header>
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889   *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892   (eval "$ac_compile") 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } && {
4899          test -z "$ac_c_werror_flag" ||
4900          test ! -s conftest.err
4901        } && test -s conftest.$ac_objext; then
4902   eval "$as_ac_Header=yes"
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907         eval "$as_ac_Header=no"
4908 fi
4909
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 ac_res=`eval echo '${'$as_ac_Header'}'`
4913                { echo "$as_me:$LINENO: result: $ac_res" >&5
4914 echo "${ECHO_T}$ac_res" >&6; }
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916   cat >>confdefs.h <<_ACEOF
4917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918 _ACEOF
4919
4920 fi
4921
4922 done
4923
4924
4925
4926 for ac_header in dlfcn.h
4927 do
4928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 fi
4935 ac_res=`eval echo '${'$as_ac_Header'}'`
4936                { echo "$as_me:$LINENO: result: $ac_res" >&5
4937 echo "${ECHO_T}$ac_res" >&6; }
4938 else
4939   # Is the header compilable?
4940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 $ac_includes_default
4949 #include <$ac_header>
4950 _ACEOF
4951 rm -f conftest.$ac_objext
4952 if { (ac_try="$ac_compile"
4953 case "(($ac_try" in
4954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955   *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958   (eval "$ac_compile") 2>conftest.er1
4959   ac_status=$?
4960   grep -v '^ *+' conftest.er1 >conftest.err
4961   rm -f conftest.er1
4962   cat conftest.err >&5
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && {
4965          test -z "$ac_c_werror_flag" ||
4966          test ! -s conftest.err
4967        } && test -s conftest.$ac_objext; then
4968   ac_header_compiler=yes
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973         ac_header_compiler=no
4974 fi
4975
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4978 echo "${ECHO_T}$ac_header_compiler" >&6; }
4979
4980 # Is the header present?
4981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 #include <$ac_header>
4990 _ACEOF
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992 case "(($ac_try" in
4993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994   *) ac_try_echo=$ac_try;;
4995 esac
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } >/dev/null && {
5004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005          test ! -s conftest.err
5006        }; then
5007   ac_header_preproc=yes
5008 else
5009   echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012   ac_header_preproc=no
5013 fi
5014
5015 rm -f conftest.err conftest.$ac_ext
5016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5017 echo "${ECHO_T}$ac_header_preproc" >&6; }
5018
5019 # So?  What about this header?
5020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5021   yes:no: )
5022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5026     ac_header_preproc=yes
5027     ;;
5028   no:yes:* )
5029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5041
5042     ;;
5043 esac
5044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   eval "$as_ac_Header=\$ac_header_preproc"
5050 fi
5051 ac_res=`eval echo '${'$as_ac_Header'}'`
5052                { echo "$as_me:$LINENO: result: $ac_res" >&5
5053 echo "${ECHO_T}$ac_res" >&6; }
5054
5055 fi
5056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5057   cat >>confdefs.h <<_ACEOF
5058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5059 _ACEOF
5060
5061 fi
5062
5063 done
5064
5065 ac_ext=cpp
5066 ac_cpp='$CXXCPP $CPPFLAGS'
5067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5070 if test -z "$CXX"; then
5071   if test -n "$CCC"; then
5072     CXX=$CCC
5073   else
5074     if test -n "$ac_tool_prefix"; then
5075   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5076   do
5077     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_prog_CXX+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   if test -n "$CXX"; then
5085   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092   for ac_exec_ext in '' $ac_executable_extensions; do
5093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096     break 2
5097   fi
5098 done
5099 done
5100 IFS=$as_save_IFS
5101
5102 fi
5103 fi
5104 CXX=$ac_cv_prog_CXX
5105 if test -n "$CXX"; then
5106   { echo "$as_me:$LINENO: result: $CXX" >&5
5107 echo "${ECHO_T}$CXX" >&6; }
5108 else
5109   { echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6; }
5111 fi
5112
5113
5114     test -n "$CXX" && break
5115   done
5116 fi
5117 if test -z "$CXX"; then
5118   ac_ct_CXX=$CXX
5119   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5120 do
5121   # Extract the first word of "$ac_prog", so it can be a program name with args.
5122 set dummy $ac_prog; ac_word=$2
5123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   if test -n "$ac_ct_CXX"; then
5129   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134   IFS=$as_save_IFS
5135   test -z "$as_dir" && as_dir=.
5136   for ac_exec_ext in '' $ac_executable_extensions; do
5137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138     ac_cv_prog_ac_ct_CXX="$ac_prog"
5139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5140     break 2
5141   fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5149 if test -n "$ac_ct_CXX"; then
5150   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5151 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5152 else
5153   { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5155 fi
5156
5157
5158   test -n "$ac_ct_CXX" && break
5159 done
5160
5161   if test "x$ac_ct_CXX" = x; then
5162     CXX="g++"
5163   else
5164     case $cross_compiling:$ac_tool_warned in
5165 yes:)
5166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5167 whose name does not start with the host triplet.  If you think this
5168 configuration is useful to you, please write to autoconf@gnu.org." >&5
5169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5170 whose name does not start with the host triplet.  If you think this
5171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174     CXX=$ac_ct_CXX
5175   fi
5176 fi
5177
5178   fi
5179 fi
5180 # Provide some information about the compiler.
5181 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5182 ac_compiler=`set X $ac_compile; echo $2`
5183 { (ac_try="$ac_compiler --version >&5"
5184 case "(($ac_try" in
5185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186   *) ac_try_echo=$ac_try;;
5187 esac
5188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189   (eval "$ac_compiler --version >&5") 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); }
5193 { (ac_try="$ac_compiler -v >&5"
5194 case "(($ac_try" in
5195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196   *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199   (eval "$ac_compiler -v >&5") 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }
5203 { (ac_try="$ac_compiler -V >&5"
5204 case "(($ac_try" in
5205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206   *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209   (eval "$ac_compiler -V >&5") 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }
5213
5214 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5215 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5216 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h.  */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h.  */
5225
5226 int
5227 main ()
5228 {
5229 #ifndef __GNUC__
5230        choke me
5231 #endif
5232
5233   ;
5234   return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest.$ac_objext
5238 if { (ac_try="$ac_compile"
5239 case "(($ac_try" in
5240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241   *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244   (eval "$ac_compile") 2>conftest.er1
5245   ac_status=$?
5246   grep -v '^ *+' conftest.er1 >conftest.err
5247   rm -f conftest.er1
5248   cat conftest.err >&5
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } && {
5251          test -z "$ac_cxx_werror_flag" ||
5252          test ! -s conftest.err
5253        } && test -s conftest.$ac_objext; then
5254   ac_compiler_gnu=yes
5255 else
5256   echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259         ac_compiler_gnu=no
5260 fi
5261
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5264
5265 fi
5266 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5267 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5268 GXX=`test $ac_compiler_gnu = yes && echo yes`
5269 ac_test_CXXFLAGS=${CXXFLAGS+set}
5270 ac_save_CXXFLAGS=$CXXFLAGS
5271 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5272 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5273 if test "${ac_cv_prog_cxx_g+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5277    ac_cxx_werror_flag=yes
5278    ac_cv_prog_cxx_g=no
5279    CXXFLAGS="-g"
5280    cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (ac_try="$ac_compile"
5297 case "(($ac_try" in
5298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299   *) ac_try_echo=$ac_try;;
5300 esac
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302   (eval "$ac_compile") 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } && {
5309          test -z "$ac_cxx_werror_flag" ||
5310          test ! -s conftest.err
5311        } && test -s conftest.$ac_objext; then
5312   ac_cv_prog_cxx_g=yes
5313 else
5314   echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317         CXXFLAGS=""
5318       cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324
5325 int
5326 main ()
5327 {
5328
5329   ;
5330   return 0;
5331 }
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (ac_try="$ac_compile"
5335 case "(($ac_try" in
5336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337   *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340   (eval "$ac_compile") 2>conftest.er1
5341   ac_status=$?
5342   grep -v '^ *+' conftest.er1 >conftest.err
5343   rm -f conftest.er1
5344   cat conftest.err >&5
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } && {
5347          test -z "$ac_cxx_werror_flag" ||
5348          test ! -s conftest.err
5349        } && test -s conftest.$ac_objext; then
5350   :
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5356          CXXFLAGS="-g"
5357          cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h.  */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h.  */
5363
5364 int
5365 main ()
5366 {
5367
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (ac_try="$ac_compile"
5374 case "(($ac_try" in
5375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376   *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379   (eval "$ac_compile") 2>conftest.er1
5380   ac_status=$?
5381   grep -v '^ *+' conftest.er1 >conftest.err
5382   rm -f conftest.er1
5383   cat conftest.err >&5
5384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385   (exit $ac_status); } && {
5386          test -z "$ac_cxx_werror_flag" ||
5387          test ! -s conftest.err
5388        } && test -s conftest.$ac_objext; then
5389   ac_cv_prog_cxx_g=yes
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394
5395 fi
5396
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5405 fi
5406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5407 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5408 if test "$ac_test_CXXFLAGS" = set; then
5409   CXXFLAGS=$ac_save_CXXFLAGS
5410 elif test $ac_cv_prog_cxx_g = yes; then
5411   if test "$GXX" = yes; then
5412     CXXFLAGS="-g -O2"
5413   else
5414     CXXFLAGS="-g"
5415   fi
5416 else
5417   if test "$GXX" = yes; then
5418     CXXFLAGS="-O2"
5419   else
5420     CXXFLAGS=
5421   fi
5422 fi
5423 ac_ext=cpp
5424 ac_cpp='$CXXCPP $CPPFLAGS'
5425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5428
5429 depcc="$CXX"  am_compiler_list=
5430
5431 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5432 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5433 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5437   # We make a subdir and do the tests there.  Otherwise we can end up
5438   # making bogus files that we don't know about and never remove.  For
5439   # instance it was reported that on HP-UX the gcc test will end up
5440   # making a dummy file named `D' -- because `-MD' means `put the output
5441   # in D'.
5442   mkdir conftest.dir
5443   # Copy depcomp to subdir because otherwise we won't find it if we're
5444   # using a relative directory.
5445   cp "$am_depcomp" conftest.dir
5446   cd conftest.dir
5447   # We will build objects and dependencies in a subdirectory because
5448   # it helps to detect inapplicable dependency modes.  For instance
5449   # both Tru64's cc and ICC support -MD to output dependencies as a
5450   # side effect of compilation, but ICC will put the dependencies in
5451   # the current directory while Tru64 will put them in the object
5452   # directory.
5453   mkdir sub
5454
5455   am_cv_CXX_dependencies_compiler_type=none
5456   if test "$am_compiler_list" = ""; then
5457      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5458   fi
5459   for depmode in $am_compiler_list; do
5460     # Setup a source with many dependencies, because some compilers
5461     # like to wrap large dependency lists on column 80 (with \), and
5462     # we should not choose a depcomp mode which is confused by this.
5463     #
5464     # We need to recreate these files for each test, as the compiler may
5465     # overwrite some of them when testing with obscure command lines.
5466     # This happens at least with the AIX C compiler.
5467     : > sub/conftest.c
5468     for i in 1 2 3 4 5 6; do
5469       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5470       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5471       # Solaris 8's {/usr,}/bin/sh.
5472       touch sub/conftst$i.h
5473     done
5474     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5475
5476     case $depmode in
5477     nosideeffect)
5478       # after this tag, mechanisms are not by side-effect, so they'll
5479       # only be used when explicitly requested
5480       if test "x$enable_dependency_tracking" = xyes; then
5481         continue
5482       else
5483         break
5484       fi
5485       ;;
5486     none) break ;;
5487     esac
5488     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5489     # mode.  It turns out that the SunPro C++ compiler does not properly
5490     # handle `-M -o', and we need to detect this.
5491     if depmode=$depmode \
5492        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5493        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5494        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5495          >/dev/null 2>conftest.err &&
5496        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5497        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5498        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5499       # icc doesn't choke on unknown options, it will just issue warnings
5500       # or remarks (even with -Werror).  So we grep stderr for any message
5501       # that says an option was ignored or not supported.
5502       # When given -MP, icc 7.0 and 7.1 complain thusly:
5503       #   icc: Command line warning: ignoring option '-M'; no argument required
5504       # The diagnosis changed in icc 8.0:
5505       #   icc: Command line remark: option '-MP' not supported
5506       if (grep 'ignoring option' conftest.err ||
5507           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5508         am_cv_CXX_dependencies_compiler_type=$depmode
5509         break
5510       fi
5511     fi
5512   done
5513
5514   cd ..
5515   rm -rf conftest.dir
5516 else
5517   am_cv_CXX_dependencies_compiler_type=none
5518 fi
5519
5520 fi
5521 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5522 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5523 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5524
5525
5526
5527 if
5528   test "x$enable_dependency_tracking" != xno \
5529   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5530   am__fastdepCXX_TRUE=
5531   am__fastdepCXX_FALSE='#'
5532 else
5533   am__fastdepCXX_TRUE='#'
5534   am__fastdepCXX_FALSE=
5535 fi
5536
5537
5538
5539
5540 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5541     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5542     (test "X$CXX" != "Xg++"))) ; then
5543   ac_ext=cpp
5544 ac_cpp='$CXXCPP $CPPFLAGS'
5545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5548 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5549 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5550 if test -z "$CXXCPP"; then
5551   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554       # Double quotes because CXXCPP needs to be expanded
5555     for CXXCPP in "$CXX -E" "/lib/cpp"
5556     do
5557       ac_preproc_ok=false
5558 for ac_cxx_preproc_warn_flag in '' yes
5559 do
5560   # Use a header file that comes with gcc, so configuring glibc
5561   # with a fresh cross-compiler works.
5562   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5563   # <limits.h> exists even on freestanding compilers.
5564   # On the NeXT, cc -E runs the code through the compiler's parser,
5565   # not just through cpp. "Syntax error" is here to catch this case.
5566   cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h.  */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h.  */
5572 #ifdef __STDC__
5573 # include <limits.h>
5574 #else
5575 # include <assert.h>
5576 #endif
5577                      Syntax error
5578 _ACEOF
5579 if { (ac_try="$ac_cpp conftest.$ac_ext"
5580 case "(($ac_try" in
5581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582   *) ac_try_echo=$ac_try;;
5583 esac
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586   ac_status=$?
5587   grep -v '^ *+' conftest.er1 >conftest.err
5588   rm -f conftest.er1
5589   cat conftest.err >&5
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); } >/dev/null && {
5592          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5593          test ! -s conftest.err
5594        }; then
5595   :
5596 else
5597   echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600   # Broken: fails on valid input.
5601 continue
5602 fi
5603
5604 rm -f conftest.err conftest.$ac_ext
5605
5606   # OK, works on sane cases.  Now check whether nonexistent headers
5607   # can be detected and how.
5608   cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h.  */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h.  */
5614 #include <ac_nonexistent.h>
5615 _ACEOF
5616 if { (ac_try="$ac_cpp conftest.$ac_ext"
5617 case "(($ac_try" in
5618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619   *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5623   ac_status=$?
5624   grep -v '^ *+' conftest.er1 >conftest.err
5625   rm -f conftest.er1
5626   cat conftest.err >&5
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); } >/dev/null && {
5629          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5630          test ! -s conftest.err
5631        }; then
5632   # Broken: success on invalid input.
5633 continue
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638   # Passes both tests.
5639 ac_preproc_ok=:
5640 break
5641 fi
5642
5643 rm -f conftest.err conftest.$ac_ext
5644
5645 done
5646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647 rm -f conftest.err conftest.$ac_ext
5648 if $ac_preproc_ok; then
5649   break
5650 fi
5651
5652     done
5653     ac_cv_prog_CXXCPP=$CXXCPP
5654
5655 fi
5656   CXXCPP=$ac_cv_prog_CXXCPP
5657 else
5658   ac_cv_prog_CXXCPP=$CXXCPP
5659 fi
5660 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5661 echo "${ECHO_T}$CXXCPP" >&6; }
5662 ac_preproc_ok=false
5663 for ac_cxx_preproc_warn_flag in '' yes
5664 do
5665   # Use a header file that comes with gcc, so configuring glibc
5666   # with a fresh cross-compiler works.
5667   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5668   # <limits.h> exists even on freestanding compilers.
5669   # On the NeXT, cc -E runs the code through the compiler's parser,
5670   # not just through cpp. "Syntax error" is here to catch this case.
5671   cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677 #ifdef __STDC__
5678 # include <limits.h>
5679 #else
5680 # include <assert.h>
5681 #endif
5682                      Syntax error
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   :
5701 else
5702   echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5704
5705   # Broken: fails on valid input.
5706 continue
5707 fi
5708
5709 rm -f conftest.err conftest.$ac_ext
5710
5711   # OK, works on sane cases.  Now check whether nonexistent headers
5712   # can be detected and how.
5713   cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h.  */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h.  */
5719 #include <ac_nonexistent.h>
5720 _ACEOF
5721 if { (ac_try="$ac_cpp conftest.$ac_ext"
5722 case "(($ac_try" in
5723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724   *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728   ac_status=$?
5729   grep -v '^ *+' conftest.er1 >conftest.err
5730   rm -f conftest.er1
5731   cat conftest.err >&5
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); } >/dev/null && {
5734          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5735          test ! -s conftest.err
5736        }; then
5737   # Broken: success on invalid input.
5738 continue
5739 else
5740   echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743   # Passes both tests.
5744 ac_preproc_ok=:
5745 break
5746 fi
5747
5748 rm -f conftest.err conftest.$ac_ext
5749
5750 done
5751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5752 rm -f conftest.err conftest.$ac_ext
5753 if $ac_preproc_ok; then
5754   :
5755 else
5756   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5757 See \`config.log' for more details." >&5
5758 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5759 See \`config.log' for more details." >&2;}
5760    { (exit 1); exit 1; }; }
5761 fi
5762
5763 ac_ext=cpp
5764 ac_cpp='$CXXCPP $CPPFLAGS'
5765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5768
5769 fi
5770
5771
5772 ac_ext=f
5773 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5774 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5776 if test -n "$ac_tool_prefix"; then
5777   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
5778   do
5779     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_prog_F77+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   if test -n "$F77"; then
5787   ac_cv_prog_F77="$F77" # Let the user override the test.
5788 else
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794   for ac_exec_ext in '' $ac_executable_extensions; do
5795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5796     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801 done
5802 IFS=$as_save_IFS
5803
5804 fi
5805 fi
5806 F77=$ac_cv_prog_F77
5807 if test -n "$F77"; then
5808   { echo "$as_me:$LINENO: result: $F77" >&5
5809 echo "${ECHO_T}$F77" >&6; }
5810 else
5811   { echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6; }
5813 fi
5814
5815
5816     test -n "$F77" && break
5817   done
5818 fi
5819 if test -z "$F77"; then
5820   ac_ct_F77=$F77
5821   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
5822 do
5823   # Extract the first word of "$ac_prog", so it can be a program name with args.
5824 set dummy $ac_prog; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   if test -n "$ac_ct_F77"; then
5831   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838   for ac_exec_ext in '' $ac_executable_extensions; do
5839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840     ac_cv_prog_ac_ct_F77="$ac_prog"
5841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845 done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5851 if test -n "$ac_ct_F77"; then
5852   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5853 echo "${ECHO_T}$ac_ct_F77" >&6; }
5854 else
5855   { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5857 fi
5858
5859
5860   test -n "$ac_ct_F77" && break
5861 done
5862
5863   if test "x$ac_ct_F77" = x; then
5864     F77=""
5865   else
5866     case $cross_compiling:$ac_tool_warned in
5867 yes:)
5868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5869 whose name does not start with the host triplet.  If you think this
5870 configuration is useful to you, please write to autoconf@gnu.org." >&5
5871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5872 whose name does not start with the host triplet.  If you think this
5873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5874 ac_tool_warned=yes ;;
5875 esac
5876     F77=$ac_ct_F77
5877   fi
5878 fi
5879
5880
5881 # Provide some information about the compiler.
5882 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5883 ac_compiler=`set X $ac_compile; echo $2`
5884 { (ac_try="$ac_compiler --version >&5"
5885 case "(($ac_try" in
5886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887   *) ac_try_echo=$ac_try;;
5888 esac
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890   (eval "$ac_compiler --version >&5") 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }
5894 { (ac_try="$ac_compiler -v >&5"
5895 case "(($ac_try" in
5896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897   *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900   (eval "$ac_compiler -v >&5") 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }
5904 { (ac_try="$ac_compiler -V >&5"
5905 case "(($ac_try" in
5906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907   *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910   (eval "$ac_compiler -V >&5") 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }
5914 rm -f a.out
5915
5916 # If we don't use `.F' as extension, the preprocessor is not run on the
5917 # input file.  (Note that this only needs to work for GNU compilers.)
5918 ac_save_ext=$ac_ext
5919 ac_ext=F
5920 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5921 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5922 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   cat >conftest.$ac_ext <<_ACEOF
5926       program main
5927 #ifndef __GNUC__
5928        choke me
5929 #endif
5930
5931       end
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937   *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940   (eval "$ac_compile") 2>conftest.er1
5941   ac_status=$?
5942   grep -v '^ *+' conftest.er1 >conftest.err
5943   rm -f conftest.er1
5944   cat conftest.err >&5
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } && {
5947          test -z "$ac_f77_werror_flag" ||
5948          test ! -s conftest.err
5949        } && test -s conftest.$ac_objext; then
5950   ac_compiler_gnu=yes
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955         ac_compiler_gnu=no
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5960
5961 fi
5962 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5963 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5964 ac_ext=$ac_save_ext
5965 ac_test_FFLAGS=${FFLAGS+set}
5966 ac_save_FFLAGS=$FFLAGS
5967 FFLAGS=
5968 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5969 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5970 if test "${ac_cv_prog_f77_g+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   FFLAGS=-g
5974 cat >conftest.$ac_ext <<_ACEOF
5975       program main
5976
5977       end
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983   *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986   (eval "$ac_compile") 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } && {
5993          test -z "$ac_f77_werror_flag" ||
5994          test ! -s conftest.err
5995        } && test -s conftest.$ac_objext; then
5996   ac_cv_prog_f77_g=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001         ac_cv_prog_f77_g=no
6002 fi
6003
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005
6006 fi
6007 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6008 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6009 if test "$ac_test_FFLAGS" = set; then
6010   FFLAGS=$ac_save_FFLAGS
6011 elif test $ac_cv_prog_f77_g = yes; then
6012   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6013     FFLAGS="-g -O2"
6014   else
6015     FFLAGS="-g"
6016   fi
6017 else
6018   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6019     FFLAGS="-O2"
6020   else
6021     FFLAGS=
6022   fi
6023 fi
6024
6025 G77=`test $ac_compiler_gnu = yes && echo yes`
6026 ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031
6032
6033
6034 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6035
6036 # find the maximum length of command line arguments
6037 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6038 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6039 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042     i=0
6043   teststring="ABCD"
6044
6045   case $build_os in
6046   msdosdjgpp*)
6047     # On DJGPP, this test can blow up pretty badly due to problems in libc
6048     # (any single argument exceeding 2000 bytes causes a buffer overrun
6049     # during glob expansion).  Even if it were fixed, the result of this
6050     # check would be larger than it should be.
6051     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6052     ;;
6053
6054   gnu*)
6055     # Under GNU Hurd, this test is not required because there is
6056     # no limit to the length of command line arguments.
6057     # Libtool will interpret -1 as no limit whatsoever
6058     lt_cv_sys_max_cmd_len=-1;
6059     ;;
6060
6061   cygwin* | mingw*)
6062     # On Win9x/ME, this test blows up -- it succeeds, but takes
6063     # about 5 minutes as the teststring grows exponentially.
6064     # Worse, since 9x/ME are not pre-emptively multitasking,
6065     # you end up with a "frozen" computer, even though with patience
6066     # the test eventually succeeds (with a max line length of 256k).
6067     # Instead, let's just punt: use the minimum linelength reported by
6068     # all of the supported platforms: 8192 (on NT/2K/XP).
6069     lt_cv_sys_max_cmd_len=8192;
6070     ;;
6071
6072   amigaos*)
6073     # On AmigaOS with pdksh, this test takes hours, literally.
6074     # So we just punt and use a minimum line length of 8192.
6075     lt_cv_sys_max_cmd_len=8192;
6076     ;;
6077
6078   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6079     # This has been around since 386BSD, at least.  Likely further.
6080     if test -x /sbin/sysctl; then
6081       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6082     elif test -x /usr/sbin/sysctl; then
6083       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6084     else
6085       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6086     fi
6087     # And add a safety zone
6088     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6089     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6090     ;;
6091
6092   interix*)
6093     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6094     lt_cv_sys_max_cmd_len=196608
6095     ;;
6096
6097   osf*)
6098     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6099     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6100     # nice to cause kernel panics so lets avoid the loop below.
6101     # First set a reasonable default.
6102     lt_cv_sys_max_cmd_len=16384
6103     #
6104     if test -x /sbin/sysconfig; then
6105       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6106         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6107       esac
6108     fi
6109     ;;
6110   sco3.2v5*)
6111     lt_cv_sys_max_cmd_len=102400
6112     ;;
6113   sysv5* | sco5v6* | sysv4.2uw2*)
6114     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6115     if test -n "$kargmax"; then
6116       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6117     else
6118       lt_cv_sys_max_cmd_len=32768
6119     fi
6120     ;;
6121   *)
6122     # If test is not a shell built-in, we'll probably end up computing a
6123     # maximum length that is only half of the actual maximum length, but
6124     # we can't tell.
6125     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6126     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6127                = "XX$teststring") >/dev/null 2>&1 &&
6128             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6129             lt_cv_sys_max_cmd_len=$new_result &&
6130             test $i != 17 # 1/2 MB should be enough
6131     do
6132       i=`expr $i + 1`
6133       teststring=$teststring$teststring
6134     done
6135     teststring=
6136     # Add a significant safety factor because C++ compilers can tack on massive
6137     # amounts of additional arguments before passing them to the linker.
6138     # It appears as though 1/2 is a usable value.
6139     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6140     ;;
6141   esac
6142
6143 fi
6144
6145 if test -n $lt_cv_sys_max_cmd_len ; then
6146   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6148 else
6149   { echo "$as_me:$LINENO: result: none" >&5
6150 echo "${ECHO_T}none" >&6; }
6151 fi
6152
6153
6154
6155
6156 # Check for command to grab the raw symbol name followed by C symbol from nm.
6157 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6158 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6159 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162
6163 # These are sane defaults that work on at least a few old systems.
6164 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6165
6166 # Character class describing NM global symbol codes.
6167 symcode='[BCDEGRST]'
6168
6169 # Regexp to match symbols that can be accessed directly from C.
6170 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6171
6172 # Transform an extracted symbol line into a proper C declaration
6173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6174
6175 # Transform an extracted symbol line into symbol name and symbol address
6176 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'"
6177
6178 # Define system-specific variables.
6179 case $host_os in
6180 aix*)
6181   symcode='[BCDT]'
6182   ;;
6183 cygwin* | mingw* | pw32*)
6184   symcode='[ABCDGISTW]'
6185   ;;
6186 hpux*) # Its linker distinguishes data from code symbols
6187   if test "$host_cpu" = ia64; then
6188     symcode='[ABCDEGRST]'
6189   fi
6190   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6191   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'"
6192   ;;
6193 linux*)
6194   if test "$host_cpu" = ia64; then
6195     symcode='[ABCDGIRSTW]'
6196     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6197     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'"
6198   fi
6199   ;;
6200 irix* | nonstopux*)
6201   symcode='[BCDEGRST]'
6202   ;;
6203 osf*)
6204   symcode='[BCDEGQRST]'
6205   ;;
6206 solaris*)
6207   symcode='[BDRT]'
6208   ;;
6209 sco3.2v5*)
6210   symcode='[DT]'
6211   ;;
6212 sysv4.2uw2*)
6213   symcode='[DT]'
6214   ;;
6215 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6216   symcode='[ABDT]'
6217   ;;
6218 sysv4)
6219   symcode='[DFNSTU]'
6220   ;;
6221 esac
6222
6223 # Handle CRLF in mingw tool chain
6224 opt_cr=
6225 case $build_os in
6226 mingw*)
6227   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6228   ;;
6229 esac
6230
6231 # If we're using GNU nm, then use its standard symbol codes.
6232 case `$NM -V 2>&1` in
6233 *GNU* | *'with BFD'*)
6234   symcode='[ABCDGIRSTW]' ;;
6235 esac
6236
6237 # Try without a prefix undercore, then with it.
6238 for ac_symprfx in "" "_"; do
6239
6240   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6241   symxfrm="\\1 $ac_symprfx\\2 \\2"
6242
6243   # Write the raw and C identifiers.
6244   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6245
6246   # Check to see that the pipe works correctly.
6247   pipe_works=no
6248
6249   rm -f conftest*
6250   cat > conftest.$ac_ext <<EOF
6251 #ifdef __cplusplus
6252 extern "C" {
6253 #endif
6254 char nm_test_var;
6255 void nm_test_func(){}
6256 #ifdef __cplusplus
6257 }
6258 #endif
6259 int main(){nm_test_var='a';nm_test_func();return(0);}
6260 EOF
6261
6262   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263   (eval $ac_compile) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; then
6267     # Now try to grab the symbols.
6268     nlist=conftest.nm
6269     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6270   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6271   ac_status=$?
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } && test -s "$nlist"; then
6274       # Try sorting and uniquifying the output.
6275       if sort "$nlist" | uniq > "$nlist"T; then
6276         mv -f "$nlist"T "$nlist"
6277       else
6278         rm -f "$nlist"T
6279       fi
6280
6281       # Make sure that we snagged all the symbols we need.
6282       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6283         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6284           cat <<EOF > conftest.$ac_ext
6285 #ifdef __cplusplus
6286 extern "C" {
6287 #endif
6288
6289 EOF
6290           # Now generate the symbol file.
6291           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6292
6293           cat <<EOF >> conftest.$ac_ext
6294 #if defined (__STDC__) && __STDC__
6295 # define lt_ptr_t void *
6296 #else
6297 # define lt_ptr_t char *
6298 # define const
6299 #endif
6300
6301 /* The mapping between symbol names and symbols. */
6302 const struct {
6303   const char *name;
6304   lt_ptr_t address;
6305 }
6306 lt_preloaded_symbols[] =
6307 {
6308 EOF
6309           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6310           cat <<\EOF >> conftest.$ac_ext
6311   {0, (lt_ptr_t) 0}
6312 };
6313
6314 #ifdef __cplusplus
6315 }
6316 #endif
6317 EOF
6318           # Now try linking the two files.
6319           mv conftest.$ac_objext conftstm.$ac_objext
6320           lt_save_LIBS="$LIBS"
6321           lt_save_CFLAGS="$CFLAGS"
6322           LIBS="conftstm.$ac_objext"
6323           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6324           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6325   (eval $ac_link) 2>&5
6326   ac_status=$?
6327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6329             pipe_works=yes
6330           fi
6331           LIBS="$lt_save_LIBS"
6332           CFLAGS="$lt_save_CFLAGS"
6333         else
6334           echo "cannot find nm_test_func in $nlist" >&5
6335         fi
6336       else
6337         echo "cannot find nm_test_var in $nlist" >&5
6338       fi
6339     else
6340       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6341     fi
6342   else
6343     echo "$progname: failed program was:" >&5
6344     cat conftest.$ac_ext >&5
6345   fi
6346   rm -f conftest* conftst*
6347
6348   # Do not use the global_symbol_pipe unless it works.
6349   if test "$pipe_works" = yes; then
6350     break
6351   else
6352     lt_cv_sys_global_symbol_pipe=
6353   fi
6354 done
6355
6356 fi
6357
6358 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6359   lt_cv_sys_global_symbol_to_cdecl=
6360 fi
6361 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6362   { echo "$as_me:$LINENO: result: failed" >&5
6363 echo "${ECHO_T}failed" >&6; }
6364 else
6365   { echo "$as_me:$LINENO: result: ok" >&5
6366 echo "${ECHO_T}ok" >&6; }
6367 fi
6368
6369 { echo "$as_me:$LINENO: checking for objdir" >&5
6370 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6371 if test "${lt_cv_objdir+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   rm -f .libs 2>/dev/null
6375 mkdir .libs 2>/dev/null
6376 if test -d .libs; then
6377   lt_cv_objdir=.libs
6378 else
6379   # MS-DOS does not allow filenames that begin with a dot.
6380   lt_cv_objdir=_libs
6381 fi
6382 rmdir .libs 2>/dev/null
6383 fi
6384 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6385 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6386 objdir=$lt_cv_objdir
6387
6388
6389
6390
6391
6392 case $host_os in
6393 aix3*)
6394   # AIX sometimes has problems with the GCC collect2 program.  For some
6395   # reason, if we set the COLLECT_NAMES environment variable, the problems
6396   # vanish in a puff of smoke.
6397   if test "X${COLLECT_NAMES+set}" != Xset; then
6398     COLLECT_NAMES=
6399     export COLLECT_NAMES
6400   fi
6401   ;;
6402 esac
6403
6404 # Sed substitution that helps us do robust quoting.  It backslashifies
6405 # metacharacters that are still active within double-quoted strings.
6406 Xsed='sed -e 1s/^X//'
6407 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6408
6409 # Same as above, but do not quote variable references.
6410 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6411
6412 # Sed substitution to delay expansion of an escaped shell variable in a
6413 # double_quote_subst'ed string.
6414 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6415
6416 # Sed substitution to avoid accidental globbing in evaled expressions
6417 no_glob_subst='s/\*/\\\*/g'
6418
6419 # Constants:
6420 rm="rm -f"
6421
6422 # Global variables:
6423 default_ofile=libtool
6424 can_build_shared=yes
6425
6426 # All known linkers require a `.a' archive for static linking (except MSVC,
6427 # which needs '.lib').
6428 libext=a
6429 ltmain="$ac_aux_dir/ltmain.sh"
6430 ofile="$default_ofile"
6431 with_gnu_ld="$lt_cv_prog_gnu_ld"
6432
6433 if test -n "$ac_tool_prefix"; then
6434   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}ar; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_prog_AR+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   if test -n "$AR"; then
6442   ac_cv_prog_AR="$AR" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_AR="${ac_tool_prefix}ar"
6452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 AR=$ac_cv_prog_AR
6462 if test -n "$AR"; then
6463   { echo "$as_me:$LINENO: result: $AR" >&5
6464 echo "${ECHO_T}$AR" >&6; }
6465 else
6466   { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_AR"; then
6473   ac_ct_AR=$AR
6474   # Extract the first word of "ar", so it can be a program name with args.
6475 set dummy ar; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   if test -n "$ac_ct_AR"; then
6482   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_ac_ct_AR="ar"
6492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6502 if test -n "$ac_ct_AR"; then
6503   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6504 echo "${ECHO_T}$ac_ct_AR" >&6; }
6505 else
6506   { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6508 fi
6509
6510   if test "x$ac_ct_AR" = x; then
6511     AR="false"
6512   else
6513     case $cross_compiling:$ac_tool_warned in
6514 yes:)
6515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6516 whose name does not start with the host triplet.  If you think this
6517 configuration is useful to you, please write to autoconf@gnu.org." >&5
6518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6519 whose name does not start with the host triplet.  If you think this
6520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     AR=$ac_ct_AR
6524   fi
6525 else
6526   AR="$ac_cv_prog_AR"
6527 fi
6528
6529 if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_RANLIB+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   if test -n "$RANLIB"; then
6538   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 RANLIB=$ac_cv_prog_RANLIB
6558 if test -n "$RANLIB"; then
6559   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6560 echo "${ECHO_T}$RANLIB" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_RANLIB"; then
6569   ac_ct_RANLIB=$RANLIB
6570   # Extract the first word of "ranlib", so it can be a program name with args.
6571 set dummy ranlib; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$ac_ct_RANLIB"; then
6578   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_RANLIB="ranlib"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6598 if test -n "$ac_ct_RANLIB"; then
6599   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6600 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_RANLIB" = x; then
6607     RANLIB=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet.  If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&5
6614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6615 whose name does not start with the host triplet.  If you think this
6616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619     RANLIB=$ac_ct_RANLIB
6620   fi
6621 else
6622   RANLIB="$ac_cv_prog_RANLIB"
6623 fi
6624
6625 if test -n "$ac_tool_prefix"; then
6626   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6627 set dummy ${ac_tool_prefix}strip; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_prog_STRIP+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   if test -n "$STRIP"; then
6634   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6635 else
6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641   for ac_exec_ext in '' $ac_executable_extensions; do
6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652 fi
6653 STRIP=$ac_cv_prog_STRIP
6654 if test -n "$STRIP"; then
6655   { echo "$as_me:$LINENO: result: $STRIP" >&5
6656 echo "${ECHO_T}$STRIP" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661
6662
6663 fi
6664 if test -z "$ac_cv_prog_STRIP"; then
6665   ac_ct_STRIP=$STRIP
6666   # Extract the first word of "strip", so it can be a program name with args.
6667 set dummy strip; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   if test -n "$ac_ct_STRIP"; then
6674   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_prog_ac_ct_STRIP="strip"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6694 if test -n "$ac_ct_STRIP"; then
6695   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6696 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6697 else
6698   { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6700 fi
6701
6702   if test "x$ac_ct_STRIP" = x; then
6703     STRIP=":"
6704   else
6705     case $cross_compiling:$ac_tool_warned in
6706 yes:)
6707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708 whose name does not start with the host triplet.  If you think this
6709 configuration is useful to you, please write to autoconf@gnu.org." >&5
6710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711 whose name does not start with the host triplet.  If you think this
6712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713 ac_tool_warned=yes ;;
6714 esac
6715     STRIP=$ac_ct_STRIP
6716   fi
6717 else
6718   STRIP="$ac_cv_prog_STRIP"
6719 fi
6720
6721
6722 old_CC="$CC"
6723 old_CFLAGS="$CFLAGS"
6724
6725 # Set sane defaults for various variables
6726 test -z "$AR" && AR=ar
6727 test -z "$AR_FLAGS" && AR_FLAGS=cru
6728 test -z "$AS" && AS=as
6729 test -z "$CC" && CC=cc
6730 test -z "$LTCC" && LTCC=$CC
6731 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6732 test -z "$DLLTOOL" && DLLTOOL=dlltool
6733 test -z "$LD" && LD=ld
6734 test -z "$LN_S" && LN_S="ln -s"
6735 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6736 test -z "$NM" && NM=nm
6737 test -z "$SED" && SED=sed
6738 test -z "$OBJDUMP" && OBJDUMP=objdump
6739 test -z "$RANLIB" && RANLIB=:
6740 test -z "$STRIP" && STRIP=:
6741 test -z "$ac_objext" && ac_objext=o
6742
6743 # Determine commands to create old-style static archives.
6744 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6745 old_postinstall_cmds='chmod 644 $oldlib'
6746 old_postuninstall_cmds=
6747
6748 if test -n "$RANLIB"; then
6749   case $host_os in
6750   openbsd*)
6751     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6752     ;;
6753   *)
6754     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6755     ;;
6756   esac
6757   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6758 fi
6759
6760 for cc_temp in $compiler""; do
6761   case $cc_temp in
6762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6764     \-*) ;;
6765     *) break;;
6766   esac
6767 done
6768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6769
6770
6771 # Only perform the check for file, if the check method requires it
6772 case $deplibs_check_method in
6773 file_magic*)
6774   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6775     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6776 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6777 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   case $MAGIC_CMD in
6781 [\\/*] |  ?:[\\/]*)
6782   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6783   ;;
6784 *)
6785   lt_save_MAGIC_CMD="$MAGIC_CMD"
6786   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6787   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6788   for ac_dir in $ac_dummy; do
6789     IFS="$lt_save_ifs"
6790     test -z "$ac_dir" && ac_dir=.
6791     if test -f $ac_dir/${ac_tool_prefix}file; then
6792       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6793       if test -n "$file_magic_test_file"; then
6794         case $deplibs_check_method in
6795         "file_magic "*)
6796           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6797           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6798           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6799             $EGREP "$file_magic_regex" > /dev/null; then
6800             :
6801           else
6802             cat <<EOF 1>&2
6803
6804 *** Warning: the command libtool uses to detect shared libraries,
6805 *** $file_magic_cmd, produces output that libtool cannot recognize.
6806 *** The result is that libtool may fail to recognize shared libraries
6807 *** as such.  This will affect the creation of libtool libraries that
6808 *** depend on shared libraries, but programs linked with such libtool
6809 *** libraries will work regardless of this problem.  Nevertheless, you
6810 *** may want to report the problem to your system manager and/or to
6811 *** bug-libtool@gnu.org
6812
6813 EOF
6814           fi ;;
6815         esac
6816       fi
6817       break
6818     fi
6819   done
6820   IFS="$lt_save_ifs"
6821   MAGIC_CMD="$lt_save_MAGIC_CMD"
6822   ;;
6823 esac
6824 fi
6825
6826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6827 if test -n "$MAGIC_CMD"; then
6828   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6829 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6830 else
6831   { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6833 fi
6834
6835 if test -z "$lt_cv_path_MAGIC_CMD"; then
6836   if test -n "$ac_tool_prefix"; then
6837     { echo "$as_me:$LINENO: checking for file" >&5
6838 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6840   echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842   case $MAGIC_CMD in
6843 [\\/*] |  ?:[\\/]*)
6844   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6845   ;;
6846 *)
6847   lt_save_MAGIC_CMD="$MAGIC_CMD"
6848   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6849   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6850   for ac_dir in $ac_dummy; do
6851     IFS="$lt_save_ifs"
6852     test -z "$ac_dir" && ac_dir=.
6853     if test -f $ac_dir/file; then
6854       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6855       if test -n "$file_magic_test_file"; then
6856         case $deplibs_check_method in
6857         "file_magic "*)
6858           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6859           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6860           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6861             $EGREP "$file_magic_regex" > /dev/null; then
6862             :
6863           else
6864             cat <<EOF 1>&2
6865
6866 *** Warning: the command libtool uses to detect shared libraries,
6867 *** $file_magic_cmd, produces output that libtool cannot recognize.
6868 *** The result is that libtool may fail to recognize shared libraries
6869 *** as such.  This will affect the creation of libtool libraries that
6870 *** depend on shared libraries, but programs linked with such libtool
6871 *** libraries will work regardless of this problem.  Nevertheless, you
6872 *** may want to report the problem to your system manager and/or to
6873 *** bug-libtool@gnu.org
6874
6875 EOF
6876           fi ;;
6877         esac
6878       fi
6879       break
6880     fi
6881   done
6882   IFS="$lt_save_ifs"
6883   MAGIC_CMD="$lt_save_MAGIC_CMD"
6884   ;;
6885 esac
6886 fi
6887
6888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6889 if test -n "$MAGIC_CMD"; then
6890   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6891 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6892 else
6893   { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6895 fi
6896
6897   else
6898     MAGIC_CMD=:
6899   fi
6900 fi
6901
6902   fi
6903   ;;
6904 esac
6905
6906 enable_dlopen=no
6907 enable_win32_dll=no
6908
6909 # Check whether --enable-libtool-lock was given.
6910 if test "${enable_libtool_lock+set}" = set; then
6911   enableval=$enable_libtool_lock;
6912 fi
6913
6914 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6915
6916
6917 # Check whether --with-pic was given.
6918 if test "${with_pic+set}" = set; then
6919   withval=$with_pic; pic_mode="$withval"
6920 else
6921   pic_mode=default
6922 fi
6923
6924 test -z "$pic_mode" && pic_mode=default
6925
6926 # Use C for the default configuration in the libtool script
6927 tagname=
6928 lt_save_CC="$CC"
6929 ac_ext=c
6930 ac_cpp='$CPP $CPPFLAGS'
6931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6934
6935
6936 # Source file extension for C test sources.
6937 ac_ext=c
6938
6939 # Object file extension for compiled C test sources.
6940 objext=o
6941 objext=$objext
6942
6943 # Code to be used in simple compile tests
6944 lt_simple_compile_test_code="int some_variable = 0;\n"
6945
6946 # Code to be used in simple link tests
6947 lt_simple_link_test_code='int main(){return(0);}\n'
6948
6949
6950 # If no C compiler was specified, use CC.
6951 LTCC=${LTCC-"$CC"}
6952
6953 # If no C compiler flags were specified, use CFLAGS.
6954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6955
6956 # Allow CC to be a program name with arguments.
6957 compiler=$CC
6958
6959
6960 # save warnings/boilerplate of simple test code
6961 ac_outfile=conftest.$ac_objext
6962 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6964 _lt_compiler_boilerplate=`cat conftest.err`
6965 $rm conftest*
6966
6967 ac_outfile=conftest.$ac_objext
6968 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6970 _lt_linker_boilerplate=`cat conftest.err`
6971 $rm conftest*
6972
6973
6974
6975 lt_prog_compiler_no_builtin_flag=
6976
6977 if test "$GCC" = yes; then
6978   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6979
6980
6981 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   lt_cv_prog_compiler_rtti_exceptions=no
6987   ac_outfile=conftest.$ac_objext
6988    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6989    lt_compiler_flag="-fno-rtti -fno-exceptions"
6990    # Insert the option either (1) after the last *FLAGS variable, or
6991    # (2) before a word containing "conftest.", or (3) at the end.
6992    # Note that $ac_compile itself does not contain backslashes and begins
6993    # with a dollar sign (not a hyphen), so the echo should work correctly.
6994    # The option is referenced via a variable to avoid confusing sed.
6995    lt_compile=`echo "$ac_compile" | $SED \
6996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6998    -e 's:$: $lt_compiler_flag:'`
6999    (eval echo "\"\$as_me:6999: $lt_compile\"" >&5)
7000    (eval "$lt_compile" 2>conftest.err)
7001    ac_status=$?
7002    cat conftest.err >&5
7003    echo "$as_me:7003: \$? = $ac_status" >&5
7004    if (exit $ac_status) && test -s "$ac_outfile"; then
7005      # The compiler can only warn and ignore the option if not recognized
7006      # So say no if there are warnings other than the usual output.
7007      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7008      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7009      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7010        lt_cv_prog_compiler_rtti_exceptions=yes
7011      fi
7012    fi
7013    $rm conftest*
7014
7015 fi
7016 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7018
7019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7020     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7021 else
7022     :
7023 fi
7024
7025 fi
7026
7027 lt_prog_compiler_wl=
7028 lt_prog_compiler_pic=
7029 lt_prog_compiler_static=
7030
7031 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7033
7034   if test "$GCC" = yes; then
7035     lt_prog_compiler_wl='-Wl,'
7036     lt_prog_compiler_static='-static'
7037
7038     case $host_os in
7039       aix*)
7040       # All AIX code is PIC.
7041       if test "$host_cpu" = ia64; then
7042         # AIX 5 now supports IA64 processor
7043         lt_prog_compiler_static='-Bstatic'
7044       fi
7045       ;;
7046
7047     amigaos*)
7048       # FIXME: we need at least 68020 code to build shared libraries, but
7049       # adding the `-m68020' flag to GCC prevents building anything better,
7050       # like `-m68040'.
7051       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7052       ;;
7053
7054     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7055       # PIC is the default for these OSes.
7056       ;;
7057
7058     mingw* | pw32* | os2*)
7059       # This hack is so that the source file can tell whether it is being
7060       # built for inclusion in a dll (and should export symbols for example).
7061       lt_prog_compiler_pic='-DDLL_EXPORT'
7062       ;;
7063
7064     darwin* | rhapsody*)
7065       # PIC is the default on this platform
7066       # Common symbols not allowed in MH_DYLIB files
7067       lt_prog_compiler_pic='-fno-common'
7068       ;;
7069
7070     interix3*)
7071       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7072       # Instead, we relocate shared libraries at runtime.
7073       ;;
7074
7075     msdosdjgpp*)
7076       # Just because we use GCC doesn't mean we suddenly get shared libraries
7077       # on systems that don't support them.
7078       lt_prog_compiler_can_build_shared=no
7079       enable_shared=no
7080       ;;
7081
7082     sysv4*MP*)
7083       if test -d /usr/nec; then
7084         lt_prog_compiler_pic=-Kconform_pic
7085       fi
7086       ;;
7087
7088     hpux*)
7089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7090       # not for PA HP-UX.
7091       case $host_cpu in
7092       hppa*64*|ia64*)
7093         # +Z the default
7094         ;;
7095       *)
7096         lt_prog_compiler_pic='-fPIC'
7097         ;;
7098       esac
7099       ;;
7100
7101     *)
7102       lt_prog_compiler_pic='-fPIC'
7103       ;;
7104     esac
7105   else
7106     # PORTME Check for flag to pass linker flags through the system compiler.
7107     case $host_os in
7108     aix*)
7109       lt_prog_compiler_wl='-Wl,'
7110       if test "$host_cpu" = ia64; then
7111         # AIX 5 now supports IA64 processor
7112         lt_prog_compiler_static='-Bstatic'
7113       else
7114         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7115       fi
7116       ;;
7117       darwin*)
7118         # PIC is the default on this platform
7119         # Common symbols not allowed in MH_DYLIB files
7120        case $cc_basename in
7121          xlc*)
7122          lt_prog_compiler_pic='-qnocommon'
7123          lt_prog_compiler_wl='-Wl,'
7124          ;;
7125        esac
7126        ;;
7127
7128     mingw* | pw32* | os2*)
7129       # This hack is so that the source file can tell whether it is being
7130       # built for inclusion in a dll (and should export symbols for example).
7131       lt_prog_compiler_pic='-DDLL_EXPORT'
7132       ;;
7133
7134     hpux9* | hpux10* | hpux11*)
7135       lt_prog_compiler_wl='-Wl,'
7136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7137       # not for PA HP-UX.
7138       case $host_cpu in
7139       hppa*64*|ia64*)
7140         # +Z the default
7141         ;;
7142       *)
7143         lt_prog_compiler_pic='+Z'
7144         ;;
7145       esac
7146       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7147       lt_prog_compiler_static='${wl}-a ${wl}archive'
7148       ;;
7149
7150     irix5* | irix6* | nonstopux*)
7151       lt_prog_compiler_wl='-Wl,'
7152       # PIC (with -KPIC) is the default.
7153       lt_prog_compiler_static='-non_shared'
7154       ;;
7155
7156     newsos6)
7157       lt_prog_compiler_pic='-KPIC'
7158       lt_prog_compiler_static='-Bstatic'
7159       ;;
7160
7161     linux*)
7162       case $cc_basename in
7163       icc* | ecc*)
7164         lt_prog_compiler_wl='-Wl,'
7165         lt_prog_compiler_pic='-KPIC'
7166         lt_prog_compiler_static='-static'
7167         ;;
7168       pgcc* | pgf77* | pgf90* | pgf95*)
7169         # Portland Group compilers (*not* the Pentium gcc compiler,
7170         # which looks to be a dead project)
7171         lt_prog_compiler_wl='-Wl,'
7172         lt_prog_compiler_pic='-fpic'
7173         lt_prog_compiler_static='-Bstatic'
7174         ;;
7175       ccc*)
7176         lt_prog_compiler_wl='-Wl,'
7177         # All Alpha code is PIC.
7178         lt_prog_compiler_static='-non_shared'
7179         ;;
7180       esac
7181       ;;
7182
7183     osf3* | osf4* | osf5*)
7184       lt_prog_compiler_wl='-Wl,'
7185       # All OSF/1 code is PIC.
7186       lt_prog_compiler_static='-non_shared'
7187       ;;
7188
7189     solaris*)
7190       lt_prog_compiler_pic='-KPIC'
7191       lt_prog_compiler_static='-Bstatic'
7192       case $cc_basename in
7193       f77* | f90* | f95*)
7194         lt_prog_compiler_wl='-Qoption ld ';;
7195       *)
7196         lt_prog_compiler_wl='-Wl,';;
7197       esac
7198       ;;
7199
7200     sunos4*)
7201       lt_prog_compiler_wl='-Qoption ld '
7202       lt_prog_compiler_pic='-PIC'
7203       lt_prog_compiler_static='-Bstatic'
7204       ;;
7205
7206     sysv4 | sysv4.2uw2* | sysv4.3*)
7207       lt_prog_compiler_wl='-Wl,'
7208       lt_prog_compiler_pic='-KPIC'
7209       lt_prog_compiler_static='-Bstatic'
7210       ;;
7211
7212     sysv4*MP*)
7213       if test -d /usr/nec ;then
7214         lt_prog_compiler_pic='-Kconform_pic'
7215         lt_prog_compiler_static='-Bstatic'
7216       fi
7217       ;;
7218
7219     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7220       lt_prog_compiler_wl='-Wl,'
7221       lt_prog_compiler_pic='-KPIC'
7222       lt_prog_compiler_static='-Bstatic'
7223       ;;
7224
7225     unicos*)
7226       lt_prog_compiler_wl='-Wl,'
7227       lt_prog_compiler_can_build_shared=no
7228       ;;
7229
7230     uts4*)
7231       lt_prog_compiler_pic='-pic'
7232       lt_prog_compiler_static='-Bstatic'
7233       ;;
7234
7235     *)
7236       lt_prog_compiler_can_build_shared=no
7237       ;;
7238     esac
7239   fi
7240
7241 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7242 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7243
7244 #
7245 # Check to make sure the PIC flag actually works.
7246 #
7247 if test -n "$lt_prog_compiler_pic"; then
7248
7249 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7250 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7251 if test "${lt_prog_compiler_pic_works+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   lt_prog_compiler_pic_works=no
7255   ac_outfile=conftest.$ac_objext
7256    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7257    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7258    # Insert the option either (1) after the last *FLAGS variable, or
7259    # (2) before a word containing "conftest.", or (3) at the end.
7260    # Note that $ac_compile itself does not contain backslashes and begins
7261    # with a dollar sign (not a hyphen), so the echo should work correctly.
7262    # The option is referenced via a variable to avoid confusing sed.
7263    lt_compile=`echo "$ac_compile" | $SED \
7264    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7265    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7266    -e 's:$: $lt_compiler_flag:'`
7267    (eval echo "\"\$as_me:7267: $lt_compile\"" >&5)
7268    (eval "$lt_compile" 2>conftest.err)
7269    ac_status=$?
7270    cat conftest.err >&5
7271    echo "$as_me:7271: \$? = $ac_status" >&5
7272    if (exit $ac_status) && test -s "$ac_outfile"; then
7273      # The compiler can only warn and ignore the option if not recognized
7274      # So say no if there are warnings other than the usual output.
7275      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7276      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7277      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7278        lt_prog_compiler_pic_works=yes
7279      fi
7280    fi
7281    $rm conftest*
7282
7283 fi
7284 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7285 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7286
7287 if test x"$lt_prog_compiler_pic_works" = xyes; then
7288     case $lt_prog_compiler_pic in
7289      "" | " "*) ;;
7290      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7291      esac
7292 else
7293     lt_prog_compiler_pic=
7294      lt_prog_compiler_can_build_shared=no
7295 fi
7296
7297 fi
7298 case $host_os in
7299   # For platforms which do not support PIC, -DPIC is meaningless:
7300   *djgpp*)
7301     lt_prog_compiler_pic=
7302     ;;
7303   *)
7304     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7305     ;;
7306 esac
7307
7308 #
7309 # Check to make sure the static flag actually works.
7310 #
7311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7312 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7313 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7314 if test "${lt_prog_compiler_static_works+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   lt_prog_compiler_static_works=no
7318    save_LDFLAGS="$LDFLAGS"
7319    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7320    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7321    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7322      # The linker can only warn and ignore the option if not recognized
7323      # So say no if there are warnings
7324      if test -s conftest.err; then
7325        # Append any errors to the config.log.
7326        cat conftest.err 1>&5
7327        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7328        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7329        if diff conftest.exp conftest.er2 >/dev/null; then
7330          lt_prog_compiler_static_works=yes
7331        fi
7332      else
7333        lt_prog_compiler_static_works=yes
7334      fi
7335    fi
7336    $rm conftest*
7337    LDFLAGS="$save_LDFLAGS"
7338
7339 fi
7340 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7341 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7342
7343 if test x"$lt_prog_compiler_static_works" = xyes; then
7344     :
7345 else
7346     lt_prog_compiler_static=
7347 fi
7348
7349
7350 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7351 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7352 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   lt_cv_prog_compiler_c_o=no
7356    $rm -r conftest 2>/dev/null
7357    mkdir conftest
7358    cd conftest
7359    mkdir out
7360    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7361
7362    lt_compiler_flag="-o out/conftest2.$ac_objext"
7363    # Insert the option either (1) after the last *FLAGS variable, or
7364    # (2) before a word containing "conftest.", or (3) at the end.
7365    # Note that $ac_compile itself does not contain backslashes and begins
7366    # with a dollar sign (not a hyphen), so the echo should work correctly.
7367    lt_compile=`echo "$ac_compile" | $SED \
7368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7370    -e 's:$: $lt_compiler_flag:'`
7371    (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
7372    (eval "$lt_compile" 2>out/conftest.err)
7373    ac_status=$?
7374    cat out/conftest.err >&5
7375    echo "$as_me:7375: \$? = $ac_status" >&5
7376    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7377    then
7378      # The compiler can only warn and ignore the option if not recognized
7379      # So say no if there are warnings
7380      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7381      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7382      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7383        lt_cv_prog_compiler_c_o=yes
7384      fi
7385    fi
7386    chmod u+w . 2>&5
7387    $rm conftest*
7388    # SGI C++ compiler will create directory out/ii_files/ for
7389    # template instantiation
7390    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7391    $rm out/* && rmdir out
7392    cd ..
7393    rmdir conftest
7394    $rm conftest*
7395
7396 fi
7397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7398 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7399
7400
7401 hard_links="nottested"
7402 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7403   # do not overwrite the value of need_locks provided by the user
7404   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7405 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7406   hard_links=yes
7407   $rm conftest*
7408   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7409   touch conftest.a
7410   ln conftest.a conftest.b 2>&5 || hard_links=no
7411   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7412   { echo "$as_me:$LINENO: result: $hard_links" >&5
7413 echo "${ECHO_T}$hard_links" >&6; }
7414   if test "$hard_links" = no; then
7415     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7416 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7417     need_locks=warn
7418   fi
7419 else
7420   need_locks=no
7421 fi
7422
7423 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7424 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7425
7426   runpath_var=
7427   allow_undefined_flag=
7428   enable_shared_with_static_runtimes=no
7429   archive_cmds=
7430   archive_expsym_cmds=
7431   old_archive_From_new_cmds=
7432   old_archive_from_expsyms_cmds=
7433   export_dynamic_flag_spec=
7434   whole_archive_flag_spec=
7435   thread_safe_flag_spec=
7436   hardcode_libdir_flag_spec=
7437   hardcode_libdir_flag_spec_ld=
7438   hardcode_libdir_separator=
7439   hardcode_direct=no
7440   hardcode_minus_L=no
7441   hardcode_shlibpath_var=unsupported
7442   link_all_deplibs=unknown
7443   hardcode_automatic=no
7444   module_cmds=
7445   module_expsym_cmds=
7446   always_export_symbols=no
7447   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7448   # include_expsyms should be a list of space-separated symbols to be *always*
7449   # included in the symbol list
7450   include_expsyms=
7451   # exclude_expsyms can be an extended regexp of symbols to exclude
7452   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7453   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7454   # as well as any symbol that contains `d'.
7455   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7456   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7457   # platforms (ab)use it in PIC code, but their linkers get confused if
7458   # the symbol is explicitly referenced.  Since portable code cannot
7459   # rely on this symbol name, it's probably fine to never include it in
7460   # preloaded symbol tables.
7461   extract_expsyms_cmds=
7462   # Just being paranoid about ensuring that cc_basename is set.
7463   for cc_temp in $compiler""; do
7464   case $cc_temp in
7465     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7466     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7467     \-*) ;;
7468     *) break;;
7469   esac
7470 done
7471 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7472
7473   case $host_os in
7474   cygwin* | mingw* | pw32*)
7475     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7476     # When not using gcc, we currently assume that we are using
7477     # Microsoft Visual C++.
7478     if test "$GCC" != yes; then
7479       with_gnu_ld=no
7480     fi
7481     ;;
7482   interix*)
7483     # we just hope/assume this is gcc and not c89 (= MSVC++)
7484     with_gnu_ld=yes
7485     ;;
7486   openbsd*)
7487     with_gnu_ld=no
7488     ;;
7489   esac
7490
7491   ld_shlibs=yes
7492   if test "$with_gnu_ld" = yes; then
7493     # If archive_cmds runs LD, not CC, wlarc should be empty
7494     wlarc='${wl}'
7495
7496     # Set some defaults for GNU ld with shared library support. These
7497     # are reset later if shared libraries are not supported. Putting them
7498     # here allows them to be overridden if necessary.
7499     runpath_var=LD_RUN_PATH
7500     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7501     export_dynamic_flag_spec='${wl}--export-dynamic'
7502     # ancient GNU ld didn't support --whole-archive et. al.
7503     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7504         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7505       else
7506         whole_archive_flag_spec=
7507     fi
7508     supports_anon_versioning=no
7509     case `$LD -v 2>/dev/null` in
7510       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7511       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7512       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7513       *\ 2.11.*) ;; # other 2.11 versions
7514       *) supports_anon_versioning=yes ;;
7515     esac
7516
7517     # See if GNU ld supports shared libraries.
7518     case $host_os in
7519     aix3* | aix4* | aix5*)
7520       # On AIX/PPC, the GNU linker is very broken
7521       if test "$host_cpu" != ia64; then
7522         ld_shlibs=no
7523         cat <<EOF 1>&2
7524
7525 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7526 *** to be unable to reliably create shared libraries on AIX.
7527 *** Therefore, libtool is disabling shared libraries support.  If you
7528 *** really care for shared libraries, you may want to modify your PATH
7529 *** so that a non-GNU linker is found, and then restart.
7530
7531 EOF
7532       fi
7533       ;;
7534
7535     amigaos*)
7536       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)'
7537       hardcode_libdir_flag_spec='-L$libdir'
7538       hardcode_minus_L=yes
7539
7540       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7541       # that the semantics of dynamic libraries on AmigaOS, at least up
7542       # to version 4, is to share data among multiple programs linked
7543       # with the same dynamic library.  Since this doesn't match the
7544       # behavior of shared libraries on other platforms, we can't use
7545       # them.
7546       ld_shlibs=no
7547       ;;
7548
7549     beos*)
7550       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7551         allow_undefined_flag=unsupported
7552         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7553         # support --undefined.  This deserves some investigation.  FIXME
7554         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7555       else
7556         ld_shlibs=no
7557       fi
7558       ;;
7559
7560     cygwin* | mingw* | pw32*)
7561       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7562       # as there is no search path for DLLs.
7563       hardcode_libdir_flag_spec='-L$libdir'
7564       allow_undefined_flag=unsupported
7565       always_export_symbols=no
7566       enable_shared_with_static_runtimes=yes
7567       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7568
7569       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7570         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7571         # If the export-symbols file already is a .def file (1st line
7572         # is EXPORTS), use it as is; otherwise, prepend...
7573         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7574           cp $export_symbols $output_objdir/$soname.def;
7575         else
7576           echo EXPORTS > $output_objdir/$soname.def;
7577           cat $export_symbols >> $output_objdir/$soname.def;
7578         fi~
7579         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7580       else
7581         ld_shlibs=no
7582       fi
7583       ;;
7584
7585     interix3*)
7586       hardcode_direct=no
7587       hardcode_shlibpath_var=no
7588       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7589       export_dynamic_flag_spec='${wl}-E'
7590       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7591       # Instead, shared libraries are loaded at an image base (0x10000000 by
7592       # default) and relocated if they conflict, which is a slow very memory
7593       # consuming and fragmenting process.  To avoid this, we pick a random,
7594       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7595       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7596       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7597       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'
7598       ;;
7599
7600     linux*)
7601       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7602         tmp_addflag=
7603         case $cc_basename,$host_cpu in
7604         pgcc*)                          # Portland Group C compiler
7605           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'
7606           tmp_addflag=' $pic_flag'
7607           ;;
7608         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7609           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'
7610           tmp_addflag=' $pic_flag -Mnomain' ;;
7611         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7612           tmp_addflag=' -i_dynamic' ;;
7613         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7614           tmp_addflag=' -i_dynamic -nofor_main' ;;
7615         ifc* | ifort*)                  # Intel Fortran compiler
7616           tmp_addflag=' -nofor_main' ;;
7617         esac
7618         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7619
7620         if test $supports_anon_versioning = yes; then
7621           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7622   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7623   $echo "local: *; };" >> $output_objdir/$libname.ver~
7624           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7625         fi
7626       else
7627         ld_shlibs=no
7628       fi
7629       ;;
7630
7631     netbsd*)
7632       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7633         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7634         wlarc=
7635       else
7636         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7637         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7638       fi
7639       ;;
7640
7641     solaris*)
7642       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7643         ld_shlibs=no
7644         cat <<EOF 1>&2
7645
7646 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7647 *** create shared libraries on Solaris systems.  Therefore, libtool
7648 *** is disabling shared libraries support.  We urge you to upgrade GNU
7649 *** binutils to release 2.9.1 or newer.  Another option is to modify
7650 *** your PATH or compiler configuration so that the native linker is
7651 *** used, and then restart.
7652
7653 EOF
7654       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7655         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7656         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7657       else
7658         ld_shlibs=no
7659       fi
7660       ;;
7661
7662     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7663       case `$LD -v 2>&1` in
7664         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7665         ld_shlibs=no
7666         cat <<_LT_EOF 1>&2
7667
7668 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7669 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7670 *** is disabling shared libraries support.  We urge you to upgrade GNU
7671 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7672 *** your PATH or compiler configuration so that the native linker is
7673 *** used, and then restart.
7674
7675 _LT_EOF
7676         ;;
7677         *)
7678           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7679             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7680             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7681             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7682           else
7683             ld_shlibs=no
7684           fi
7685         ;;
7686       esac
7687       ;;
7688
7689     sunos4*)
7690       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7691       wlarc=
7692       hardcode_direct=yes
7693       hardcode_shlibpath_var=no
7694       ;;
7695
7696     *)
7697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7698         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7699         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7700       else
7701         ld_shlibs=no
7702       fi
7703       ;;
7704     esac
7705
7706     if test "$ld_shlibs" = no; then
7707       runpath_var=
7708       hardcode_libdir_flag_spec=
7709       export_dynamic_flag_spec=
7710       whole_archive_flag_spec=
7711     fi
7712   else
7713     # PORTME fill in a description of your system's linker (not GNU ld)
7714     case $host_os in
7715     aix3*)
7716       allow_undefined_flag=unsupported
7717       always_export_symbols=yes
7718       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'
7719       # Note: this linker hardcodes the directories in LIBPATH if there
7720       # are no directories specified by -L.
7721       hardcode_minus_L=yes
7722       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7723         # Neither direct hardcoding nor static linking is supported with a
7724         # broken collect2.
7725         hardcode_direct=unsupported
7726       fi
7727       ;;
7728
7729     aix4* | aix5*)
7730       if test "$host_cpu" = ia64; then
7731         # On IA64, the linker does run time linking by default, so we don't
7732         # have to do anything special.
7733         aix_use_runtimelinking=no
7734         exp_sym_flag='-Bexport'
7735         no_entry_flag=""
7736       else
7737         # If we're using GNU nm, then we don't want the "-C" option.
7738         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7739         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7740           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'
7741         else
7742           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'
7743         fi
7744         aix_use_runtimelinking=no
7745
7746         # Test if we are trying to use run time linking or normal
7747         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7748         # need to do runtime linking.
7749         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7750           for ld_flag in $LDFLAGS; do
7751           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7752             aix_use_runtimelinking=yes
7753             break
7754           fi
7755           done
7756           ;;
7757         esac
7758
7759         exp_sym_flag='-bexport'
7760         no_entry_flag='-bnoentry'
7761       fi
7762
7763       # When large executables or shared objects are built, AIX ld can
7764       # have problems creating the table of contents.  If linking a library
7765       # or program results in "error TOC overflow" add -mminimal-toc to
7766       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7767       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7768
7769       archive_cmds=''
7770       hardcode_direct=yes
7771       hardcode_libdir_separator=':'
7772       link_all_deplibs=yes
7773
7774       if test "$GCC" = yes; then
7775         case $host_os in aix4.[012]|aix4.[012].*)
7776         # We only want to do this on AIX 4.2 and lower, the check
7777         # below for broken collect2 doesn't work under 4.3+
7778           collect2name=`${CC} -print-prog-name=collect2`
7779           if test -f "$collect2name" && \
7780            strings "$collect2name" | grep resolve_lib_name >/dev/null
7781           then
7782           # We have reworked collect2
7783           hardcode_direct=yes
7784           else
7785           # We have old collect2
7786           hardcode_direct=unsupported
7787           # It fails to find uninstalled libraries when the uninstalled
7788           # path is not listed in the libpath.  Setting hardcode_minus_L
7789           # to unsupported forces relinking
7790           hardcode_minus_L=yes
7791           hardcode_libdir_flag_spec='-L$libdir'
7792           hardcode_libdir_separator=
7793           fi
7794           ;;
7795         esac
7796         shared_flag='-shared'
7797         if test "$aix_use_runtimelinking" = yes; then
7798           shared_flag="$shared_flag "'${wl}-G'
7799         fi
7800       else
7801         # not using gcc
7802         if test "$host_cpu" = ia64; then
7803         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7804         # chokes on -Wl,-G. The following line is correct:
7805           shared_flag='-G'
7806         else
7807           if test "$aix_use_runtimelinking" = yes; then
7808             shared_flag='${wl}-G'
7809           else
7810             shared_flag='${wl}-bM:SRE'
7811           fi
7812         fi
7813       fi
7814
7815       # It seems that -bexpall does not export symbols beginning with
7816       # underscore (_), so it is better to generate a list of symbols to export.
7817       always_export_symbols=yes
7818       if test "$aix_use_runtimelinking" = yes; then
7819         # Warning - without using the other runtime loading flags (-brtl),
7820         # -berok will link without error, but may produce a broken library.
7821         allow_undefined_flag='-berok'
7822        # Determine the default libpath from the value encoded in an empty executable.
7823        cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829
7830 int
7831 main ()
7832 {
7833
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (ac_try="$ac_link"
7840 case "(($ac_try" in
7841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842   *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845   (eval "$ac_link") 2>conftest.er1
7846   ac_status=$?
7847   grep -v '^ *+' conftest.er1 >conftest.err
7848   rm -f conftest.er1
7849   cat conftest.err >&5
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); } && {
7852          test -z "$ac_c_werror_flag" ||
7853          test ! -s conftest.err
7854        } && test -s conftest$ac_exeext &&
7855        $as_test_x conftest$ac_exeext; then
7856
7857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7858 }'`
7859 # Check for a 64-bit object if we didn't find anything.
7860 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; }
7861 }'`; fi
7862 else
7863   echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866
7867 fi
7868
7869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7870       conftest$ac_exeext conftest.$ac_ext
7871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7872
7873        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7874         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"
7875        else
7876         if test "$host_cpu" = ia64; then
7877           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7878           allow_undefined_flag="-z nodefs"
7879           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"
7880         else
7881          # Determine the default libpath from the value encoded in an empty executable.
7882          cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h.  */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h.  */
7888
7889 int
7890 main ()
7891 {
7892
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (ac_try="$ac_link"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904   (eval "$ac_link") 2>conftest.er1
7905   ac_status=$?
7906   grep -v '^ *+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } && {
7911          test -z "$ac_c_werror_flag" ||
7912          test ! -s conftest.err
7913        } && test -s conftest$ac_exeext &&
7914        $as_test_x conftest$ac_exeext; then
7915
7916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7917 }'`
7918 # Check for a 64-bit object if we didn't find anything.
7919 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; }
7920 }'`; fi
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7924
7925
7926 fi
7927
7928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7929       conftest$ac_exeext conftest.$ac_ext
7930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7931
7932          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7933           # Warning - without using the other run time loading flags,
7934           # -berok will link without error, but may produce a broken library.
7935           no_undefined_flag=' ${wl}-bernotok'
7936           allow_undefined_flag=' ${wl}-berok'
7937           # Exported symbols can be pulled into shared objects from archives
7938           whole_archive_flag_spec='$convenience'
7939           archive_cmds_need_lc=yes
7940           # This is similar to how AIX traditionally builds its shared libraries.
7941           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'
7942         fi
7943       fi
7944       ;;
7945
7946     amigaos*)
7947       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)'
7948       hardcode_libdir_flag_spec='-L$libdir'
7949       hardcode_minus_L=yes
7950       # see comment about different semantics on the GNU ld section
7951       ld_shlibs=no
7952       ;;
7953
7954     bsdi[45]*)
7955       export_dynamic_flag_spec=-rdynamic
7956       ;;
7957
7958     cygwin* | mingw* | pw32*)
7959       # When not using gcc, we currently assume that we are using
7960       # Microsoft Visual C++.
7961       # hardcode_libdir_flag_spec is actually meaningless, as there is
7962       # no search path for DLLs.
7963       hardcode_libdir_flag_spec=' '
7964       allow_undefined_flag=unsupported
7965       # Tell ltmain to make .lib files, not .a files.
7966       libext=lib
7967       # Tell ltmain to make .dll files, not .so files.
7968       shrext_cmds=".dll"
7969       # FIXME: Setting linknames here is a bad hack.
7970       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7971       # The linker will automatically build a .lib file if we build a DLL.
7972       old_archive_From_new_cmds='true'
7973       # FIXME: Should let the user specify the lib program.
7974       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7975       fix_srcfile_path='`cygpath -w "$srcfile"`'
7976       enable_shared_with_static_runtimes=yes
7977       ;;
7978
7979     darwin* | rhapsody*)
7980       case $host_os in
7981         rhapsody* | darwin1.[012])
7982          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7983          ;;
7984        *) # Darwin 1.3 on
7985          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7986            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7987          else
7988            case ${MACOSX_DEPLOYMENT_TARGET} in
7989              10.[012])
7990                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7991                ;;
7992              10.*)
7993                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7994                ;;
7995            esac
7996          fi
7997          ;;
7998       esac
7999       archive_cmds_need_lc=no
8000       hardcode_direct=no
8001       hardcode_automatic=yes
8002       hardcode_shlibpath_var=unsupported
8003       whole_archive_flag_spec=''
8004       link_all_deplibs=yes
8005     if test "$GCC" = yes ; then
8006         output_verbose_link_cmd='echo'
8007         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8008       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8009       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8010       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}'
8011       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}'
8012     else
8013       case $cc_basename in
8014         xlc*)
8015          output_verbose_link_cmd='echo'
8016          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8017          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8018           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8019          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}'
8020           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}'
8021           ;;
8022        *)
8023          ld_shlibs=no
8024           ;;
8025       esac
8026     fi
8027       ;;
8028
8029     dgux*)
8030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8031       hardcode_libdir_flag_spec='-L$libdir'
8032       hardcode_shlibpath_var=no
8033       ;;
8034
8035     freebsd1*)
8036       ld_shlibs=no
8037       ;;
8038
8039     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8040     # support.  Future versions do this automatically, but an explicit c++rt0.o
8041     # does not break anything, and helps significantly (at the cost of a little
8042     # extra space).
8043     freebsd2.2*)
8044       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8045       hardcode_libdir_flag_spec='-R$libdir'
8046       hardcode_direct=yes
8047       hardcode_shlibpath_var=no
8048       ;;
8049
8050     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8051     freebsd2*)
8052       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8053       hardcode_direct=yes
8054       hardcode_minus_L=yes
8055       hardcode_shlibpath_var=no
8056       ;;
8057
8058     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8059     freebsd* | kfreebsd*-gnu | dragonfly*)
8060       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8061       hardcode_libdir_flag_spec='-R$libdir'
8062       hardcode_direct=yes
8063       hardcode_shlibpath_var=no
8064       ;;
8065
8066     hpux9*)
8067       if test "$GCC" = yes; then
8068         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'
8069       else
8070         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'
8071       fi
8072       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8073       hardcode_libdir_separator=:
8074       hardcode_direct=yes
8075
8076       # hardcode_minus_L: Not really in the search PATH,
8077       # but as the default location of the library.
8078       hardcode_minus_L=yes
8079       export_dynamic_flag_spec='${wl}-E'
8080       ;;
8081
8082     hpux10*)
8083       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8084         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8085       else
8086         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8087       fi
8088       if test "$with_gnu_ld" = no; then
8089         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090         hardcode_libdir_separator=:
8091
8092         hardcode_direct=yes
8093         export_dynamic_flag_spec='${wl}-E'
8094
8095         # hardcode_minus_L: Not really in the search PATH,
8096         # but as the default location of the library.
8097         hardcode_minus_L=yes
8098       fi
8099       ;;
8100
8101     hpux11*)
8102       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8103         case $host_cpu in
8104         hppa*64*)
8105           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8106           ;;
8107         ia64*)
8108           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8109           ;;
8110         *)
8111           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8112           ;;
8113         esac
8114       else
8115         case $host_cpu in
8116         hppa*64*)
8117           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8118           ;;
8119         ia64*)
8120           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8121           ;;
8122         *)
8123           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8124           ;;
8125         esac
8126       fi
8127       if test "$with_gnu_ld" = no; then
8128         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8129         hardcode_libdir_separator=:
8130
8131         case $host_cpu in
8132         hppa*64*|ia64*)
8133           hardcode_libdir_flag_spec_ld='+b $libdir'
8134           hardcode_direct=no
8135           hardcode_shlibpath_var=no
8136           ;;
8137         *)
8138           hardcode_direct=yes
8139           export_dynamic_flag_spec='${wl}-E'
8140
8141           # hardcode_minus_L: Not really in the search PATH,
8142           # but as the default location of the library.
8143           hardcode_minus_L=yes
8144           ;;
8145         esac
8146       fi
8147       ;;
8148
8149     irix5* | irix6* | nonstopux*)
8150       if test "$GCC" = yes; then
8151         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'
8152       else
8153         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'
8154         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8155       fi
8156       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8157       hardcode_libdir_separator=:
8158       link_all_deplibs=yes
8159       ;;
8160
8161     netbsd*)
8162       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8163         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8164       else
8165         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8166       fi
8167       hardcode_libdir_flag_spec='-R$libdir'
8168       hardcode_direct=yes
8169       hardcode_shlibpath_var=no
8170       ;;
8171
8172     newsos6)
8173       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8174       hardcode_direct=yes
8175       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8176       hardcode_libdir_separator=:
8177       hardcode_shlibpath_var=no
8178       ;;
8179
8180     openbsd*)
8181       hardcode_direct=yes
8182       hardcode_shlibpath_var=no
8183       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8184         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8185         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8186         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8187         export_dynamic_flag_spec='${wl}-E'
8188       else
8189        case $host_os in
8190          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8191            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8192            hardcode_libdir_flag_spec='-R$libdir'
8193            ;;
8194          *)
8195            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8196            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8197            ;;
8198        esac
8199       fi
8200       ;;
8201
8202     os2*)
8203       hardcode_libdir_flag_spec='-L$libdir'
8204       hardcode_minus_L=yes
8205       allow_undefined_flag=unsupported
8206       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'
8207       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8208       ;;
8209
8210     osf3*)
8211       if test "$GCC" = yes; then
8212         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8213         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'
8214       else
8215         allow_undefined_flag=' -expect_unresolved \*'
8216         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'
8217       fi
8218       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8219       hardcode_libdir_separator=:
8220       ;;
8221
8222     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8223       if test "$GCC" = yes; then
8224         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8225         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'
8226         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8227       else
8228         allow_undefined_flag=' -expect_unresolved \*'
8229         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'
8230         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8231         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8232
8233         # Both c and cxx compiler support -rpath directly
8234         hardcode_libdir_flag_spec='-rpath $libdir'
8235       fi
8236       hardcode_libdir_separator=:
8237       ;;
8238
8239     solaris*)
8240       no_undefined_flag=' -z text'
8241       if test "$GCC" = yes; then
8242         wlarc='${wl}'
8243         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8244         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8245           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8246       else
8247         wlarc=''
8248         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8249         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8250         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8251       fi
8252       hardcode_libdir_flag_spec='-R$libdir'
8253       hardcode_shlibpath_var=no
8254       case $host_os in
8255       solaris2.[0-5] | solaris2.[0-5].*) ;;
8256       *)
8257         # The compiler driver will combine linker options so we
8258         # cannot just pass the convience library names through
8259         # without $wl, iff we do not link with $LD.
8260         # Luckily, gcc supports the same syntax we need for Sun Studio.
8261         # Supported since Solaris 2.6 (maybe 2.5.1?)
8262         case $wlarc in
8263         '')
8264           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8265         *)
8266           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' ;;
8267         esac ;;
8268       esac
8269       link_all_deplibs=yes
8270       ;;
8271
8272     sunos4*)
8273       if test "x$host_vendor" = xsequent; then
8274         # Use $CC to link under sequent, because it throws in some extra .o
8275         # files that make .init and .fini sections work.
8276         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8277       else
8278         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8279       fi
8280       hardcode_libdir_flag_spec='-L$libdir'
8281       hardcode_direct=yes
8282       hardcode_minus_L=yes
8283       hardcode_shlibpath_var=no
8284       ;;
8285
8286     sysv4)
8287       case $host_vendor in
8288         sni)
8289           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8290           hardcode_direct=yes # is this really true???
8291         ;;
8292         siemens)
8293           ## LD is ld it makes a PLAMLIB
8294           ## CC just makes a GrossModule.
8295           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8296           reload_cmds='$CC -r -o $output$reload_objs'
8297           hardcode_direct=no
8298         ;;
8299         motorola)
8300           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8301           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8302         ;;
8303       esac
8304       runpath_var='LD_RUN_PATH'
8305       hardcode_shlibpath_var=no
8306       ;;
8307
8308     sysv4.3*)
8309       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310       hardcode_shlibpath_var=no
8311       export_dynamic_flag_spec='-Bexport'
8312       ;;
8313
8314     sysv4*MP*)
8315       if test -d /usr/nec; then
8316         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317         hardcode_shlibpath_var=no
8318         runpath_var=LD_RUN_PATH
8319         hardcode_runpath_var=yes
8320         ld_shlibs=yes
8321       fi
8322       ;;
8323
8324     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8325       no_undefined_flag='${wl}-z,text'
8326       archive_cmds_need_lc=no
8327       hardcode_shlibpath_var=no
8328       runpath_var='LD_RUN_PATH'
8329
8330       if test "$GCC" = yes; then
8331         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8332         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8333       else
8334         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8335         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8336       fi
8337       ;;
8338
8339     sysv5* | sco3.2v5* | sco5v6*)
8340       # Note: We can NOT use -z defs as we might desire, because we do not
8341       # link with -lc, and that would cause any symbols used from libc to
8342       # always be unresolved, which means just about no library would
8343       # ever link correctly.  If we're not using GNU ld we use -z text
8344       # though, which does catch some bad symbols but isn't as heavy-handed
8345       # as -z defs.
8346       no_undefined_flag='${wl}-z,text'
8347       allow_undefined_flag='${wl}-z,nodefs'
8348       archive_cmds_need_lc=no
8349       hardcode_shlibpath_var=no
8350       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8351       hardcode_libdir_separator=':'
8352       link_all_deplibs=yes
8353       export_dynamic_flag_spec='${wl}-Bexport'
8354       runpath_var='LD_RUN_PATH'
8355
8356       if test "$GCC" = yes; then
8357         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8358         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8359       else
8360         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8361         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8362       fi
8363       ;;
8364
8365     uts4*)
8366       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367       hardcode_libdir_flag_spec='-L$libdir'
8368       hardcode_shlibpath_var=no
8369       ;;
8370
8371     *)
8372       ld_shlibs=no
8373       ;;
8374     esac
8375   fi
8376
8377 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8378 echo "${ECHO_T}$ld_shlibs" >&6; }
8379 test "$ld_shlibs" = no && can_build_shared=no
8380
8381 #
8382 # Do we need to explicitly link libc?
8383 #
8384 case "x$archive_cmds_need_lc" in
8385 x|xyes)
8386   # Assume -lc should be added
8387   archive_cmds_need_lc=yes
8388
8389   if test "$enable_shared" = yes && test "$GCC" = yes; then
8390     case $archive_cmds in
8391     *'~'*)
8392       # FIXME: we may have to deal with multi-command sequences.
8393       ;;
8394     '$CC '*)
8395       # Test whether the compiler implicitly links with -lc since on some
8396       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8397       # to ld, don't add -lc before -lgcc.
8398       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8399 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8400       $rm conftest*
8401       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8402
8403       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8404   (eval $ac_compile) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } 2>conftest.err; then
8408         soname=conftest
8409         lib=conftest
8410         libobjs=conftest.$ac_objext
8411         deplibs=
8412         wl=$lt_prog_compiler_wl
8413         pic_flag=$lt_prog_compiler_pic
8414         compiler_flags=-v
8415         linker_flags=-v
8416         verstring=
8417         output_objdir=.
8418         libname=conftest
8419         lt_save_allow_undefined_flag=$allow_undefined_flag
8420         allow_undefined_flag=
8421         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8422   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }
8426         then
8427           archive_cmds_need_lc=no
8428         else
8429           archive_cmds_need_lc=yes
8430         fi
8431         allow_undefined_flag=$lt_save_allow_undefined_flag
8432       else
8433         cat conftest.err 1>&5
8434       fi
8435       $rm conftest*
8436       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8437 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8438       ;;
8439     esac
8440   fi
8441   ;;
8442 esac
8443
8444 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8445 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8446 library_names_spec=
8447 libname_spec='lib$name'
8448 soname_spec=
8449 shrext_cmds=".so"
8450 postinstall_cmds=
8451 postuninstall_cmds=
8452 finish_cmds=
8453 finish_eval=
8454 shlibpath_var=
8455 shlibpath_overrides_runpath=unknown
8456 version_type=none
8457 dynamic_linker="$host_os ld.so"
8458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8459 if test "$GCC" = yes; then
8460   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8461   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8462     # if the path contains ";" then we assume it to be the separator
8463     # otherwise default to the standard path separator (i.e. ":") - it is
8464     # assumed that no part of a normal pathname contains ";" but that should
8465     # okay in the real world where ";" in dirpaths is itself problematic.
8466     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8467   else
8468     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8469   fi
8470 else
8471   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8472 fi
8473 need_lib_prefix=unknown
8474 hardcode_into_libs=no
8475
8476 # when you set need_version to no, make sure it does not cause -set_version
8477 # flags to be left without arguments
8478 need_version=unknown
8479
8480 case $host_os in
8481 aix3*)
8482   version_type=linux
8483   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8484   shlibpath_var=LIBPATH
8485
8486   # AIX 3 has no versioning support, so we append a major version to the name.
8487   soname_spec='${libname}${release}${shared_ext}$major'
8488   ;;
8489
8490 aix4* | aix5*)
8491   version_type=linux
8492   need_lib_prefix=no
8493   need_version=no
8494   hardcode_into_libs=yes
8495   if test "$host_cpu" = ia64; then
8496     # AIX 5 supports IA64
8497     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8498     shlibpath_var=LD_LIBRARY_PATH
8499   else
8500     # With GCC up to 2.95.x, collect2 would create an import file
8501     # for dependence libraries.  The import file would start with
8502     # the line `#! .'.  This would cause the generated library to
8503     # depend on `.', always an invalid library.  This was fixed in
8504     # development snapshots of GCC prior to 3.0.
8505     case $host_os in
8506       aix4 | aix4.[01] | aix4.[01].*)
8507       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8508            echo ' yes '
8509            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8510         :
8511       else
8512         can_build_shared=no
8513       fi
8514       ;;
8515     esac
8516     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8517     # soname into executable. Probably we can add versioning support to
8518     # collect2, so additional links can be useful in future.
8519     if test "$aix_use_runtimelinking" = yes; then
8520       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8521       # instead of lib<name>.a to let people know that these are not
8522       # typical AIX shared libraries.
8523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524     else
8525       # We preserve .a as extension for shared libraries through AIX4.2
8526       # and later when we are not doing run time linking.
8527       library_names_spec='${libname}${release}.a $libname.a'
8528       soname_spec='${libname}${release}${shared_ext}$major'
8529     fi
8530     shlibpath_var=LIBPATH
8531   fi
8532   ;;
8533
8534 amigaos*)
8535   library_names_spec='$libname.ixlibrary $libname.a'
8536   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8537   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'
8538   ;;
8539
8540 beos*)
8541   library_names_spec='${libname}${shared_ext}'
8542   dynamic_linker="$host_os ld.so"
8543   shlibpath_var=LIBRARY_PATH
8544   ;;
8545
8546 bsdi[45]*)
8547   version_type=linux
8548   need_version=no
8549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550   soname_spec='${libname}${release}${shared_ext}$major'
8551   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8552   shlibpath_var=LD_LIBRARY_PATH
8553   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8554   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8555   # the default ld.so.conf also contains /usr/contrib/lib and
8556   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8557   # libtool to hard-code these into programs
8558   ;;
8559
8560 cygwin* | mingw* | pw32*)
8561   version_type=windows
8562   shrext_cmds=".dll"
8563   need_version=no
8564   need_lib_prefix=no
8565
8566   case $GCC,$host_os in
8567   yes,cygwin* | yes,mingw* | yes,pw32*)
8568     library_names_spec='$libname.dll.a'
8569     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8570     postinstall_cmds='base_file=`basename \${file}`~
8571       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8572       dldir=$destdir/`dirname \$dlpath`~
8573       test -d \$dldir || mkdir -p \$dldir~
8574       $install_prog $dir/$dlname \$dldir/$dlname~
8575       chmod a+x \$dldir/$dlname'
8576     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8577       dlpath=$dir/\$dldll~
8578        $rm \$dlpath'
8579     shlibpath_overrides_runpath=yes
8580
8581     case $host_os in
8582     cygwin*)
8583       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8584       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8585       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8586       ;;
8587     mingw*)
8588       # MinGW DLLs use traditional 'lib' prefix
8589       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8590       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8591       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8592         # It is most probably a Windows format PATH printed by
8593         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8594         # path with ; separators, and with drive letters. We can handle the
8595         # drive letters (cygwin fileutils understands them), so leave them,
8596         # especially as we might pass files found there to a mingw objdump,
8597         # which wouldn't understand a cygwinified path. Ahh.
8598         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8599       else
8600         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8601       fi
8602       ;;
8603     pw32*)
8604       # pw32 DLLs use 'pw' prefix rather than 'lib'
8605       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8606       ;;
8607     esac
8608     ;;
8609
8610   *)
8611     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8612     ;;
8613   esac
8614   dynamic_linker='Win32 ld.exe'
8615   # FIXME: first we should search . and the directory the executable is in
8616   shlibpath_var=PATH
8617   ;;
8618
8619 darwin* | rhapsody*)
8620   dynamic_linker="$host_os dyld"
8621   version_type=darwin
8622   need_lib_prefix=no
8623   need_version=no
8624   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8625   soname_spec='${libname}${release}${major}$shared_ext'
8626   shlibpath_overrides_runpath=yes
8627   shlibpath_var=DYLD_LIBRARY_PATH
8628   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8629   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8630   if test "$GCC" = yes; then
8631     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"`
8632   else
8633     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8634   fi
8635   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8636   ;;
8637
8638 dgux*)
8639   version_type=linux
8640   need_lib_prefix=no
8641   need_version=no
8642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8643   soname_spec='${libname}${release}${shared_ext}$major'
8644   shlibpath_var=LD_LIBRARY_PATH
8645   ;;
8646
8647 freebsd1*)
8648   dynamic_linker=no
8649   ;;
8650
8651 kfreebsd*-gnu)
8652   version_type=linux
8653   need_lib_prefix=no
8654   need_version=no
8655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8656   soname_spec='${libname}${release}${shared_ext}$major'
8657   shlibpath_var=LD_LIBRARY_PATH
8658   shlibpath_overrides_runpath=no
8659   hardcode_into_libs=yes
8660   dynamic_linker='GNU ld.so'
8661   ;;
8662
8663 freebsd* | dragonfly*)
8664   # DragonFly does not have aout.  When/if they implement a new
8665   # versioning mechanism, adjust this.
8666   if test -x /usr/bin/objformat; then
8667     objformat=`/usr/bin/objformat`
8668   else
8669     case $host_os in
8670     freebsd[123]*) objformat=aout ;;
8671     *) objformat=elf ;;
8672     esac
8673   fi
8674   version_type=freebsd-$objformat
8675   case $version_type in
8676     freebsd-elf*)
8677       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8678       need_version=no
8679       need_lib_prefix=no
8680       ;;
8681     freebsd-*)
8682       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8683       need_version=yes
8684       ;;
8685   esac
8686   shlibpath_var=LD_LIBRARY_PATH
8687   case $host_os in
8688   freebsd2*)
8689     shlibpath_overrides_runpath=yes
8690     ;;
8691   freebsd3.[01]* | freebsdelf3.[01]*)
8692     shlibpath_overrides_runpath=yes
8693     hardcode_into_libs=yes
8694     ;;
8695   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8696   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8697     shlibpath_overrides_runpath=no
8698     hardcode_into_libs=yes
8699     ;;
8700   freebsd*) # from 4.6 on
8701     shlibpath_overrides_runpath=yes
8702     hardcode_into_libs=yes
8703     ;;
8704   esac
8705   ;;
8706
8707 gnu*)
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   hardcode_into_libs=yes
8715   ;;
8716
8717 hpux9* | hpux10* | hpux11*)
8718   # Give a soname corresponding to the major version so that dld.sl refuses to
8719   # link against other versions.
8720   version_type=sunos
8721   need_lib_prefix=no
8722   need_version=no
8723   case $host_cpu in
8724   ia64*)
8725     shrext_cmds='.so'
8726     hardcode_into_libs=yes
8727     dynamic_linker="$host_os dld.so"
8728     shlibpath_var=LD_LIBRARY_PATH
8729     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731     soname_spec='${libname}${release}${shared_ext}$major'
8732     if test "X$HPUX_IA64_MODE" = X32; then
8733       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8734     else
8735       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8736     fi
8737     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8738     ;;
8739    hppa*64*)
8740      shrext_cmds='.sl'
8741      hardcode_into_libs=yes
8742      dynamic_linker="$host_os dld.sl"
8743      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8744      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8745      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746      soname_spec='${libname}${release}${shared_ext}$major'
8747      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8748      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8749      ;;
8750    *)
8751     shrext_cmds='.sl'
8752     dynamic_linker="$host_os dld.sl"
8753     shlibpath_var=SHLIB_PATH
8754     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756     soname_spec='${libname}${release}${shared_ext}$major'
8757     ;;
8758   esac
8759   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8760   postinstall_cmds='chmod 555 $lib'
8761   ;;
8762
8763 interix3*)
8764   version_type=linux
8765   need_lib_prefix=no
8766   need_version=no
8767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8768   soname_spec='${libname}${release}${shared_ext}$major'
8769   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8770   shlibpath_var=LD_LIBRARY_PATH
8771   shlibpath_overrides_runpath=no
8772   hardcode_into_libs=yes
8773   ;;
8774
8775 irix5* | irix6* | nonstopux*)
8776   case $host_os in
8777     nonstopux*) version_type=nonstopux ;;
8778     *)
8779         if test "$lt_cv_prog_gnu_ld" = yes; then
8780                 version_type=linux
8781         else
8782                 version_type=irix
8783         fi ;;
8784   esac
8785   need_lib_prefix=no
8786   need_version=no
8787   soname_spec='${libname}${release}${shared_ext}$major'
8788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8789   case $host_os in
8790   irix5* | nonstopux*)
8791     libsuff= shlibsuff=
8792     ;;
8793   *)
8794     case $LD in # libtool.m4 will add one of these switches to LD
8795     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8796       libsuff= shlibsuff= libmagic=32-bit;;
8797     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8798       libsuff=32 shlibsuff=N32 libmagic=N32;;
8799     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8800       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8801     *) libsuff= shlibsuff= libmagic=never-match;;
8802     esac
8803     ;;
8804   esac
8805   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8806   shlibpath_overrides_runpath=no
8807   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8808   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8809   hardcode_into_libs=yes
8810   ;;
8811
8812 # No shared lib support for Linux oldld, aout, or coff.
8813 linux*oldld* | linux*aout* | linux*coff*)
8814   dynamic_linker=no
8815   ;;
8816
8817 # This must be Linux ELF.
8818 linux*)
8819   version_type=linux
8820   need_lib_prefix=no
8821   need_version=no
8822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823   soname_spec='${libname}${release}${shared_ext}$major'
8824   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8825   shlibpath_var=LD_LIBRARY_PATH
8826   shlibpath_overrides_runpath=no
8827   # This implies no fast_install, which is unacceptable.
8828   # Some rework will be needed to allow for fast_install
8829   # before this can be enabled.
8830   hardcode_into_libs=yes
8831
8832   # find out which ABI we are using
8833   libsuff=
8834   case "$host_cpu" in
8835   x86_64*|s390x*|powerpc64*)
8836     echo '#line 8836 "configure"' > conftest.$ac_ext
8837     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838   (eval $ac_compile) 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }; then
8842       case `/usr/bin/file conftest.$ac_objext` in
8843       *64-bit*)
8844         libsuff=64
8845         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8846         ;;
8847       esac
8848     fi
8849     rm -rf conftest*
8850     ;;
8851   esac
8852
8853   # Append ld.so.conf contents to the search path
8854   if test -f /etc/ld.so.conf; then
8855     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' ' '`
8856     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8857   fi
8858
8859   # We used to test for /lib/ld.so.1 and disable shared libraries on
8860   # powerpc, because MkLinux only supported shared libraries with the
8861   # GNU dynamic linker.  Since this was broken with cross compilers,
8862   # most powerpc-linux boxes support dynamic linking these days and
8863   # people can always --disable-shared, the test was removed, and we
8864   # assume the GNU/Linux dynamic linker is in use.
8865   dynamic_linker='GNU/Linux ld.so'
8866   ;;
8867
8868 knetbsd*-gnu)
8869   version_type=linux
8870   need_lib_prefix=no
8871   need_version=no
8872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8873   soname_spec='${libname}${release}${shared_ext}$major'
8874   shlibpath_var=LD_LIBRARY_PATH
8875   shlibpath_overrides_runpath=no
8876   hardcode_into_libs=yes
8877   dynamic_linker='GNU ld.so'
8878   ;;
8879
8880 netbsd*)
8881   version_type=sunos
8882   need_lib_prefix=no
8883   need_version=no
8884   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8886     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8887     dynamic_linker='NetBSD (a.out) ld.so'
8888   else
8889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8890     soname_spec='${libname}${release}${shared_ext}$major'
8891     dynamic_linker='NetBSD ld.elf_so'
8892   fi
8893   shlibpath_var=LD_LIBRARY_PATH
8894   shlibpath_overrides_runpath=yes
8895   hardcode_into_libs=yes
8896   ;;
8897
8898 newsos6)
8899   version_type=linux
8900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901   shlibpath_var=LD_LIBRARY_PATH
8902   shlibpath_overrides_runpath=yes
8903   ;;
8904
8905 nto-qnx*)
8906   version_type=linux
8907   need_lib_prefix=no
8908   need_version=no
8909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910   soname_spec='${libname}${release}${shared_ext}$major'
8911   shlibpath_var=LD_LIBRARY_PATH
8912   shlibpath_overrides_runpath=yes
8913   ;;
8914
8915 openbsd*)
8916   version_type=sunos
8917   sys_lib_dlsearch_path_spec="/usr/lib"
8918   need_lib_prefix=no
8919   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8920   case $host_os in
8921     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8922     *)                         need_version=no  ;;
8923   esac
8924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8926   shlibpath_var=LD_LIBRARY_PATH
8927   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8928     case $host_os in
8929       openbsd2.[89] | openbsd2.[89].*)
8930         shlibpath_overrides_runpath=no
8931         ;;
8932       *)
8933         shlibpath_overrides_runpath=yes
8934         ;;
8935       esac
8936   else
8937     shlibpath_overrides_runpath=yes
8938   fi
8939   ;;
8940
8941 os2*)
8942   libname_spec='$name'
8943   shrext_cmds=".dll"
8944   need_lib_prefix=no
8945   library_names_spec='$libname${shared_ext} $libname.a'
8946   dynamic_linker='OS/2 ld.exe'
8947   shlibpath_var=LIBPATH
8948   ;;
8949
8950 osf3* | osf4* | osf5*)
8951   version_type=osf
8952   need_lib_prefix=no
8953   need_version=no
8954   soname_spec='${libname}${release}${shared_ext}$major'
8955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956   shlibpath_var=LD_LIBRARY_PATH
8957   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8958   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8959   ;;
8960
8961 solaris*)
8962   version_type=linux
8963   need_lib_prefix=no
8964   need_version=no
8965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966   soname_spec='${libname}${release}${shared_ext}$major'
8967   shlibpath_var=LD_LIBRARY_PATH
8968   shlibpath_overrides_runpath=yes
8969   hardcode_into_libs=yes
8970   # ldd complains unless libraries are executable
8971   postinstall_cmds='chmod +x $lib'
8972   ;;
8973
8974 sunos4*)
8975   version_type=sunos
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8977   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8978   shlibpath_var=LD_LIBRARY_PATH
8979   shlibpath_overrides_runpath=yes
8980   if test "$with_gnu_ld" = yes; then
8981     need_lib_prefix=no
8982   fi
8983   need_version=yes
8984   ;;
8985
8986 sysv4 | sysv4.3*)
8987   version_type=linux
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   shlibpath_var=LD_LIBRARY_PATH
8991   case $host_vendor in
8992     sni)
8993       shlibpath_overrides_runpath=no
8994       need_lib_prefix=no
8995       export_dynamic_flag_spec='${wl}-Blargedynsym'
8996       runpath_var=LD_RUN_PATH
8997       ;;
8998     siemens)
8999       need_lib_prefix=no
9000       ;;
9001     motorola)
9002       need_lib_prefix=no
9003       need_version=no
9004       shlibpath_overrides_runpath=no
9005       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9006       ;;
9007   esac
9008   ;;
9009
9010 sysv4*MP*)
9011   if test -d /usr/nec ;then
9012     version_type=linux
9013     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9014     soname_spec='$libname${shared_ext}.$major'
9015     shlibpath_var=LD_LIBRARY_PATH
9016   fi
9017   ;;
9018
9019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9020   version_type=freebsd-elf
9021   need_lib_prefix=no
9022   need_version=no
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9024   soname_spec='${libname}${release}${shared_ext}$major'
9025   shlibpath_var=LD_LIBRARY_PATH
9026   hardcode_into_libs=yes
9027   if test "$with_gnu_ld" = yes; then
9028     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9029     shlibpath_overrides_runpath=no
9030   else
9031     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9032     shlibpath_overrides_runpath=yes
9033     case $host_os in
9034       sco3.2v5*)
9035         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9036         ;;
9037     esac
9038   fi
9039   sys_lib_dlsearch_path_spec='/usr/lib'
9040   ;;
9041
9042 uts4*)
9043   version_type=linux
9044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045   soname_spec='${libname}${release}${shared_ext}$major'
9046   shlibpath_var=LD_LIBRARY_PATH
9047   ;;
9048
9049 *)
9050   dynamic_linker=no
9051   ;;
9052 esac
9053 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9054 echo "${ECHO_T}$dynamic_linker" >&6; }
9055 test "$dynamic_linker" = no && can_build_shared=no
9056
9057 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9058 if test "$GCC" = yes; then
9059   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9060 fi
9061
9062 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9063 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9064 hardcode_action=
9065 if test -n "$hardcode_libdir_flag_spec" || \
9066    test -n "$runpath_var" || \
9067    test "X$hardcode_automatic" = "Xyes" ; then
9068
9069   # We can hardcode non-existant directories.
9070   if test "$hardcode_direct" != no &&
9071      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9072      # have to relink, otherwise we might link with an installed library
9073      # when we should be linking with a yet-to-be-installed one
9074      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9075      test "$hardcode_minus_L" != no; then
9076     # Linking always hardcodes the temporary library directory.
9077     hardcode_action=relink
9078   else
9079     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9080     hardcode_action=immediate
9081   fi
9082 else
9083   # We cannot hardcode anything, or else we can only hardcode existing
9084   # directories.
9085   hardcode_action=unsupported
9086 fi
9087 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9088 echo "${ECHO_T}$hardcode_action" >&6; }
9089
9090 if test "$hardcode_action" = relink; then
9091   # Fast installation is not supported
9092   enable_fast_install=no
9093 elif test "$shlibpath_overrides_runpath" = yes ||
9094      test "$enable_shared" = no; then
9095   # Fast installation is not necessary
9096   enable_fast_install=needless
9097 fi
9098
9099 striplib=
9100 old_striplib=
9101 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9102 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9103 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9104   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9105   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9106   { echo "$as_me:$LINENO: result: yes" >&5
9107 echo "${ECHO_T}yes" >&6; }
9108 else
9109 # FIXME - insert some real tests, host_os isn't really good enough
9110   case $host_os in
9111    darwin*)
9112        if test -n "$STRIP" ; then
9113          striplib="$STRIP -x"
9114          { echo "$as_me:$LINENO: result: yes" >&5
9115 echo "${ECHO_T}yes" >&6; }
9116        else
9117   { echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6; }
9119 fi
9120        ;;
9121    *)
9122   { echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6; }
9124     ;;
9125   esac
9126 fi
9127
9128 if test "x$enable_dlopen" != xyes; then
9129   enable_dlopen=unknown
9130   enable_dlopen_self=unknown
9131   enable_dlopen_self_static=unknown
9132 else
9133   lt_cv_dlopen=no
9134   lt_cv_dlopen_libs=
9135
9136   case $host_os in
9137   beos*)
9138     lt_cv_dlopen="load_add_on"
9139     lt_cv_dlopen_libs=
9140     lt_cv_dlopen_self=yes
9141     ;;
9142
9143   mingw* | pw32*)
9144     lt_cv_dlopen="LoadLibrary"
9145     lt_cv_dlopen_libs=
9146    ;;
9147
9148   cygwin*)
9149     lt_cv_dlopen="dlopen"
9150     lt_cv_dlopen_libs=
9151    ;;
9152
9153   darwin*)
9154   # if libdl is installed we need to link against it
9155     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9156 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-ldl  $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168
9169 /* Override any GCC internal prototype to avoid an error.
9170    Use char because int might match the return type of a GCC
9171    builtin and then its argument prototype would still apply.  */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 char dlopen ();
9176 int
9177 main ()
9178 {
9179 return dlopen ();
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9186 case "(($ac_try" in
9187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188   *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191   (eval "$ac_link") 2>conftest.er1
9192   ac_status=$?
9193   grep -v '^ *+' conftest.er1 >conftest.err
9194   rm -f conftest.er1
9195   cat conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } && {
9198          test -z "$ac_c_werror_flag" ||
9199          test ! -s conftest.err
9200        } && test -s conftest$ac_exeext &&
9201        $as_test_x conftest$ac_exeext; then
9202   ac_cv_lib_dl_dlopen=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207         ac_cv_lib_dl_dlopen=no
9208 fi
9209
9210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9211       conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9213 fi
9214 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9216 if test $ac_cv_lib_dl_dlopen = yes; then
9217   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9218 else
9219
9220     lt_cv_dlopen="dyld"
9221     lt_cv_dlopen_libs=
9222     lt_cv_dlopen_self=yes
9223
9224 fi
9225
9226    ;;
9227
9228   *)
9229     { echo "$as_me:$LINENO: checking for shl_load" >&5
9230 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9231 if test "${ac_cv_func_shl_load+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9242 #define shl_load innocuous_shl_load
9243
9244 /* System header to define __stub macros and hopefully few prototypes,
9245     which can conflict with char shl_load (); below.
9246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9247     <limits.h> exists even on freestanding compilers.  */
9248
9249 #ifdef __STDC__
9250 # include <limits.h>
9251 #else
9252 # include <assert.h>
9253 #endif
9254
9255 #undef shl_load
9256
9257 /* Override any GCC internal prototype to avoid an error.
9258    Use char because int might match the return type of a GCC
9259    builtin and then its argument prototype would still apply.  */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 char shl_load ();
9264 /* The GNU C library defines this for functions which it implements
9265     to always fail with ENOSYS.  Some functions are actually named
9266     something starting with __ and the normal name is an alias.  */
9267 #if defined __stub_shl_load || defined __stub___shl_load
9268 choke me
9269 #endif
9270
9271 int
9272 main ()
9273 {
9274 return shl_load ();
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_link") 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } && {
9293          test -z "$ac_c_werror_flag" ||
9294          test ! -s conftest.err
9295        } && test -s conftest$ac_exeext &&
9296        $as_test_x conftest$ac_exeext; then
9297   ac_cv_func_shl_load=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302         ac_cv_func_shl_load=no
9303 fi
9304
9305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9306       conftest$ac_exeext conftest.$ac_ext
9307 fi
9308 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9309 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9310 if test $ac_cv_func_shl_load = yes; then
9311   lt_cv_dlopen="shl_load"
9312 else
9313   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   ac_check_lib_save_LIBS=$LIBS
9319 LIBS="-ldld  $LIBS"
9320 cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h.  */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h.  */
9326
9327 /* Override any GCC internal prototype to avoid an error.
9328    Use char because int might match the return type of a GCC
9329    builtin and then its argument prototype would still apply.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char shl_load ();
9334 int
9335 main ()
9336 {
9337 return shl_load ();
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9344 case "(($ac_try" in
9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346   *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349   (eval "$ac_link") 2>conftest.er1
9350   ac_status=$?
9351   grep -v '^ *+' conftest.er1 >conftest.err
9352   rm -f conftest.er1
9353   cat conftest.err >&5
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } && {
9356          test -z "$ac_c_werror_flag" ||
9357          test ! -s conftest.err
9358        } && test -s conftest$ac_exeext &&
9359        $as_test_x conftest$ac_exeext; then
9360   ac_cv_lib_dld_shl_load=yes
9361 else
9362   echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365         ac_cv_lib_dld_shl_load=no
9366 fi
9367
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369       conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9371 fi
9372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9373 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9374 if test $ac_cv_lib_dld_shl_load = yes; then
9375   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9376 else
9377   { echo "$as_me:$LINENO: checking for dlopen" >&5
9378 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9379 if test "${ac_cv_func_dlopen+set}" = set; then
9380   echo $ECHO_N "(cached) $ECHO_C" >&6
9381 else
9382   cat >conftest.$ac_ext <<_ACEOF
9383 /* confdefs.h.  */
9384 _ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h.  */
9388 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9390 #define dlopen innocuous_dlopen
9391
9392 /* System header to define __stub macros and hopefully few prototypes,
9393     which can conflict with char dlopen (); below.
9394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9395     <limits.h> exists even on freestanding compilers.  */
9396
9397 #ifdef __STDC__
9398 # include <limits.h>
9399 #else
9400 # include <assert.h>
9401 #endif
9402
9403 #undef dlopen
9404
9405 /* Override any GCC internal prototype to avoid an error.
9406    Use char because int might match the return type of a GCC
9407    builtin and then its argument prototype would still apply.  */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char dlopen ();
9412 /* The GNU C library defines this for functions which it implements
9413     to always fail with ENOSYS.  Some functions are actually named
9414     something starting with __ and the normal name is an alias.  */
9415 #if defined __stub_dlopen || defined __stub___dlopen
9416 choke me
9417 #endif
9418
9419 int
9420 main ()
9421 {
9422 return dlopen ();
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (ac_try="$ac_link"
9429 case "(($ac_try" in
9430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431   *) ac_try_echo=$ac_try;;
9432 esac
9433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434   (eval "$ac_link") 2>conftest.er1
9435   ac_status=$?
9436   grep -v '^ *+' conftest.er1 >conftest.err
9437   rm -f conftest.er1
9438   cat conftest.err >&5
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } && {
9441          test -z "$ac_c_werror_flag" ||
9442          test ! -s conftest.err
9443        } && test -s conftest$ac_exeext &&
9444        $as_test_x conftest$ac_exeext; then
9445   ac_cv_func_dlopen=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450         ac_cv_func_dlopen=no
9451 fi
9452
9453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9454       conftest$ac_exeext conftest.$ac_ext
9455 fi
9456 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9457 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9458 if test $ac_cv_func_dlopen = yes; then
9459   lt_cv_dlopen="dlopen"
9460 else
9461   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9462 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9463 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466   ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldl  $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474
9475 /* Override any GCC internal prototype to avoid an error.
9476    Use char because int might match the return type of a GCC
9477    builtin and then its argument prototype would still apply.  */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char dlopen ();
9482 int
9483 main ()
9484 {
9485 return dlopen ();
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9492 case "(($ac_try" in
9493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494   *) ac_try_echo=$ac_try;;
9495 esac
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497   (eval "$ac_link") 2>conftest.er1
9498   ac_status=$?
9499   grep -v '^ *+' conftest.er1 >conftest.err
9500   rm -f conftest.er1
9501   cat conftest.err >&5
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); } && {
9504          test -z "$ac_c_werror_flag" ||
9505          test ! -s conftest.err
9506        } && test -s conftest$ac_exeext &&
9507        $as_test_x conftest$ac_exeext; then
9508   ac_cv_lib_dl_dlopen=yes
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513         ac_cv_lib_dl_dlopen=no
9514 fi
9515
9516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9517       conftest$ac_exeext conftest.$ac_ext
9518 LIBS=$ac_check_lib_save_LIBS
9519 fi
9520 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9522 if test $ac_cv_lib_dl_dlopen = yes; then
9523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9524 else
9525   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9526 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9527 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-lsvld  $LIBS"
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h.  */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h.  */
9538
9539 /* Override any GCC internal prototype to avoid an error.
9540    Use char because int might match the return type of a GCC
9541    builtin and then its argument prototype would still apply.  */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char dlopen ();
9546 int
9547 main ()
9548 {
9549 return dlopen ();
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9556 case "(($ac_try" in
9557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558   *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561   (eval "$ac_link") 2>conftest.er1
9562   ac_status=$?
9563   grep -v '^ *+' conftest.er1 >conftest.err
9564   rm -f conftest.er1
9565   cat conftest.err >&5
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); } && {
9568          test -z "$ac_c_werror_flag" ||
9569          test ! -s conftest.err
9570        } && test -s conftest$ac_exeext &&
9571        $as_test_x conftest$ac_exeext; then
9572   ac_cv_lib_svld_dlopen=yes
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577         ac_cv_lib_svld_dlopen=no
9578 fi
9579
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581       conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9583 fi
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9585 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9586 if test $ac_cv_lib_svld_dlopen = yes; then
9587   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9588 else
9589   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9590 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594   ac_check_lib_save_LIBS=$LIBS
9595 LIBS="-ldld  $LIBS"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602
9603 /* Override any GCC internal prototype to avoid an error.
9604    Use char because int might match the return type of a GCC
9605    builtin and then its argument prototype would still apply.  */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char dld_link ();
9610 int
9611 main ()
9612 {
9613 return dld_link ();
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } && {
9632          test -z "$ac_c_werror_flag" ||
9633          test ! -s conftest.err
9634        } && test -s conftest$ac_exeext &&
9635        $as_test_x conftest$ac_exeext; then
9636   ac_cv_lib_dld_dld_link=yes
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641         ac_cv_lib_dld_dld_link=no
9642 fi
9643
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645       conftest$ac_exeext conftest.$ac_ext
9646 LIBS=$ac_check_lib_save_LIBS
9647 fi
9648 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9649 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9650 if test $ac_cv_lib_dld_dld_link = yes; then
9651   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9652 fi
9653
9654
9655 fi
9656
9657
9658 fi
9659
9660
9661 fi
9662
9663
9664 fi
9665
9666
9667 fi
9668
9669     ;;
9670   esac
9671
9672   if test "x$lt_cv_dlopen" != xno; then
9673     enable_dlopen=yes
9674   else
9675     enable_dlopen=no
9676   fi
9677
9678   case $lt_cv_dlopen in
9679   dlopen)
9680     save_CPPFLAGS="$CPPFLAGS"
9681     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9682
9683     save_LDFLAGS="$LDFLAGS"
9684     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9685
9686     save_LIBS="$LIBS"
9687     LIBS="$lt_cv_dlopen_libs $LIBS"
9688
9689     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9690 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9691 if test "${lt_cv_dlopen_self+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694           if test "$cross_compiling" = yes; then :
9695   lt_cv_dlopen_self=cross
9696 else
9697   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9698   lt_status=$lt_dlunknown
9699   cat > conftest.$ac_ext <<EOF
9700 #line 9700 "configure"
9701 #include "confdefs.h"
9702
9703 #if HAVE_DLFCN_H
9704 #include <dlfcn.h>
9705 #endif
9706
9707 #include <stdio.h>
9708
9709 #ifdef RTLD_GLOBAL
9710 #  define LT_DLGLOBAL           RTLD_GLOBAL
9711 #else
9712 #  ifdef DL_GLOBAL
9713 #    define LT_DLGLOBAL         DL_GLOBAL
9714 #  else
9715 #    define LT_DLGLOBAL         0
9716 #  endif
9717 #endif
9718
9719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9720    find out it does not work in some platform. */
9721 #ifndef LT_DLLAZY_OR_NOW
9722 #  ifdef RTLD_LAZY
9723 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9724 #  else
9725 #    ifdef DL_LAZY
9726 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9727 #    else
9728 #      ifdef RTLD_NOW
9729 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9730 #      else
9731 #        ifdef DL_NOW
9732 #          define LT_DLLAZY_OR_NOW      DL_NOW
9733 #        else
9734 #          define LT_DLLAZY_OR_NOW      0
9735 #        endif
9736 #      endif
9737 #    endif
9738 #  endif
9739 #endif
9740
9741 #ifdef __cplusplus
9742 extern "C" void exit (int);
9743 #endif
9744
9745 void fnord() { int i=42;}
9746 int main ()
9747 {
9748   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9749   int status = $lt_dlunknown;
9750
9751   if (self)
9752     {
9753       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9754       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9755       /* dlclose (self); */
9756     }
9757   else
9758     puts (dlerror ());
9759
9760     exit (status);
9761 }
9762 EOF
9763   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764   (eval $ac_link) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9768     (./conftest; exit; ) >&5 2>/dev/null
9769     lt_status=$?
9770     case x$lt_status in
9771       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9772       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9773       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9774     esac
9775   else :
9776     # compilation failed
9777     lt_cv_dlopen_self=no
9778   fi
9779 fi
9780 rm -fr conftest*
9781
9782
9783 fi
9784 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9785 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9786
9787     if test "x$lt_cv_dlopen_self" = xyes; then
9788       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9789       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9790 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9791 if test "${lt_cv_dlopen_self_static+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794           if test "$cross_compiling" = yes; then :
9795   lt_cv_dlopen_self_static=cross
9796 else
9797   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9798   lt_status=$lt_dlunknown
9799   cat > conftest.$ac_ext <<EOF
9800 #line 9800 "configure"
9801 #include "confdefs.h"
9802
9803 #if HAVE_DLFCN_H
9804 #include <dlfcn.h>
9805 #endif
9806
9807 #include <stdio.h>
9808
9809 #ifdef RTLD_GLOBAL
9810 #  define LT_DLGLOBAL           RTLD_GLOBAL
9811 #else
9812 #  ifdef DL_GLOBAL
9813 #    define LT_DLGLOBAL         DL_GLOBAL
9814 #  else
9815 #    define LT_DLGLOBAL         0
9816 #  endif
9817 #endif
9818
9819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9820    find out it does not work in some platform. */
9821 #ifndef LT_DLLAZY_OR_NOW
9822 #  ifdef RTLD_LAZY
9823 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9824 #  else
9825 #    ifdef DL_LAZY
9826 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9827 #    else
9828 #      ifdef RTLD_NOW
9829 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9830 #      else
9831 #        ifdef DL_NOW
9832 #          define LT_DLLAZY_OR_NOW      DL_NOW
9833 #        else
9834 #          define LT_DLLAZY_OR_NOW      0
9835 #        endif
9836 #      endif
9837 #    endif
9838 #  endif
9839 #endif
9840
9841 #ifdef __cplusplus
9842 extern "C" void exit (int);
9843 #endif
9844
9845 void fnord() { int i=42;}
9846 int main ()
9847 {
9848   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9849   int status = $lt_dlunknown;
9850
9851   if (self)
9852     {
9853       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9854       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9855       /* dlclose (self); */
9856     }
9857   else
9858     puts (dlerror ());
9859
9860     exit (status);
9861 }
9862 EOF
9863   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864   (eval $ac_link) 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9868     (./conftest; exit; ) >&5 2>/dev/null
9869     lt_status=$?
9870     case x$lt_status in
9871       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9872       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9873       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9874     esac
9875   else :
9876     # compilation failed
9877     lt_cv_dlopen_self_static=no
9878   fi
9879 fi
9880 rm -fr conftest*
9881
9882
9883 fi
9884 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9885 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9886     fi
9887
9888     CPPFLAGS="$save_CPPFLAGS"
9889     LDFLAGS="$save_LDFLAGS"
9890     LIBS="$save_LIBS"
9891     ;;
9892   esac
9893
9894   case $lt_cv_dlopen_self in
9895   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9896   *) enable_dlopen_self=unknown ;;
9897   esac
9898
9899   case $lt_cv_dlopen_self_static in
9900   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9901   *) enable_dlopen_self_static=unknown ;;
9902   esac
9903 fi
9904
9905
9906 # Report which library types will actually be built
9907 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9909 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9910 echo "${ECHO_T}$can_build_shared" >&6; }
9911
9912 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9914 test "$can_build_shared" = "no" && enable_shared=no
9915
9916 # On AIX, shared libraries and static libraries use the same namespace, and
9917 # are all built from PIC.
9918 case $host_os in
9919 aix3*)
9920   test "$enable_shared" = yes && enable_static=no
9921   if test -n "$RANLIB"; then
9922     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9923     postinstall_cmds='$RANLIB $lib'
9924   fi
9925   ;;
9926
9927 aix4* | aix5*)
9928   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9929     test "$enable_shared" = yes && enable_static=no
9930   fi
9931     ;;
9932 esac
9933 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9934 echo "${ECHO_T}$enable_shared" >&6; }
9935
9936 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9938 # Make sure either enable_shared or enable_static is yes.
9939 test "$enable_shared" = yes || enable_static=yes
9940 { echo "$as_me:$LINENO: result: $enable_static" >&5
9941 echo "${ECHO_T}$enable_static" >&6; }
9942
9943 # The else clause should only fire when bootstrapping the
9944 # libtool distribution, otherwise you forgot to ship ltmain.sh
9945 # with your package, and you will get complaints that there are
9946 # no rules to generate ltmain.sh.
9947 if test -f "$ltmain"; then
9948   # See if we are running on zsh, and set the options which allow our commands through
9949   # without removal of \ escapes.
9950   if test -n "${ZSH_VERSION+set}" ; then
9951     setopt NO_GLOB_SUBST
9952   fi
9953   # Now quote all the things that may contain metacharacters while being
9954   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9955   # variables and quote the copies for generation of the libtool script.
9956   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9957     SED SHELL STRIP \
9958     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9959     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9960     deplibs_check_method reload_flag reload_cmds need_locks \
9961     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9962     lt_cv_sys_global_symbol_to_c_name_address \
9963     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9964     old_postinstall_cmds old_postuninstall_cmds \
9965     compiler \
9966     CC \
9967     LD \
9968     lt_prog_compiler_wl \
9969     lt_prog_compiler_pic \
9970     lt_prog_compiler_static \
9971     lt_prog_compiler_no_builtin_flag \
9972     export_dynamic_flag_spec \
9973     thread_safe_flag_spec \
9974     whole_archive_flag_spec \
9975     enable_shared_with_static_runtimes \
9976     old_archive_cmds \
9977     old_archive_from_new_cmds \
9978     predep_objects \
9979     postdep_objects \
9980     predeps \
9981     postdeps \
9982     compiler_lib_search_path \
9983     archive_cmds \
9984     archive_expsym_cmds \
9985     postinstall_cmds \
9986     postuninstall_cmds \
9987     old_archive_from_expsyms_cmds \
9988     allow_undefined_flag \
9989     no_undefined_flag \
9990     export_symbols_cmds \
9991     hardcode_libdir_flag_spec \
9992     hardcode_libdir_flag_spec_ld \
9993     hardcode_libdir_separator \
9994     hardcode_automatic \
9995     module_cmds \
9996     module_expsym_cmds \
9997     lt_cv_prog_compiler_c_o \
9998     exclude_expsyms \
9999     include_expsyms; do
10000
10001     case $var in
10002     old_archive_cmds | \
10003     old_archive_from_new_cmds | \
10004     archive_cmds | \
10005     archive_expsym_cmds | \
10006     module_cmds | \
10007     module_expsym_cmds | \
10008     old_archive_from_expsyms_cmds | \
10009     export_symbols_cmds | \
10010     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10011     postinstall_cmds | postuninstall_cmds | \
10012     old_postinstall_cmds | old_postuninstall_cmds | \
10013     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10014       # Double-quote double-evaled strings.
10015       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10016       ;;
10017     *)
10018       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10019       ;;
10020     esac
10021   done
10022
10023   case $lt_echo in
10024   *'\$0 --fallback-echo"')
10025     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10026     ;;
10027   esac
10028
10029 cfgfile="${ofile}T"
10030   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10031   $rm -f "$cfgfile"
10032   { echo "$as_me:$LINENO: creating $ofile" >&5
10033 echo "$as_me: creating $ofile" >&6;}
10034
10035   cat <<__EOF__ >> "$cfgfile"
10036 #! $SHELL
10037
10038 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10039 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10040 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10041 #
10042 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10043 # Free Software Foundation, Inc.
10044 #
10045 # This file is part of GNU Libtool:
10046 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10047 #
10048 # This program is free software; you can redistribute it and/or modify
10049 # it under the terms of the GNU General Public License as published by
10050 # the Free Software Foundation; either version 2 of the License, or
10051 # (at your option) any later version.
10052 #
10053 # This program is distributed in the hope that it will be useful, but
10054 # WITHOUT ANY WARRANTY; without even the implied warranty of
10055 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10056 # General Public License for more details.
10057 #
10058 # You should have received a copy of the GNU General Public License
10059 # along with this program; if not, write to the Free Software
10060 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10061 #
10062 # As a special exception to the GNU General Public License, if you
10063 # distribute this file as part of a program that contains a
10064 # configuration script generated by Autoconf, you may include it under
10065 # the same distribution terms that you use for the rest of that program.
10066
10067 # A sed program that does not truncate output.
10068 SED=$lt_SED
10069
10070 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10071 Xsed="$SED -e 1s/^X//"
10072
10073 # The HP-UX ksh and POSIX shell print the target directory to stdout
10074 # if CDPATH is set.
10075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10076
10077 # The names of the tagged configurations supported by this script.
10078 available_tags=
10079
10080 # ### BEGIN LIBTOOL CONFIG
10081
10082 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10083
10084 # Shell to use when invoking shell scripts.
10085 SHELL=$lt_SHELL
10086
10087 # Whether or not to build shared libraries.
10088 build_libtool_libs=$enable_shared
10089
10090 # Whether or not to build static libraries.
10091 build_old_libs=$enable_static
10092
10093 # Whether or not to add -lc for building shared libraries.
10094 build_libtool_need_lc=$archive_cmds_need_lc
10095
10096 # Whether or not to disallow shared libs when runtime libs are static
10097 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10098
10099 # Whether or not to optimize for fast installation.
10100 fast_install=$enable_fast_install
10101
10102 # The host system.
10103 host_alias=$host_alias
10104 host=$host
10105 host_os=$host_os
10106
10107 # The build system.
10108 build_alias=$build_alias
10109 build=$build
10110 build_os=$build_os
10111
10112 # An echo program that does not interpret backslashes.
10113 echo=$lt_echo
10114
10115 # The archiver.
10116 AR=$lt_AR
10117 AR_FLAGS=$lt_AR_FLAGS
10118
10119 # A C compiler.
10120 LTCC=$lt_LTCC
10121
10122 # LTCC compiler flags.
10123 LTCFLAGS=$lt_LTCFLAGS
10124
10125 # A language-specific compiler.
10126 CC=$lt_compiler
10127
10128 # Is the compiler the GNU C compiler?
10129 with_gcc=$GCC
10130
10131 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10132 gcc_ver=\`gcc -dumpversion\`
10133
10134 # An ERE matcher.
10135 EGREP=$lt_EGREP
10136
10137 # The linker used to build libraries.
10138 LD=$lt_LD
10139
10140 # Whether we need hard or soft links.
10141 LN_S=$lt_LN_S
10142
10143 # A BSD-compatible nm program.
10144 NM=$lt_NM
10145
10146 # A symbol stripping program
10147 STRIP=$lt_STRIP
10148
10149 # Used to examine libraries when file_magic_cmd begins "file"
10150 MAGIC_CMD=$MAGIC_CMD
10151
10152 # Used on cygwin: DLL creation program.
10153 DLLTOOL="$DLLTOOL"
10154
10155 # Used on cygwin: object dumper.
10156 OBJDUMP="$OBJDUMP"
10157
10158 # Used on cygwin: assembler.
10159 AS="$AS"
10160
10161 # The name of the directory that contains temporary libtool files.
10162 objdir=$objdir
10163
10164 # How to create reloadable object files.
10165 reload_flag=$lt_reload_flag
10166 reload_cmds=$lt_reload_cmds
10167
10168 # How to pass a linker flag through the compiler.
10169 wl=$lt_lt_prog_compiler_wl
10170
10171 # Object file suffix (normally "o").
10172 objext="$ac_objext"
10173
10174 # Old archive suffix (normally "a").
10175 libext="$libext"
10176
10177 # Shared library suffix (normally ".so").
10178 shrext_cmds='$shrext_cmds'
10179
10180 # Executable file suffix (normally "").
10181 exeext="$exeext"
10182
10183 # Additional compiler flags for building library objects.
10184 pic_flag=$lt_lt_prog_compiler_pic
10185 pic_mode=$pic_mode
10186
10187 # What is the maximum length of a command?
10188 max_cmd_len=$lt_cv_sys_max_cmd_len
10189
10190 # Does compiler simultaneously support -c and -o options?
10191 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10192
10193 # Must we lock files when doing compilation?
10194 need_locks=$lt_need_locks
10195
10196 # Do we need the lib prefix for modules?
10197 need_lib_prefix=$need_lib_prefix
10198
10199 # Do we need a version for libraries?
10200 need_version=$need_version
10201
10202 # Whether dlopen is supported.
10203 dlopen_support=$enable_dlopen
10204
10205 # Whether dlopen of programs is supported.
10206 dlopen_self=$enable_dlopen_self
10207
10208 # Whether dlopen of statically linked programs is supported.
10209 dlopen_self_static=$enable_dlopen_self_static
10210
10211 # Compiler flag to prevent dynamic linking.
10212 link_static_flag=$lt_lt_prog_compiler_static
10213
10214 # Compiler flag to turn off builtin functions.
10215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10216
10217 # Compiler flag to allow reflexive dlopens.
10218 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10219
10220 # Compiler flag to generate shared objects directly from archives.
10221 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10222
10223 # Compiler flag to generate thread-safe objects.
10224 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10225
10226 # Library versioning type.
10227 version_type=$version_type
10228
10229 # Format of library name prefix.
10230 libname_spec=$lt_libname_spec
10231
10232 # List of archive names.  First name is the real one, the rest are links.
10233 # The last name is the one that the linker finds with -lNAME.
10234 library_names_spec=$lt_library_names_spec
10235
10236 # The coded name of the library, if different from the real name.
10237 soname_spec=$lt_soname_spec
10238
10239 # Commands used to build and install an old-style archive.
10240 RANLIB=$lt_RANLIB
10241 old_archive_cmds=$lt_old_archive_cmds
10242 old_postinstall_cmds=$lt_old_postinstall_cmds
10243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10244
10245 # Create an old-style archive from a shared archive.
10246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10247
10248 # Create a temporary old-style archive to link instead of a shared archive.
10249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10250
10251 # Commands used to build and install a shared archive.
10252 archive_cmds=$lt_archive_cmds
10253 archive_expsym_cmds=$lt_archive_expsym_cmds
10254 postinstall_cmds=$lt_postinstall_cmds
10255 postuninstall_cmds=$lt_postuninstall_cmds
10256
10257 # Commands used to build a loadable module (assumed same as above if empty)
10258 module_cmds=$lt_module_cmds
10259 module_expsym_cmds=$lt_module_expsym_cmds
10260
10261 # Commands to strip libraries.
10262 old_striplib=$lt_old_striplib
10263 striplib=$lt_striplib
10264
10265 # Dependencies to place before the objects being linked to create a
10266 # shared library.
10267 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10268
10269 # Dependencies to place after the objects being linked to create a
10270 # shared library.
10271 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10272
10273 # Dependencies to place before the objects being linked to create a
10274 # shared library.
10275 predeps=$lt_predeps
10276
10277 # Dependencies to place after the objects being linked to create a
10278 # shared library.
10279 postdeps=$lt_postdeps
10280
10281 # The library search path used internally by the compiler when linking
10282 # a shared library.
10283 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10284
10285 # Method to check whether dependent libraries are shared objects.
10286 deplibs_check_method=$lt_deplibs_check_method
10287
10288 # Command to use when deplibs_check_method == file_magic.
10289 file_magic_cmd=$lt_file_magic_cmd
10290
10291 # Flag that allows shared libraries with undefined symbols to be built.
10292 allow_undefined_flag=$lt_allow_undefined_flag
10293
10294 # Flag that forces no undefined symbols.
10295 no_undefined_flag=$lt_no_undefined_flag
10296
10297 # Commands used to finish a libtool library installation in a directory.
10298 finish_cmds=$lt_finish_cmds
10299
10300 # Same as above, but a single script fragment to be evaled but not shown.
10301 finish_eval=$lt_finish_eval
10302
10303 # Take the output of nm and produce a listing of raw symbols and C names.
10304 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10305
10306 # Transform the output of nm in a proper C declaration
10307 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10308
10309 # Transform the output of nm in a C name address pair
10310 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10311
10312 # This is the shared library runtime path variable.
10313 runpath_var=$runpath_var
10314
10315 # This is the shared library path variable.
10316 shlibpath_var=$shlibpath_var
10317
10318 # Is shlibpath searched before the hard-coded library search path?
10319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10320
10321 # How to hardcode a shared library path into an executable.
10322 hardcode_action=$hardcode_action
10323
10324 # Whether we should hardcode library paths into libraries.
10325 hardcode_into_libs=$hardcode_into_libs
10326
10327 # Flag to hardcode \$libdir into a binary during linking.
10328 # This must work even if \$libdir does not exist.
10329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10330
10331 # If ld is used when linking, flag to hardcode \$libdir into
10332 # a binary during linking. This must work even if \$libdir does
10333 # not exist.
10334 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10335
10336 # Whether we need a single -rpath flag with a separated argument.
10337 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10338
10339 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10340 # resulting binary.
10341 hardcode_direct=$hardcode_direct
10342
10343 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10344 # resulting binary.
10345 hardcode_minus_L=$hardcode_minus_L
10346
10347 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10348 # the resulting binary.
10349 hardcode_shlibpath_var=$hardcode_shlibpath_var
10350
10351 # Set to yes if building a shared library automatically hardcodes DIR into the library
10352 # and all subsequent libraries and executables linked against it.
10353 hardcode_automatic=$hardcode_automatic
10354
10355 # Variables whose values should be saved in libtool wrapper scripts and
10356 # restored at relink time.
10357 variables_saved_for_relink="$variables_saved_for_relink"
10358
10359 # Whether libtool must link a program against all its dependency libraries.
10360 link_all_deplibs=$link_all_deplibs
10361
10362 # Compile-time system search path for libraries
10363 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10364
10365 # Run-time system search path for libraries
10366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10367
10368 # Fix the shell variable \$srcfile for the compiler.
10369 fix_srcfile_path="$fix_srcfile_path"
10370
10371 # Set to yes if exported symbols are required.
10372 always_export_symbols=$always_export_symbols
10373
10374 # The commands to list exported symbols.
10375 export_symbols_cmds=$lt_export_symbols_cmds
10376
10377 # The commands to extract the exported symbol list from a shared archive.
10378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10379
10380 # Symbols that should not be listed in the preloaded symbols.
10381 exclude_expsyms=$lt_exclude_expsyms
10382
10383 # Symbols that must always be exported.
10384 include_expsyms=$lt_include_expsyms
10385
10386 # ### END LIBTOOL CONFIG
10387
10388 __EOF__
10389
10390
10391   case $host_os in
10392   aix3*)
10393     cat <<\EOF >> "$cfgfile"
10394
10395 # AIX sometimes has problems with the GCC collect2 program.  For some
10396 # reason, if we set the COLLECT_NAMES environment variable, the problems
10397 # vanish in a puff of smoke.
10398 if test "X${COLLECT_NAMES+set}" != Xset; then
10399   COLLECT_NAMES=
10400   export COLLECT_NAMES
10401 fi
10402 EOF
10403     ;;
10404   esac
10405
10406   # We use sed instead of cat because bash on DJGPP gets confused if
10407   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10408   # text mode, it properly converts lines to CR/LF.  This bash problem
10409   # is reportedly fixed, but why not run on old versions too?
10410   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10411
10412   mv -f "$cfgfile" "$ofile" || \
10413     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10414   chmod +x "$ofile"
10415
10416 else
10417   # If there is no Makefile yet, we rely on a make rule to execute
10418   # `config.status --recheck' to rerun these tests and create the
10419   # libtool script then.
10420   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10421   if test -f "$ltmain_in"; then
10422     test -f Makefile && make "$ltmain"
10423   fi
10424 fi
10425
10426
10427 ac_ext=c
10428 ac_cpp='$CPP $CPPFLAGS'
10429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10432
10433 CC="$lt_save_CC"
10434
10435
10436 # Check whether --with-tags was given.
10437 if test "${with_tags+set}" = set; then
10438   withval=$with_tags; tagnames="$withval"
10439 fi
10440
10441
10442 if test -f "$ltmain" && test -n "$tagnames"; then
10443   if test ! -f "${ofile}"; then
10444     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10445 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10446   fi
10447
10448   if test -z "$LTCC"; then
10449     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10450     if test -z "$LTCC"; then
10451       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10452 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10453     else
10454       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10455 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10456     fi
10457   fi
10458   if test -z "$LTCFLAGS"; then
10459     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10460   fi
10461
10462   # Extract list of available tagged configurations in $ofile.
10463   # Note that this assumes the entire list is on one line.
10464   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10465
10466   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10467   for tagname in $tagnames; do
10468     IFS="$lt_save_ifs"
10469     # Check whether tagname contains only valid characters
10470     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10471     "") ;;
10472     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10473 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10474    { (exit 1); exit 1; }; }
10475         ;;
10476     esac
10477
10478     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10479     then
10480       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10481 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10482    { (exit 1); exit 1; }; }
10483     fi
10484
10485     # Update the list of available tags.
10486     if test -n "$tagname"; then
10487       echo appending configuration tag \"$tagname\" to $ofile
10488
10489       case $tagname in
10490       CXX)
10491         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10492             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10493             (test "X$CXX" != "Xg++"))) ; then
10494           ac_ext=cpp
10495 ac_cpp='$CXXCPP $CPPFLAGS'
10496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10499
10500
10501
10502
10503 archive_cmds_need_lc_CXX=no
10504 allow_undefined_flag_CXX=
10505 always_export_symbols_CXX=no
10506 archive_expsym_cmds_CXX=
10507 export_dynamic_flag_spec_CXX=
10508 hardcode_direct_CXX=no
10509 hardcode_libdir_flag_spec_CXX=
10510 hardcode_libdir_flag_spec_ld_CXX=
10511 hardcode_libdir_separator_CXX=
10512 hardcode_minus_L_CXX=no
10513 hardcode_shlibpath_var_CXX=unsupported
10514 hardcode_automatic_CXX=no
10515 module_cmds_CXX=
10516 module_expsym_cmds_CXX=
10517 link_all_deplibs_CXX=unknown
10518 old_archive_cmds_CXX=$old_archive_cmds
10519 no_undefined_flag_CXX=
10520 whole_archive_flag_spec_CXX=
10521 enable_shared_with_static_runtimes_CXX=no
10522
10523 # Dependencies to place before and after the object being linked:
10524 predep_objects_CXX=
10525 postdep_objects_CXX=
10526 predeps_CXX=
10527 postdeps_CXX=
10528 compiler_lib_search_path_CXX=
10529
10530 # Source file extension for C++ test sources.
10531 ac_ext=cpp
10532
10533 # Object file extension for compiled C++ test sources.
10534 objext=o
10535 objext_CXX=$objext
10536
10537 # Code to be used in simple compile tests
10538 lt_simple_compile_test_code="int some_variable = 0;\n"
10539
10540 # Code to be used in simple link tests
10541 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10542
10543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10544
10545 # If no C compiler was specified, use CC.
10546 LTCC=${LTCC-"$CC"}
10547
10548 # If no C compiler flags were specified, use CFLAGS.
10549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10550
10551 # Allow CC to be a program name with arguments.
10552 compiler=$CC
10553
10554
10555 # save warnings/boilerplate of simple test code
10556 ac_outfile=conftest.$ac_objext
10557 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10559 _lt_compiler_boilerplate=`cat conftest.err`
10560 $rm conftest*
10561
10562 ac_outfile=conftest.$ac_objext
10563 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10565 _lt_linker_boilerplate=`cat conftest.err`
10566 $rm conftest*
10567
10568
10569 # Allow CC to be a program name with arguments.
10570 lt_save_CC=$CC
10571 lt_save_LD=$LD
10572 lt_save_GCC=$GCC
10573 GCC=$GXX
10574 lt_save_with_gnu_ld=$with_gnu_ld
10575 lt_save_path_LD=$lt_cv_path_LD
10576 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10577   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10578 else
10579   $as_unset lt_cv_prog_gnu_ld
10580 fi
10581 if test -n "${lt_cv_path_LDCXX+set}"; then
10582   lt_cv_path_LD=$lt_cv_path_LDCXX
10583 else
10584   $as_unset lt_cv_path_LD
10585 fi
10586 test -z "${LDCXX+set}" || LD=$LDCXX
10587 CC=${CXX-"c++"}
10588 compiler=$CC
10589 compiler_CXX=$CC
10590 for cc_temp in $compiler""; do
10591   case $cc_temp in
10592     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10593     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10594     \-*) ;;
10595     *) break;;
10596   esac
10597 done
10598 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10599
10600
10601 # We don't want -fno-exception wen compiling C++ code, so set the
10602 # no_builtin_flag separately
10603 if test "$GXX" = yes; then
10604   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10605 else
10606   lt_prog_compiler_no_builtin_flag_CXX=
10607 fi
10608
10609 if test "$GXX" = yes; then
10610   # Set up default GNU C++ configuration
10611
10612
10613 # Check whether --with-gnu-ld was given.
10614 if test "${with_gnu_ld+set}" = set; then
10615   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10616 else
10617   with_gnu_ld=no
10618 fi
10619
10620 ac_prog=ld
10621 if test "$GCC" = yes; then
10622   # Check if gcc -print-prog-name=ld gives a path.
10623   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10624 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10625   case $host in
10626   *-*-mingw*)
10627     # gcc leaves a trailing carriage return which upsets mingw
10628     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10629   *)
10630     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10631   esac
10632   case $ac_prog in
10633     # Accept absolute paths.
10634     [\\/]* | ?:[\\/]*)
10635       re_direlt='/[^/][^/]*/\.\./'
10636       # Canonicalize the pathname of ld
10637       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10638       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10639         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10640       done
10641       test -z "$LD" && LD="$ac_prog"
10642       ;;
10643   "")
10644     # If it fails, then pretend we aren't using GCC.
10645     ac_prog=ld
10646     ;;
10647   *)
10648     # If it is relative, then search for the first ld in PATH.
10649     with_gnu_ld=unknown
10650     ;;
10651   esac
10652 elif test "$with_gnu_ld" = yes; then
10653   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10654 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10655 else
10656   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10657 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10658 fi
10659 if test "${lt_cv_path_LD+set}" = set; then
10660   echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662   if test -z "$LD"; then
10663   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10664   for ac_dir in $PATH; do
10665     IFS="$lt_save_ifs"
10666     test -z "$ac_dir" && ac_dir=.
10667     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10668       lt_cv_path_LD="$ac_dir/$ac_prog"
10669       # Check to see if the program is GNU ld.  I'd rather use --version,
10670       # but apparently some variants of GNU ld only accept -v.
10671       # Break only if it was the GNU/non-GNU ld that we prefer.
10672       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10673       *GNU* | *'with BFD'*)
10674         test "$with_gnu_ld" != no && break
10675         ;;
10676       *)
10677         test "$with_gnu_ld" != yes && break
10678         ;;
10679       esac
10680     fi
10681   done
10682   IFS="$lt_save_ifs"
10683 else
10684   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10685 fi
10686 fi
10687
10688 LD="$lt_cv_path_LD"
10689 if test -n "$LD"; then
10690   { echo "$as_me:$LINENO: result: $LD" >&5
10691 echo "${ECHO_T}$LD" >&6; }
10692 else
10693   { echo "$as_me:$LINENO: result: no" >&5
10694 echo "${ECHO_T}no" >&6; }
10695 fi
10696 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10697 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10698    { (exit 1); exit 1; }; }
10699 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10700 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10701 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10702   echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10705 case `$LD -v 2>&1 </dev/null` in
10706 *GNU* | *'with BFD'*)
10707   lt_cv_prog_gnu_ld=yes
10708   ;;
10709 *)
10710   lt_cv_prog_gnu_ld=no
10711   ;;
10712 esac
10713 fi
10714 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10715 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10716 with_gnu_ld=$lt_cv_prog_gnu_ld
10717
10718
10719
10720   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10721   # archiving commands below assume that GNU ld is being used.
10722   if test "$with_gnu_ld" = yes; then
10723     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10724     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'
10725
10726     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10727     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10728
10729     # If archive_cmds runs LD, not CC, wlarc should be empty
10730     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10731     #     investigate it a little bit more. (MM)
10732     wlarc='${wl}'
10733
10734     # ancient GNU ld didn't support --whole-archive et. al.
10735     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10736         grep 'no-whole-archive' > /dev/null; then
10737       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10738     else
10739       whole_archive_flag_spec_CXX=
10740     fi
10741   else
10742     with_gnu_ld=no
10743     wlarc=
10744
10745     # A generic and very simple default shared library creation
10746     # command for GNU C++ for the case where it uses the native
10747     # linker, instead of GNU ld.  If possible, this setting should
10748     # overridden to take advantage of the native linker features on
10749     # the platform it is being used on.
10750     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10751   fi
10752
10753   # Commands to make compiler produce verbose output that lists
10754   # what "hidden" libraries, object files and flags are used when
10755   # linking a shared library.
10756   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10757
10758 else
10759   GXX=no
10760   with_gnu_ld=no
10761   wlarc=
10762 fi
10763
10764 # PORTME: fill in a description of your system's C++ link characteristics
10765 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10766 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10767 ld_shlibs_CXX=yes
10768 case $host_os in
10769   aix3*)
10770     # FIXME: insert proper C++ library support
10771     ld_shlibs_CXX=no
10772     ;;
10773   aix4* | aix5*)
10774     if test "$host_cpu" = ia64; then
10775       # On IA64, the linker does run time linking by default, so we don't
10776       # have to do anything special.
10777       aix_use_runtimelinking=no
10778       exp_sym_flag='-Bexport'
10779       no_entry_flag=""
10780     else
10781       aix_use_runtimelinking=no
10782
10783       # Test if we are trying to use run time linking or normal
10784       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10785       # need to do runtime linking.
10786       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10787         for ld_flag in $LDFLAGS; do
10788           case $ld_flag in
10789           *-brtl*)
10790             aix_use_runtimelinking=yes
10791             break
10792             ;;
10793           esac
10794         done
10795         ;;
10796       esac
10797
10798       exp_sym_flag='-bexport'
10799       no_entry_flag='-bnoentry'
10800     fi
10801
10802     # When large executables or shared objects are built, AIX ld can
10803     # have problems creating the table of contents.  If linking a library
10804     # or program results in "error TOC overflow" add -mminimal-toc to
10805     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10806     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10807
10808     archive_cmds_CXX=''
10809     hardcode_direct_CXX=yes
10810     hardcode_libdir_separator_CXX=':'
10811     link_all_deplibs_CXX=yes
10812
10813     if test "$GXX" = yes; then
10814       case $host_os in aix4.[012]|aix4.[012].*)
10815       # We only want to do this on AIX 4.2 and lower, the check
10816       # below for broken collect2 doesn't work under 4.3+
10817         collect2name=`${CC} -print-prog-name=collect2`
10818         if test -f "$collect2name" && \
10819            strings "$collect2name" | grep resolve_lib_name >/dev/null
10820         then
10821           # We have reworked collect2
10822           hardcode_direct_CXX=yes
10823         else
10824           # We have old collect2
10825           hardcode_direct_CXX=unsupported
10826           # It fails to find uninstalled libraries when the uninstalled
10827           # path is not listed in the libpath.  Setting hardcode_minus_L
10828           # to unsupported forces relinking
10829           hardcode_minus_L_CXX=yes
10830           hardcode_libdir_flag_spec_CXX='-L$libdir'
10831           hardcode_libdir_separator_CXX=
10832         fi
10833         ;;
10834       esac
10835       shared_flag='-shared'
10836       if test "$aix_use_runtimelinking" = yes; then
10837         shared_flag="$shared_flag "'${wl}-G'
10838       fi
10839     else
10840       # not using gcc
10841       if test "$host_cpu" = ia64; then
10842         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10843         # chokes on -Wl,-G. The following line is correct:
10844         shared_flag='-G'
10845       else
10846         if test "$aix_use_runtimelinking" = yes; then
10847           shared_flag='${wl}-G'
10848         else
10849           shared_flag='${wl}-bM:SRE'
10850         fi
10851       fi
10852     fi
10853
10854     # It seems that -bexpall does not export symbols beginning with
10855     # underscore (_), so it is better to generate a list of symbols to export.
10856     always_export_symbols_CXX=yes
10857     if test "$aix_use_runtimelinking" = yes; then
10858       # Warning - without using the other runtime loading flags (-brtl),
10859       # -berok will link without error, but may produce a broken library.
10860       allow_undefined_flag_CXX='-berok'
10861       # Determine the default libpath from the value encoded in an empty executable.
10862       cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868
10869 int
10870 main ()
10871 {
10872
10873   ;
10874   return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (ac_try="$ac_link"
10879 case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884   (eval "$ac_link") 2>conftest.er1
10885   ac_status=$?
10886   grep -v '^ *+' conftest.er1 >conftest.err
10887   rm -f conftest.er1
10888   cat conftest.err >&5
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } && {
10891          test -z "$ac_cxx_werror_flag" ||
10892          test ! -s conftest.err
10893        } && test -s conftest$ac_exeext &&
10894        $as_test_x conftest$ac_exeext; then
10895
10896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10897 }'`
10898 # Check for a 64-bit object if we didn't find anything.
10899 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; }
10900 }'`; fi
10901 else
10902   echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905
10906 fi
10907
10908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10909       conftest$ac_exeext conftest.$ac_ext
10910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10911
10912       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10913
10914       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"
10915      else
10916       if test "$host_cpu" = ia64; then
10917         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10918         allow_undefined_flag_CXX="-z nodefs"
10919         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"
10920       else
10921         # Determine the default libpath from the value encoded in an empty executable.
10922         cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928
10929 int
10930 main ()
10931 {
10932
10933   ;
10934   return 0;
10935 }
10936 _ACEOF
10937 rm -f conftest.$ac_objext conftest$ac_exeext
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941   *) ac_try_echo=$ac_try;;
10942 esac
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944   (eval "$ac_link") 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } && {
10951          test -z "$ac_cxx_werror_flag" ||
10952          test ! -s conftest.err
10953        } && test -s conftest$ac_exeext &&
10954        $as_test_x conftest$ac_exeext; then
10955
10956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10957 }'`
10958 # Check for a 64-bit object if we didn't find anything.
10959 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; }
10960 }'`; fi
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965
10966 fi
10967
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969       conftest$ac_exeext conftest.$ac_ext
10970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10971
10972         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10973         # Warning - without using the other run time loading flags,
10974         # -berok will link without error, but may produce a broken library.
10975         no_undefined_flag_CXX=' ${wl}-bernotok'
10976         allow_undefined_flag_CXX=' ${wl}-berok'
10977         # Exported symbols can be pulled into shared objects from archives
10978         whole_archive_flag_spec_CXX='$convenience'
10979         archive_cmds_need_lc_CXX=yes
10980         # This is similar to how AIX traditionally builds its shared libraries.
10981         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'
10982       fi
10983     fi
10984     ;;
10985
10986   beos*)
10987     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10988       allow_undefined_flag_CXX=unsupported
10989       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10990       # support --undefined.  This deserves some investigation.  FIXME
10991       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10992     else
10993       ld_shlibs_CXX=no
10994     fi
10995     ;;
10996
10997   chorus*)
10998     case $cc_basename in
10999       *)
11000         # FIXME: insert proper C++ library support
11001         ld_shlibs_CXX=no
11002         ;;
11003     esac
11004     ;;
11005
11006   cygwin* | mingw* | pw32*)
11007     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11008     # as there is no search path for DLLs.
11009     hardcode_libdir_flag_spec_CXX='-L$libdir'
11010     allow_undefined_flag_CXX=unsupported
11011     always_export_symbols_CXX=no
11012     enable_shared_with_static_runtimes_CXX=yes
11013
11014     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11015       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'
11016       # If the export-symbols file already is a .def file (1st line
11017       # is EXPORTS), use it as is; otherwise, prepend...
11018       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11019         cp $export_symbols $output_objdir/$soname.def;
11020       else
11021         echo EXPORTS > $output_objdir/$soname.def;
11022         cat $export_symbols >> $output_objdir/$soname.def;
11023       fi~
11024       $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'
11025     else
11026       ld_shlibs_CXX=no
11027     fi
11028   ;;
11029       darwin* | rhapsody*)
11030         case $host_os in
11031         rhapsody* | darwin1.[012])
11032          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11033          ;;
11034        *) # Darwin 1.3 on
11035          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11036            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11037          else
11038            case ${MACOSX_DEPLOYMENT_TARGET} in
11039              10.[012])
11040                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11041                ;;
11042              10.*)
11043                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11044                ;;
11045            esac
11046          fi
11047          ;;
11048         esac
11049       archive_cmds_need_lc_CXX=no
11050       hardcode_direct_CXX=no
11051       hardcode_automatic_CXX=yes
11052       hardcode_shlibpath_var_CXX=unsupported
11053       whole_archive_flag_spec_CXX=''
11054       link_all_deplibs_CXX=yes
11055
11056     if test "$GXX" = yes ; then
11057       lt_int_apple_cc_single_mod=no
11058       output_verbose_link_cmd='echo'
11059       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11060        lt_int_apple_cc_single_mod=yes
11061       fi
11062       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11063        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11064       else
11065           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'
11066         fi
11067         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11068         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11069           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11070             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}'
11071           else
11072             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}'
11073           fi
11074             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}'
11075       else
11076       case $cc_basename in
11077         xlc*)
11078          output_verbose_link_cmd='echo'
11079           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'
11080           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11081           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11082           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}'
11083           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}'
11084           ;;
11085        *)
11086          ld_shlibs_CXX=no
11087           ;;
11088       esac
11089       fi
11090         ;;
11091
11092   dgux*)
11093     case $cc_basename in
11094       ec++*)
11095         # FIXME: insert proper C++ library support
11096         ld_shlibs_CXX=no
11097         ;;
11098       ghcx*)
11099         # Green Hills C++ Compiler
11100         # FIXME: insert proper C++ library support
11101         ld_shlibs_CXX=no
11102         ;;
11103       *)
11104         # FIXME: insert proper C++ library support
11105         ld_shlibs_CXX=no
11106         ;;
11107     esac
11108     ;;
11109   freebsd[12]*)
11110     # C++ shared libraries reported to be fairly broken before switch to ELF
11111     ld_shlibs_CXX=no
11112     ;;
11113   freebsd-elf*)
11114     archive_cmds_need_lc_CXX=no
11115     ;;
11116   freebsd* | kfreebsd*-gnu | dragonfly*)
11117     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11118     # conventions
11119     ld_shlibs_CXX=yes
11120     ;;
11121   gnu*)
11122     ;;
11123   hpux9*)
11124     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11125     hardcode_libdir_separator_CXX=:
11126     export_dynamic_flag_spec_CXX='${wl}-E'
11127     hardcode_direct_CXX=yes
11128     hardcode_minus_L_CXX=yes # Not in the search PATH,
11129                                 # but as the default
11130                                 # location of the library.
11131
11132     case $cc_basename in
11133     CC*)
11134       # FIXME: insert proper C++ library support
11135       ld_shlibs_CXX=no
11136       ;;
11137     aCC*)
11138       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'
11139       # Commands to make compiler produce verbose output that lists
11140       # what "hidden" libraries, object files and flags are used when
11141       # linking a shared library.
11142       #
11143       # There doesn't appear to be a way to prevent this compiler from
11144       # explicitly linking system object files so we need to strip them
11145       # from the output so that they don't get included in the library
11146       # dependencies.
11147       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'
11148       ;;
11149     *)
11150       if test "$GXX" = yes; then
11151         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'
11152       else
11153         # FIXME: insert proper C++ library support
11154         ld_shlibs_CXX=no
11155       fi
11156       ;;
11157     esac
11158     ;;
11159   hpux10*|hpux11*)
11160     if test $with_gnu_ld = no; then
11161       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11162       hardcode_libdir_separator_CXX=:
11163
11164       case $host_cpu in
11165       hppa*64*|ia64*)
11166         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11167         ;;
11168       *)
11169         export_dynamic_flag_spec_CXX='${wl}-E'
11170         ;;
11171       esac
11172     fi
11173     case $host_cpu in
11174     hppa*64*|ia64*)
11175       hardcode_direct_CXX=no
11176       hardcode_shlibpath_var_CXX=no
11177       ;;
11178     *)
11179       hardcode_direct_CXX=yes
11180       hardcode_minus_L_CXX=yes # Not in the search PATH,
11181                                               # but as the default
11182                                               # location of the library.
11183       ;;
11184     esac
11185
11186     case $cc_basename in
11187       CC*)
11188         # FIXME: insert proper C++ library support
11189         ld_shlibs_CXX=no
11190         ;;
11191       aCC*)
11192         case $host_cpu in
11193         hppa*64*)
11194           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11195           ;;
11196         ia64*)
11197           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11198           ;;
11199         *)
11200           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11201           ;;
11202         esac
11203         # Commands to make compiler produce verbose output that lists
11204         # what "hidden" libraries, object files and flags are used when
11205         # linking a shared library.
11206         #
11207         # There doesn't appear to be a way to prevent this compiler from
11208         # explicitly linking system object files so we need to strip them
11209         # from the output so that they don't get included in the library
11210         # dependencies.
11211         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'
11212         ;;
11213       *)
11214         if test "$GXX" = yes; then
11215           if test $with_gnu_ld = no; then
11216             case $host_cpu in
11217             hppa*64*)
11218               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11219               ;;
11220             ia64*)
11221               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11222               ;;
11223             *)
11224               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'
11225               ;;
11226             esac
11227           fi
11228         else
11229           # FIXME: insert proper C++ library support
11230           ld_shlibs_CXX=no
11231         fi
11232         ;;
11233     esac
11234     ;;
11235   interix3*)
11236     hardcode_direct_CXX=no
11237     hardcode_shlibpath_var_CXX=no
11238     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11239     export_dynamic_flag_spec_CXX='${wl}-E'
11240     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11241     # Instead, shared libraries are loaded at an image base (0x10000000 by
11242     # default) and relocated if they conflict, which is a slow very memory
11243     # consuming and fragmenting process.  To avoid this, we pick a random,
11244     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11245     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11246     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'
11247     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'
11248     ;;
11249   irix5* | irix6*)
11250     case $cc_basename in
11251       CC*)
11252         # SGI C++
11253         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'
11254
11255         # Archives containing C++ object files must be created using
11256         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11257         # necessary to make sure instantiated templates are included
11258         # in the archive.
11259         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11260         ;;
11261       *)
11262         if test "$GXX" = yes; then
11263           if test "$with_gnu_ld" = no; then
11264             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'
11265           else
11266             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'
11267           fi
11268         fi
11269         link_all_deplibs_CXX=yes
11270         ;;
11271     esac
11272     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11273     hardcode_libdir_separator_CXX=:
11274     ;;
11275   linux*)
11276     case $cc_basename in
11277       KCC*)
11278         # Kuck and Associates, Inc. (KAI) C++ Compiler
11279
11280         # KCC will only create a shared library if the output file
11281         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11282         # to its proper name (with version) after linking.
11283         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'
11284         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'
11285         # Commands to make compiler produce verbose output that lists
11286         # what "hidden" libraries, object files and flags are used when
11287         # linking a shared library.
11288         #
11289         # There doesn't appear to be a way to prevent this compiler from
11290         # explicitly linking system object files so we need to strip them
11291         # from the output so that they don't get included in the library
11292         # dependencies.
11293         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'
11294
11295         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11296         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11297
11298         # Archives containing C++ object files must be created using
11299         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11300         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11301         ;;
11302       icpc*)
11303         # Intel C++
11304         with_gnu_ld=yes
11305         # version 8.0 and above of icpc choke on multiply defined symbols
11306         # if we add $predep_objects and $postdep_objects, however 7.1 and
11307         # earlier do not add the objects themselves.
11308         case `$CC -V 2>&1` in
11309         *"Version 7."*)
11310           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11311           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'
11312           ;;
11313         *)  # Version 8.0 or newer
11314           tmp_idyn=
11315           case $host_cpu in
11316             ia64*) tmp_idyn=' -i_dynamic';;
11317           esac
11318           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11319           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'
11320           ;;
11321         esac
11322         archive_cmds_need_lc_CXX=no
11323         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11324         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11325         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11326         ;;
11327       pgCC*)
11328         # Portland Group C++ compiler
11329         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11330         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'
11331
11332         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11333         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11334         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'
11335         ;;
11336       cxx*)
11337         # Compaq C++
11338         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11339         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'
11340
11341         runpath_var=LD_RUN_PATH
11342         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11343         hardcode_libdir_separator_CXX=:
11344
11345         # Commands to make compiler produce verbose output that lists
11346         # what "hidden" libraries, object files and flags are used when
11347         # linking a shared library.
11348         #
11349         # There doesn't appear to be a way to prevent this compiler from
11350         # explicitly linking system object files so we need to strip them
11351         # from the output so that they don't get included in the library
11352         # dependencies.
11353         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'
11354         ;;
11355     esac
11356     ;;
11357   lynxos*)
11358     # FIXME: insert proper C++ library support
11359     ld_shlibs_CXX=no
11360     ;;
11361   m88k*)
11362     # FIXME: insert proper C++ library support
11363     ld_shlibs_CXX=no
11364     ;;
11365   mvs*)
11366     case $cc_basename in
11367       cxx*)
11368         # FIXME: insert proper C++ library support
11369         ld_shlibs_CXX=no
11370         ;;
11371       *)
11372         # FIXME: insert proper C++ library support
11373         ld_shlibs_CXX=no
11374         ;;
11375     esac
11376     ;;
11377   netbsd*)
11378     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11379       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11380       wlarc=
11381       hardcode_libdir_flag_spec_CXX='-R$libdir'
11382       hardcode_direct_CXX=yes
11383       hardcode_shlibpath_var_CXX=no
11384     fi
11385     # Workaround some broken pre-1.5 toolchains
11386     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11387     ;;
11388   openbsd2*)
11389     # C++ shared libraries are fairly broken
11390     ld_shlibs_CXX=no
11391     ;;
11392   openbsd*)
11393     hardcode_direct_CXX=yes
11394     hardcode_shlibpath_var_CXX=no
11395     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11396     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11397     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11398       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11399       export_dynamic_flag_spec_CXX='${wl}-E'
11400       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11401     fi
11402     output_verbose_link_cmd='echo'
11403     ;;
11404   osf3*)
11405     case $cc_basename in
11406       KCC*)
11407         # Kuck and Associates, Inc. (KAI) C++ Compiler
11408
11409         # KCC will only create a shared library if the output file
11410         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11411         # to its proper name (with version) after linking.
11412         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'
11413
11414         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11415         hardcode_libdir_separator_CXX=:
11416
11417         # Archives containing C++ object files must be created using
11418         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11419         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11420
11421         ;;
11422       RCC*)
11423         # Rational C++ 2.4.1
11424         # FIXME: insert proper C++ library support
11425         ld_shlibs_CXX=no
11426         ;;
11427       cxx*)
11428         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11429         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'
11430
11431         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11432         hardcode_libdir_separator_CXX=:
11433
11434         # Commands to make compiler produce verbose output that lists
11435         # what "hidden" libraries, object files and flags are used when
11436         # linking a shared library.
11437         #
11438         # There doesn't appear to be a way to prevent this compiler from
11439         # explicitly linking system object files so we need to strip them
11440         # from the output so that they don't get included in the library
11441         # dependencies.
11442         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'
11443         ;;
11444       *)
11445         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11446           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11447           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'
11448
11449           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11450           hardcode_libdir_separator_CXX=:
11451
11452           # Commands to make compiler produce verbose output that lists
11453           # what "hidden" libraries, object files and flags are used when
11454           # linking a shared library.
11455           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11456
11457         else
11458           # FIXME: insert proper C++ library support
11459           ld_shlibs_CXX=no
11460         fi
11461         ;;
11462     esac
11463     ;;
11464   osf4* | osf5*)
11465     case $cc_basename in
11466       KCC*)
11467         # Kuck and Associates, Inc. (KAI) C++ Compiler
11468
11469         # KCC will only create a shared library if the output file
11470         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11471         # to its proper name (with version) after linking.
11472         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'
11473
11474         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11475         hardcode_libdir_separator_CXX=:
11476
11477         # Archives containing C++ object files must be created using
11478         # the KAI C++ compiler.
11479         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11480         ;;
11481       RCC*)
11482         # Rational C++ 2.4.1
11483         # FIXME: insert proper C++ library support
11484         ld_shlibs_CXX=no
11485         ;;
11486       cxx*)
11487         allow_undefined_flag_CXX=' -expect_unresolved \*'
11488         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'
11489         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11490           echo "-hidden">> $lib.exp~
11491           $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~
11492           $rm $lib.exp'
11493
11494         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11495         hardcode_libdir_separator_CXX=:
11496
11497         # Commands to make compiler produce verbose output that lists
11498         # what "hidden" libraries, object files and flags are used when
11499         # linking a shared library.
11500         #
11501         # There doesn't appear to be a way to prevent this compiler from
11502         # explicitly linking system object files so we need to strip them
11503         # from the output so that they don't get included in the library
11504         # dependencies.
11505         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'
11506         ;;
11507       *)
11508         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11509           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11510          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'
11511
11512           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11513           hardcode_libdir_separator_CXX=:
11514
11515           # Commands to make compiler produce verbose output that lists
11516           # what "hidden" libraries, object files and flags are used when
11517           # linking a shared library.
11518           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11519
11520         else
11521           # FIXME: insert proper C++ library support
11522           ld_shlibs_CXX=no
11523         fi
11524         ;;
11525     esac
11526     ;;
11527   psos*)
11528     # FIXME: insert proper C++ library support
11529     ld_shlibs_CXX=no
11530     ;;
11531   sunos4*)
11532     case $cc_basename in
11533       CC*)
11534         # Sun C++ 4.x
11535         # FIXME: insert proper C++ library support
11536         ld_shlibs_CXX=no
11537         ;;
11538       lcc*)
11539         # Lucid
11540         # FIXME: insert proper C++ library support
11541         ld_shlibs_CXX=no
11542         ;;
11543       *)
11544         # FIXME: insert proper C++ library support
11545         ld_shlibs_CXX=no
11546         ;;
11547     esac
11548     ;;
11549   solaris*)
11550     case $cc_basename in
11551       CC*)
11552         # Sun C++ 4.2, 5.x and Centerline C++
11553         archive_cmds_need_lc_CXX=yes
11554         no_undefined_flag_CXX=' -zdefs'
11555         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11556         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11557         $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'
11558
11559         hardcode_libdir_flag_spec_CXX='-R$libdir'
11560         hardcode_shlibpath_var_CXX=no
11561         case $host_os in
11562           solaris2.[0-5] | solaris2.[0-5].*) ;;
11563           *)
11564             # The C++ compiler is used as linker so we must use $wl
11565             # flag to pass the commands to the underlying system
11566             # linker. We must also pass each convience library through
11567             # to the system linker between allextract/defaultextract.
11568             # The C++ compiler will combine linker options so we
11569             # cannot just pass the convience library names through
11570             # without $wl.
11571             # Supported since Solaris 2.6 (maybe 2.5.1?)
11572             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'
11573             ;;
11574         esac
11575         link_all_deplibs_CXX=yes
11576
11577         output_verbose_link_cmd='echo'
11578
11579         # Archives containing C++ object files must be created using
11580         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11581         # necessary to make sure instantiated templates are included
11582         # in the archive.
11583         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11584         ;;
11585       gcx*)
11586         # Green Hills C++ Compiler
11587         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11588
11589         # The C++ compiler must be used to create the archive.
11590         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11591         ;;
11592       *)
11593         # GNU C++ compiler with Solaris linker
11594         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11595           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11596           if $CC --version | grep -v '^2\.7' > /dev/null; then
11597             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11598             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11599                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11600
11601             # Commands to make compiler produce verbose output that lists
11602             # what "hidden" libraries, object files and flags are used when
11603             # linking a shared library.
11604             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11605           else
11606             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11607             # platform.
11608             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11609             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11610                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11611
11612             # Commands to make compiler produce verbose output that lists
11613             # what "hidden" libraries, object files and flags are used when
11614             # linking a shared library.
11615             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11616           fi
11617
11618           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11619         fi
11620         ;;
11621     esac
11622     ;;
11623   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11624     no_undefined_flag_CXX='${wl}-z,text'
11625     archive_cmds_need_lc_CXX=no
11626     hardcode_shlibpath_var_CXX=no
11627     runpath_var='LD_RUN_PATH'
11628
11629     case $cc_basename in
11630       CC*)
11631         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11632         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11633         ;;
11634       *)
11635         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11636         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11637         ;;
11638     esac
11639     ;;
11640   sysv5* | sco3.2v5* | sco5v6*)
11641     # Note: We can NOT use -z defs as we might desire, because we do not
11642     # link with -lc, and that would cause any symbols used from libc to
11643     # always be unresolved, which means just about no library would
11644     # ever link correctly.  If we're not using GNU ld we use -z text
11645     # though, which does catch some bad symbols but isn't as heavy-handed
11646     # as -z defs.
11647     # For security reasons, it is highly recommended that you always
11648     # use absolute paths for naming shared libraries, and exclude the
11649     # DT_RUNPATH tag from executables and libraries.  But doing so
11650     # requires that you compile everything twice, which is a pain.
11651     # So that behaviour is only enabled if SCOABSPATH is set to a
11652     # non-empty value in the environment.  Most likely only useful for
11653     # creating official distributions of packages.
11654     # This is a hack until libtool officially supports absolute path
11655     # names for shared libraries.
11656     no_undefined_flag_CXX='${wl}-z,text'
11657     allow_undefined_flag_CXX='${wl}-z,nodefs'
11658     archive_cmds_need_lc_CXX=no
11659     hardcode_shlibpath_var_CXX=no
11660     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11661     hardcode_libdir_separator_CXX=':'
11662     link_all_deplibs_CXX=yes
11663     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11664     runpath_var='LD_RUN_PATH'
11665
11666     case $cc_basename in
11667       CC*)
11668         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11669         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11670         ;;
11671       *)
11672         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11673         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11674         ;;
11675     esac
11676     ;;
11677   tandem*)
11678     case $cc_basename in
11679       NCC*)
11680         # NonStop-UX NCC 3.20
11681         # FIXME: insert proper C++ library support
11682         ld_shlibs_CXX=no
11683         ;;
11684       *)
11685         # FIXME: insert proper C++ library support
11686         ld_shlibs_CXX=no
11687         ;;
11688     esac
11689     ;;
11690   vxworks*)
11691     # FIXME: insert proper C++ library support
11692     ld_shlibs_CXX=no
11693     ;;
11694   *)
11695     # FIXME: insert proper C++ library support
11696     ld_shlibs_CXX=no
11697     ;;
11698 esac
11699 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11700 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11701 test "$ld_shlibs_CXX" = no && can_build_shared=no
11702
11703 GCC_CXX="$GXX"
11704 LD_CXX="$LD"
11705
11706
11707 cat > conftest.$ac_ext <<EOF
11708 class Foo
11709 {
11710 public:
11711   Foo (void) { a = 0; }
11712 private:
11713   int a;
11714 };
11715 EOF
11716
11717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718   (eval $ac_compile) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; then
11722   # Parse the compiler output and extract the necessary
11723   # objects, libraries and library flags.
11724
11725   # Sentinel used to keep track of whether or not we are before
11726   # the conftest object file.
11727   pre_test_object_deps_done=no
11728
11729   # The `*' in the case matches for architectures that use `case' in
11730   # $output_verbose_cmd can trigger glob expansion during the loop
11731   # eval without this substitution.
11732   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11733
11734   for p in `eval $output_verbose_link_cmd`; do
11735     case $p in
11736
11737     -L* | -R* | -l*)
11738        # Some compilers place space between "-{L,R}" and the path.
11739        # Remove the space.
11740        if test $p = "-L" \
11741           || test $p = "-R"; then
11742          prev=$p
11743          continue
11744        else
11745          prev=
11746        fi
11747
11748        if test "$pre_test_object_deps_done" = no; then
11749          case $p in
11750          -L* | -R*)
11751            # Internal compiler library paths should come after those
11752            # provided the user.  The postdeps already come after the
11753            # user supplied libs so there is no need to process them.
11754            if test -z "$compiler_lib_search_path_CXX"; then
11755              compiler_lib_search_path_CXX="${prev}${p}"
11756            else
11757              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11758            fi
11759            ;;
11760          # The "-l" case would never come before the object being
11761          # linked, so don't bother handling this case.
11762          esac
11763        else
11764          if test -z "$postdeps_CXX"; then
11765            postdeps_CXX="${prev}${p}"
11766          else
11767            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11768          fi
11769        fi
11770        ;;
11771
11772     *.$objext)
11773        # This assumes that the test object file only shows up
11774        # once in the compiler output.
11775        if test "$p" = "conftest.$objext"; then
11776          pre_test_object_deps_done=yes
11777          continue
11778        fi
11779
11780        if test "$pre_test_object_deps_done" = no; then
11781          if test -z "$predep_objects_CXX"; then
11782            predep_objects_CXX="$p"
11783          else
11784            predep_objects_CXX="$predep_objects_CXX $p"
11785          fi
11786        else
11787          if test -z "$postdep_objects_CXX"; then
11788            postdep_objects_CXX="$p"
11789          else
11790            postdep_objects_CXX="$postdep_objects_CXX $p"
11791          fi
11792        fi
11793        ;;
11794
11795     *) ;; # Ignore the rest.
11796
11797     esac
11798   done
11799
11800   # Clean up.
11801   rm -f a.out a.exe
11802 else
11803   echo "libtool.m4: error: problem compiling CXX test program"
11804 fi
11805
11806 $rm -f confest.$objext
11807
11808 # PORTME: override above test on systems where it is broken
11809 case $host_os in
11810 interix3*)
11811   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11812   # hack all around it, let's just trust "g++" to DTRT.
11813   predep_objects_CXX=
11814   postdep_objects_CXX=
11815   postdeps_CXX=
11816   ;;
11817
11818 solaris*)
11819   case $cc_basename in
11820   CC*)
11821     # Adding this requires a known-good setup of shared libraries for
11822     # Sun compiler versions before 5.6, else PIC objects from an old
11823     # archive will be linked into the output, leading to subtle bugs.
11824     postdeps_CXX='-lCstd -lCrun'
11825     ;;
11826   esac
11827   ;;
11828 esac
11829
11830
11831 case " $postdeps_CXX " in
11832 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11833 esac
11834
11835 lt_prog_compiler_wl_CXX=
11836 lt_prog_compiler_pic_CXX=
11837 lt_prog_compiler_static_CXX=
11838
11839 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11840 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11841
11842   # C++ specific cases for pic, static, wl, etc.
11843   if test "$GXX" = yes; then
11844     lt_prog_compiler_wl_CXX='-Wl,'
11845     lt_prog_compiler_static_CXX='-static'
11846
11847     case $host_os in
11848     aix*)
11849       # All AIX code is PIC.
11850       if test "$host_cpu" = ia64; then
11851         # AIX 5 now supports IA64 processor
11852         lt_prog_compiler_static_CXX='-Bstatic'
11853       fi
11854       ;;
11855     amigaos*)
11856       # FIXME: we need at least 68020 code to build shared libraries, but
11857       # adding the `-m68020' flag to GCC prevents building anything better,
11858       # like `-m68040'.
11859       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11860       ;;
11861     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11862       # PIC is the default for these OSes.
11863       ;;
11864     mingw* | os2* | pw32*)
11865       # This hack is so that the source file can tell whether it is being
11866       # built for inclusion in a dll (and should export symbols for example).
11867       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11868       ;;
11869     darwin* | rhapsody*)
11870       # PIC is the default on this platform
11871       # Common symbols not allowed in MH_DYLIB files
11872       lt_prog_compiler_pic_CXX='-fno-common'
11873       ;;
11874     *djgpp*)
11875       # DJGPP does not support shared libraries at all
11876       lt_prog_compiler_pic_CXX=
11877       ;;
11878     interix3*)
11879       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11880       # Instead, we relocate shared libraries at runtime.
11881       ;;
11882     sysv4*MP*)
11883       if test -d /usr/nec; then
11884         lt_prog_compiler_pic_CXX=-Kconform_pic
11885       fi
11886       ;;
11887     hpux*)
11888       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11889       # not for PA HP-UX.
11890       case $host_cpu in
11891       hppa*64*|ia64*)
11892         ;;
11893       *)
11894         lt_prog_compiler_pic_CXX='-fPIC'
11895         ;;
11896       esac
11897       ;;
11898     *)
11899       lt_prog_compiler_pic_CXX='-fPIC'
11900       ;;
11901     esac
11902   else
11903     case $host_os in
11904       aix4* | aix5*)
11905         # All AIX code is PIC.
11906         if test "$host_cpu" = ia64; then
11907           # AIX 5 now supports IA64 processor
11908           lt_prog_compiler_static_CXX='-Bstatic'
11909         else
11910           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11911         fi
11912         ;;
11913       chorus*)
11914         case $cc_basename in
11915         cxch68*)
11916           # Green Hills C++ Compiler
11917           # _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"
11918           ;;
11919         esac
11920         ;;
11921        darwin*)
11922          # PIC is the default on this platform
11923          # Common symbols not allowed in MH_DYLIB files
11924          case $cc_basename in
11925            xlc*)
11926            lt_prog_compiler_pic_CXX='-qnocommon'
11927            lt_prog_compiler_wl_CXX='-Wl,'
11928            ;;
11929          esac
11930        ;;
11931       dgux*)
11932         case $cc_basename in
11933           ec++*)
11934             lt_prog_compiler_pic_CXX='-KPIC'
11935             ;;
11936           ghcx*)
11937             # Green Hills C++ Compiler
11938             lt_prog_compiler_pic_CXX='-pic'
11939             ;;
11940           *)
11941             ;;
11942         esac
11943         ;;
11944       freebsd* | kfreebsd*-gnu | dragonfly*)
11945         # FreeBSD uses GNU C++
11946         ;;
11947       hpux9* | hpux10* | hpux11*)
11948         case $cc_basename in
11949           CC*)
11950             lt_prog_compiler_wl_CXX='-Wl,'
11951             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11952             if test "$host_cpu" != ia64; then
11953               lt_prog_compiler_pic_CXX='+Z'
11954             fi
11955             ;;
11956           aCC*)
11957             lt_prog_compiler_wl_CXX='-Wl,'
11958             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11959             case $host_cpu in
11960             hppa*64*|ia64*)
11961               # +Z the default
11962               ;;
11963             *)
11964               lt_prog_compiler_pic_CXX='+Z'
11965               ;;
11966             esac
11967             ;;
11968           *)
11969             ;;
11970         esac
11971         ;;
11972       interix*)
11973         # This is c89, which is MS Visual C++ (no shared libs)
11974         # Anyone wants to do a port?
11975         ;;
11976       irix5* | irix6* | nonstopux*)
11977         case $cc_basename in
11978           CC*)
11979             lt_prog_compiler_wl_CXX='-Wl,'
11980             lt_prog_compiler_static_CXX='-non_shared'
11981             # CC pic flag -KPIC is the default.
11982             ;;
11983           *)
11984             ;;
11985         esac
11986         ;;
11987       linux*)
11988         case $cc_basename in
11989           KCC*)
11990             # KAI C++ Compiler
11991             lt_prog_compiler_wl_CXX='--backend -Wl,'
11992             lt_prog_compiler_pic_CXX='-fPIC'
11993             ;;
11994           icpc* | ecpc*)
11995             # Intel C++
11996             lt_prog_compiler_wl_CXX='-Wl,'
11997             lt_prog_compiler_pic_CXX='-KPIC'
11998             lt_prog_compiler_static_CXX='-static'
11999             ;;
12000           pgCC*)
12001             # Portland Group C++ compiler.
12002             lt_prog_compiler_wl_CXX='-Wl,'
12003             lt_prog_compiler_pic_CXX='-fpic'
12004             lt_prog_compiler_static_CXX='-Bstatic'
12005             ;;
12006           cxx*)
12007             # Compaq C++
12008             # Make sure the PIC flag is empty.  It appears that all Alpha
12009             # Linux and Compaq Tru64 Unix objects are PIC.
12010             lt_prog_compiler_pic_CXX=
12011             lt_prog_compiler_static_CXX='-non_shared'
12012             ;;
12013           *)
12014             ;;
12015         esac
12016         ;;
12017       lynxos*)
12018         ;;
12019       m88k*)
12020         ;;
12021       mvs*)
12022         case $cc_basename in
12023           cxx*)
12024             lt_prog_compiler_pic_CXX='-W c,exportall'
12025             ;;
12026           *)
12027             ;;
12028         esac
12029         ;;
12030       netbsd*)
12031         ;;
12032       osf3* | osf4* | osf5*)
12033         case $cc_basename in
12034           KCC*)
12035             lt_prog_compiler_wl_CXX='--backend -Wl,'
12036             ;;
12037           RCC*)
12038             # Rational C++ 2.4.1
12039             lt_prog_compiler_pic_CXX='-pic'
12040             ;;
12041           cxx*)
12042             # Digital/Compaq C++
12043             lt_prog_compiler_wl_CXX='-Wl,'
12044             # Make sure the PIC flag is empty.  It appears that all Alpha
12045             # Linux and Compaq Tru64 Unix objects are PIC.
12046             lt_prog_compiler_pic_CXX=
12047             lt_prog_compiler_static_CXX='-non_shared'
12048             ;;
12049           *)
12050             ;;
12051         esac
12052         ;;
12053       psos*)
12054         ;;
12055       solaris*)
12056         case $cc_basename in
12057           CC*)
12058             # Sun C++ 4.2, 5.x and Centerline C++
12059             lt_prog_compiler_pic_CXX='-KPIC'
12060             lt_prog_compiler_static_CXX='-Bstatic'
12061             lt_prog_compiler_wl_CXX='-Qoption ld '
12062             ;;
12063           gcx*)
12064             # Green Hills C++ Compiler
12065             lt_prog_compiler_pic_CXX='-PIC'
12066             ;;
12067           *)
12068             ;;
12069         esac
12070         ;;
12071       sunos4*)
12072         case $cc_basename in
12073           CC*)
12074             # Sun C++ 4.x
12075             lt_prog_compiler_pic_CXX='-pic'
12076             lt_prog_compiler_static_CXX='-Bstatic'
12077             ;;
12078           lcc*)
12079             # Lucid
12080             lt_prog_compiler_pic_CXX='-pic'
12081             ;;
12082           *)
12083             ;;
12084         esac
12085         ;;
12086       tandem*)
12087         case $cc_basename in
12088           NCC*)
12089             # NonStop-UX NCC 3.20
12090             lt_prog_compiler_pic_CXX='-KPIC'
12091             ;;
12092           *)
12093             ;;
12094         esac
12095         ;;
12096       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12097         case $cc_basename in
12098           CC*)
12099             lt_prog_compiler_wl_CXX='-Wl,'
12100             lt_prog_compiler_pic_CXX='-KPIC'
12101             lt_prog_compiler_static_CXX='-Bstatic'
12102             ;;
12103         esac
12104         ;;
12105       vxworks*)
12106         ;;
12107       *)
12108         lt_prog_compiler_can_build_shared_CXX=no
12109         ;;
12110     esac
12111   fi
12112
12113 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12114 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12115
12116 #
12117 # Check to make sure the PIC flag actually works.
12118 #
12119 if test -n "$lt_prog_compiler_pic_CXX"; then
12120
12121 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12123 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12124   echo $ECHO_N "(cached) $ECHO_C" >&6
12125 else
12126   lt_prog_compiler_pic_works_CXX=no
12127   ac_outfile=conftest.$ac_objext
12128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12129    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12130    # Insert the option either (1) after the last *FLAGS variable, or
12131    # (2) before a word containing "conftest.", or (3) at the end.
12132    # Note that $ac_compile itself does not contain backslashes and begins
12133    # with a dollar sign (not a hyphen), so the echo should work correctly.
12134    # The option is referenced via a variable to avoid confusing sed.
12135    lt_compile=`echo "$ac_compile" | $SED \
12136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12138    -e 's:$: $lt_compiler_flag:'`
12139    (eval echo "\"\$as_me:12139: $lt_compile\"" >&5)
12140    (eval "$lt_compile" 2>conftest.err)
12141    ac_status=$?
12142    cat conftest.err >&5
12143    echo "$as_me:12143: \$? = $ac_status" >&5
12144    if (exit $ac_status) && test -s "$ac_outfile"; then
12145      # The compiler can only warn and ignore the option if not recognized
12146      # So say no if there are warnings other than the usual output.
12147      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12148      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12149      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12150        lt_prog_compiler_pic_works_CXX=yes
12151      fi
12152    fi
12153    $rm conftest*
12154
12155 fi
12156 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12157 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12158
12159 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12160     case $lt_prog_compiler_pic_CXX in
12161      "" | " "*) ;;
12162      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12163      esac
12164 else
12165     lt_prog_compiler_pic_CXX=
12166      lt_prog_compiler_can_build_shared_CXX=no
12167 fi
12168
12169 fi
12170 case $host_os in
12171   # For platforms which do not support PIC, -DPIC is meaningless:
12172   *djgpp*)
12173     lt_prog_compiler_pic_CXX=
12174     ;;
12175   *)
12176     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12177     ;;
12178 esac
12179
12180 #
12181 # Check to make sure the static flag actually works.
12182 #
12183 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12184 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12185 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12186 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   lt_prog_compiler_static_works_CXX=no
12190    save_LDFLAGS="$LDFLAGS"
12191    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12192    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12193    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12194      # The linker can only warn and ignore the option if not recognized
12195      # So say no if there are warnings
12196      if test -s conftest.err; then
12197        # Append any errors to the config.log.
12198        cat conftest.err 1>&5
12199        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12200        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12201        if diff conftest.exp conftest.er2 >/dev/null; then
12202          lt_prog_compiler_static_works_CXX=yes
12203        fi
12204      else
12205        lt_prog_compiler_static_works_CXX=yes
12206      fi
12207    fi
12208    $rm conftest*
12209    LDFLAGS="$save_LDFLAGS"
12210
12211 fi
12212 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12213 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12214
12215 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12216     :
12217 else
12218     lt_prog_compiler_static_CXX=
12219 fi
12220
12221
12222 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12223 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12224 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   lt_cv_prog_compiler_c_o_CXX=no
12228    $rm -r conftest 2>/dev/null
12229    mkdir conftest
12230    cd conftest
12231    mkdir out
12232    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12233
12234    lt_compiler_flag="-o out/conftest2.$ac_objext"
12235    # Insert the option either (1) after the last *FLAGS variable, or
12236    # (2) before a word containing "conftest.", or (3) at the end.
12237    # Note that $ac_compile itself does not contain backslashes and begins
12238    # with a dollar sign (not a hyphen), so the echo should work correctly.
12239    lt_compile=`echo "$ac_compile" | $SED \
12240    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12241    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12242    -e 's:$: $lt_compiler_flag:'`
12243    (eval echo "\"\$as_me:12243: $lt_compile\"" >&5)
12244    (eval "$lt_compile" 2>out/conftest.err)
12245    ac_status=$?
12246    cat out/conftest.err >&5
12247    echo "$as_me:12247: \$? = $ac_status" >&5
12248    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12249    then
12250      # The compiler can only warn and ignore the option if not recognized
12251      # So say no if there are warnings
12252      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12253      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12254      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12255        lt_cv_prog_compiler_c_o_CXX=yes
12256      fi
12257    fi
12258    chmod u+w . 2>&5
12259    $rm conftest*
12260    # SGI C++ compiler will create directory out/ii_files/ for
12261    # template instantiation
12262    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12263    $rm out/* && rmdir out
12264    cd ..
12265    rmdir conftest
12266    $rm conftest*
12267
12268 fi
12269 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12270 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12271
12272
12273 hard_links="nottested"
12274 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12275   # do not overwrite the value of need_locks provided by the user
12276   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12277 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12278   hard_links=yes
12279   $rm conftest*
12280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12281   touch conftest.a
12282   ln conftest.a conftest.b 2>&5 || hard_links=no
12283   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12284   { echo "$as_me:$LINENO: result: $hard_links" >&5
12285 echo "${ECHO_T}$hard_links" >&6; }
12286   if test "$hard_links" = no; then
12287     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12288 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12289     need_locks=warn
12290   fi
12291 else
12292   need_locks=no
12293 fi
12294
12295 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12296 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12297
12298   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12299   case $host_os in
12300   aix4* | aix5*)
12301     # If we're using GNU nm, then we don't want the "-C" option.
12302     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12303     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12304       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'
12305     else
12306       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'
12307     fi
12308     ;;
12309   pw32*)
12310     export_symbols_cmds_CXX="$ltdll_cmds"
12311   ;;
12312   cygwin* | mingw*)
12313     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'
12314   ;;
12315   *)
12316     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12317   ;;
12318   esac
12319
12320 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12321 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12322 test "$ld_shlibs_CXX" = no && can_build_shared=no
12323
12324 #
12325 # Do we need to explicitly link libc?
12326 #
12327 case "x$archive_cmds_need_lc_CXX" in
12328 x|xyes)
12329   # Assume -lc should be added
12330   archive_cmds_need_lc_CXX=yes
12331
12332   if test "$enable_shared" = yes && test "$GCC" = yes; then
12333     case $archive_cmds_CXX in
12334     *'~'*)
12335       # FIXME: we may have to deal with multi-command sequences.
12336       ;;
12337     '$CC '*)
12338       # Test whether the compiler implicitly links with -lc since on some
12339       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12340       # to ld, don't add -lc before -lgcc.
12341       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12342 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12343       $rm conftest*
12344       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12345
12346       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12347   (eval $ac_compile) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } 2>conftest.err; then
12351         soname=conftest
12352         lib=conftest
12353         libobjs=conftest.$ac_objext
12354         deplibs=
12355         wl=$lt_prog_compiler_wl_CXX
12356         pic_flag=$lt_prog_compiler_pic_CXX
12357         compiler_flags=-v
12358         linker_flags=-v
12359         verstring=
12360         output_objdir=.
12361         libname=conftest
12362         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12363         allow_undefined_flag_CXX=
12364         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12365   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }
12369         then
12370           archive_cmds_need_lc_CXX=no
12371         else
12372           archive_cmds_need_lc_CXX=yes
12373         fi
12374         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12375       else
12376         cat conftest.err 1>&5
12377       fi
12378       $rm conftest*
12379       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12380 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12381       ;;
12382     esac
12383   fi
12384   ;;
12385 esac
12386
12387 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12388 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12389 library_names_spec=
12390 libname_spec='lib$name'
12391 soname_spec=
12392 shrext_cmds=".so"
12393 postinstall_cmds=
12394 postuninstall_cmds=
12395 finish_cmds=
12396 finish_eval=
12397 shlibpath_var=
12398 shlibpath_overrides_runpath=unknown
12399 version_type=none
12400 dynamic_linker="$host_os ld.so"
12401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12402 if test "$GCC" = yes; then
12403   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12404   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12405     # if the path contains ";" then we assume it to be the separator
12406     # otherwise default to the standard path separator (i.e. ":") - it is
12407     # assumed that no part of a normal pathname contains ";" but that should
12408     # okay in the real world where ";" in dirpaths is itself problematic.
12409     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12410   else
12411     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12412   fi
12413 else
12414   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12415 fi
12416 need_lib_prefix=unknown
12417 hardcode_into_libs=no
12418
12419 # when you set need_version to no, make sure it does not cause -set_version
12420 # flags to be left without arguments
12421 need_version=unknown
12422
12423 case $host_os in
12424 aix3*)
12425   version_type=linux
12426   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12427   shlibpath_var=LIBPATH
12428
12429   # AIX 3 has no versioning support, so we append a major version to the name.
12430   soname_spec='${libname}${release}${shared_ext}$major'
12431   ;;
12432
12433 aix4* | aix5*)
12434   version_type=linux
12435   need_lib_prefix=no
12436   need_version=no
12437   hardcode_into_libs=yes
12438   if test "$host_cpu" = ia64; then
12439     # AIX 5 supports IA64
12440     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12441     shlibpath_var=LD_LIBRARY_PATH
12442   else
12443     # With GCC up to 2.95.x, collect2 would create an import file
12444     # for dependence libraries.  The import file would start with
12445     # the line `#! .'.  This would cause the generated library to
12446     # depend on `.', always an invalid library.  This was fixed in
12447     # development snapshots of GCC prior to 3.0.
12448     case $host_os in
12449       aix4 | aix4.[01] | aix4.[01].*)
12450       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12451            echo ' yes '
12452            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12453         :
12454       else
12455         can_build_shared=no
12456       fi
12457       ;;
12458     esac
12459     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12460     # soname into executable. Probably we can add versioning support to
12461     # collect2, so additional links can be useful in future.
12462     if test "$aix_use_runtimelinking" = yes; then
12463       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12464       # instead of lib<name>.a to let people know that these are not
12465       # typical AIX shared libraries.
12466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12467     else
12468       # We preserve .a as extension for shared libraries through AIX4.2
12469       # and later when we are not doing run time linking.
12470       library_names_spec='${libname}${release}.a $libname.a'
12471       soname_spec='${libname}${release}${shared_ext}$major'
12472     fi
12473     shlibpath_var=LIBPATH
12474   fi
12475   ;;
12476
12477 amigaos*)
12478   library_names_spec='$libname.ixlibrary $libname.a'
12479   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12480   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'
12481   ;;
12482
12483 beos*)
12484   library_names_spec='${libname}${shared_ext}'
12485   dynamic_linker="$host_os ld.so"
12486   shlibpath_var=LIBRARY_PATH
12487   ;;
12488
12489 bsdi[45]*)
12490   version_type=linux
12491   need_version=no
12492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12493   soname_spec='${libname}${release}${shared_ext}$major'
12494   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12495   shlibpath_var=LD_LIBRARY_PATH
12496   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12497   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12498   # the default ld.so.conf also contains /usr/contrib/lib and
12499   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12500   # libtool to hard-code these into programs
12501   ;;
12502
12503 cygwin* | mingw* | pw32*)
12504   version_type=windows
12505   shrext_cmds=".dll"
12506   need_version=no
12507   need_lib_prefix=no
12508
12509   case $GCC,$host_os in
12510   yes,cygwin* | yes,mingw* | yes,pw32*)
12511     library_names_spec='$libname.dll.a'
12512     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12513     postinstall_cmds='base_file=`basename \${file}`~
12514       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12515       dldir=$destdir/`dirname \$dlpath`~
12516       test -d \$dldir || mkdir -p \$dldir~
12517       $install_prog $dir/$dlname \$dldir/$dlname~
12518       chmod a+x \$dldir/$dlname'
12519     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12520       dlpath=$dir/\$dldll~
12521        $rm \$dlpath'
12522     shlibpath_overrides_runpath=yes
12523
12524     case $host_os in
12525     cygwin*)
12526       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12527       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12528       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12529       ;;
12530     mingw*)
12531       # MinGW DLLs use traditional 'lib' prefix
12532       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12533       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12534       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12535         # It is most probably a Windows format PATH printed by
12536         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12537         # path with ; separators, and with drive letters. We can handle the
12538         # drive letters (cygwin fileutils understands them), so leave them,
12539         # especially as we might pass files found there to a mingw objdump,
12540         # which wouldn't understand a cygwinified path. Ahh.
12541         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12542       else
12543         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12544       fi
12545       ;;
12546     pw32*)
12547       # pw32 DLLs use 'pw' prefix rather than 'lib'
12548       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12549       ;;
12550     esac
12551     ;;
12552
12553   *)
12554     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12555     ;;
12556   esac
12557   dynamic_linker='Win32 ld.exe'
12558   # FIXME: first we should search . and the directory the executable is in
12559   shlibpath_var=PATH
12560   ;;
12561
12562 darwin* | rhapsody*)
12563   dynamic_linker="$host_os dyld"
12564   version_type=darwin
12565   need_lib_prefix=no
12566   need_version=no
12567   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12568   soname_spec='${libname}${release}${major}$shared_ext'
12569   shlibpath_overrides_runpath=yes
12570   shlibpath_var=DYLD_LIBRARY_PATH
12571   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12572   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12573   if test "$GCC" = yes; then
12574     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"`
12575   else
12576     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12577   fi
12578   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12579   ;;
12580
12581 dgux*)
12582   version_type=linux
12583   need_lib_prefix=no
12584   need_version=no
12585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12586   soname_spec='${libname}${release}${shared_ext}$major'
12587   shlibpath_var=LD_LIBRARY_PATH
12588   ;;
12589
12590 freebsd1*)
12591   dynamic_linker=no
12592   ;;
12593
12594 kfreebsd*-gnu)
12595   version_type=linux
12596   need_lib_prefix=no
12597   need_version=no
12598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12599   soname_spec='${libname}${release}${shared_ext}$major'
12600   shlibpath_var=LD_LIBRARY_PATH
12601   shlibpath_overrides_runpath=no
12602   hardcode_into_libs=yes
12603   dynamic_linker='GNU ld.so'
12604   ;;
12605
12606 freebsd* | dragonfly*)
12607   # DragonFly does not have aout.  When/if they implement a new
12608   # versioning mechanism, adjust this.
12609   if test -x /usr/bin/objformat; then
12610     objformat=`/usr/bin/objformat`
12611   else
12612     case $host_os in
12613     freebsd[123]*) objformat=aout ;;
12614     *) objformat=elf ;;
12615     esac
12616   fi
12617   version_type=freebsd-$objformat
12618   case $version_type in
12619     freebsd-elf*)
12620       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12621       need_version=no
12622       need_lib_prefix=no
12623       ;;
12624     freebsd-*)
12625       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12626       need_version=yes
12627       ;;
12628   esac
12629   shlibpath_var=LD_LIBRARY_PATH
12630   case $host_os in
12631   freebsd2*)
12632     shlibpath_overrides_runpath=yes
12633     ;;
12634   freebsd3.[01]* | freebsdelf3.[01]*)
12635     shlibpath_overrides_runpath=yes
12636     hardcode_into_libs=yes
12637     ;;
12638   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12639   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12640     shlibpath_overrides_runpath=no
12641     hardcode_into_libs=yes
12642     ;;
12643   freebsd*) # from 4.6 on
12644     shlibpath_overrides_runpath=yes
12645     hardcode_into_libs=yes
12646     ;;
12647   esac
12648   ;;
12649
12650 gnu*)
12651   version_type=linux
12652   need_lib_prefix=no
12653   need_version=no
12654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12655   soname_spec='${libname}${release}${shared_ext}$major'
12656   shlibpath_var=LD_LIBRARY_PATH
12657   hardcode_into_libs=yes
12658   ;;
12659
12660 hpux9* | hpux10* | hpux11*)
12661   # Give a soname corresponding to the major version so that dld.sl refuses to
12662   # link against other versions.
12663   version_type=sunos
12664   need_lib_prefix=no
12665   need_version=no
12666   case $host_cpu in
12667   ia64*)
12668     shrext_cmds='.so'
12669     hardcode_into_libs=yes
12670     dynamic_linker="$host_os dld.so"
12671     shlibpath_var=LD_LIBRARY_PATH
12672     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12674     soname_spec='${libname}${release}${shared_ext}$major'
12675     if test "X$HPUX_IA64_MODE" = X32; then
12676       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12677     else
12678       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12679     fi
12680     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12681     ;;
12682    hppa*64*)
12683      shrext_cmds='.sl'
12684      hardcode_into_libs=yes
12685      dynamic_linker="$host_os dld.sl"
12686      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12687      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12688      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12689      soname_spec='${libname}${release}${shared_ext}$major'
12690      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12691      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12692      ;;
12693    *)
12694     shrext_cmds='.sl'
12695     dynamic_linker="$host_os dld.sl"
12696     shlibpath_var=SHLIB_PATH
12697     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12699     soname_spec='${libname}${release}${shared_ext}$major'
12700     ;;
12701   esac
12702   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12703   postinstall_cmds='chmod 555 $lib'
12704   ;;
12705
12706 interix3*)
12707   version_type=linux
12708   need_lib_prefix=no
12709   need_version=no
12710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12711   soname_spec='${libname}${release}${shared_ext}$major'
12712   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12713   shlibpath_var=LD_LIBRARY_PATH
12714   shlibpath_overrides_runpath=no
12715   hardcode_into_libs=yes
12716   ;;
12717
12718 irix5* | irix6* | nonstopux*)
12719   case $host_os in
12720     nonstopux*) version_type=nonstopux ;;
12721     *)
12722         if test "$lt_cv_prog_gnu_ld" = yes; then
12723                 version_type=linux
12724         else
12725                 version_type=irix
12726         fi ;;
12727   esac
12728   need_lib_prefix=no
12729   need_version=no
12730   soname_spec='${libname}${release}${shared_ext}$major'
12731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12732   case $host_os in
12733   irix5* | nonstopux*)
12734     libsuff= shlibsuff=
12735     ;;
12736   *)
12737     case $LD in # libtool.m4 will add one of these switches to LD
12738     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12739       libsuff= shlibsuff= libmagic=32-bit;;
12740     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12741       libsuff=32 shlibsuff=N32 libmagic=N32;;
12742     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12743       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12744     *) libsuff= shlibsuff= libmagic=never-match;;
12745     esac
12746     ;;
12747   esac
12748   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12749   shlibpath_overrides_runpath=no
12750   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12751   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12752   hardcode_into_libs=yes
12753   ;;
12754
12755 # No shared lib support for Linux oldld, aout, or coff.
12756 linux*oldld* | linux*aout* | linux*coff*)
12757   dynamic_linker=no
12758   ;;
12759
12760 # This must be Linux ELF.
12761 linux*)
12762   version_type=linux
12763   need_lib_prefix=no
12764   need_version=no
12765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12766   soname_spec='${libname}${release}${shared_ext}$major'
12767   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12768   shlibpath_var=LD_LIBRARY_PATH
12769   shlibpath_overrides_runpath=no
12770   # This implies no fast_install, which is unacceptable.
12771   # Some rework will be needed to allow for fast_install
12772   # before this can be enabled.
12773   hardcode_into_libs=yes
12774
12775   # find out which ABI we are using
12776   libsuff=
12777   case "$host_cpu" in
12778   x86_64*|s390x*|powerpc64*)
12779     echo '#line 12779 "configure"' > conftest.$ac_ext
12780     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781   (eval $ac_compile) 2>&5
12782   ac_status=$?
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); }; then
12785       case `/usr/bin/file conftest.$ac_objext` in
12786       *64-bit*)
12787         libsuff=64
12788         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12789         ;;
12790       esac
12791     fi
12792     rm -rf conftest*
12793     ;;
12794   esac
12795
12796   # Append ld.so.conf contents to the search path
12797   if test -f /etc/ld.so.conf; then
12798     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' ' '`
12799     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12800   fi
12801
12802   # We used to test for /lib/ld.so.1 and disable shared libraries on
12803   # powerpc, because MkLinux only supported shared libraries with the
12804   # GNU dynamic linker.  Since this was broken with cross compilers,
12805   # most powerpc-linux boxes support dynamic linking these days and
12806   # people can always --disable-shared, the test was removed, and we
12807   # assume the GNU/Linux dynamic linker is in use.
12808   dynamic_linker='GNU/Linux ld.so'
12809   ;;
12810
12811 knetbsd*-gnu)
12812   version_type=linux
12813   need_lib_prefix=no
12814   need_version=no
12815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12816   soname_spec='${libname}${release}${shared_ext}$major'
12817   shlibpath_var=LD_LIBRARY_PATH
12818   shlibpath_overrides_runpath=no
12819   hardcode_into_libs=yes
12820   dynamic_linker='GNU ld.so'
12821   ;;
12822
12823 netbsd*)
12824   version_type=sunos
12825   need_lib_prefix=no
12826   need_version=no
12827   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12828     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12829     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12830     dynamic_linker='NetBSD (a.out) ld.so'
12831   else
12832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12833     soname_spec='${libname}${release}${shared_ext}$major'
12834     dynamic_linker='NetBSD ld.elf_so'
12835   fi
12836   shlibpath_var=LD_LIBRARY_PATH
12837   shlibpath_overrides_runpath=yes
12838   hardcode_into_libs=yes
12839   ;;
12840
12841 newsos6)
12842   version_type=linux
12843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844   shlibpath_var=LD_LIBRARY_PATH
12845   shlibpath_overrides_runpath=yes
12846   ;;
12847
12848 nto-qnx*)
12849   version_type=linux
12850   need_lib_prefix=no
12851   need_version=no
12852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853   soname_spec='${libname}${release}${shared_ext}$major'
12854   shlibpath_var=LD_LIBRARY_PATH
12855   shlibpath_overrides_runpath=yes
12856   ;;
12857
12858 openbsd*)
12859   version_type=sunos
12860   sys_lib_dlsearch_path_spec="/usr/lib"
12861   need_lib_prefix=no
12862   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12863   case $host_os in
12864     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12865     *)                         need_version=no  ;;
12866   esac
12867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12868   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12869   shlibpath_var=LD_LIBRARY_PATH
12870   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12871     case $host_os in
12872       openbsd2.[89] | openbsd2.[89].*)
12873         shlibpath_overrides_runpath=no
12874         ;;
12875       *)
12876         shlibpath_overrides_runpath=yes
12877         ;;
12878       esac
12879   else
12880     shlibpath_overrides_runpath=yes
12881   fi
12882   ;;
12883
12884 os2*)
12885   libname_spec='$name'
12886   shrext_cmds=".dll"
12887   need_lib_prefix=no
12888   library_names_spec='$libname${shared_ext} $libname.a'
12889   dynamic_linker='OS/2 ld.exe'
12890   shlibpath_var=LIBPATH
12891   ;;
12892
12893 osf3* | osf4* | osf5*)
12894   version_type=osf
12895   need_lib_prefix=no
12896   need_version=no
12897   soname_spec='${libname}${release}${shared_ext}$major'
12898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899   shlibpath_var=LD_LIBRARY_PATH
12900   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12901   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12902   ;;
12903
12904 solaris*)
12905   version_type=linux
12906   need_lib_prefix=no
12907   need_version=no
12908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909   soname_spec='${libname}${release}${shared_ext}$major'
12910   shlibpath_var=LD_LIBRARY_PATH
12911   shlibpath_overrides_runpath=yes
12912   hardcode_into_libs=yes
12913   # ldd complains unless libraries are executable
12914   postinstall_cmds='chmod +x $lib'
12915   ;;
12916
12917 sunos4*)
12918   version_type=sunos
12919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12920   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12921   shlibpath_var=LD_LIBRARY_PATH
12922   shlibpath_overrides_runpath=yes
12923   if test "$with_gnu_ld" = yes; then
12924     need_lib_prefix=no
12925   fi
12926   need_version=yes
12927   ;;
12928
12929 sysv4 | sysv4.3*)
12930   version_type=linux
12931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932   soname_spec='${libname}${release}${shared_ext}$major'
12933   shlibpath_var=LD_LIBRARY_PATH
12934   case $host_vendor in
12935     sni)
12936       shlibpath_overrides_runpath=no
12937       need_lib_prefix=no
12938       export_dynamic_flag_spec='${wl}-Blargedynsym'
12939       runpath_var=LD_RUN_PATH
12940       ;;
12941     siemens)
12942       need_lib_prefix=no
12943       ;;
12944     motorola)
12945       need_lib_prefix=no
12946       need_version=no
12947       shlibpath_overrides_runpath=no
12948       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12949       ;;
12950   esac
12951   ;;
12952
12953 sysv4*MP*)
12954   if test -d /usr/nec ;then
12955     version_type=linux
12956     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12957     soname_spec='$libname${shared_ext}.$major'
12958     shlibpath_var=LD_LIBRARY_PATH
12959   fi
12960   ;;
12961
12962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12963   version_type=freebsd-elf
12964   need_lib_prefix=no
12965   need_version=no
12966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12967   soname_spec='${libname}${release}${shared_ext}$major'
12968   shlibpath_var=LD_LIBRARY_PATH
12969   hardcode_into_libs=yes
12970   if test "$with_gnu_ld" = yes; then
12971     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12972     shlibpath_overrides_runpath=no
12973   else
12974     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12975     shlibpath_overrides_runpath=yes
12976     case $host_os in
12977       sco3.2v5*)
12978         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12979         ;;
12980     esac
12981   fi
12982   sys_lib_dlsearch_path_spec='/usr/lib'
12983   ;;
12984
12985 uts4*)
12986   version_type=linux
12987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988   soname_spec='${libname}${release}${shared_ext}$major'
12989   shlibpath_var=LD_LIBRARY_PATH
12990   ;;
12991
12992 *)
12993   dynamic_linker=no
12994   ;;
12995 esac
12996 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12997 echo "${ECHO_T}$dynamic_linker" >&6; }
12998 test "$dynamic_linker" = no && can_build_shared=no
12999
13000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13001 if test "$GCC" = yes; then
13002   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13003 fi
13004
13005 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13006 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13007 hardcode_action_CXX=
13008 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13009    test -n "$runpath_var_CXX" || \
13010    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13011
13012   # We can hardcode non-existant directories.
13013   if test "$hardcode_direct_CXX" != no &&
13014      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13015      # have to relink, otherwise we might link with an installed library
13016      # when we should be linking with a yet-to-be-installed one
13017      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13018      test "$hardcode_minus_L_CXX" != no; then
13019     # Linking always hardcodes the temporary library directory.
13020     hardcode_action_CXX=relink
13021   else
13022     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13023     hardcode_action_CXX=immediate
13024   fi
13025 else
13026   # We cannot hardcode anything, or else we can only hardcode existing
13027   # directories.
13028   hardcode_action_CXX=unsupported
13029 fi
13030 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13031 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13032
13033 if test "$hardcode_action_CXX" = relink; then
13034   # Fast installation is not supported
13035   enable_fast_install=no
13036 elif test "$shlibpath_overrides_runpath" = yes ||
13037      test "$enable_shared" = no; then
13038   # Fast installation is not necessary
13039   enable_fast_install=needless
13040 fi
13041
13042
13043 # The else clause should only fire when bootstrapping the
13044 # libtool distribution, otherwise you forgot to ship ltmain.sh
13045 # with your package, and you will get complaints that there are
13046 # no rules to generate ltmain.sh.
13047 if test -f "$ltmain"; then
13048   # See if we are running on zsh, and set the options which allow our commands through
13049   # without removal of \ escapes.
13050   if test -n "${ZSH_VERSION+set}" ; then
13051     setopt NO_GLOB_SUBST
13052   fi
13053   # Now quote all the things that may contain metacharacters while being
13054   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13055   # variables and quote the copies for generation of the libtool script.
13056   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13057     SED SHELL STRIP \
13058     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13059     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13060     deplibs_check_method reload_flag reload_cmds need_locks \
13061     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13062     lt_cv_sys_global_symbol_to_c_name_address \
13063     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13064     old_postinstall_cmds old_postuninstall_cmds \
13065     compiler_CXX \
13066     CC_CXX \
13067     LD_CXX \
13068     lt_prog_compiler_wl_CXX \
13069     lt_prog_compiler_pic_CXX \
13070     lt_prog_compiler_static_CXX \
13071     lt_prog_compiler_no_builtin_flag_CXX \
13072     export_dynamic_flag_spec_CXX \
13073     thread_safe_flag_spec_CXX \
13074     whole_archive_flag_spec_CXX \
13075     enable_shared_with_static_runtimes_CXX \
13076     old_archive_cmds_CXX \
13077     old_archive_from_new_cmds_CXX \
13078     predep_objects_CXX \
13079     postdep_objects_CXX \
13080     predeps_CXX \
13081     postdeps_CXX \
13082     compiler_lib_search_path_CXX \
13083     archive_cmds_CXX \
13084     archive_expsym_cmds_CXX \
13085     postinstall_cmds_CXX \
13086     postuninstall_cmds_CXX \
13087     old_archive_from_expsyms_cmds_CXX \
13088     allow_undefined_flag_CXX \
13089     no_undefined_flag_CXX \
13090     export_symbols_cmds_CXX \
13091     hardcode_libdir_flag_spec_CXX \
13092     hardcode_libdir_flag_spec_ld_CXX \
13093     hardcode_libdir_separator_CXX \
13094     hardcode_automatic_CXX \
13095     module_cmds_CXX \
13096     module_expsym_cmds_CXX \
13097     lt_cv_prog_compiler_c_o_CXX \
13098     exclude_expsyms_CXX \
13099     include_expsyms_CXX; do
13100
13101     case $var in
13102     old_archive_cmds_CXX | \
13103     old_archive_from_new_cmds_CXX | \
13104     archive_cmds_CXX | \
13105     archive_expsym_cmds_CXX | \
13106     module_cmds_CXX | \
13107     module_expsym_cmds_CXX | \
13108     old_archive_from_expsyms_cmds_CXX | \
13109     export_symbols_cmds_CXX | \
13110     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13111     postinstall_cmds | postuninstall_cmds | \
13112     old_postinstall_cmds | old_postuninstall_cmds | \
13113     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13114       # Double-quote double-evaled strings.
13115       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13116       ;;
13117     *)
13118       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13119       ;;
13120     esac
13121   done
13122
13123   case $lt_echo in
13124   *'\$0 --fallback-echo"')
13125     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13126     ;;
13127   esac
13128
13129 cfgfile="$ofile"
13130
13131   cat <<__EOF__ >> "$cfgfile"
13132 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13133
13134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13135
13136 # Shell to use when invoking shell scripts.
13137 SHELL=$lt_SHELL
13138
13139 # Whether or not to build shared libraries.
13140 build_libtool_libs=$enable_shared
13141
13142 # Whether or not to build static libraries.
13143 build_old_libs=$enable_static
13144
13145 # Whether or not to add -lc for building shared libraries.
13146 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13147
13148 # Whether or not to disallow shared libs when runtime libs are static
13149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13150
13151 # Whether or not to optimize for fast installation.
13152 fast_install=$enable_fast_install
13153
13154 # The host system.
13155 host_alias=$host_alias
13156 host=$host
13157 host_os=$host_os
13158
13159 # The build system.
13160 build_alias=$build_alias
13161 build=$build
13162 build_os=$build_os
13163
13164 # An echo program that does not interpret backslashes.
13165 echo=$lt_echo
13166
13167 # The archiver.
13168 AR=$lt_AR
13169 AR_FLAGS=$lt_AR_FLAGS
13170
13171 # A C compiler.
13172 LTCC=$lt_LTCC
13173
13174 # LTCC compiler flags.
13175 LTCFLAGS=$lt_LTCFLAGS
13176
13177 # A language-specific compiler.
13178 CC=$lt_compiler_CXX
13179
13180 # Is the compiler the GNU C compiler?
13181 with_gcc=$GCC_CXX
13182
13183 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13184 gcc_ver=\`gcc -dumpversion\`
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=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13320
13321 # Dependencies to place after the objects being linked to create a
13322 # shared library.
13323 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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*)
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*)
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       else
14197         ld_shlibs_F77=no
14198       fi
14199       ;;
14200
14201     netbsd*)
14202       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14203         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14204         wlarc=
14205       else
14206         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14208       fi
14209       ;;
14210
14211     solaris*)
14212       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14213         ld_shlibs_F77=no
14214         cat <<EOF 1>&2
14215
14216 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14217 *** create shared libraries on Solaris systems.  Therefore, libtool
14218 *** is disabling shared libraries support.  We urge you to upgrade GNU
14219 *** binutils to release 2.9.1 or newer.  Another option is to modify
14220 *** your PATH or compiler configuration so that the native linker is
14221 *** used, and then restart.
14222
14223 EOF
14224       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14225         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14227       else
14228         ld_shlibs_F77=no
14229       fi
14230       ;;
14231
14232     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14233       case `$LD -v 2>&1` in
14234         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14235         ld_shlibs_F77=no
14236         cat <<_LT_EOF 1>&2
14237
14238 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14239 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14240 *** is disabling shared libraries support.  We urge you to upgrade GNU
14241 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14242 *** your PATH or compiler configuration so that the native linker is
14243 *** used, and then restart.
14244
14245 _LT_EOF
14246         ;;
14247         *)
14248           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14250             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14251             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14252           else
14253             ld_shlibs_F77=no
14254           fi
14255         ;;
14256       esac
14257       ;;
14258
14259     sunos4*)
14260       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14261       wlarc=
14262       hardcode_direct_F77=yes
14263       hardcode_shlibpath_var_F77=no
14264       ;;
14265
14266     *)
14267       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14268         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14269         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14270       else
14271         ld_shlibs_F77=no
14272       fi
14273       ;;
14274     esac
14275
14276     if test "$ld_shlibs_F77" = no; then
14277       runpath_var=
14278       hardcode_libdir_flag_spec_F77=
14279       export_dynamic_flag_spec_F77=
14280       whole_archive_flag_spec_F77=
14281     fi
14282   else
14283     # PORTME fill in a description of your system's linker (not GNU ld)
14284     case $host_os in
14285     aix3*)
14286       allow_undefined_flag_F77=unsupported
14287       always_export_symbols_F77=yes
14288       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'
14289       # Note: this linker hardcodes the directories in LIBPATH if there
14290       # are no directories specified by -L.
14291       hardcode_minus_L_F77=yes
14292       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14293         # Neither direct hardcoding nor static linking is supported with a
14294         # broken collect2.
14295         hardcode_direct_F77=unsupported
14296       fi
14297       ;;
14298
14299     aix4* | aix5*)
14300       if test "$host_cpu" = ia64; then
14301         # On IA64, the linker does run time linking by default, so we don't
14302         # have to do anything special.
14303         aix_use_runtimelinking=no
14304         exp_sym_flag='-Bexport'
14305         no_entry_flag=""
14306       else
14307         # If we're using GNU nm, then we don't want the "-C" option.
14308         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14309         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14310           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'
14311         else
14312           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'
14313         fi
14314         aix_use_runtimelinking=no
14315
14316         # Test if we are trying to use run time linking or normal
14317         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14318         # need to do runtime linking.
14319         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14320           for ld_flag in $LDFLAGS; do
14321           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14322             aix_use_runtimelinking=yes
14323             break
14324           fi
14325           done
14326           ;;
14327         esac
14328
14329         exp_sym_flag='-bexport'
14330         no_entry_flag='-bnoentry'
14331       fi
14332
14333       # When large executables or shared objects are built, AIX ld can
14334       # have problems creating the table of contents.  If linking a library
14335       # or program results in "error TOC overflow" add -mminimal-toc to
14336       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14337       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14338
14339       archive_cmds_F77=''
14340       hardcode_direct_F77=yes
14341       hardcode_libdir_separator_F77=':'
14342       link_all_deplibs_F77=yes
14343
14344       if test "$GCC" = yes; then
14345         case $host_os in aix4.[012]|aix4.[012].*)
14346         # We only want to do this on AIX 4.2 and lower, the check
14347         # below for broken collect2 doesn't work under 4.3+
14348           collect2name=`${CC} -print-prog-name=collect2`
14349           if test -f "$collect2name" && \
14350            strings "$collect2name" | grep resolve_lib_name >/dev/null
14351           then
14352           # We have reworked collect2
14353           hardcode_direct_F77=yes
14354           else
14355           # We have old collect2
14356           hardcode_direct_F77=unsupported
14357           # It fails to find uninstalled libraries when the uninstalled
14358           # path is not listed in the libpath.  Setting hardcode_minus_L
14359           # to unsupported forces relinking
14360           hardcode_minus_L_F77=yes
14361           hardcode_libdir_flag_spec_F77='-L$libdir'
14362           hardcode_libdir_separator_F77=
14363           fi
14364           ;;
14365         esac
14366         shared_flag='-shared'
14367         if test "$aix_use_runtimelinking" = yes; then
14368           shared_flag="$shared_flag "'${wl}-G'
14369         fi
14370       else
14371         # not using gcc
14372         if test "$host_cpu" = ia64; then
14373         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14374         # chokes on -Wl,-G. The following line is correct:
14375           shared_flag='-G'
14376         else
14377           if test "$aix_use_runtimelinking" = yes; then
14378             shared_flag='${wl}-G'
14379           else
14380             shared_flag='${wl}-bM:SRE'
14381           fi
14382         fi
14383       fi
14384
14385       # It seems that -bexpall does not export symbols beginning with
14386       # underscore (_), so it is better to generate a list of symbols to export.
14387       always_export_symbols_F77=yes
14388       if test "$aix_use_runtimelinking" = yes; then
14389         # Warning - without using the other runtime loading flags (-brtl),
14390         # -berok will link without error, but may produce a broken library.
14391         allow_undefined_flag_F77='-berok'
14392        # Determine the default libpath from the value encoded in an empty executable.
14393        cat >conftest.$ac_ext <<_ACEOF
14394       program main
14395
14396       end
14397 _ACEOF
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (ac_try="$ac_link"
14400 case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_link") 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } && {
14412          test -z "$ac_f77_werror_flag" ||
14413          test ! -s conftest.err
14414        } && test -s conftest$ac_exeext &&
14415        $as_test_x conftest$ac_exeext; then
14416
14417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14418 }'`
14419 # Check for a 64-bit object if we didn't find anything.
14420 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; }
14421 }'`; fi
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426
14427 fi
14428
14429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14430       conftest$ac_exeext conftest.$ac_ext
14431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14432
14433        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14434         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"
14435        else
14436         if test "$host_cpu" = ia64; then
14437           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14438           allow_undefined_flag_F77="-z nodefs"
14439           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"
14440         else
14441          # Determine the default libpath from the value encoded in an empty executable.
14442          cat >conftest.$ac_ext <<_ACEOF
14443       program main
14444
14445       end
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (ac_try="$ac_link"
14449 case "(($ac_try" in
14450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451   *) ac_try_echo=$ac_try;;
14452 esac
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454   (eval "$ac_link") 2>conftest.er1
14455   ac_status=$?
14456   grep -v '^ *+' conftest.er1 >conftest.err
14457   rm -f conftest.er1
14458   cat conftest.err >&5
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } && {
14461          test -z "$ac_f77_werror_flag" ||
14462          test ! -s conftest.err
14463        } && test -s conftest$ac_exeext &&
14464        $as_test_x conftest$ac_exeext; then
14465
14466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14467 }'`
14468 # Check for a 64-bit object if we didn't find anything.
14469 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; }
14470 }'`; fi
14471 else
14472   echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475
14476 fi
14477
14478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14479       conftest$ac_exeext conftest.$ac_ext
14480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14481
14482          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14483           # Warning - without using the other run time loading flags,
14484           # -berok will link without error, but may produce a broken library.
14485           no_undefined_flag_F77=' ${wl}-bernotok'
14486           allow_undefined_flag_F77=' ${wl}-berok'
14487           # Exported symbols can be pulled into shared objects from archives
14488           whole_archive_flag_spec_F77='$convenience'
14489           archive_cmds_need_lc_F77=yes
14490           # This is similar to how AIX traditionally builds its shared libraries.
14491           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'
14492         fi
14493       fi
14494       ;;
14495
14496     amigaos*)
14497       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)'
14498       hardcode_libdir_flag_spec_F77='-L$libdir'
14499       hardcode_minus_L_F77=yes
14500       # see comment about different semantics on the GNU ld section
14501       ld_shlibs_F77=no
14502       ;;
14503
14504     bsdi[45]*)
14505       export_dynamic_flag_spec_F77=-rdynamic
14506       ;;
14507
14508     cygwin* | mingw* | pw32*)
14509       # When not using gcc, we currently assume that we are using
14510       # Microsoft Visual C++.
14511       # hardcode_libdir_flag_spec is actually meaningless, as there is
14512       # no search path for DLLs.
14513       hardcode_libdir_flag_spec_F77=' '
14514       allow_undefined_flag_F77=unsupported
14515       # Tell ltmain to make .lib files, not .a files.
14516       libext=lib
14517       # Tell ltmain to make .dll files, not .so files.
14518       shrext_cmds=".dll"
14519       # FIXME: Setting linknames here is a bad hack.
14520       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14521       # The linker will automatically build a .lib file if we build a DLL.
14522       old_archive_From_new_cmds_F77='true'
14523       # FIXME: Should let the user specify the lib program.
14524       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14525       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14526       enable_shared_with_static_runtimes_F77=yes
14527       ;;
14528
14529     darwin* | rhapsody*)
14530       case $host_os in
14531         rhapsody* | darwin1.[012])
14532          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14533          ;;
14534        *) # Darwin 1.3 on
14535          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14536            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14537          else
14538            case ${MACOSX_DEPLOYMENT_TARGET} in
14539              10.[012])
14540                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14541                ;;
14542              10.*)
14543                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14544                ;;
14545            esac
14546          fi
14547          ;;
14548       esac
14549       archive_cmds_need_lc_F77=no
14550       hardcode_direct_F77=no
14551       hardcode_automatic_F77=yes
14552       hardcode_shlibpath_var_F77=unsupported
14553       whole_archive_flag_spec_F77=''
14554       link_all_deplibs_F77=yes
14555     if test "$GCC" = yes ; then
14556         output_verbose_link_cmd='echo'
14557         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14558       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14559       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14560       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}'
14561       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}'
14562     else
14563       case $cc_basename in
14564         xlc*)
14565          output_verbose_link_cmd='echo'
14566          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14567          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14568           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14569          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}'
14570           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}'
14571           ;;
14572        *)
14573          ld_shlibs_F77=no
14574           ;;
14575       esac
14576     fi
14577       ;;
14578
14579     dgux*)
14580       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581       hardcode_libdir_flag_spec_F77='-L$libdir'
14582       hardcode_shlibpath_var_F77=no
14583       ;;
14584
14585     freebsd1*)
14586       ld_shlibs_F77=no
14587       ;;
14588
14589     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14590     # support.  Future versions do this automatically, but an explicit c++rt0.o
14591     # does not break anything, and helps significantly (at the cost of a little
14592     # extra space).
14593     freebsd2.2*)
14594       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14595       hardcode_libdir_flag_spec_F77='-R$libdir'
14596       hardcode_direct_F77=yes
14597       hardcode_shlibpath_var_F77=no
14598       ;;
14599
14600     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14601     freebsd2*)
14602       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14603       hardcode_direct_F77=yes
14604       hardcode_minus_L_F77=yes
14605       hardcode_shlibpath_var_F77=no
14606       ;;
14607
14608     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14609     freebsd* | kfreebsd*-gnu | dragonfly*)
14610       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14611       hardcode_libdir_flag_spec_F77='-R$libdir'
14612       hardcode_direct_F77=yes
14613       hardcode_shlibpath_var_F77=no
14614       ;;
14615
14616     hpux9*)
14617       if test "$GCC" = yes; then
14618         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'
14619       else
14620         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'
14621       fi
14622       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14623       hardcode_libdir_separator_F77=:
14624       hardcode_direct_F77=yes
14625
14626       # hardcode_minus_L: Not really in the search PATH,
14627       # but as the default location of the library.
14628       hardcode_minus_L_F77=yes
14629       export_dynamic_flag_spec_F77='${wl}-E'
14630       ;;
14631
14632     hpux10*)
14633       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14634         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14635       else
14636         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14637       fi
14638       if test "$with_gnu_ld" = no; then
14639         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14640         hardcode_libdir_separator_F77=:
14641
14642         hardcode_direct_F77=yes
14643         export_dynamic_flag_spec_F77='${wl}-E'
14644
14645         # hardcode_minus_L: Not really in the search PATH,
14646         # but as the default location of the library.
14647         hardcode_minus_L_F77=yes
14648       fi
14649       ;;
14650
14651     hpux11*)
14652       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14653         case $host_cpu in
14654         hppa*64*)
14655           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14656           ;;
14657         ia64*)
14658           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14659           ;;
14660         *)
14661           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14662           ;;
14663         esac
14664       else
14665         case $host_cpu in
14666         hppa*64*)
14667           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14668           ;;
14669         ia64*)
14670           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14671           ;;
14672         *)
14673           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14674           ;;
14675         esac
14676       fi
14677       if test "$with_gnu_ld" = no; then
14678         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14679         hardcode_libdir_separator_F77=:
14680
14681         case $host_cpu in
14682         hppa*64*|ia64*)
14683           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14684           hardcode_direct_F77=no
14685           hardcode_shlibpath_var_F77=no
14686           ;;
14687         *)
14688           hardcode_direct_F77=yes
14689           export_dynamic_flag_spec_F77='${wl}-E'
14690
14691           # hardcode_minus_L: Not really in the search PATH,
14692           # but as the default location of the library.
14693           hardcode_minus_L_F77=yes
14694           ;;
14695         esac
14696       fi
14697       ;;
14698
14699     irix5* | irix6* | nonstopux*)
14700       if test "$GCC" = yes; then
14701         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'
14702       else
14703         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'
14704         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14705       fi
14706       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14707       hardcode_libdir_separator_F77=:
14708       link_all_deplibs_F77=yes
14709       ;;
14710
14711     netbsd*)
14712       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14713         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14714       else
14715         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14716       fi
14717       hardcode_libdir_flag_spec_F77='-R$libdir'
14718       hardcode_direct_F77=yes
14719       hardcode_shlibpath_var_F77=no
14720       ;;
14721
14722     newsos6)
14723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14724       hardcode_direct_F77=yes
14725       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14726       hardcode_libdir_separator_F77=:
14727       hardcode_shlibpath_var_F77=no
14728       ;;
14729
14730     openbsd*)
14731       hardcode_direct_F77=yes
14732       hardcode_shlibpath_var_F77=no
14733       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14734         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14735         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14736         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14737         export_dynamic_flag_spec_F77='${wl}-E'
14738       else
14739        case $host_os in
14740          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14741            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14742            hardcode_libdir_flag_spec_F77='-R$libdir'
14743            ;;
14744          *)
14745            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14746            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14747            ;;
14748        esac
14749       fi
14750       ;;
14751
14752     os2*)
14753       hardcode_libdir_flag_spec_F77='-L$libdir'
14754       hardcode_minus_L_F77=yes
14755       allow_undefined_flag_F77=unsupported
14756       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'
14757       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14758       ;;
14759
14760     osf3*)
14761       if test "$GCC" = yes; then
14762         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14763         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'
14764       else
14765         allow_undefined_flag_F77=' -expect_unresolved \*'
14766         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'
14767       fi
14768       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14769       hardcode_libdir_separator_F77=:
14770       ;;
14771
14772     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14773       if test "$GCC" = yes; then
14774         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14775         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'
14776         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14777       else
14778         allow_undefined_flag_F77=' -expect_unresolved \*'
14779         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'
14780         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~
14781         $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'
14782
14783         # Both c and cxx compiler support -rpath directly
14784         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14785       fi
14786       hardcode_libdir_separator_F77=:
14787       ;;
14788
14789     solaris*)
14790       no_undefined_flag_F77=' -z text'
14791       if test "$GCC" = yes; then
14792         wlarc='${wl}'
14793         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14794         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14795           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14796       else
14797         wlarc=''
14798         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14799         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14800         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14801       fi
14802       hardcode_libdir_flag_spec_F77='-R$libdir'
14803       hardcode_shlibpath_var_F77=no
14804       case $host_os in
14805       solaris2.[0-5] | solaris2.[0-5].*) ;;
14806       *)
14807         # The compiler driver will combine linker options so we
14808         # cannot just pass the convience library names through
14809         # without $wl, iff we do not link with $LD.
14810         # Luckily, gcc supports the same syntax we need for Sun Studio.
14811         # Supported since Solaris 2.6 (maybe 2.5.1?)
14812         case $wlarc in
14813         '')
14814           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14815         *)
14816           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' ;;
14817         esac ;;
14818       esac
14819       link_all_deplibs_F77=yes
14820       ;;
14821
14822     sunos4*)
14823       if test "x$host_vendor" = xsequent; then
14824         # Use $CC to link under sequent, because it throws in some extra .o
14825         # files that make .init and .fini sections work.
14826         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14827       else
14828         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14829       fi
14830       hardcode_libdir_flag_spec_F77='-L$libdir'
14831       hardcode_direct_F77=yes
14832       hardcode_minus_L_F77=yes
14833       hardcode_shlibpath_var_F77=no
14834       ;;
14835
14836     sysv4)
14837       case $host_vendor in
14838         sni)
14839           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14840           hardcode_direct_F77=yes # is this really true???
14841         ;;
14842         siemens)
14843           ## LD is ld it makes a PLAMLIB
14844           ## CC just makes a GrossModule.
14845           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14846           reload_cmds_F77='$CC -r -o $output$reload_objs'
14847           hardcode_direct_F77=no
14848         ;;
14849         motorola)
14850           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14851           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14852         ;;
14853       esac
14854       runpath_var='LD_RUN_PATH'
14855       hardcode_shlibpath_var_F77=no
14856       ;;
14857
14858     sysv4.3*)
14859       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860       hardcode_shlibpath_var_F77=no
14861       export_dynamic_flag_spec_F77='-Bexport'
14862       ;;
14863
14864     sysv4*MP*)
14865       if test -d /usr/nec; then
14866         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14867         hardcode_shlibpath_var_F77=no
14868         runpath_var=LD_RUN_PATH
14869         hardcode_runpath_var=yes
14870         ld_shlibs_F77=yes
14871       fi
14872       ;;
14873
14874     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14875       no_undefined_flag_F77='${wl}-z,text'
14876       archive_cmds_need_lc_F77=no
14877       hardcode_shlibpath_var_F77=no
14878       runpath_var='LD_RUN_PATH'
14879
14880       if test "$GCC" = yes; then
14881         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14882         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14883       else
14884         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14885         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14886       fi
14887       ;;
14888
14889     sysv5* | sco3.2v5* | sco5v6*)
14890       # Note: We can NOT use -z defs as we might desire, because we do not
14891       # link with -lc, and that would cause any symbols used from libc to
14892       # always be unresolved, which means just about no library would
14893       # ever link correctly.  If we're not using GNU ld we use -z text
14894       # though, which does catch some bad symbols but isn't as heavy-handed
14895       # as -z defs.
14896       no_undefined_flag_F77='${wl}-z,text'
14897       allow_undefined_flag_F77='${wl}-z,nodefs'
14898       archive_cmds_need_lc_F77=no
14899       hardcode_shlibpath_var_F77=no
14900       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14901       hardcode_libdir_separator_F77=':'
14902       link_all_deplibs_F77=yes
14903       export_dynamic_flag_spec_F77='${wl}-Bexport'
14904       runpath_var='LD_RUN_PATH'
14905
14906       if test "$GCC" = yes; then
14907         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14908         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14909       else
14910         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14911         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14912       fi
14913       ;;
14914
14915     uts4*)
14916       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14917       hardcode_libdir_flag_spec_F77='-L$libdir'
14918       hardcode_shlibpath_var_F77=no
14919       ;;
14920
14921     *)
14922       ld_shlibs_F77=no
14923       ;;
14924     esac
14925   fi
14926
14927 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14928 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14929 test "$ld_shlibs_F77" = no && can_build_shared=no
14930
14931 #
14932 # Do we need to explicitly link libc?
14933 #
14934 case "x$archive_cmds_need_lc_F77" in
14935 x|xyes)
14936   # Assume -lc should be added
14937   archive_cmds_need_lc_F77=yes
14938
14939   if test "$enable_shared" = yes && test "$GCC" = yes; then
14940     case $archive_cmds_F77 in
14941     *'~'*)
14942       # FIXME: we may have to deal with multi-command sequences.
14943       ;;
14944     '$CC '*)
14945       # Test whether the compiler implicitly links with -lc since on some
14946       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14947       # to ld, don't add -lc before -lgcc.
14948       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14949 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14950       $rm conftest*
14951       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14952
14953       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14954   (eval $ac_compile) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } 2>conftest.err; then
14958         soname=conftest
14959         lib=conftest
14960         libobjs=conftest.$ac_objext
14961         deplibs=
14962         wl=$lt_prog_compiler_wl_F77
14963         pic_flag=$lt_prog_compiler_pic_F77
14964         compiler_flags=-v
14965         linker_flags=-v
14966         verstring=
14967         output_objdir=.
14968         libname=conftest
14969         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14970         allow_undefined_flag_F77=
14971         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14972   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }
14976         then
14977           archive_cmds_need_lc_F77=no
14978         else
14979           archive_cmds_need_lc_F77=yes
14980         fi
14981         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14982       else
14983         cat conftest.err 1>&5
14984       fi
14985       $rm conftest*
14986       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14987 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14988       ;;
14989     esac
14990   fi
14991   ;;
14992 esac
14993
14994 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14995 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14996 library_names_spec=
14997 libname_spec='lib$name'
14998 soname_spec=
14999 shrext_cmds=".so"
15000 postinstall_cmds=
15001 postuninstall_cmds=
15002 finish_cmds=
15003 finish_eval=
15004 shlibpath_var=
15005 shlibpath_overrides_runpath=unknown
15006 version_type=none
15007 dynamic_linker="$host_os ld.so"
15008 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15009 if test "$GCC" = yes; then
15010   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15011   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15012     # if the path contains ";" then we assume it to be the separator
15013     # otherwise default to the standard path separator (i.e. ":") - it is
15014     # assumed that no part of a normal pathname contains ";" but that should
15015     # okay in the real world where ";" in dirpaths is itself problematic.
15016     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15017   else
15018     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15019   fi
15020 else
15021   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15022 fi
15023 need_lib_prefix=unknown
15024 hardcode_into_libs=no
15025
15026 # when you set need_version to no, make sure it does not cause -set_version
15027 # flags to be left without arguments
15028 need_version=unknown
15029
15030 case $host_os in
15031 aix3*)
15032   version_type=linux
15033   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15034   shlibpath_var=LIBPATH
15035
15036   # AIX 3 has no versioning support, so we append a major version to the name.
15037   soname_spec='${libname}${release}${shared_ext}$major'
15038   ;;
15039
15040 aix4* | aix5*)
15041   version_type=linux
15042   need_lib_prefix=no
15043   need_version=no
15044   hardcode_into_libs=yes
15045   if test "$host_cpu" = ia64; then
15046     # AIX 5 supports IA64
15047     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15048     shlibpath_var=LD_LIBRARY_PATH
15049   else
15050     # With GCC up to 2.95.x, collect2 would create an import file
15051     # for dependence libraries.  The import file would start with
15052     # the line `#! .'.  This would cause the generated library to
15053     # depend on `.', always an invalid library.  This was fixed in
15054     # development snapshots of GCC prior to 3.0.
15055     case $host_os in
15056       aix4 | aix4.[01] | aix4.[01].*)
15057       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15058            echo ' yes '
15059            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15060         :
15061       else
15062         can_build_shared=no
15063       fi
15064       ;;
15065     esac
15066     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15067     # soname into executable. Probably we can add versioning support to
15068     # collect2, so additional links can be useful in future.
15069     if test "$aix_use_runtimelinking" = yes; then
15070       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15071       # instead of lib<name>.a to let people know that these are not
15072       # typical AIX shared libraries.
15073       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074     else
15075       # We preserve .a as extension for shared libraries through AIX4.2
15076       # and later when we are not doing run time linking.
15077       library_names_spec='${libname}${release}.a $libname.a'
15078       soname_spec='${libname}${release}${shared_ext}$major'
15079     fi
15080     shlibpath_var=LIBPATH
15081   fi
15082   ;;
15083
15084 amigaos*)
15085   library_names_spec='$libname.ixlibrary $libname.a'
15086   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15087   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'
15088   ;;
15089
15090 beos*)
15091   library_names_spec='${libname}${shared_ext}'
15092   dynamic_linker="$host_os ld.so"
15093   shlibpath_var=LIBRARY_PATH
15094   ;;
15095
15096 bsdi[45]*)
15097   version_type=linux
15098   need_version=no
15099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100   soname_spec='${libname}${release}${shared_ext}$major'
15101   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15102   shlibpath_var=LD_LIBRARY_PATH
15103   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15104   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15105   # the default ld.so.conf also contains /usr/contrib/lib and
15106   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15107   # libtool to hard-code these into programs
15108   ;;
15109
15110 cygwin* | mingw* | pw32*)
15111   version_type=windows
15112   shrext_cmds=".dll"
15113   need_version=no
15114   need_lib_prefix=no
15115
15116   case $GCC,$host_os in
15117   yes,cygwin* | yes,mingw* | yes,pw32*)
15118     library_names_spec='$libname.dll.a'
15119     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15120     postinstall_cmds='base_file=`basename \${file}`~
15121       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15122       dldir=$destdir/`dirname \$dlpath`~
15123       test -d \$dldir || mkdir -p \$dldir~
15124       $install_prog $dir/$dlname \$dldir/$dlname~
15125       chmod a+x \$dldir/$dlname'
15126     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15127       dlpath=$dir/\$dldll~
15128        $rm \$dlpath'
15129     shlibpath_overrides_runpath=yes
15130
15131     case $host_os in
15132     cygwin*)
15133       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15134       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15135       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15136       ;;
15137     mingw*)
15138       # MinGW DLLs use traditional 'lib' prefix
15139       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15140       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15141       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15142         # It is most probably a Windows format PATH printed by
15143         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15144         # path with ; separators, and with drive letters. We can handle the
15145         # drive letters (cygwin fileutils understands them), so leave them,
15146         # especially as we might pass files found there to a mingw objdump,
15147         # which wouldn't understand a cygwinified path. Ahh.
15148         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15149       else
15150         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15151       fi
15152       ;;
15153     pw32*)
15154       # pw32 DLLs use 'pw' prefix rather than 'lib'
15155       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15156       ;;
15157     esac
15158     ;;
15159
15160   *)
15161     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15162     ;;
15163   esac
15164   dynamic_linker='Win32 ld.exe'
15165   # FIXME: first we should search . and the directory the executable is in
15166   shlibpath_var=PATH
15167   ;;
15168
15169 darwin* | rhapsody*)
15170   dynamic_linker="$host_os dyld"
15171   version_type=darwin
15172   need_lib_prefix=no
15173   need_version=no
15174   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15175   soname_spec='${libname}${release}${major}$shared_ext'
15176   shlibpath_overrides_runpath=yes
15177   shlibpath_var=DYLD_LIBRARY_PATH
15178   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15179   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15180   if test "$GCC" = yes; then
15181     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"`
15182   else
15183     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15184   fi
15185   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15186   ;;
15187
15188 dgux*)
15189   version_type=linux
15190   need_lib_prefix=no
15191   need_version=no
15192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15193   soname_spec='${libname}${release}${shared_ext}$major'
15194   shlibpath_var=LD_LIBRARY_PATH
15195   ;;
15196
15197 freebsd1*)
15198   dynamic_linker=no
15199   ;;
15200
15201 kfreebsd*-gnu)
15202   version_type=linux
15203   need_lib_prefix=no
15204   need_version=no
15205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206   soname_spec='${libname}${release}${shared_ext}$major'
15207   shlibpath_var=LD_LIBRARY_PATH
15208   shlibpath_overrides_runpath=no
15209   hardcode_into_libs=yes
15210   dynamic_linker='GNU ld.so'
15211   ;;
15212
15213 freebsd* | dragonfly*)
15214   # DragonFly does not have aout.  When/if they implement a new
15215   # versioning mechanism, adjust this.
15216   if test -x /usr/bin/objformat; then
15217     objformat=`/usr/bin/objformat`
15218   else
15219     case $host_os in
15220     freebsd[123]*) objformat=aout ;;
15221     *) objformat=elf ;;
15222     esac
15223   fi
15224   version_type=freebsd-$objformat
15225   case $version_type in
15226     freebsd-elf*)
15227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15228       need_version=no
15229       need_lib_prefix=no
15230       ;;
15231     freebsd-*)
15232       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15233       need_version=yes
15234       ;;
15235   esac
15236   shlibpath_var=LD_LIBRARY_PATH
15237   case $host_os in
15238   freebsd2*)
15239     shlibpath_overrides_runpath=yes
15240     ;;
15241   freebsd3.[01]* | freebsdelf3.[01]*)
15242     shlibpath_overrides_runpath=yes
15243     hardcode_into_libs=yes
15244     ;;
15245   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15246   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15247     shlibpath_overrides_runpath=no
15248     hardcode_into_libs=yes
15249     ;;
15250   freebsd*) # from 4.6 on
15251     shlibpath_overrides_runpath=yes
15252     hardcode_into_libs=yes
15253     ;;
15254   esac
15255   ;;
15256
15257 gnu*)
15258   version_type=linux
15259   need_lib_prefix=no
15260   need_version=no
15261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15262   soname_spec='${libname}${release}${shared_ext}$major'
15263   shlibpath_var=LD_LIBRARY_PATH
15264   hardcode_into_libs=yes
15265   ;;
15266
15267 hpux9* | hpux10* | hpux11*)
15268   # Give a soname corresponding to the major version so that dld.sl refuses to
15269   # link against other versions.
15270   version_type=sunos
15271   need_lib_prefix=no
15272   need_version=no
15273   case $host_cpu in
15274   ia64*)
15275     shrext_cmds='.so'
15276     hardcode_into_libs=yes
15277     dynamic_linker="$host_os dld.so"
15278     shlibpath_var=LD_LIBRARY_PATH
15279     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281     soname_spec='${libname}${release}${shared_ext}$major'
15282     if test "X$HPUX_IA64_MODE" = X32; then
15283       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15284     else
15285       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15286     fi
15287     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15288     ;;
15289    hppa*64*)
15290      shrext_cmds='.sl'
15291      hardcode_into_libs=yes
15292      dynamic_linker="$host_os dld.sl"
15293      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15294      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15295      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296      soname_spec='${libname}${release}${shared_ext}$major'
15297      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15298      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15299      ;;
15300    *)
15301     shrext_cmds='.sl'
15302     dynamic_linker="$host_os dld.sl"
15303     shlibpath_var=SHLIB_PATH
15304     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306     soname_spec='${libname}${release}${shared_ext}$major'
15307     ;;
15308   esac
15309   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15310   postinstall_cmds='chmod 555 $lib'
15311   ;;
15312
15313 interix3*)
15314   version_type=linux
15315   need_lib_prefix=no
15316   need_version=no
15317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15318   soname_spec='${libname}${release}${shared_ext}$major'
15319   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15320   shlibpath_var=LD_LIBRARY_PATH
15321   shlibpath_overrides_runpath=no
15322   hardcode_into_libs=yes
15323   ;;
15324
15325 irix5* | irix6* | nonstopux*)
15326   case $host_os in
15327     nonstopux*) version_type=nonstopux ;;
15328     *)
15329         if test "$lt_cv_prog_gnu_ld" = yes; then
15330                 version_type=linux
15331         else
15332                 version_type=irix
15333         fi ;;
15334   esac
15335   need_lib_prefix=no
15336   need_version=no
15337   soname_spec='${libname}${release}${shared_ext}$major'
15338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15339   case $host_os in
15340   irix5* | nonstopux*)
15341     libsuff= shlibsuff=
15342     ;;
15343   *)
15344     case $LD in # libtool.m4 will add one of these switches to LD
15345     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15346       libsuff= shlibsuff= libmagic=32-bit;;
15347     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15348       libsuff=32 shlibsuff=N32 libmagic=N32;;
15349     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15350       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15351     *) libsuff= shlibsuff= libmagic=never-match;;
15352     esac
15353     ;;
15354   esac
15355   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15356   shlibpath_overrides_runpath=no
15357   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15358   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15359   hardcode_into_libs=yes
15360   ;;
15361
15362 # No shared lib support for Linux oldld, aout, or coff.
15363 linux*oldld* | linux*aout* | linux*coff*)
15364   dynamic_linker=no
15365   ;;
15366
15367 # This must be Linux ELF.
15368 linux*)
15369   version_type=linux
15370   need_lib_prefix=no
15371   need_version=no
15372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373   soname_spec='${libname}${release}${shared_ext}$major'
15374   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15375   shlibpath_var=LD_LIBRARY_PATH
15376   shlibpath_overrides_runpath=no
15377   # This implies no fast_install, which is unacceptable.
15378   # Some rework will be needed to allow for fast_install
15379   # before this can be enabled.
15380   hardcode_into_libs=yes
15381
15382   # find out which ABI we are using
15383   libsuff=
15384   case "$host_cpu" in
15385   x86_64*|s390x*|powerpc64*)
15386     echo '#line 15386 "configure"' > conftest.$ac_ext
15387     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388   (eval $ac_compile) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; then
15392       case `/usr/bin/file conftest.$ac_objext` in
15393       *64-bit*)
15394         libsuff=64
15395         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15396         ;;
15397       esac
15398     fi
15399     rm -rf conftest*
15400     ;;
15401   esac
15402
15403   # Append ld.so.conf contents to the search path
15404   if test -f /etc/ld.so.conf; then
15405     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' ' '`
15406     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15407   fi
15408
15409   # We used to test for /lib/ld.so.1 and disable shared libraries on
15410   # powerpc, because MkLinux only supported shared libraries with the
15411   # GNU dynamic linker.  Since this was broken with cross compilers,
15412   # most powerpc-linux boxes support dynamic linking these days and
15413   # people can always --disable-shared, the test was removed, and we
15414   # assume the GNU/Linux dynamic linker is in use.
15415   dynamic_linker='GNU/Linux ld.so'
15416   ;;
15417
15418 knetbsd*-gnu)
15419   version_type=linux
15420   need_lib_prefix=no
15421   need_version=no
15422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15423   soname_spec='${libname}${release}${shared_ext}$major'
15424   shlibpath_var=LD_LIBRARY_PATH
15425   shlibpath_overrides_runpath=no
15426   hardcode_into_libs=yes
15427   dynamic_linker='GNU ld.so'
15428   ;;
15429
15430 netbsd*)
15431   version_type=sunos
15432   need_lib_prefix=no
15433   need_version=no
15434   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15436     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15437     dynamic_linker='NetBSD (a.out) ld.so'
15438   else
15439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15440     soname_spec='${libname}${release}${shared_ext}$major'
15441     dynamic_linker='NetBSD ld.elf_so'
15442   fi
15443   shlibpath_var=LD_LIBRARY_PATH
15444   shlibpath_overrides_runpath=yes
15445   hardcode_into_libs=yes
15446   ;;
15447
15448 newsos6)
15449   version_type=linux
15450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451   shlibpath_var=LD_LIBRARY_PATH
15452   shlibpath_overrides_runpath=yes
15453   ;;
15454
15455 nto-qnx*)
15456   version_type=linux
15457   need_lib_prefix=no
15458   need_version=no
15459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460   soname_spec='${libname}${release}${shared_ext}$major'
15461   shlibpath_var=LD_LIBRARY_PATH
15462   shlibpath_overrides_runpath=yes
15463   ;;
15464
15465 openbsd*)
15466   version_type=sunos
15467   sys_lib_dlsearch_path_spec="/usr/lib"
15468   need_lib_prefix=no
15469   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15470   case $host_os in
15471     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15472     *)                         need_version=no  ;;
15473   esac
15474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15475   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15476   shlibpath_var=LD_LIBRARY_PATH
15477   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15478     case $host_os in
15479       openbsd2.[89] | openbsd2.[89].*)
15480         shlibpath_overrides_runpath=no
15481         ;;
15482       *)
15483         shlibpath_overrides_runpath=yes
15484         ;;
15485       esac
15486   else
15487     shlibpath_overrides_runpath=yes
15488   fi
15489   ;;
15490
15491 os2*)
15492   libname_spec='$name'
15493   shrext_cmds=".dll"
15494   need_lib_prefix=no
15495   library_names_spec='$libname${shared_ext} $libname.a'
15496   dynamic_linker='OS/2 ld.exe'
15497   shlibpath_var=LIBPATH
15498   ;;
15499
15500 osf3* | osf4* | osf5*)
15501   version_type=osf
15502   need_lib_prefix=no
15503   need_version=no
15504   soname_spec='${libname}${release}${shared_ext}$major'
15505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506   shlibpath_var=LD_LIBRARY_PATH
15507   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15508   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15509   ;;
15510
15511 solaris*)
15512   version_type=linux
15513   need_lib_prefix=no
15514   need_version=no
15515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516   soname_spec='${libname}${release}${shared_ext}$major'
15517   shlibpath_var=LD_LIBRARY_PATH
15518   shlibpath_overrides_runpath=yes
15519   hardcode_into_libs=yes
15520   # ldd complains unless libraries are executable
15521   postinstall_cmds='chmod +x $lib'
15522   ;;
15523
15524 sunos4*)
15525   version_type=sunos
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15527   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15528   shlibpath_var=LD_LIBRARY_PATH
15529   shlibpath_overrides_runpath=yes
15530   if test "$with_gnu_ld" = yes; then
15531     need_lib_prefix=no
15532   fi
15533   need_version=yes
15534   ;;
15535
15536 sysv4 | sysv4.3*)
15537   version_type=linux
15538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539   soname_spec='${libname}${release}${shared_ext}$major'
15540   shlibpath_var=LD_LIBRARY_PATH
15541   case $host_vendor in
15542     sni)
15543       shlibpath_overrides_runpath=no
15544       need_lib_prefix=no
15545       export_dynamic_flag_spec='${wl}-Blargedynsym'
15546       runpath_var=LD_RUN_PATH
15547       ;;
15548     siemens)
15549       need_lib_prefix=no
15550       ;;
15551     motorola)
15552       need_lib_prefix=no
15553       need_version=no
15554       shlibpath_overrides_runpath=no
15555       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15556       ;;
15557   esac
15558   ;;
15559
15560 sysv4*MP*)
15561   if test -d /usr/nec ;then
15562     version_type=linux
15563     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15564     soname_spec='$libname${shared_ext}.$major'
15565     shlibpath_var=LD_LIBRARY_PATH
15566   fi
15567   ;;
15568
15569 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15570   version_type=freebsd-elf
15571   need_lib_prefix=no
15572   need_version=no
15573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15574   soname_spec='${libname}${release}${shared_ext}$major'
15575   shlibpath_var=LD_LIBRARY_PATH
15576   hardcode_into_libs=yes
15577   if test "$with_gnu_ld" = yes; then
15578     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15579     shlibpath_overrides_runpath=no
15580   else
15581     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15582     shlibpath_overrides_runpath=yes
15583     case $host_os in
15584       sco3.2v5*)
15585         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15586         ;;
15587     esac
15588   fi
15589   sys_lib_dlsearch_path_spec='/usr/lib'
15590   ;;
15591
15592 uts4*)
15593   version_type=linux
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595   soname_spec='${libname}${release}${shared_ext}$major'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   ;;
15598
15599 *)
15600   dynamic_linker=no
15601   ;;
15602 esac
15603 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15604 echo "${ECHO_T}$dynamic_linker" >&6; }
15605 test "$dynamic_linker" = no && can_build_shared=no
15606
15607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15608 if test "$GCC" = yes; then
15609   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15610 fi
15611
15612 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15614 hardcode_action_F77=
15615 if test -n "$hardcode_libdir_flag_spec_F77" || \
15616    test -n "$runpath_var_F77" || \
15617    test "X$hardcode_automatic_F77" = "Xyes" ; then
15618
15619   # We can hardcode non-existant directories.
15620   if test "$hardcode_direct_F77" != no &&
15621      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15622      # have to relink, otherwise we might link with an installed library
15623      # when we should be linking with a yet-to-be-installed one
15624      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15625      test "$hardcode_minus_L_F77" != no; then
15626     # Linking always hardcodes the temporary library directory.
15627     hardcode_action_F77=relink
15628   else
15629     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15630     hardcode_action_F77=immediate
15631   fi
15632 else
15633   # We cannot hardcode anything, or else we can only hardcode existing
15634   # directories.
15635   hardcode_action_F77=unsupported
15636 fi
15637 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15638 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15639
15640 if test "$hardcode_action_F77" = relink; then
15641   # Fast installation is not supported
15642   enable_fast_install=no
15643 elif test "$shlibpath_overrides_runpath" = yes ||
15644      test "$enable_shared" = no; then
15645   # Fast installation is not necessary
15646   enable_fast_install=needless
15647 fi
15648
15649
15650 # The else clause should only fire when bootstrapping the
15651 # libtool distribution, otherwise you forgot to ship ltmain.sh
15652 # with your package, and you will get complaints that there are
15653 # no rules to generate ltmain.sh.
15654 if test -f "$ltmain"; then
15655   # See if we are running on zsh, and set the options which allow our commands through
15656   # without removal of \ escapes.
15657   if test -n "${ZSH_VERSION+set}" ; then
15658     setopt NO_GLOB_SUBST
15659   fi
15660   # Now quote all the things that may contain metacharacters while being
15661   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15662   # variables and quote the copies for generation of the libtool script.
15663   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15664     SED SHELL STRIP \
15665     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15666     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15667     deplibs_check_method reload_flag reload_cmds need_locks \
15668     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15669     lt_cv_sys_global_symbol_to_c_name_address \
15670     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15671     old_postinstall_cmds old_postuninstall_cmds \
15672     compiler_F77 \
15673     CC_F77 \
15674     LD_F77 \
15675     lt_prog_compiler_wl_F77 \
15676     lt_prog_compiler_pic_F77 \
15677     lt_prog_compiler_static_F77 \
15678     lt_prog_compiler_no_builtin_flag_F77 \
15679     export_dynamic_flag_spec_F77 \
15680     thread_safe_flag_spec_F77 \
15681     whole_archive_flag_spec_F77 \
15682     enable_shared_with_static_runtimes_F77 \
15683     old_archive_cmds_F77 \
15684     old_archive_from_new_cmds_F77 \
15685     predep_objects_F77 \
15686     postdep_objects_F77 \
15687     predeps_F77 \
15688     postdeps_F77 \
15689     compiler_lib_search_path_F77 \
15690     archive_cmds_F77 \
15691     archive_expsym_cmds_F77 \
15692     postinstall_cmds_F77 \
15693     postuninstall_cmds_F77 \
15694     old_archive_from_expsyms_cmds_F77 \
15695     allow_undefined_flag_F77 \
15696     no_undefined_flag_F77 \
15697     export_symbols_cmds_F77 \
15698     hardcode_libdir_flag_spec_F77 \
15699     hardcode_libdir_flag_spec_ld_F77 \
15700     hardcode_libdir_separator_F77 \
15701     hardcode_automatic_F77 \
15702     module_cmds_F77 \
15703     module_expsym_cmds_F77 \
15704     lt_cv_prog_compiler_c_o_F77 \
15705     exclude_expsyms_F77 \
15706     include_expsyms_F77; do
15707
15708     case $var in
15709     old_archive_cmds_F77 | \
15710     old_archive_from_new_cmds_F77 | \
15711     archive_cmds_F77 | \
15712     archive_expsym_cmds_F77 | \
15713     module_cmds_F77 | \
15714     module_expsym_cmds_F77 | \
15715     old_archive_from_expsyms_cmds_F77 | \
15716     export_symbols_cmds_F77 | \
15717     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15718     postinstall_cmds | postuninstall_cmds | \
15719     old_postinstall_cmds | old_postuninstall_cmds | \
15720     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15721       # Double-quote double-evaled strings.
15722       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15723       ;;
15724     *)
15725       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15726       ;;
15727     esac
15728   done
15729
15730   case $lt_echo in
15731   *'\$0 --fallback-echo"')
15732     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15733     ;;
15734   esac
15735
15736 cfgfile="$ofile"
15737
15738   cat <<__EOF__ >> "$cfgfile"
15739 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15740
15741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15742
15743 # Shell to use when invoking shell scripts.
15744 SHELL=$lt_SHELL
15745
15746 # Whether or not to build shared libraries.
15747 build_libtool_libs=$enable_shared
15748
15749 # Whether or not to build static libraries.
15750 build_old_libs=$enable_static
15751
15752 # Whether or not to add -lc for building shared libraries.
15753 build_libtool_need_lc=$archive_cmds_need_lc_F77
15754
15755 # Whether or not to disallow shared libs when runtime libs are static
15756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15757
15758 # Whether or not to optimize for fast installation.
15759 fast_install=$enable_fast_install
15760
15761 # The host system.
15762 host_alias=$host_alias
15763 host=$host
15764 host_os=$host_os
15765
15766 # The build system.
15767 build_alias=$build_alias
15768 build=$build
15769 build_os=$build_os
15770
15771 # An echo program that does not interpret backslashes.
15772 echo=$lt_echo
15773
15774 # The archiver.
15775 AR=$lt_AR
15776 AR_FLAGS=$lt_AR_FLAGS
15777
15778 # A C compiler.
15779 LTCC=$lt_LTCC
15780
15781 # LTCC compiler flags.
15782 LTCFLAGS=$lt_LTCFLAGS
15783
15784 # A language-specific compiler.
15785 CC=$lt_compiler_F77
15786
15787 # Is the compiler the GNU C compiler?
15788 with_gcc=$GCC_F77
15789
15790 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15791 gcc_ver=\`gcc -dumpversion\`
15792
15793 # An ERE matcher.
15794 EGREP=$lt_EGREP
15795
15796 # The linker used to build libraries.
15797 LD=$lt_LD_F77
15798
15799 # Whether we need hard or soft links.
15800 LN_S=$lt_LN_S
15801
15802 # A BSD-compatible nm program.
15803 NM=$lt_NM
15804
15805 # A symbol stripping program
15806 STRIP=$lt_STRIP
15807
15808 # Used to examine libraries when file_magic_cmd begins "file"
15809 MAGIC_CMD=$MAGIC_CMD
15810
15811 # Used on cygwin: DLL creation program.
15812 DLLTOOL="$DLLTOOL"
15813
15814 # Used on cygwin: object dumper.
15815 OBJDUMP="$OBJDUMP"
15816
15817 # Used on cygwin: assembler.
15818 AS="$AS"
15819
15820 # The name of the directory that contains temporary libtool files.
15821 objdir=$objdir
15822
15823 # How to create reloadable object files.
15824 reload_flag=$lt_reload_flag
15825 reload_cmds=$lt_reload_cmds
15826
15827 # How to pass a linker flag through the compiler.
15828 wl=$lt_lt_prog_compiler_wl_F77
15829
15830 # Object file suffix (normally "o").
15831 objext="$ac_objext"
15832
15833 # Old archive suffix (normally "a").
15834 libext="$libext"
15835
15836 # Shared library suffix (normally ".so").
15837 shrext_cmds='$shrext_cmds'
15838
15839 # Executable file suffix (normally "").
15840 exeext="$exeext"
15841
15842 # Additional compiler flags for building library objects.
15843 pic_flag=$lt_lt_prog_compiler_pic_F77
15844 pic_mode=$pic_mode
15845
15846 # What is the maximum length of a command?
15847 max_cmd_len=$lt_cv_sys_max_cmd_len
15848
15849 # Does compiler simultaneously support -c and -o options?
15850 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15851
15852 # Must we lock files when doing compilation?
15853 need_locks=$lt_need_locks
15854
15855 # Do we need the lib prefix for modules?
15856 need_lib_prefix=$need_lib_prefix
15857
15858 # Do we need a version for libraries?
15859 need_version=$need_version
15860
15861 # Whether dlopen is supported.
15862 dlopen_support=$enable_dlopen
15863
15864 # Whether dlopen of programs is supported.
15865 dlopen_self=$enable_dlopen_self
15866
15867 # Whether dlopen of statically linked programs is supported.
15868 dlopen_self_static=$enable_dlopen_self_static
15869
15870 # Compiler flag to prevent dynamic linking.
15871 link_static_flag=$lt_lt_prog_compiler_static_F77
15872
15873 # Compiler flag to turn off builtin functions.
15874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15875
15876 # Compiler flag to allow reflexive dlopens.
15877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15878
15879 # Compiler flag to generate shared objects directly from archives.
15880 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15881
15882 # Compiler flag to generate thread-safe objects.
15883 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15884
15885 # Library versioning type.
15886 version_type=$version_type
15887
15888 # Format of library name prefix.
15889 libname_spec=$lt_libname_spec
15890
15891 # List of archive names.  First name is the real one, the rest are links.
15892 # The last name is the one that the linker finds with -lNAME.
15893 library_names_spec=$lt_library_names_spec
15894
15895 # The coded name of the library, if different from the real name.
15896 soname_spec=$lt_soname_spec
15897
15898 # Commands used to build and install an old-style archive.
15899 RANLIB=$lt_RANLIB
15900 old_archive_cmds=$lt_old_archive_cmds_F77
15901 old_postinstall_cmds=$lt_old_postinstall_cmds
15902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15903
15904 # Create an old-style archive from a shared archive.
15905 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15906
15907 # Create a temporary old-style archive to link instead of a shared archive.
15908 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15909
15910 # Commands used to build and install a shared archive.
15911 archive_cmds=$lt_archive_cmds_F77
15912 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15913 postinstall_cmds=$lt_postinstall_cmds
15914 postuninstall_cmds=$lt_postuninstall_cmds
15915
15916 # Commands used to build a loadable module (assumed same as above if empty)
15917 module_cmds=$lt_module_cmds_F77
15918 module_expsym_cmds=$lt_module_expsym_cmds_F77
15919
15920 # Commands to strip libraries.
15921 old_striplib=$lt_old_striplib
15922 striplib=$lt_striplib
15923
15924 # Dependencies to place before the objects being linked to create a
15925 # shared library.
15926 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15927
15928 # Dependencies to place after the objects being linked to create a
15929 # shared library.
15930 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15931
15932 # Dependencies to place before the objects being linked to create a
15933 # shared library.
15934 predeps=$lt_predeps_F77
15935
15936 # Dependencies to place after the objects being linked to create a
15937 # shared library.
15938 postdeps=$lt_postdeps_F77
15939
15940 # The library search path used internally by the compiler when linking
15941 # a shared library.
15942 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15943
15944 # Method to check whether dependent libraries are shared objects.
15945 deplibs_check_method=$lt_deplibs_check_method
15946
15947 # Command to use when deplibs_check_method == file_magic.
15948 file_magic_cmd=$lt_file_magic_cmd
15949
15950 # Flag that allows shared libraries with undefined symbols to be built.
15951 allow_undefined_flag=$lt_allow_undefined_flag_F77
15952
15953 # Flag that forces no undefined symbols.
15954 no_undefined_flag=$lt_no_undefined_flag_F77
15955
15956 # Commands used to finish a libtool library installation in a directory.
15957 finish_cmds=$lt_finish_cmds
15958
15959 # Same as above, but a single script fragment to be evaled but not shown.
15960 finish_eval=$lt_finish_eval
15961
15962 # Take the output of nm and produce a listing of raw symbols and C names.
15963 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15964
15965 # Transform the output of nm in a proper C declaration
15966 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15967
15968 # Transform the output of nm in a C name address pair
15969 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15970
15971 # This is the shared library runtime path variable.
15972 runpath_var=$runpath_var
15973
15974 # This is the shared library path variable.
15975 shlibpath_var=$shlibpath_var
15976
15977 # Is shlibpath searched before the hard-coded library search path?
15978 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15979
15980 # How to hardcode a shared library path into an executable.
15981 hardcode_action=$hardcode_action_F77
15982
15983 # Whether we should hardcode library paths into libraries.
15984 hardcode_into_libs=$hardcode_into_libs
15985
15986 # Flag to hardcode \$libdir into a binary during linking.
15987 # This must work even if \$libdir does not exist.
15988 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15989
15990 # If ld is used when linking, flag to hardcode \$libdir into
15991 # a binary during linking. This must work even if \$libdir does
15992 # not exist.
15993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15994
15995 # Whether we need a single -rpath flag with a separated argument.
15996 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15997
15998 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15999 # resulting binary.
16000 hardcode_direct=$hardcode_direct_F77
16001
16002 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16003 # resulting binary.
16004 hardcode_minus_L=$hardcode_minus_L_F77
16005
16006 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16007 # the resulting binary.
16008 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16009
16010 # Set to yes if building a shared library automatically hardcodes DIR into the library
16011 # and all subsequent libraries and executables linked against it.
16012 hardcode_automatic=$hardcode_automatic_F77
16013
16014 # Variables whose values should be saved in libtool wrapper scripts and
16015 # restored at relink time.
16016 variables_saved_for_relink="$variables_saved_for_relink"
16017
16018 # Whether libtool must link a program against all its dependency libraries.
16019 link_all_deplibs=$link_all_deplibs_F77
16020
16021 # Compile-time system search path for libraries
16022 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16023
16024 # Run-time system search path for libraries
16025 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16026
16027 # Fix the shell variable \$srcfile for the compiler.
16028 fix_srcfile_path="$fix_srcfile_path_F77"
16029
16030 # Set to yes if exported symbols are required.
16031 always_export_symbols=$always_export_symbols_F77
16032
16033 # The commands to list exported symbols.
16034 export_symbols_cmds=$lt_export_symbols_cmds_F77
16035
16036 # The commands to extract the exported symbol list from a shared archive.
16037 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16038
16039 # Symbols that should not be listed in the preloaded symbols.
16040 exclude_expsyms=$lt_exclude_expsyms_F77
16041
16042 # Symbols that must always be exported.
16043 include_expsyms=$lt_include_expsyms_F77
16044
16045 # ### END LIBTOOL TAG CONFIG: $tagname
16046
16047 __EOF__
16048
16049
16050 else
16051   # If there is no Makefile yet, we rely on a make rule to execute
16052   # `config.status --recheck' to rerun these tests and create the
16053   # libtool script then.
16054   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16055   if test -f "$ltmain_in"; then
16056     test -f Makefile && make "$ltmain"
16057   fi
16058 fi
16059
16060
16061 ac_ext=c
16062 ac_cpp='$CPP $CPPFLAGS'
16063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16066
16067 CC="$lt_save_CC"
16068
16069         else
16070           tagname=""
16071         fi
16072         ;;
16073
16074       GCJ)
16075         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16076
16077
16078 # Source file extension for Java test sources.
16079 ac_ext=java
16080
16081 # Object file extension for compiled Java test sources.
16082 objext=o
16083 objext_GCJ=$objext
16084
16085 # Code to be used in simple compile tests
16086 lt_simple_compile_test_code="class foo {}\n"
16087
16088 # Code to be used in simple link tests
16089 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16090
16091 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16092
16093 # If no C compiler was specified, use CC.
16094 LTCC=${LTCC-"$CC"}
16095
16096 # If no C compiler flags were specified, use CFLAGS.
16097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16098
16099 # Allow CC to be a program name with arguments.
16100 compiler=$CC
16101
16102
16103 # save warnings/boilerplate of simple test code
16104 ac_outfile=conftest.$ac_objext
16105 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16107 _lt_compiler_boilerplate=`cat conftest.err`
16108 $rm conftest*
16109
16110 ac_outfile=conftest.$ac_objext
16111 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16113 _lt_linker_boilerplate=`cat conftest.err`
16114 $rm conftest*
16115
16116
16117 # Allow CC to be a program name with arguments.
16118 lt_save_CC="$CC"
16119 CC=${GCJ-"gcj"}
16120 compiler=$CC
16121 compiler_GCJ=$CC
16122 for cc_temp in $compiler""; do
16123   case $cc_temp in
16124     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16125     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16126     \-*) ;;
16127     *) break;;
16128   esac
16129 done
16130 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16131
16132 LD_GCJ="$LD"
16133
16134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16135 archive_cmds_need_lc_GCJ=no
16136
16137 old_archive_cmds_GCJ=$old_archive_cmds
16138
16139
16140 lt_prog_compiler_no_builtin_flag_GCJ=
16141
16142 if test "$GCC" = yes; then
16143   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16144
16145
16146 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16147 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   lt_cv_prog_compiler_rtti_exceptions=no
16152   ac_outfile=conftest.$ac_objext
16153    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16154    lt_compiler_flag="-fno-rtti -fno-exceptions"
16155    # Insert the option either (1) after the last *FLAGS variable, or
16156    # (2) before a word containing "conftest.", or (3) at the end.
16157    # Note that $ac_compile itself does not contain backslashes and begins
16158    # with a dollar sign (not a hyphen), so the echo should work correctly.
16159    # The option is referenced via a variable to avoid confusing sed.
16160    lt_compile=`echo "$ac_compile" | $SED \
16161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16163    -e 's:$: $lt_compiler_flag:'`
16164    (eval echo "\"\$as_me:16164: $lt_compile\"" >&5)
16165    (eval "$lt_compile" 2>conftest.err)
16166    ac_status=$?
16167    cat conftest.err >&5
16168    echo "$as_me:16168: \$? = $ac_status" >&5
16169    if (exit $ac_status) && test -s "$ac_outfile"; then
16170      # The compiler can only warn and ignore the option if not recognized
16171      # So say no if there are warnings other than the usual output.
16172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16173      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16174      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16175        lt_cv_prog_compiler_rtti_exceptions=yes
16176      fi
16177    fi
16178    $rm conftest*
16179
16180 fi
16181 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16183
16184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16185     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16186 else
16187     :
16188 fi
16189
16190 fi
16191
16192 lt_prog_compiler_wl_GCJ=
16193 lt_prog_compiler_pic_GCJ=
16194 lt_prog_compiler_static_GCJ=
16195
16196 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16198
16199   if test "$GCC" = yes; then
16200     lt_prog_compiler_wl_GCJ='-Wl,'
16201     lt_prog_compiler_static_GCJ='-static'
16202
16203     case $host_os in
16204       aix*)
16205       # All AIX code is PIC.
16206       if test "$host_cpu" = ia64; then
16207         # AIX 5 now supports IA64 processor
16208         lt_prog_compiler_static_GCJ='-Bstatic'
16209       fi
16210       ;;
16211
16212     amigaos*)
16213       # FIXME: we need at least 68020 code to build shared libraries, but
16214       # adding the `-m68020' flag to GCC prevents building anything better,
16215       # like `-m68040'.
16216       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16217       ;;
16218
16219     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16220       # PIC is the default for these OSes.
16221       ;;
16222
16223     mingw* | pw32* | os2*)
16224       # This hack is so that the source file can tell whether it is being
16225       # built for inclusion in a dll (and should export symbols for example).
16226       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16227       ;;
16228
16229     darwin* | rhapsody*)
16230       # PIC is the default on this platform
16231       # Common symbols not allowed in MH_DYLIB files
16232       lt_prog_compiler_pic_GCJ='-fno-common'
16233       ;;
16234
16235     interix3*)
16236       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16237       # Instead, we relocate shared libraries at runtime.
16238       ;;
16239
16240     msdosdjgpp*)
16241       # Just because we use GCC doesn't mean we suddenly get shared libraries
16242       # on systems that don't support them.
16243       lt_prog_compiler_can_build_shared_GCJ=no
16244       enable_shared=no
16245       ;;
16246
16247     sysv4*MP*)
16248       if test -d /usr/nec; then
16249         lt_prog_compiler_pic_GCJ=-Kconform_pic
16250       fi
16251       ;;
16252
16253     hpux*)
16254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16255       # not for PA HP-UX.
16256       case $host_cpu in
16257       hppa*64*|ia64*)
16258         # +Z the default
16259         ;;
16260       *)
16261         lt_prog_compiler_pic_GCJ='-fPIC'
16262         ;;
16263       esac
16264       ;;
16265
16266     *)
16267       lt_prog_compiler_pic_GCJ='-fPIC'
16268       ;;
16269     esac
16270   else
16271     # PORTME Check for flag to pass linker flags through the system compiler.
16272     case $host_os in
16273     aix*)
16274       lt_prog_compiler_wl_GCJ='-Wl,'
16275       if test "$host_cpu" = ia64; then
16276         # AIX 5 now supports IA64 processor
16277         lt_prog_compiler_static_GCJ='-Bstatic'
16278       else
16279         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16280       fi
16281       ;;
16282       darwin*)
16283         # PIC is the default on this platform
16284         # Common symbols not allowed in MH_DYLIB files
16285        case $cc_basename in
16286          xlc*)
16287          lt_prog_compiler_pic_GCJ='-qnocommon'
16288          lt_prog_compiler_wl_GCJ='-Wl,'
16289          ;;
16290        esac
16291        ;;
16292
16293     mingw* | pw32* | os2*)
16294       # This hack is so that the source file can tell whether it is being
16295       # built for inclusion in a dll (and should export symbols for example).
16296       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16297       ;;
16298
16299     hpux9* | hpux10* | hpux11*)
16300       lt_prog_compiler_wl_GCJ='-Wl,'
16301       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16302       # not for PA HP-UX.
16303       case $host_cpu in
16304       hppa*64*|ia64*)
16305         # +Z the default
16306         ;;
16307       *)
16308         lt_prog_compiler_pic_GCJ='+Z'
16309         ;;
16310       esac
16311       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16312       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16313       ;;
16314
16315     irix5* | irix6* | nonstopux*)
16316       lt_prog_compiler_wl_GCJ='-Wl,'
16317       # PIC (with -KPIC) is the default.
16318       lt_prog_compiler_static_GCJ='-non_shared'
16319       ;;
16320
16321     newsos6)
16322       lt_prog_compiler_pic_GCJ='-KPIC'
16323       lt_prog_compiler_static_GCJ='-Bstatic'
16324       ;;
16325
16326     linux*)
16327       case $cc_basename in
16328       icc* | ecc*)
16329         lt_prog_compiler_wl_GCJ='-Wl,'
16330         lt_prog_compiler_pic_GCJ='-KPIC'
16331         lt_prog_compiler_static_GCJ='-static'
16332         ;;
16333       pgcc* | pgf77* | pgf90* | pgf95*)
16334         # Portland Group compilers (*not* the Pentium gcc compiler,
16335         # which looks to be a dead project)
16336         lt_prog_compiler_wl_GCJ='-Wl,'
16337         lt_prog_compiler_pic_GCJ='-fpic'
16338         lt_prog_compiler_static_GCJ='-Bstatic'
16339         ;;
16340       ccc*)
16341         lt_prog_compiler_wl_GCJ='-Wl,'
16342         # All Alpha code is PIC.
16343         lt_prog_compiler_static_GCJ='-non_shared'
16344         ;;
16345       esac
16346       ;;
16347
16348     osf3* | osf4* | osf5*)
16349       lt_prog_compiler_wl_GCJ='-Wl,'
16350       # All OSF/1 code is PIC.
16351       lt_prog_compiler_static_GCJ='-non_shared'
16352       ;;
16353
16354     solaris*)
16355       lt_prog_compiler_pic_GCJ='-KPIC'
16356       lt_prog_compiler_static_GCJ='-Bstatic'
16357       case $cc_basename in
16358       f77* | f90* | f95*)
16359         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16360       *)
16361         lt_prog_compiler_wl_GCJ='-Wl,';;
16362       esac
16363       ;;
16364
16365     sunos4*)
16366       lt_prog_compiler_wl_GCJ='-Qoption ld '
16367       lt_prog_compiler_pic_GCJ='-PIC'
16368       lt_prog_compiler_static_GCJ='-Bstatic'
16369       ;;
16370
16371     sysv4 | sysv4.2uw2* | sysv4.3*)
16372       lt_prog_compiler_wl_GCJ='-Wl,'
16373       lt_prog_compiler_pic_GCJ='-KPIC'
16374       lt_prog_compiler_static_GCJ='-Bstatic'
16375       ;;
16376
16377     sysv4*MP*)
16378       if test -d /usr/nec ;then
16379         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16380         lt_prog_compiler_static_GCJ='-Bstatic'
16381       fi
16382       ;;
16383
16384     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16385       lt_prog_compiler_wl_GCJ='-Wl,'
16386       lt_prog_compiler_pic_GCJ='-KPIC'
16387       lt_prog_compiler_static_GCJ='-Bstatic'
16388       ;;
16389
16390     unicos*)
16391       lt_prog_compiler_wl_GCJ='-Wl,'
16392       lt_prog_compiler_can_build_shared_GCJ=no
16393       ;;
16394
16395     uts4*)
16396       lt_prog_compiler_pic_GCJ='-pic'
16397       lt_prog_compiler_static_GCJ='-Bstatic'
16398       ;;
16399
16400     *)
16401       lt_prog_compiler_can_build_shared_GCJ=no
16402       ;;
16403     esac
16404   fi
16405
16406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16407 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16408
16409 #
16410 # Check to make sure the PIC flag actually works.
16411 #
16412 if test -n "$lt_prog_compiler_pic_GCJ"; then
16413
16414 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16415 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16416 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16417   echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419   lt_prog_compiler_pic_works_GCJ=no
16420   ac_outfile=conftest.$ac_objext
16421    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16422    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16423    # Insert the option either (1) after the last *FLAGS variable, or
16424    # (2) before a word containing "conftest.", or (3) at the end.
16425    # Note that $ac_compile itself does not contain backslashes and begins
16426    # with a dollar sign (not a hyphen), so the echo should work correctly.
16427    # The option is referenced via a variable to avoid confusing sed.
16428    lt_compile=`echo "$ac_compile" | $SED \
16429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16431    -e 's:$: $lt_compiler_flag:'`
16432    (eval echo "\"\$as_me:16432: $lt_compile\"" >&5)
16433    (eval "$lt_compile" 2>conftest.err)
16434    ac_status=$?
16435    cat conftest.err >&5
16436    echo "$as_me:16436: \$? = $ac_status" >&5
16437    if (exit $ac_status) && test -s "$ac_outfile"; then
16438      # The compiler can only warn and ignore the option if not recognized
16439      # So say no if there are warnings other than the usual output.
16440      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16443        lt_prog_compiler_pic_works_GCJ=yes
16444      fi
16445    fi
16446    $rm conftest*
16447
16448 fi
16449 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16450 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16451
16452 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16453     case $lt_prog_compiler_pic_GCJ in
16454      "" | " "*) ;;
16455      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16456      esac
16457 else
16458     lt_prog_compiler_pic_GCJ=
16459      lt_prog_compiler_can_build_shared_GCJ=no
16460 fi
16461
16462 fi
16463 case $host_os in
16464   # For platforms which do not support PIC, -DPIC is meaningless:
16465   *djgpp*)
16466     lt_prog_compiler_pic_GCJ=
16467     ;;
16468   *)
16469     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16470     ;;
16471 esac
16472
16473 #
16474 # Check to make sure the static flag actually works.
16475 #
16476 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16477 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16478 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16479 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16480   echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482   lt_prog_compiler_static_works_GCJ=no
16483    save_LDFLAGS="$LDFLAGS"
16484    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16485    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16487      # The linker can only warn and ignore the option if not recognized
16488      # So say no if there are warnings
16489      if test -s conftest.err; then
16490        # Append any errors to the config.log.
16491        cat conftest.err 1>&5
16492        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16494        if diff conftest.exp conftest.er2 >/dev/null; then
16495          lt_prog_compiler_static_works_GCJ=yes
16496        fi
16497      else
16498        lt_prog_compiler_static_works_GCJ=yes
16499      fi
16500    fi
16501    $rm conftest*
16502    LDFLAGS="$save_LDFLAGS"
16503
16504 fi
16505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16506 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16507
16508 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16509     :
16510 else
16511     lt_prog_compiler_static_GCJ=
16512 fi
16513
16514
16515 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16517 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   lt_cv_prog_compiler_c_o_GCJ=no
16521    $rm -r conftest 2>/dev/null
16522    mkdir conftest
16523    cd conftest
16524    mkdir out
16525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16526
16527    lt_compiler_flag="-o out/conftest2.$ac_objext"
16528    # Insert the option either (1) after the last *FLAGS variable, or
16529    # (2) before a word containing "conftest.", or (3) at the end.
16530    # Note that $ac_compile itself does not contain backslashes and begins
16531    # with a dollar sign (not a hyphen), so the echo should work correctly.
16532    lt_compile=`echo "$ac_compile" | $SED \
16533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16535    -e 's:$: $lt_compiler_flag:'`
16536    (eval echo "\"\$as_me:16536: $lt_compile\"" >&5)
16537    (eval "$lt_compile" 2>out/conftest.err)
16538    ac_status=$?
16539    cat out/conftest.err >&5
16540    echo "$as_me:16540: \$? = $ac_status" >&5
16541    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16542    then
16543      # The compiler can only warn and ignore the option if not recognized
16544      # So say no if there are warnings
16545      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16546      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16547      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16548        lt_cv_prog_compiler_c_o_GCJ=yes
16549      fi
16550    fi
16551    chmod u+w . 2>&5
16552    $rm conftest*
16553    # SGI C++ compiler will create directory out/ii_files/ for
16554    # template instantiation
16555    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16556    $rm out/* && rmdir out
16557    cd ..
16558    rmdir conftest
16559    $rm conftest*
16560
16561 fi
16562 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16564
16565
16566 hard_links="nottested"
16567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16568   # do not overwrite the value of need_locks provided by the user
16569   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16571   hard_links=yes
16572   $rm conftest*
16573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16574   touch conftest.a
16575   ln conftest.a conftest.b 2>&5 || hard_links=no
16576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16577   { echo "$as_me:$LINENO: result: $hard_links" >&5
16578 echo "${ECHO_T}$hard_links" >&6; }
16579   if test "$hard_links" = no; then
16580     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16582     need_locks=warn
16583   fi
16584 else
16585   need_locks=no
16586 fi
16587
16588 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16590
16591   runpath_var=
16592   allow_undefined_flag_GCJ=
16593   enable_shared_with_static_runtimes_GCJ=no
16594   archive_cmds_GCJ=
16595   archive_expsym_cmds_GCJ=
16596   old_archive_From_new_cmds_GCJ=
16597   old_archive_from_expsyms_cmds_GCJ=
16598   export_dynamic_flag_spec_GCJ=
16599   whole_archive_flag_spec_GCJ=
16600   thread_safe_flag_spec_GCJ=
16601   hardcode_libdir_flag_spec_GCJ=
16602   hardcode_libdir_flag_spec_ld_GCJ=
16603   hardcode_libdir_separator_GCJ=
16604   hardcode_direct_GCJ=no
16605   hardcode_minus_L_GCJ=no
16606   hardcode_shlibpath_var_GCJ=unsupported
16607   link_all_deplibs_GCJ=unknown
16608   hardcode_automatic_GCJ=no
16609   module_cmds_GCJ=
16610   module_expsym_cmds_GCJ=
16611   always_export_symbols_GCJ=no
16612   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16613   # include_expsyms should be a list of space-separated symbols to be *always*
16614   # included in the symbol list
16615   include_expsyms_GCJ=
16616   # exclude_expsyms can be an extended regexp of symbols to exclude
16617   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16618   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16619   # as well as any symbol that contains `d'.
16620   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16621   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16622   # platforms (ab)use it in PIC code, but their linkers get confused if
16623   # the symbol is explicitly referenced.  Since portable code cannot
16624   # rely on this symbol name, it's probably fine to never include it in
16625   # preloaded symbol tables.
16626   extract_expsyms_cmds=
16627   # Just being paranoid about ensuring that cc_basename is set.
16628   for cc_temp in $compiler""; do
16629   case $cc_temp in
16630     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16631     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16632     \-*) ;;
16633     *) break;;
16634   esac
16635 done
16636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16637
16638   case $host_os in
16639   cygwin* | mingw* | pw32*)
16640     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16641     # When not using gcc, we currently assume that we are using
16642     # Microsoft Visual C++.
16643     if test "$GCC" != yes; then
16644       with_gnu_ld=no
16645     fi
16646     ;;
16647   interix*)
16648     # we just hope/assume this is gcc and not c89 (= MSVC++)
16649     with_gnu_ld=yes
16650     ;;
16651   openbsd*)
16652     with_gnu_ld=no
16653     ;;
16654   esac
16655
16656   ld_shlibs_GCJ=yes
16657   if test "$with_gnu_ld" = yes; then
16658     # If archive_cmds runs LD, not CC, wlarc should be empty
16659     wlarc='${wl}'
16660
16661     # Set some defaults for GNU ld with shared library support. These
16662     # are reset later if shared libraries are not supported. Putting them
16663     # here allows them to be overridden if necessary.
16664     runpath_var=LD_RUN_PATH
16665     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16666     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16667     # ancient GNU ld didn't support --whole-archive et. al.
16668     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16669         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16670       else
16671         whole_archive_flag_spec_GCJ=
16672     fi
16673     supports_anon_versioning=no
16674     case `$LD -v 2>/dev/null` in
16675       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16676       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16677       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16678       *\ 2.11.*) ;; # other 2.11 versions
16679       *) supports_anon_versioning=yes ;;
16680     esac
16681
16682     # See if GNU ld supports shared libraries.
16683     case $host_os in
16684     aix3* | aix4* | aix5*)
16685       # On AIX/PPC, the GNU linker is very broken
16686       if test "$host_cpu" != ia64; then
16687         ld_shlibs_GCJ=no
16688         cat <<EOF 1>&2
16689
16690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16691 *** to be unable to reliably create shared libraries on AIX.
16692 *** Therefore, libtool is disabling shared libraries support.  If you
16693 *** really care for shared libraries, you may want to modify your PATH
16694 *** so that a non-GNU linker is found, and then restart.
16695
16696 EOF
16697       fi
16698       ;;
16699
16700     amigaos*)
16701       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)'
16702       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16703       hardcode_minus_L_GCJ=yes
16704
16705       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16706       # that the semantics of dynamic libraries on AmigaOS, at least up
16707       # to version 4, is to share data among multiple programs linked
16708       # with the same dynamic library.  Since this doesn't match the
16709       # behavior of shared libraries on other platforms, we can't use
16710       # them.
16711       ld_shlibs_GCJ=no
16712       ;;
16713
16714     beos*)
16715       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16716         allow_undefined_flag_GCJ=unsupported
16717         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16718         # support --undefined.  This deserves some investigation.  FIXME
16719         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16720       else
16721         ld_shlibs_GCJ=no
16722       fi
16723       ;;
16724
16725     cygwin* | mingw* | pw32*)
16726       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16727       # as there is no search path for DLLs.
16728       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729       allow_undefined_flag_GCJ=unsupported
16730       always_export_symbols_GCJ=no
16731       enable_shared_with_static_runtimes_GCJ=yes
16732       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16733
16734       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16735         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16736         # If the export-symbols file already is a .def file (1st line
16737         # is EXPORTS), use it as is; otherwise, prepend...
16738         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16739           cp $export_symbols $output_objdir/$soname.def;
16740         else
16741           echo EXPORTS > $output_objdir/$soname.def;
16742           cat $export_symbols >> $output_objdir/$soname.def;
16743         fi~
16744         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16745       else
16746         ld_shlibs_GCJ=no
16747       fi
16748       ;;
16749
16750     interix3*)
16751       hardcode_direct_GCJ=no
16752       hardcode_shlibpath_var_GCJ=no
16753       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16754       export_dynamic_flag_spec_GCJ='${wl}-E'
16755       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16756       # Instead, shared libraries are loaded at an image base (0x10000000 by
16757       # default) and relocated if they conflict, which is a slow very memory
16758       # consuming and fragmenting process.  To avoid this, we pick a random,
16759       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16760       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16761       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'
16762       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'
16763       ;;
16764
16765     linux*)
16766       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16767         tmp_addflag=
16768         case $cc_basename,$host_cpu in
16769         pgcc*)                          # Portland Group C compiler
16770           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'
16771           tmp_addflag=' $pic_flag'
16772           ;;
16773         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16774           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'
16775           tmp_addflag=' $pic_flag -Mnomain' ;;
16776         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16777           tmp_addflag=' -i_dynamic' ;;
16778         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16779           tmp_addflag=' -i_dynamic -nofor_main' ;;
16780         ifc* | ifort*)                  # Intel Fortran compiler
16781           tmp_addflag=' -nofor_main' ;;
16782         esac
16783         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16784
16785         if test $supports_anon_versioning = yes; then
16786           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16787   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16788   $echo "local: *; };" >> $output_objdir/$libname.ver~
16789           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16790         fi
16791       else
16792         ld_shlibs_GCJ=no
16793       fi
16794       ;;
16795
16796     netbsd*)
16797       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16798         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16799         wlarc=
16800       else
16801         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16802         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16803       fi
16804       ;;
16805
16806     solaris*)
16807       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16808         ld_shlibs_GCJ=no
16809         cat <<EOF 1>&2
16810
16811 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16812 *** create shared libraries on Solaris systems.  Therefore, libtool
16813 *** is disabling shared libraries support.  We urge you to upgrade GNU
16814 *** binutils to release 2.9.1 or newer.  Another option is to modify
16815 *** your PATH or compiler configuration so that the native linker is
16816 *** used, and then restart.
16817
16818 EOF
16819       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16820         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16821         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16822       else
16823         ld_shlibs_GCJ=no
16824       fi
16825       ;;
16826
16827     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16828       case `$LD -v 2>&1` in
16829         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16830         ld_shlibs_GCJ=no
16831         cat <<_LT_EOF 1>&2
16832
16833 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16834 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16835 *** is disabling shared libraries support.  We urge you to upgrade GNU
16836 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16837 *** your PATH or compiler configuration so that the native linker is
16838 *** used, and then restart.
16839
16840 _LT_EOF
16841         ;;
16842         *)
16843           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16844             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16845             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16846             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16847           else
16848             ld_shlibs_GCJ=no
16849           fi
16850         ;;
16851       esac
16852       ;;
16853
16854     sunos4*)
16855       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16856       wlarc=
16857       hardcode_direct_GCJ=yes
16858       hardcode_shlibpath_var_GCJ=no
16859       ;;
16860
16861     *)
16862       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16863         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16864         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16865       else
16866         ld_shlibs_GCJ=no
16867       fi
16868       ;;
16869     esac
16870
16871     if test "$ld_shlibs_GCJ" = no; then
16872       runpath_var=
16873       hardcode_libdir_flag_spec_GCJ=
16874       export_dynamic_flag_spec_GCJ=
16875       whole_archive_flag_spec_GCJ=
16876     fi
16877   else
16878     # PORTME fill in a description of your system's linker (not GNU ld)
16879     case $host_os in
16880     aix3*)
16881       allow_undefined_flag_GCJ=unsupported
16882       always_export_symbols_GCJ=yes
16883       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'
16884       # Note: this linker hardcodes the directories in LIBPATH if there
16885       # are no directories specified by -L.
16886       hardcode_minus_L_GCJ=yes
16887       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16888         # Neither direct hardcoding nor static linking is supported with a
16889         # broken collect2.
16890         hardcode_direct_GCJ=unsupported
16891       fi
16892       ;;
16893
16894     aix4* | aix5*)
16895       if test "$host_cpu" = ia64; then
16896         # On IA64, the linker does run time linking by default, so we don't
16897         # have to do anything special.
16898         aix_use_runtimelinking=no
16899         exp_sym_flag='-Bexport'
16900         no_entry_flag=""
16901       else
16902         # If we're using GNU nm, then we don't want the "-C" option.
16903         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16904         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16905           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'
16906         else
16907           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'
16908         fi
16909         aix_use_runtimelinking=no
16910
16911         # Test if we are trying to use run time linking or normal
16912         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16913         # need to do runtime linking.
16914         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16915           for ld_flag in $LDFLAGS; do
16916           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16917             aix_use_runtimelinking=yes
16918             break
16919           fi
16920           done
16921           ;;
16922         esac
16923
16924         exp_sym_flag='-bexport'
16925         no_entry_flag='-bnoentry'
16926       fi
16927
16928       # When large executables or shared objects are built, AIX ld can
16929       # have problems creating the table of contents.  If linking a library
16930       # or program results in "error TOC overflow" add -mminimal-toc to
16931       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16932       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16933
16934       archive_cmds_GCJ=''
16935       hardcode_direct_GCJ=yes
16936       hardcode_libdir_separator_GCJ=':'
16937       link_all_deplibs_GCJ=yes
16938
16939       if test "$GCC" = yes; then
16940         case $host_os in aix4.[012]|aix4.[012].*)
16941         # We only want to do this on AIX 4.2 and lower, the check
16942         # below for broken collect2 doesn't work under 4.3+
16943           collect2name=`${CC} -print-prog-name=collect2`
16944           if test -f "$collect2name" && \
16945            strings "$collect2name" | grep resolve_lib_name >/dev/null
16946           then
16947           # We have reworked collect2
16948           hardcode_direct_GCJ=yes
16949           else
16950           # We have old collect2
16951           hardcode_direct_GCJ=unsupported
16952           # It fails to find uninstalled libraries when the uninstalled
16953           # path is not listed in the libpath.  Setting hardcode_minus_L
16954           # to unsupported forces relinking
16955           hardcode_minus_L_GCJ=yes
16956           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16957           hardcode_libdir_separator_GCJ=
16958           fi
16959           ;;
16960         esac
16961         shared_flag='-shared'
16962         if test "$aix_use_runtimelinking" = yes; then
16963           shared_flag="$shared_flag "'${wl}-G'
16964         fi
16965       else
16966         # not using gcc
16967         if test "$host_cpu" = ia64; then
16968         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16969         # chokes on -Wl,-G. The following line is correct:
16970           shared_flag='-G'
16971         else
16972           if test "$aix_use_runtimelinking" = yes; then
16973             shared_flag='${wl}-G'
16974           else
16975             shared_flag='${wl}-bM:SRE'
16976           fi
16977         fi
16978       fi
16979
16980       # It seems that -bexpall does not export symbols beginning with
16981       # underscore (_), so it is better to generate a list of symbols to export.
16982       always_export_symbols_GCJ=yes
16983       if test "$aix_use_runtimelinking" = yes; then
16984         # Warning - without using the other runtime loading flags (-brtl),
16985         # -berok will link without error, but may produce a broken library.
16986         allow_undefined_flag_GCJ='-berok'
16987        # Determine the default libpath from the value encoded in an empty executable.
16988        cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994
16995 int
16996 main ()
16997 {
16998
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext conftest$ac_exeext
17004 if { (ac_try="$ac_link"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_link") 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } && {
17017          test -z "$ac_c_werror_flag" ||
17018          test ! -s conftest.err
17019        } && test -s conftest$ac_exeext &&
17020        $as_test_x conftest$ac_exeext; then
17021
17022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17023 }'`
17024 # Check for a 64-bit object if we didn't find anything.
17025 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; }
17026 }'`; fi
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031
17032 fi
17033
17034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17035       conftest$ac_exeext conftest.$ac_ext
17036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17037
17038        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17039         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"
17040        else
17041         if test "$host_cpu" = ia64; then
17042           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17043           allow_undefined_flag_GCJ="-z nodefs"
17044           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"
17045         else
17046          # Determine the default libpath from the value encoded in an empty executable.
17047          cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053
17054 int
17055 main ()
17056 {
17057
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_link") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } && {
17076          test -z "$ac_c_werror_flag" ||
17077          test ! -s conftest.err
17078        } && test -s conftest$ac_exeext &&
17079        $as_test_x conftest$ac_exeext; then
17080
17081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17082 }'`
17083 # Check for a 64-bit object if we didn't find anything.
17084 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; }
17085 }'`; fi
17086 else
17087   echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090
17091 fi
17092
17093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17094       conftest$ac_exeext conftest.$ac_ext
17095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17096
17097          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17098           # Warning - without using the other run time loading flags,
17099           # -berok will link without error, but may produce a broken library.
17100           no_undefined_flag_GCJ=' ${wl}-bernotok'
17101           allow_undefined_flag_GCJ=' ${wl}-berok'
17102           # Exported symbols can be pulled into shared objects from archives
17103           whole_archive_flag_spec_GCJ='$convenience'
17104           archive_cmds_need_lc_GCJ=yes
17105           # This is similar to how AIX traditionally builds its shared libraries.
17106           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'
17107         fi
17108       fi
17109       ;;
17110
17111     amigaos*)
17112       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)'
17113       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17114       hardcode_minus_L_GCJ=yes
17115       # see comment about different semantics on the GNU ld section
17116       ld_shlibs_GCJ=no
17117       ;;
17118
17119     bsdi[45]*)
17120       export_dynamic_flag_spec_GCJ=-rdynamic
17121       ;;
17122
17123     cygwin* | mingw* | pw32*)
17124       # When not using gcc, we currently assume that we are using
17125       # Microsoft Visual C++.
17126       # hardcode_libdir_flag_spec is actually meaningless, as there is
17127       # no search path for DLLs.
17128       hardcode_libdir_flag_spec_GCJ=' '
17129       allow_undefined_flag_GCJ=unsupported
17130       # Tell ltmain to make .lib files, not .a files.
17131       libext=lib
17132       # Tell ltmain to make .dll files, not .so files.
17133       shrext_cmds=".dll"
17134       # FIXME: Setting linknames here is a bad hack.
17135       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17136       # The linker will automatically build a .lib file if we build a DLL.
17137       old_archive_From_new_cmds_GCJ='true'
17138       # FIXME: Should let the user specify the lib program.
17139       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17140       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17141       enable_shared_with_static_runtimes_GCJ=yes
17142       ;;
17143
17144     darwin* | rhapsody*)
17145       case $host_os in
17146         rhapsody* | darwin1.[012])
17147          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17148          ;;
17149        *) # Darwin 1.3 on
17150          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17151            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17152          else
17153            case ${MACOSX_DEPLOYMENT_TARGET} in
17154              10.[012])
17155                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17156                ;;
17157              10.*)
17158                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17159                ;;
17160            esac
17161          fi
17162          ;;
17163       esac
17164       archive_cmds_need_lc_GCJ=no
17165       hardcode_direct_GCJ=no
17166       hardcode_automatic_GCJ=yes
17167       hardcode_shlibpath_var_GCJ=unsupported
17168       whole_archive_flag_spec_GCJ=''
17169       link_all_deplibs_GCJ=yes
17170     if test "$GCC" = yes ; then
17171         output_verbose_link_cmd='echo'
17172         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17173       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17174       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17175       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}'
17176       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}'
17177     else
17178       case $cc_basename in
17179         xlc*)
17180          output_verbose_link_cmd='echo'
17181          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17182          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17183           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17184          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}'
17185           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}'
17186           ;;
17187        *)
17188          ld_shlibs_GCJ=no
17189           ;;
17190       esac
17191     fi
17192       ;;
17193
17194     dgux*)
17195       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17196       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17197       hardcode_shlibpath_var_GCJ=no
17198       ;;
17199
17200     freebsd1*)
17201       ld_shlibs_GCJ=no
17202       ;;
17203
17204     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17205     # support.  Future versions do this automatically, but an explicit c++rt0.o
17206     # does not break anything, and helps significantly (at the cost of a little
17207     # extra space).
17208     freebsd2.2*)
17209       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17210       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17211       hardcode_direct_GCJ=yes
17212       hardcode_shlibpath_var_GCJ=no
17213       ;;
17214
17215     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17216     freebsd2*)
17217       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17218       hardcode_direct_GCJ=yes
17219       hardcode_minus_L_GCJ=yes
17220       hardcode_shlibpath_var_GCJ=no
17221       ;;
17222
17223     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17224     freebsd* | kfreebsd*-gnu | dragonfly*)
17225       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17226       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17227       hardcode_direct_GCJ=yes
17228       hardcode_shlibpath_var_GCJ=no
17229       ;;
17230
17231     hpux9*)
17232       if test "$GCC" = yes; then
17233         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'
17234       else
17235         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'
17236       fi
17237       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17238       hardcode_libdir_separator_GCJ=:
17239       hardcode_direct_GCJ=yes
17240
17241       # hardcode_minus_L: Not really in the search PATH,
17242       # but as the default location of the library.
17243       hardcode_minus_L_GCJ=yes
17244       export_dynamic_flag_spec_GCJ='${wl}-E'
17245       ;;
17246
17247     hpux10*)
17248       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17249         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17250       else
17251         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17252       fi
17253       if test "$with_gnu_ld" = no; then
17254         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17255         hardcode_libdir_separator_GCJ=:
17256
17257         hardcode_direct_GCJ=yes
17258         export_dynamic_flag_spec_GCJ='${wl}-E'
17259
17260         # hardcode_minus_L: Not really in the search PATH,
17261         # but as the default location of the library.
17262         hardcode_minus_L_GCJ=yes
17263       fi
17264       ;;
17265
17266     hpux11*)
17267       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17268         case $host_cpu in
17269         hppa*64*)
17270           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17271           ;;
17272         ia64*)
17273           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17274           ;;
17275         *)
17276           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17277           ;;
17278         esac
17279       else
17280         case $host_cpu in
17281         hppa*64*)
17282           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17283           ;;
17284         ia64*)
17285           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17286           ;;
17287         *)
17288           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17289           ;;
17290         esac
17291       fi
17292       if test "$with_gnu_ld" = no; then
17293         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17294         hardcode_libdir_separator_GCJ=:
17295
17296         case $host_cpu in
17297         hppa*64*|ia64*)
17298           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17299           hardcode_direct_GCJ=no
17300           hardcode_shlibpath_var_GCJ=no
17301           ;;
17302         *)
17303           hardcode_direct_GCJ=yes
17304           export_dynamic_flag_spec_GCJ='${wl}-E'
17305
17306           # hardcode_minus_L: Not really in the search PATH,
17307           # but as the default location of the library.
17308           hardcode_minus_L_GCJ=yes
17309           ;;
17310         esac
17311       fi
17312       ;;
17313
17314     irix5* | irix6* | nonstopux*)
17315       if test "$GCC" = yes; then
17316         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'
17317       else
17318         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'
17319         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17320       fi
17321       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17322       hardcode_libdir_separator_GCJ=:
17323       link_all_deplibs_GCJ=yes
17324       ;;
17325
17326     netbsd*)
17327       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17328         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17329       else
17330         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17331       fi
17332       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17333       hardcode_direct_GCJ=yes
17334       hardcode_shlibpath_var_GCJ=no
17335       ;;
17336
17337     newsos6)
17338       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339       hardcode_direct_GCJ=yes
17340       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17341       hardcode_libdir_separator_GCJ=:
17342       hardcode_shlibpath_var_GCJ=no
17343       ;;
17344
17345     openbsd*)
17346       hardcode_direct_GCJ=yes
17347       hardcode_shlibpath_var_GCJ=no
17348       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17349         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17350         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17351         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17352         export_dynamic_flag_spec_GCJ='${wl}-E'
17353       else
17354        case $host_os in
17355          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17356            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17357            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17358            ;;
17359          *)
17360            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17361            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17362            ;;
17363        esac
17364       fi
17365       ;;
17366
17367     os2*)
17368       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369       hardcode_minus_L_GCJ=yes
17370       allow_undefined_flag_GCJ=unsupported
17371       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'
17372       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17373       ;;
17374
17375     osf3*)
17376       if test "$GCC" = yes; then
17377         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17378         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'
17379       else
17380         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17381         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'
17382       fi
17383       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17384       hardcode_libdir_separator_GCJ=:
17385       ;;
17386
17387     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17388       if test "$GCC" = yes; then
17389         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17390         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'
17391         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17392       else
17393         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17394         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'
17395         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~
17396         $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'
17397
17398         # Both c and cxx compiler support -rpath directly
17399         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17400       fi
17401       hardcode_libdir_separator_GCJ=:
17402       ;;
17403
17404     solaris*)
17405       no_undefined_flag_GCJ=' -z text'
17406       if test "$GCC" = yes; then
17407         wlarc='${wl}'
17408         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17409         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17410           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17411       else
17412         wlarc=''
17413         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17414         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17415         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17416       fi
17417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418       hardcode_shlibpath_var_GCJ=no
17419       case $host_os in
17420       solaris2.[0-5] | solaris2.[0-5].*) ;;
17421       *)
17422         # The compiler driver will combine linker options so we
17423         # cannot just pass the convience library names through
17424         # without $wl, iff we do not link with $LD.
17425         # Luckily, gcc supports the same syntax we need for Sun Studio.
17426         # Supported since Solaris 2.6 (maybe 2.5.1?)
17427         case $wlarc in
17428         '')
17429           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17430         *)
17431           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' ;;
17432         esac ;;
17433       esac
17434       link_all_deplibs_GCJ=yes
17435       ;;
17436
17437     sunos4*)
17438       if test "x$host_vendor" = xsequent; then
17439         # Use $CC to link under sequent, because it throws in some extra .o
17440         # files that make .init and .fini sections work.
17441         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17442       else
17443         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17444       fi
17445       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17446       hardcode_direct_GCJ=yes
17447       hardcode_minus_L_GCJ=yes
17448       hardcode_shlibpath_var_GCJ=no
17449       ;;
17450
17451     sysv4)
17452       case $host_vendor in
17453         sni)
17454           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455           hardcode_direct_GCJ=yes # is this really true???
17456         ;;
17457         siemens)
17458           ## LD is ld it makes a PLAMLIB
17459           ## CC just makes a GrossModule.
17460           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17461           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17462           hardcode_direct_GCJ=no
17463         ;;
17464         motorola)
17465           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17466           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17467         ;;
17468       esac
17469       runpath_var='LD_RUN_PATH'
17470       hardcode_shlibpath_var_GCJ=no
17471       ;;
17472
17473     sysv4.3*)
17474       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17475       hardcode_shlibpath_var_GCJ=no
17476       export_dynamic_flag_spec_GCJ='-Bexport'
17477       ;;
17478
17479     sysv4*MP*)
17480       if test -d /usr/nec; then
17481         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17482         hardcode_shlibpath_var_GCJ=no
17483         runpath_var=LD_RUN_PATH
17484         hardcode_runpath_var=yes
17485         ld_shlibs_GCJ=yes
17486       fi
17487       ;;
17488
17489     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17490       no_undefined_flag_GCJ='${wl}-z,text'
17491       archive_cmds_need_lc_GCJ=no
17492       hardcode_shlibpath_var_GCJ=no
17493       runpath_var='LD_RUN_PATH'
17494
17495       if test "$GCC" = yes; then
17496         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17497         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17498       else
17499         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17500         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17501       fi
17502       ;;
17503
17504     sysv5* | sco3.2v5* | sco5v6*)
17505       # Note: We can NOT use -z defs as we might desire, because we do not
17506       # link with -lc, and that would cause any symbols used from libc to
17507       # always be unresolved, which means just about no library would
17508       # ever link correctly.  If we're not using GNU ld we use -z text
17509       # though, which does catch some bad symbols but isn't as heavy-handed
17510       # as -z defs.
17511       no_undefined_flag_GCJ='${wl}-z,text'
17512       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17513       archive_cmds_need_lc_GCJ=no
17514       hardcode_shlibpath_var_GCJ=no
17515       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17516       hardcode_libdir_separator_GCJ=':'
17517       link_all_deplibs_GCJ=yes
17518       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17519       runpath_var='LD_RUN_PATH'
17520
17521       if test "$GCC" = yes; then
17522         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17523         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17524       else
17525         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17526         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17527       fi
17528       ;;
17529
17530     uts4*)
17531       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17532       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17533       hardcode_shlibpath_var_GCJ=no
17534       ;;
17535
17536     *)
17537       ld_shlibs_GCJ=no
17538       ;;
17539     esac
17540   fi
17541
17542 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17543 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17544 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17545
17546 #
17547 # Do we need to explicitly link libc?
17548 #
17549 case "x$archive_cmds_need_lc_GCJ" in
17550 x|xyes)
17551   # Assume -lc should be added
17552   archive_cmds_need_lc_GCJ=yes
17553
17554   if test "$enable_shared" = yes && test "$GCC" = yes; then
17555     case $archive_cmds_GCJ in
17556     *'~'*)
17557       # FIXME: we may have to deal with multi-command sequences.
17558       ;;
17559     '$CC '*)
17560       # Test whether the compiler implicitly links with -lc since on some
17561       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17562       # to ld, don't add -lc before -lgcc.
17563       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17564 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17565       $rm conftest*
17566       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17567
17568       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569   (eval $ac_compile) 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } 2>conftest.err; then
17573         soname=conftest
17574         lib=conftest
17575         libobjs=conftest.$ac_objext
17576         deplibs=
17577         wl=$lt_prog_compiler_wl_GCJ
17578         pic_flag=$lt_prog_compiler_pic_GCJ
17579         compiler_flags=-v
17580         linker_flags=-v
17581         verstring=
17582         output_objdir=.
17583         libname=conftest
17584         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17585         allow_undefined_flag_GCJ=
17586         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17587   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }
17591         then
17592           archive_cmds_need_lc_GCJ=no
17593         else
17594           archive_cmds_need_lc_GCJ=yes
17595         fi
17596         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17597       else
17598         cat conftest.err 1>&5
17599       fi
17600       $rm conftest*
17601       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17602 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17603       ;;
17604     esac
17605   fi
17606   ;;
17607 esac
17608
17609 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17610 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17611 library_names_spec=
17612 libname_spec='lib$name'
17613 soname_spec=
17614 shrext_cmds=".so"
17615 postinstall_cmds=
17616 postuninstall_cmds=
17617 finish_cmds=
17618 finish_eval=
17619 shlibpath_var=
17620 shlibpath_overrides_runpath=unknown
17621 version_type=none
17622 dynamic_linker="$host_os ld.so"
17623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17624 if test "$GCC" = yes; then
17625   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17626   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17627     # if the path contains ";" then we assume it to be the separator
17628     # otherwise default to the standard path separator (i.e. ":") - it is
17629     # assumed that no part of a normal pathname contains ";" but that should
17630     # okay in the real world where ";" in dirpaths is itself problematic.
17631     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17632   else
17633     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17634   fi
17635 else
17636   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17637 fi
17638 need_lib_prefix=unknown
17639 hardcode_into_libs=no
17640
17641 # when you set need_version to no, make sure it does not cause -set_version
17642 # flags to be left without arguments
17643 need_version=unknown
17644
17645 case $host_os in
17646 aix3*)
17647   version_type=linux
17648   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17649   shlibpath_var=LIBPATH
17650
17651   # AIX 3 has no versioning support, so we append a major version to the name.
17652   soname_spec='${libname}${release}${shared_ext}$major'
17653   ;;
17654
17655 aix4* | aix5*)
17656   version_type=linux
17657   need_lib_prefix=no
17658   need_version=no
17659   hardcode_into_libs=yes
17660   if test "$host_cpu" = ia64; then
17661     # AIX 5 supports IA64
17662     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17663     shlibpath_var=LD_LIBRARY_PATH
17664   else
17665     # With GCC up to 2.95.x, collect2 would create an import file
17666     # for dependence libraries.  The import file would start with
17667     # the line `#! .'.  This would cause the generated library to
17668     # depend on `.', always an invalid library.  This was fixed in
17669     # development snapshots of GCC prior to 3.0.
17670     case $host_os in
17671       aix4 | aix4.[01] | aix4.[01].*)
17672       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17673            echo ' yes '
17674            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17675         :
17676       else
17677         can_build_shared=no
17678       fi
17679       ;;
17680     esac
17681     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17682     # soname into executable. Probably we can add versioning support to
17683     # collect2, so additional links can be useful in future.
17684     if test "$aix_use_runtimelinking" = yes; then
17685       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17686       # instead of lib<name>.a to let people know that these are not
17687       # typical AIX shared libraries.
17688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689     else
17690       # We preserve .a as extension for shared libraries through AIX4.2
17691       # and later when we are not doing run time linking.
17692       library_names_spec='${libname}${release}.a $libname.a'
17693       soname_spec='${libname}${release}${shared_ext}$major'
17694     fi
17695     shlibpath_var=LIBPATH
17696   fi
17697   ;;
17698
17699 amigaos*)
17700   library_names_spec='$libname.ixlibrary $libname.a'
17701   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17702   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'
17703   ;;
17704
17705 beos*)
17706   library_names_spec='${libname}${shared_ext}'
17707   dynamic_linker="$host_os ld.so"
17708   shlibpath_var=LIBRARY_PATH
17709   ;;
17710
17711 bsdi[45]*)
17712   version_type=linux
17713   need_version=no
17714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17715   soname_spec='${libname}${release}${shared_ext}$major'
17716   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17717   shlibpath_var=LD_LIBRARY_PATH
17718   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17719   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17720   # the default ld.so.conf also contains /usr/contrib/lib and
17721   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17722   # libtool to hard-code these into programs
17723   ;;
17724
17725 cygwin* | mingw* | pw32*)
17726   version_type=windows
17727   shrext_cmds=".dll"
17728   need_version=no
17729   need_lib_prefix=no
17730
17731   case $GCC,$host_os in
17732   yes,cygwin* | yes,mingw* | yes,pw32*)
17733     library_names_spec='$libname.dll.a'
17734     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17735     postinstall_cmds='base_file=`basename \${file}`~
17736       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17737       dldir=$destdir/`dirname \$dlpath`~
17738       test -d \$dldir || mkdir -p \$dldir~
17739       $install_prog $dir/$dlname \$dldir/$dlname~
17740       chmod a+x \$dldir/$dlname'
17741     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17742       dlpath=$dir/\$dldll~
17743        $rm \$dlpath'
17744     shlibpath_overrides_runpath=yes
17745
17746     case $host_os in
17747     cygwin*)
17748       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17749       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17750       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17751       ;;
17752     mingw*)
17753       # MinGW DLLs use traditional 'lib' prefix
17754       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17755       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17756       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17757         # It is most probably a Windows format PATH printed by
17758         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17759         # path with ; separators, and with drive letters. We can handle the
17760         # drive letters (cygwin fileutils understands them), so leave them,
17761         # especially as we might pass files found there to a mingw objdump,
17762         # which wouldn't understand a cygwinified path. Ahh.
17763         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17764       else
17765         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17766       fi
17767       ;;
17768     pw32*)
17769       # pw32 DLLs use 'pw' prefix rather than 'lib'
17770       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17771       ;;
17772     esac
17773     ;;
17774
17775   *)
17776     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17777     ;;
17778   esac
17779   dynamic_linker='Win32 ld.exe'
17780   # FIXME: first we should search . and the directory the executable is in
17781   shlibpath_var=PATH
17782   ;;
17783
17784 darwin* | rhapsody*)
17785   dynamic_linker="$host_os dyld"
17786   version_type=darwin
17787   need_lib_prefix=no
17788   need_version=no
17789   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17790   soname_spec='${libname}${release}${major}$shared_ext'
17791   shlibpath_overrides_runpath=yes
17792   shlibpath_var=DYLD_LIBRARY_PATH
17793   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17794   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17795   if test "$GCC" = yes; then
17796     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"`
17797   else
17798     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17799   fi
17800   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17801   ;;
17802
17803 dgux*)
17804   version_type=linux
17805   need_lib_prefix=no
17806   need_version=no
17807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17808   soname_spec='${libname}${release}${shared_ext}$major'
17809   shlibpath_var=LD_LIBRARY_PATH
17810   ;;
17811
17812 freebsd1*)
17813   dynamic_linker=no
17814   ;;
17815
17816 kfreebsd*-gnu)
17817   version_type=linux
17818   need_lib_prefix=no
17819   need_version=no
17820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17821   soname_spec='${libname}${release}${shared_ext}$major'
17822   shlibpath_var=LD_LIBRARY_PATH
17823   shlibpath_overrides_runpath=no
17824   hardcode_into_libs=yes
17825   dynamic_linker='GNU ld.so'
17826   ;;
17827
17828 freebsd* | dragonfly*)
17829   # DragonFly does not have aout.  When/if they implement a new
17830   # versioning mechanism, adjust this.
17831   if test -x /usr/bin/objformat; then
17832     objformat=`/usr/bin/objformat`
17833   else
17834     case $host_os in
17835     freebsd[123]*) objformat=aout ;;
17836     *) objformat=elf ;;
17837     esac
17838   fi
17839   version_type=freebsd-$objformat
17840   case $version_type in
17841     freebsd-elf*)
17842       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17843       need_version=no
17844       need_lib_prefix=no
17845       ;;
17846     freebsd-*)
17847       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17848       need_version=yes
17849       ;;
17850   esac
17851   shlibpath_var=LD_LIBRARY_PATH
17852   case $host_os in
17853   freebsd2*)
17854     shlibpath_overrides_runpath=yes
17855     ;;
17856   freebsd3.[01]* | freebsdelf3.[01]*)
17857     shlibpath_overrides_runpath=yes
17858     hardcode_into_libs=yes
17859     ;;
17860   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17861   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17862     shlibpath_overrides_runpath=no
17863     hardcode_into_libs=yes
17864     ;;
17865   freebsd*) # from 4.6 on
17866     shlibpath_overrides_runpath=yes
17867     hardcode_into_libs=yes
17868     ;;
17869   esac
17870   ;;
17871
17872 gnu*)
17873   version_type=linux
17874   need_lib_prefix=no
17875   need_version=no
17876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17877   soname_spec='${libname}${release}${shared_ext}$major'
17878   shlibpath_var=LD_LIBRARY_PATH
17879   hardcode_into_libs=yes
17880   ;;
17881
17882 hpux9* | hpux10* | hpux11*)
17883   # Give a soname corresponding to the major version so that dld.sl refuses to
17884   # link against other versions.
17885   version_type=sunos
17886   need_lib_prefix=no
17887   need_version=no
17888   case $host_cpu in
17889   ia64*)
17890     shrext_cmds='.so'
17891     hardcode_into_libs=yes
17892     dynamic_linker="$host_os dld.so"
17893     shlibpath_var=LD_LIBRARY_PATH
17894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896     soname_spec='${libname}${release}${shared_ext}$major'
17897     if test "X$HPUX_IA64_MODE" = X32; then
17898       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17899     else
17900       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17901     fi
17902     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17903     ;;
17904    hppa*64*)
17905      shrext_cmds='.sl'
17906      hardcode_into_libs=yes
17907      dynamic_linker="$host_os dld.sl"
17908      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17909      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911      soname_spec='${libname}${release}${shared_ext}$major'
17912      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17913      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17914      ;;
17915    *)
17916     shrext_cmds='.sl'
17917     dynamic_linker="$host_os dld.sl"
17918     shlibpath_var=SHLIB_PATH
17919     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17921     soname_spec='${libname}${release}${shared_ext}$major'
17922     ;;
17923   esac
17924   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17925   postinstall_cmds='chmod 555 $lib'
17926   ;;
17927
17928 interix3*)
17929   version_type=linux
17930   need_lib_prefix=no
17931   need_version=no
17932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17933   soname_spec='${libname}${release}${shared_ext}$major'
17934   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17935   shlibpath_var=LD_LIBRARY_PATH
17936   shlibpath_overrides_runpath=no
17937   hardcode_into_libs=yes
17938   ;;
17939
17940 irix5* | irix6* | nonstopux*)
17941   case $host_os in
17942     nonstopux*) version_type=nonstopux ;;
17943     *)
17944         if test "$lt_cv_prog_gnu_ld" = yes; then
17945                 version_type=linux
17946         else
17947                 version_type=irix
17948         fi ;;
17949   esac
17950   need_lib_prefix=no
17951   need_version=no
17952   soname_spec='${libname}${release}${shared_ext}$major'
17953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17954   case $host_os in
17955   irix5* | nonstopux*)
17956     libsuff= shlibsuff=
17957     ;;
17958   *)
17959     case $LD in # libtool.m4 will add one of these switches to LD
17960     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17961       libsuff= shlibsuff= libmagic=32-bit;;
17962     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17963       libsuff=32 shlibsuff=N32 libmagic=N32;;
17964     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17965       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17966     *) libsuff= shlibsuff= libmagic=never-match;;
17967     esac
17968     ;;
17969   esac
17970   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17971   shlibpath_overrides_runpath=no
17972   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17973   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17974   hardcode_into_libs=yes
17975   ;;
17976
17977 # No shared lib support for Linux oldld, aout, or coff.
17978 linux*oldld* | linux*aout* | linux*coff*)
17979   dynamic_linker=no
17980   ;;
17981
17982 # This must be Linux ELF.
17983 linux*)
17984   version_type=linux
17985   need_lib_prefix=no
17986   need_version=no
17987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988   soname_spec='${libname}${release}${shared_ext}$major'
17989   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17990   shlibpath_var=LD_LIBRARY_PATH
17991   shlibpath_overrides_runpath=no
17992   # This implies no fast_install, which is unacceptable.
17993   # Some rework will be needed to allow for fast_install
17994   # before this can be enabled.
17995   hardcode_into_libs=yes
17996
17997   # find out which ABI we are using
17998   libsuff=
17999   case "$host_cpu" in
18000   x86_64*|s390x*|powerpc64*)
18001     echo '#line 18001 "configure"' > conftest.$ac_ext
18002     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18003   (eval $ac_compile) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; then
18007       case `/usr/bin/file conftest.$ac_objext` in
18008       *64-bit*)
18009         libsuff=64
18010         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18011         ;;
18012       esac
18013     fi
18014     rm -rf conftest*
18015     ;;
18016   esac
18017
18018   # Append ld.so.conf contents to the search path
18019   if test -f /etc/ld.so.conf; then
18020     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' ' '`
18021     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18022   fi
18023
18024   # We used to test for /lib/ld.so.1 and disable shared libraries on
18025   # powerpc, because MkLinux only supported shared libraries with the
18026   # GNU dynamic linker.  Since this was broken with cross compilers,
18027   # most powerpc-linux boxes support dynamic linking these days and
18028   # people can always --disable-shared, the test was removed, and we
18029   # assume the GNU/Linux dynamic linker is in use.
18030   dynamic_linker='GNU/Linux ld.so'
18031   ;;
18032
18033 knetbsd*-gnu)
18034   version_type=linux
18035   need_lib_prefix=no
18036   need_version=no
18037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18038   soname_spec='${libname}${release}${shared_ext}$major'
18039   shlibpath_var=LD_LIBRARY_PATH
18040   shlibpath_overrides_runpath=no
18041   hardcode_into_libs=yes
18042   dynamic_linker='GNU ld.so'
18043   ;;
18044
18045 netbsd*)
18046   version_type=sunos
18047   need_lib_prefix=no
18048   need_version=no
18049   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18051     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18052     dynamic_linker='NetBSD (a.out) ld.so'
18053   else
18054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18055     soname_spec='${libname}${release}${shared_ext}$major'
18056     dynamic_linker='NetBSD ld.elf_so'
18057   fi
18058   shlibpath_var=LD_LIBRARY_PATH
18059   shlibpath_overrides_runpath=yes
18060   hardcode_into_libs=yes
18061   ;;
18062
18063 newsos6)
18064   version_type=linux
18065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18066   shlibpath_var=LD_LIBRARY_PATH
18067   shlibpath_overrides_runpath=yes
18068   ;;
18069
18070 nto-qnx*)
18071   version_type=linux
18072   need_lib_prefix=no
18073   need_version=no
18074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075   soname_spec='${libname}${release}${shared_ext}$major'
18076   shlibpath_var=LD_LIBRARY_PATH
18077   shlibpath_overrides_runpath=yes
18078   ;;
18079
18080 openbsd*)
18081   version_type=sunos
18082   sys_lib_dlsearch_path_spec="/usr/lib"
18083   need_lib_prefix=no
18084   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18085   case $host_os in
18086     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18087     *)                         need_version=no  ;;
18088   esac
18089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18091   shlibpath_var=LD_LIBRARY_PATH
18092   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18093     case $host_os in
18094       openbsd2.[89] | openbsd2.[89].*)
18095         shlibpath_overrides_runpath=no
18096         ;;
18097       *)
18098         shlibpath_overrides_runpath=yes
18099         ;;
18100       esac
18101   else
18102     shlibpath_overrides_runpath=yes
18103   fi
18104   ;;
18105
18106 os2*)
18107   libname_spec='$name'
18108   shrext_cmds=".dll"
18109   need_lib_prefix=no
18110   library_names_spec='$libname${shared_ext} $libname.a'
18111   dynamic_linker='OS/2 ld.exe'
18112   shlibpath_var=LIBPATH
18113   ;;
18114
18115 osf3* | osf4* | osf5*)
18116   version_type=osf
18117   need_lib_prefix=no
18118   need_version=no
18119   soname_spec='${libname}${release}${shared_ext}$major'
18120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121   shlibpath_var=LD_LIBRARY_PATH
18122   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18123   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18124   ;;
18125
18126 solaris*)
18127   version_type=linux
18128   need_lib_prefix=no
18129   need_version=no
18130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131   soname_spec='${libname}${release}${shared_ext}$major'
18132   shlibpath_var=LD_LIBRARY_PATH
18133   shlibpath_overrides_runpath=yes
18134   hardcode_into_libs=yes
18135   # ldd complains unless libraries are executable
18136   postinstall_cmds='chmod +x $lib'
18137   ;;
18138
18139 sunos4*)
18140   version_type=sunos
18141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18142   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18143   shlibpath_var=LD_LIBRARY_PATH
18144   shlibpath_overrides_runpath=yes
18145   if test "$with_gnu_ld" = yes; then
18146     need_lib_prefix=no
18147   fi
18148   need_version=yes
18149   ;;
18150
18151 sysv4 | sysv4.3*)
18152   version_type=linux
18153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18154   soname_spec='${libname}${release}${shared_ext}$major'
18155   shlibpath_var=LD_LIBRARY_PATH
18156   case $host_vendor in
18157     sni)
18158       shlibpath_overrides_runpath=no
18159       need_lib_prefix=no
18160       export_dynamic_flag_spec='${wl}-Blargedynsym'
18161       runpath_var=LD_RUN_PATH
18162       ;;
18163     siemens)
18164       need_lib_prefix=no
18165       ;;
18166     motorola)
18167       need_lib_prefix=no
18168       need_version=no
18169       shlibpath_overrides_runpath=no
18170       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18171       ;;
18172   esac
18173   ;;
18174
18175 sysv4*MP*)
18176   if test -d /usr/nec ;then
18177     version_type=linux
18178     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18179     soname_spec='$libname${shared_ext}.$major'
18180     shlibpath_var=LD_LIBRARY_PATH
18181   fi
18182   ;;
18183
18184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18185   version_type=freebsd-elf
18186   need_lib_prefix=no
18187   need_version=no
18188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18189   soname_spec='${libname}${release}${shared_ext}$major'
18190   shlibpath_var=LD_LIBRARY_PATH
18191   hardcode_into_libs=yes
18192   if test "$with_gnu_ld" = yes; then
18193     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18194     shlibpath_overrides_runpath=no
18195   else
18196     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18197     shlibpath_overrides_runpath=yes
18198     case $host_os in
18199       sco3.2v5*)
18200         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18201         ;;
18202     esac
18203   fi
18204   sys_lib_dlsearch_path_spec='/usr/lib'
18205   ;;
18206
18207 uts4*)
18208   version_type=linux
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210   soname_spec='${libname}${release}${shared_ext}$major'
18211   shlibpath_var=LD_LIBRARY_PATH
18212   ;;
18213
18214 *)
18215   dynamic_linker=no
18216   ;;
18217 esac
18218 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18219 echo "${ECHO_T}$dynamic_linker" >&6; }
18220 test "$dynamic_linker" = no && can_build_shared=no
18221
18222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18223 if test "$GCC" = yes; then
18224   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18225 fi
18226
18227 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18228 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18229 hardcode_action_GCJ=
18230 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18231    test -n "$runpath_var_GCJ" || \
18232    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18233
18234   # We can hardcode non-existant directories.
18235   if test "$hardcode_direct_GCJ" != no &&
18236      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18237      # have to relink, otherwise we might link with an installed library
18238      # when we should be linking with a yet-to-be-installed one
18239      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18240      test "$hardcode_minus_L_GCJ" != no; then
18241     # Linking always hardcodes the temporary library directory.
18242     hardcode_action_GCJ=relink
18243   else
18244     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18245     hardcode_action_GCJ=immediate
18246   fi
18247 else
18248   # We cannot hardcode anything, or else we can only hardcode existing
18249   # directories.
18250   hardcode_action_GCJ=unsupported
18251 fi
18252 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18253 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18254
18255 if test "$hardcode_action_GCJ" = relink; then
18256   # Fast installation is not supported
18257   enable_fast_install=no
18258 elif test "$shlibpath_overrides_runpath" = yes ||
18259      test "$enable_shared" = no; then
18260   # Fast installation is not necessary
18261   enable_fast_install=needless
18262 fi
18263
18264
18265 # The else clause should only fire when bootstrapping the
18266 # libtool distribution, otherwise you forgot to ship ltmain.sh
18267 # with your package, and you will get complaints that there are
18268 # no rules to generate ltmain.sh.
18269 if test -f "$ltmain"; then
18270   # See if we are running on zsh, and set the options which allow our commands through
18271   # without removal of \ escapes.
18272   if test -n "${ZSH_VERSION+set}" ; then
18273     setopt NO_GLOB_SUBST
18274   fi
18275   # Now quote all the things that may contain metacharacters while being
18276   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18277   # variables and quote the copies for generation of the libtool script.
18278   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18279     SED SHELL STRIP \
18280     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18281     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18282     deplibs_check_method reload_flag reload_cmds need_locks \
18283     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18284     lt_cv_sys_global_symbol_to_c_name_address \
18285     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18286     old_postinstall_cmds old_postuninstall_cmds \
18287     compiler_GCJ \
18288     CC_GCJ \
18289     LD_GCJ \
18290     lt_prog_compiler_wl_GCJ \
18291     lt_prog_compiler_pic_GCJ \
18292     lt_prog_compiler_static_GCJ \
18293     lt_prog_compiler_no_builtin_flag_GCJ \
18294     export_dynamic_flag_spec_GCJ \
18295     thread_safe_flag_spec_GCJ \
18296     whole_archive_flag_spec_GCJ \
18297     enable_shared_with_static_runtimes_GCJ \
18298     old_archive_cmds_GCJ \
18299     old_archive_from_new_cmds_GCJ \
18300     predep_objects_GCJ \
18301     postdep_objects_GCJ \
18302     predeps_GCJ \
18303     postdeps_GCJ \
18304     compiler_lib_search_path_GCJ \
18305     archive_cmds_GCJ \
18306     archive_expsym_cmds_GCJ \
18307     postinstall_cmds_GCJ \
18308     postuninstall_cmds_GCJ \
18309     old_archive_from_expsyms_cmds_GCJ \
18310     allow_undefined_flag_GCJ \
18311     no_undefined_flag_GCJ \
18312     export_symbols_cmds_GCJ \
18313     hardcode_libdir_flag_spec_GCJ \
18314     hardcode_libdir_flag_spec_ld_GCJ \
18315     hardcode_libdir_separator_GCJ \
18316     hardcode_automatic_GCJ \
18317     module_cmds_GCJ \
18318     module_expsym_cmds_GCJ \
18319     lt_cv_prog_compiler_c_o_GCJ \
18320     exclude_expsyms_GCJ \
18321     include_expsyms_GCJ; do
18322
18323     case $var in
18324     old_archive_cmds_GCJ | \
18325     old_archive_from_new_cmds_GCJ | \
18326     archive_cmds_GCJ | \
18327     archive_expsym_cmds_GCJ | \
18328     module_cmds_GCJ | \
18329     module_expsym_cmds_GCJ | \
18330     old_archive_from_expsyms_cmds_GCJ | \
18331     export_symbols_cmds_GCJ | \
18332     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18333     postinstall_cmds | postuninstall_cmds | \
18334     old_postinstall_cmds | old_postuninstall_cmds | \
18335     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18336       # Double-quote double-evaled strings.
18337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18338       ;;
18339     *)
18340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18341       ;;
18342     esac
18343   done
18344
18345   case $lt_echo in
18346   *'\$0 --fallback-echo"')
18347     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18348     ;;
18349   esac
18350
18351 cfgfile="$ofile"
18352
18353   cat <<__EOF__ >> "$cfgfile"
18354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18355
18356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18357
18358 # Shell to use when invoking shell scripts.
18359 SHELL=$lt_SHELL
18360
18361 # Whether or not to build shared libraries.
18362 build_libtool_libs=$enable_shared
18363
18364 # Whether or not to build static libraries.
18365 build_old_libs=$enable_static
18366
18367 # Whether or not to add -lc for building shared libraries.
18368 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18369
18370 # Whether or not to disallow shared libs when runtime libs are static
18371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18372
18373 # Whether or not to optimize for fast installation.
18374 fast_install=$enable_fast_install
18375
18376 # The host system.
18377 host_alias=$host_alias
18378 host=$host
18379 host_os=$host_os
18380
18381 # The build system.
18382 build_alias=$build_alias
18383 build=$build
18384 build_os=$build_os
18385
18386 # An echo program that does not interpret backslashes.
18387 echo=$lt_echo
18388
18389 # The archiver.
18390 AR=$lt_AR
18391 AR_FLAGS=$lt_AR_FLAGS
18392
18393 # A C compiler.
18394 LTCC=$lt_LTCC
18395
18396 # LTCC compiler flags.
18397 LTCFLAGS=$lt_LTCFLAGS
18398
18399 # A language-specific compiler.
18400 CC=$lt_compiler_GCJ
18401
18402 # Is the compiler the GNU C compiler?
18403 with_gcc=$GCC_GCJ
18404
18405 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18406 gcc_ver=\`gcc -dumpversion\`
18407
18408 # An ERE matcher.
18409 EGREP=$lt_EGREP
18410
18411 # The linker used to build libraries.
18412 LD=$lt_LD_GCJ
18413
18414 # Whether we need hard or soft links.
18415 LN_S=$lt_LN_S
18416
18417 # A BSD-compatible nm program.
18418 NM=$lt_NM
18419
18420 # A symbol stripping program
18421 STRIP=$lt_STRIP
18422
18423 # Used to examine libraries when file_magic_cmd begins "file"
18424 MAGIC_CMD=$MAGIC_CMD
18425
18426 # Used on cygwin: DLL creation program.
18427 DLLTOOL="$DLLTOOL"
18428
18429 # Used on cygwin: object dumper.
18430 OBJDUMP="$OBJDUMP"
18431
18432 # Used on cygwin: assembler.
18433 AS="$AS"
18434
18435 # The name of the directory that contains temporary libtool files.
18436 objdir=$objdir
18437
18438 # How to create reloadable object files.
18439 reload_flag=$lt_reload_flag
18440 reload_cmds=$lt_reload_cmds
18441
18442 # How to pass a linker flag through the compiler.
18443 wl=$lt_lt_prog_compiler_wl_GCJ
18444
18445 # Object file suffix (normally "o").
18446 objext="$ac_objext"
18447
18448 # Old archive suffix (normally "a").
18449 libext="$libext"
18450
18451 # Shared library suffix (normally ".so").
18452 shrext_cmds='$shrext_cmds'
18453
18454 # Executable file suffix (normally "").
18455 exeext="$exeext"
18456
18457 # Additional compiler flags for building library objects.
18458 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18459 pic_mode=$pic_mode
18460
18461 # What is the maximum length of a command?
18462 max_cmd_len=$lt_cv_sys_max_cmd_len
18463
18464 # Does compiler simultaneously support -c and -o options?
18465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18466
18467 # Must we lock files when doing compilation?
18468 need_locks=$lt_need_locks
18469
18470 # Do we need the lib prefix for modules?
18471 need_lib_prefix=$need_lib_prefix
18472
18473 # Do we need a version for libraries?
18474 need_version=$need_version
18475
18476 # Whether dlopen is supported.
18477 dlopen_support=$enable_dlopen
18478
18479 # Whether dlopen of programs is supported.
18480 dlopen_self=$enable_dlopen_self
18481
18482 # Whether dlopen of statically linked programs is supported.
18483 dlopen_self_static=$enable_dlopen_self_static
18484
18485 # Compiler flag to prevent dynamic linking.
18486 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18487
18488 # Compiler flag to turn off builtin functions.
18489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18490
18491 # Compiler flag to allow reflexive dlopens.
18492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18493
18494 # Compiler flag to generate shared objects directly from archives.
18495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18496
18497 # Compiler flag to generate thread-safe objects.
18498 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18499
18500 # Library versioning type.
18501 version_type=$version_type
18502
18503 # Format of library name prefix.
18504 libname_spec=$lt_libname_spec
18505
18506 # List of archive names.  First name is the real one, the rest are links.
18507 # The last name is the one that the linker finds with -lNAME.
18508 library_names_spec=$lt_library_names_spec
18509
18510 # The coded name of the library, if different from the real name.
18511 soname_spec=$lt_soname_spec
18512
18513 # Commands used to build and install an old-style archive.
18514 RANLIB=$lt_RANLIB
18515 old_archive_cmds=$lt_old_archive_cmds_GCJ
18516 old_postinstall_cmds=$lt_old_postinstall_cmds
18517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18518
18519 # Create an old-style archive from a shared archive.
18520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18521
18522 # Create a temporary old-style archive to link instead of a shared archive.
18523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18524
18525 # Commands used to build and install a shared archive.
18526 archive_cmds=$lt_archive_cmds_GCJ
18527 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18528 postinstall_cmds=$lt_postinstall_cmds
18529 postuninstall_cmds=$lt_postuninstall_cmds
18530
18531 # Commands used to build a loadable module (assumed same as above if empty)
18532 module_cmds=$lt_module_cmds_GCJ
18533 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18534
18535 # Commands to strip libraries.
18536 old_striplib=$lt_old_striplib
18537 striplib=$lt_striplib
18538
18539 # Dependencies to place before the objects being linked to create a
18540 # shared library.
18541 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18542
18543 # Dependencies to place after the objects being linked to create a
18544 # shared library.
18545 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18546
18547 # Dependencies to place before the objects being linked to create a
18548 # shared library.
18549 predeps=$lt_predeps_GCJ
18550
18551 # Dependencies to place after the objects being linked to create a
18552 # shared library.
18553 postdeps=$lt_postdeps_GCJ
18554
18555 # The library search path used internally by the compiler when linking
18556 # a shared library.
18557 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18558
18559 # Method to check whether dependent libraries are shared objects.
18560 deplibs_check_method=$lt_deplibs_check_method
18561
18562 # Command to use when deplibs_check_method == file_magic.
18563 file_magic_cmd=$lt_file_magic_cmd
18564
18565 # Flag that allows shared libraries with undefined symbols to be built.
18566 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18567
18568 # Flag that forces no undefined symbols.
18569 no_undefined_flag=$lt_no_undefined_flag_GCJ
18570
18571 # Commands used to finish a libtool library installation in a directory.
18572 finish_cmds=$lt_finish_cmds
18573
18574 # Same as above, but a single script fragment to be evaled but not shown.
18575 finish_eval=$lt_finish_eval
18576
18577 # Take the output of nm and produce a listing of raw symbols and C names.
18578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18579
18580 # Transform the output of nm in a proper C declaration
18581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18582
18583 # Transform the output of nm in a C name address pair
18584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18585
18586 # This is the shared library runtime path variable.
18587 runpath_var=$runpath_var
18588
18589 # This is the shared library path variable.
18590 shlibpath_var=$shlibpath_var
18591
18592 # Is shlibpath searched before the hard-coded library search path?
18593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18594
18595 # How to hardcode a shared library path into an executable.
18596 hardcode_action=$hardcode_action_GCJ
18597
18598 # Whether we should hardcode library paths into libraries.
18599 hardcode_into_libs=$hardcode_into_libs
18600
18601 # Flag to hardcode \$libdir into a binary during linking.
18602 # This must work even if \$libdir does not exist.
18603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18604
18605 # If ld is used when linking, flag to hardcode \$libdir into
18606 # a binary during linking. This must work even if \$libdir does
18607 # not exist.
18608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18609
18610 # Whether we need a single -rpath flag with a separated argument.
18611 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18612
18613 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18614 # resulting binary.
18615 hardcode_direct=$hardcode_direct_GCJ
18616
18617 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18618 # resulting binary.
18619 hardcode_minus_L=$hardcode_minus_L_GCJ
18620
18621 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18622 # the resulting binary.
18623 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18624
18625 # Set to yes if building a shared library automatically hardcodes DIR into the library
18626 # and all subsequent libraries and executables linked against it.
18627 hardcode_automatic=$hardcode_automatic_GCJ
18628
18629 # Variables whose values should be saved in libtool wrapper scripts and
18630 # restored at relink time.
18631 variables_saved_for_relink="$variables_saved_for_relink"
18632
18633 # Whether libtool must link a program against all its dependency libraries.
18634 link_all_deplibs=$link_all_deplibs_GCJ
18635
18636 # Compile-time system search path for libraries
18637 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18638
18639 # Run-time system search path for libraries
18640 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18641
18642 # Fix the shell variable \$srcfile for the compiler.
18643 fix_srcfile_path="$fix_srcfile_path_GCJ"
18644
18645 # Set to yes if exported symbols are required.
18646 always_export_symbols=$always_export_symbols_GCJ
18647
18648 # The commands to list exported symbols.
18649 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18650
18651 # The commands to extract the exported symbol list from a shared archive.
18652 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18653
18654 # Symbols that should not be listed in the preloaded symbols.
18655 exclude_expsyms=$lt_exclude_expsyms_GCJ
18656
18657 # Symbols that must always be exported.
18658 include_expsyms=$lt_include_expsyms_GCJ
18659
18660 # ### END LIBTOOL TAG CONFIG: $tagname
18661
18662 __EOF__
18663
18664
18665 else
18666   # If there is no Makefile yet, we rely on a make rule to execute
18667   # `config.status --recheck' to rerun these tests and create the
18668   # libtool script then.
18669   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18670   if test -f "$ltmain_in"; then
18671     test -f Makefile && make "$ltmain"
18672   fi
18673 fi
18674
18675
18676 ac_ext=c
18677 ac_cpp='$CPP $CPPFLAGS'
18678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18681
18682 CC="$lt_save_CC"
18683
18684         else
18685           tagname=""
18686         fi
18687         ;;
18688
18689       RC)
18690
18691
18692 # Source file extension for RC test sources.
18693 ac_ext=rc
18694
18695 # Object file extension for compiled RC test sources.
18696 objext=o
18697 objext_RC=$objext
18698
18699 # Code to be used in simple compile tests
18700 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18701
18702 # Code to be used in simple link tests
18703 lt_simple_link_test_code="$lt_simple_compile_test_code"
18704
18705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18706
18707 # If no C compiler was specified, use CC.
18708 LTCC=${LTCC-"$CC"}
18709
18710 # If no C compiler flags were specified, use CFLAGS.
18711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18712
18713 # Allow CC to be a program name with arguments.
18714 compiler=$CC
18715
18716
18717 # save warnings/boilerplate of simple test code
18718 ac_outfile=conftest.$ac_objext
18719 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18721 _lt_compiler_boilerplate=`cat conftest.err`
18722 $rm conftest*
18723
18724 ac_outfile=conftest.$ac_objext
18725 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18727 _lt_linker_boilerplate=`cat conftest.err`
18728 $rm conftest*
18729
18730
18731 # Allow CC to be a program name with arguments.
18732 lt_save_CC="$CC"
18733 CC=${RC-"windres"}
18734 compiler=$CC
18735 compiler_RC=$CC
18736 for cc_temp in $compiler""; do
18737   case $cc_temp in
18738     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18739     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18740     \-*) ;;
18741     *) break;;
18742   esac
18743 done
18744 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18745
18746 lt_cv_prog_compiler_c_o_RC=yes
18747
18748 # The else clause should only fire when bootstrapping the
18749 # libtool distribution, otherwise you forgot to ship ltmain.sh
18750 # with your package, and you will get complaints that there are
18751 # no rules to generate ltmain.sh.
18752 if test -f "$ltmain"; then
18753   # See if we are running on zsh, and set the options which allow our commands through
18754   # without removal of \ escapes.
18755   if test -n "${ZSH_VERSION+set}" ; then
18756     setopt NO_GLOB_SUBST
18757   fi
18758   # Now quote all the things that may contain metacharacters while being
18759   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18760   # variables and quote the copies for generation of the libtool script.
18761   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18762     SED SHELL STRIP \
18763     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18764     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18765     deplibs_check_method reload_flag reload_cmds need_locks \
18766     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18767     lt_cv_sys_global_symbol_to_c_name_address \
18768     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18769     old_postinstall_cmds old_postuninstall_cmds \
18770     compiler_RC \
18771     CC_RC \
18772     LD_RC \
18773     lt_prog_compiler_wl_RC \
18774     lt_prog_compiler_pic_RC \
18775     lt_prog_compiler_static_RC \
18776     lt_prog_compiler_no_builtin_flag_RC \
18777     export_dynamic_flag_spec_RC \
18778     thread_safe_flag_spec_RC \
18779     whole_archive_flag_spec_RC \
18780     enable_shared_with_static_runtimes_RC \
18781     old_archive_cmds_RC \
18782     old_archive_from_new_cmds_RC \
18783     predep_objects_RC \
18784     postdep_objects_RC \
18785     predeps_RC \
18786     postdeps_RC \
18787     compiler_lib_search_path_RC \
18788     archive_cmds_RC \
18789     archive_expsym_cmds_RC \
18790     postinstall_cmds_RC \
18791     postuninstall_cmds_RC \
18792     old_archive_from_expsyms_cmds_RC \
18793     allow_undefined_flag_RC \
18794     no_undefined_flag_RC \
18795     export_symbols_cmds_RC \
18796     hardcode_libdir_flag_spec_RC \
18797     hardcode_libdir_flag_spec_ld_RC \
18798     hardcode_libdir_separator_RC \
18799     hardcode_automatic_RC \
18800     module_cmds_RC \
18801     module_expsym_cmds_RC \
18802     lt_cv_prog_compiler_c_o_RC \
18803     exclude_expsyms_RC \
18804     include_expsyms_RC; do
18805
18806     case $var in
18807     old_archive_cmds_RC | \
18808     old_archive_from_new_cmds_RC | \
18809     archive_cmds_RC | \
18810     archive_expsym_cmds_RC | \
18811     module_cmds_RC | \
18812     module_expsym_cmds_RC | \
18813     old_archive_from_expsyms_cmds_RC | \
18814     export_symbols_cmds_RC | \
18815     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18816     postinstall_cmds | postuninstall_cmds | \
18817     old_postinstall_cmds | old_postuninstall_cmds | \
18818     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18819       # Double-quote double-evaled strings.
18820       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18821       ;;
18822     *)
18823       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18824       ;;
18825     esac
18826   done
18827
18828   case $lt_echo in
18829   *'\$0 --fallback-echo"')
18830     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18831     ;;
18832   esac
18833
18834 cfgfile="$ofile"
18835
18836   cat <<__EOF__ >> "$cfgfile"
18837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18838
18839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18840
18841 # Shell to use when invoking shell scripts.
18842 SHELL=$lt_SHELL
18843
18844 # Whether or not to build shared libraries.
18845 build_libtool_libs=$enable_shared
18846
18847 # Whether or not to build static libraries.
18848 build_old_libs=$enable_static
18849
18850 # Whether or not to add -lc for building shared libraries.
18851 build_libtool_need_lc=$archive_cmds_need_lc_RC
18852
18853 # Whether or not to disallow shared libs when runtime libs are static
18854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18855
18856 # Whether or not to optimize for fast installation.
18857 fast_install=$enable_fast_install
18858
18859 # The host system.
18860 host_alias=$host_alias
18861 host=$host
18862 host_os=$host_os
18863
18864 # The build system.
18865 build_alias=$build_alias
18866 build=$build
18867 build_os=$build_os
18868
18869 # An echo program that does not interpret backslashes.
18870 echo=$lt_echo
18871
18872 # The archiver.
18873 AR=$lt_AR
18874 AR_FLAGS=$lt_AR_FLAGS
18875
18876 # A C compiler.
18877 LTCC=$lt_LTCC
18878
18879 # LTCC compiler flags.
18880 LTCFLAGS=$lt_LTCFLAGS
18881
18882 # A language-specific compiler.
18883 CC=$lt_compiler_RC
18884
18885 # Is the compiler the GNU C compiler?
18886 with_gcc=$GCC_RC
18887
18888 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18889 gcc_ver=\`gcc -dumpversion\`
18890
18891 # An ERE matcher.
18892 EGREP=$lt_EGREP
18893
18894 # The linker used to build libraries.
18895 LD=$lt_LD_RC
18896
18897 # Whether we need hard or soft links.
18898 LN_S=$lt_LN_S
18899
18900 # A BSD-compatible nm program.
18901 NM=$lt_NM
18902
18903 # A symbol stripping program
18904 STRIP=$lt_STRIP
18905
18906 # Used to examine libraries when file_magic_cmd begins "file"
18907 MAGIC_CMD=$MAGIC_CMD
18908
18909 # Used on cygwin: DLL creation program.
18910 DLLTOOL="$DLLTOOL"
18911
18912 # Used on cygwin: object dumper.
18913 OBJDUMP="$OBJDUMP"
18914
18915 # Used on cygwin: assembler.
18916 AS="$AS"
18917
18918 # The name of the directory that contains temporary libtool files.
18919 objdir=$objdir
18920
18921 # How to create reloadable object files.
18922 reload_flag=$lt_reload_flag
18923 reload_cmds=$lt_reload_cmds
18924
18925 # How to pass a linker flag through the compiler.
18926 wl=$lt_lt_prog_compiler_wl_RC
18927
18928 # Object file suffix (normally "o").
18929 objext="$ac_objext"
18930
18931 # Old archive suffix (normally "a").
18932 libext="$libext"
18933
18934 # Shared library suffix (normally ".so").
18935 shrext_cmds='$shrext_cmds'
18936
18937 # Executable file suffix (normally "").
18938 exeext="$exeext"
18939
18940 # Additional compiler flags for building library objects.
18941 pic_flag=$lt_lt_prog_compiler_pic_RC
18942 pic_mode=$pic_mode
18943
18944 # What is the maximum length of a command?
18945 max_cmd_len=$lt_cv_sys_max_cmd_len
18946
18947 # Does compiler simultaneously support -c and -o options?
18948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18949
18950 # Must we lock files when doing compilation?
18951 need_locks=$lt_need_locks
18952
18953 # Do we need the lib prefix for modules?
18954 need_lib_prefix=$need_lib_prefix
18955
18956 # Do we need a version for libraries?
18957 need_version=$need_version
18958
18959 # Whether dlopen is supported.
18960 dlopen_support=$enable_dlopen
18961
18962 # Whether dlopen of programs is supported.
18963 dlopen_self=$enable_dlopen_self
18964
18965 # Whether dlopen of statically linked programs is supported.
18966 dlopen_self_static=$enable_dlopen_self_static
18967
18968 # Compiler flag to prevent dynamic linking.
18969 link_static_flag=$lt_lt_prog_compiler_static_RC
18970
18971 # Compiler flag to turn off builtin functions.
18972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18973
18974 # Compiler flag to allow reflexive dlopens.
18975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18976
18977 # Compiler flag to generate shared objects directly from archives.
18978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18979
18980 # Compiler flag to generate thread-safe objects.
18981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18982
18983 # Library versioning type.
18984 version_type=$version_type
18985
18986 # Format of library name prefix.
18987 libname_spec=$lt_libname_spec
18988
18989 # List of archive names.  First name is the real one, the rest are links.
18990 # The last name is the one that the linker finds with -lNAME.
18991 library_names_spec=$lt_library_names_spec
18992
18993 # The coded name of the library, if different from the real name.
18994 soname_spec=$lt_soname_spec
18995
18996 # Commands used to build and install an old-style archive.
18997 RANLIB=$lt_RANLIB
18998 old_archive_cmds=$lt_old_archive_cmds_RC
18999 old_postinstall_cmds=$lt_old_postinstall_cmds
19000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19001
19002 # Create an old-style archive from a shared archive.
19003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19004
19005 # Create a temporary old-style archive to link instead of a shared archive.
19006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19007
19008 # Commands used to build and install a shared archive.
19009 archive_cmds=$lt_archive_cmds_RC
19010 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19011 postinstall_cmds=$lt_postinstall_cmds
19012 postuninstall_cmds=$lt_postuninstall_cmds
19013
19014 # Commands used to build a loadable module (assumed same as above if empty)
19015 module_cmds=$lt_module_cmds_RC
19016 module_expsym_cmds=$lt_module_expsym_cmds_RC
19017
19018 # Commands to strip libraries.
19019 old_striplib=$lt_old_striplib
19020 striplib=$lt_striplib
19021
19022 # Dependencies to place before the objects being linked to create a
19023 # shared library.
19024 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19025
19026 # Dependencies to place after the objects being linked to create a
19027 # shared library.
19028 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19029
19030 # Dependencies to place before the objects being linked to create a
19031 # shared library.
19032 predeps=$lt_predeps_RC
19033
19034 # Dependencies to place after the objects being linked to create a
19035 # shared library.
19036 postdeps=$lt_postdeps_RC
19037
19038 # The library search path used internally by the compiler when linking
19039 # a shared library.
19040 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19041
19042 # Method to check whether dependent libraries are shared objects.
19043 deplibs_check_method=$lt_deplibs_check_method
19044
19045 # Command to use when deplibs_check_method == file_magic.
19046 file_magic_cmd=$lt_file_magic_cmd
19047
19048 # Flag that allows shared libraries with undefined symbols to be built.
19049 allow_undefined_flag=$lt_allow_undefined_flag_RC
19050
19051 # Flag that forces no undefined symbols.
19052 no_undefined_flag=$lt_no_undefined_flag_RC
19053
19054 # Commands used to finish a libtool library installation in a directory.
19055 finish_cmds=$lt_finish_cmds
19056
19057 # Same as above, but a single script fragment to be evaled but not shown.
19058 finish_eval=$lt_finish_eval
19059
19060 # Take the output of nm and produce a listing of raw symbols and C names.
19061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19062
19063 # Transform the output of nm in a proper C declaration
19064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19065
19066 # Transform the output of nm in a C name address pair
19067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19068
19069 # This is the shared library runtime path variable.
19070 runpath_var=$runpath_var
19071
19072 # This is the shared library path variable.
19073 shlibpath_var=$shlibpath_var
19074
19075 # Is shlibpath searched before the hard-coded library search path?
19076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19077
19078 # How to hardcode a shared library path into an executable.
19079 hardcode_action=$hardcode_action_RC
19080
19081 # Whether we should hardcode library paths into libraries.
19082 hardcode_into_libs=$hardcode_into_libs
19083
19084 # Flag to hardcode \$libdir into a binary during linking.
19085 # This must work even if \$libdir does not exist.
19086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19087
19088 # If ld is used when linking, flag to hardcode \$libdir into
19089 # a binary during linking. This must work even if \$libdir does
19090 # not exist.
19091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19092
19093 # Whether we need a single -rpath flag with a separated argument.
19094 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19095
19096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19097 # resulting binary.
19098 hardcode_direct=$hardcode_direct_RC
19099
19100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19101 # resulting binary.
19102 hardcode_minus_L=$hardcode_minus_L_RC
19103
19104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19105 # the resulting binary.
19106 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19107
19108 # Set to yes if building a shared library automatically hardcodes DIR into the library
19109 # and all subsequent libraries and executables linked against it.
19110 hardcode_automatic=$hardcode_automatic_RC
19111
19112 # Variables whose values should be saved in libtool wrapper scripts and
19113 # restored at relink time.
19114 variables_saved_for_relink="$variables_saved_for_relink"
19115
19116 # Whether libtool must link a program against all its dependency libraries.
19117 link_all_deplibs=$link_all_deplibs_RC
19118
19119 # Compile-time system search path for libraries
19120 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19121
19122 # Run-time system search path for libraries
19123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19124
19125 # Fix the shell variable \$srcfile for the compiler.
19126 fix_srcfile_path="$fix_srcfile_path_RC"
19127
19128 # Set to yes if exported symbols are required.
19129 always_export_symbols=$always_export_symbols_RC
19130
19131 # The commands to list exported symbols.
19132 export_symbols_cmds=$lt_export_symbols_cmds_RC
19133
19134 # The commands to extract the exported symbol list from a shared archive.
19135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19136
19137 # Symbols that should not be listed in the preloaded symbols.
19138 exclude_expsyms=$lt_exclude_expsyms_RC
19139
19140 # Symbols that must always be exported.
19141 include_expsyms=$lt_include_expsyms_RC
19142
19143 # ### END LIBTOOL TAG CONFIG: $tagname
19144
19145 __EOF__
19146
19147
19148 else
19149   # If there is no Makefile yet, we rely on a make rule to execute
19150   # `config.status --recheck' to rerun these tests and create the
19151   # libtool script then.
19152   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19153   if test -f "$ltmain_in"; then
19154     test -f Makefile && make "$ltmain"
19155   fi
19156 fi
19157
19158
19159 ac_ext=c
19160 ac_cpp='$CPP $CPPFLAGS'
19161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165 CC="$lt_save_CC"
19166
19167         ;;
19168
19169       *)
19170         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19171 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19172    { (exit 1); exit 1; }; }
19173         ;;
19174       esac
19175
19176       # Append the new tag name to the list of available tags.
19177       if test -n "$tagname" ; then
19178       available_tags="$available_tags $tagname"
19179     fi
19180     fi
19181   done
19182   IFS="$lt_save_ifs"
19183
19184   # Now substitute the updated list of available tags.
19185   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19186     mv "${ofile}T" "$ofile"
19187     chmod +x "$ofile"
19188   else
19189     rm -f "${ofile}T"
19190     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19191 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19192    { (exit 1); exit 1; }; }
19193   fi
19194 fi
19195
19196
19197
19198 # This can be used to rebuild libtool when needed
19199 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19200
19201 # Always use our own libtool.
19202 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19203
19204 # Prevent multiple expansion
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226 ac_ext=c
19227 ac_cpp='$CPP $CPPFLAGS'
19228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
19232
19233 ac_ext=c
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19238 if test -n "$ac_tool_prefix"; then
19239   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19243 if test "${ac_cv_prog_CC+set}" = set; then
19244   echo $ECHO_N "(cached) $ECHO_C" >&6
19245 else
19246   if test -n "$CC"; then
19247   ac_cv_prog_CC="$CC" # Let the user override the test.
19248 else
19249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19251 do
19252   IFS=$as_save_IFS
19253   test -z "$as_dir" && as_dir=.
19254   for ac_exec_ext in '' $ac_executable_extensions; do
19255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19256     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19258     break 2
19259   fi
19260 done
19261 done
19262 IFS=$as_save_IFS
19263
19264 fi
19265 fi
19266 CC=$ac_cv_prog_CC
19267 if test -n "$CC"; then
19268   { echo "$as_me:$LINENO: result: $CC" >&5
19269 echo "${ECHO_T}$CC" >&6; }
19270 else
19271   { echo "$as_me:$LINENO: result: no" >&5
19272 echo "${ECHO_T}no" >&6; }
19273 fi
19274
19275
19276 fi
19277 if test -z "$ac_cv_prog_CC"; then
19278   ac_ct_CC=$CC
19279   # Extract the first word of "gcc", so it can be a program name with args.
19280 set dummy gcc; ac_word=$2
19281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   if test -n "$ac_ct_CC"; then
19287   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19288 else
19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19291 do
19292   IFS=$as_save_IFS
19293   test -z "$as_dir" && as_dir=.
19294   for ac_exec_ext in '' $ac_executable_extensions; do
19295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19296     ac_cv_prog_ac_ct_CC="gcc"
19297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19298     break 2
19299   fi
19300 done
19301 done
19302 IFS=$as_save_IFS
19303
19304 fi
19305 fi
19306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19307 if test -n "$ac_ct_CC"; then
19308   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19309 echo "${ECHO_T}$ac_ct_CC" >&6; }
19310 else
19311   { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19313 fi
19314
19315   if test "x$ac_ct_CC" = x; then
19316     CC=""
19317   else
19318     case $cross_compiling:$ac_tool_warned in
19319 yes:)
19320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19321 whose name does not start with the host triplet.  If you think this
19322 configuration is useful to you, please write to autoconf@gnu.org." >&5
19323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19324 whose name does not start with the host triplet.  If you think this
19325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19326 ac_tool_warned=yes ;;
19327 esac
19328     CC=$ac_ct_CC
19329   fi
19330 else
19331   CC="$ac_cv_prog_CC"
19332 fi
19333
19334 if test -z "$CC"; then
19335           if test -n "$ac_tool_prefix"; then
19336     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19337 set dummy ${ac_tool_prefix}cc; ac_word=$2
19338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19340 if test "${ac_cv_prog_CC+set}" = set; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343   if test -n "$CC"; then
19344   ac_cv_prog_CC="$CC" # Let the user override the test.
19345 else
19346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in $PATH
19348 do
19349   IFS=$as_save_IFS
19350   test -z "$as_dir" && as_dir=.
19351   for ac_exec_ext in '' $ac_executable_extensions; do
19352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19353     ac_cv_prog_CC="${ac_tool_prefix}cc"
19354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19355     break 2
19356   fi
19357 done
19358 done
19359 IFS=$as_save_IFS
19360
19361 fi
19362 fi
19363 CC=$ac_cv_prog_CC
19364 if test -n "$CC"; then
19365   { echo "$as_me:$LINENO: result: $CC" >&5
19366 echo "${ECHO_T}$CC" >&6; }
19367 else
19368   { echo "$as_me:$LINENO: result: no" >&5
19369 echo "${ECHO_T}no" >&6; }
19370 fi
19371
19372
19373   fi
19374 fi
19375 if test -z "$CC"; then
19376   # Extract the first word of "cc", so it can be a program name with args.
19377 set dummy cc; ac_word=$2
19378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19380 if test "${ac_cv_prog_CC+set}" = set; then
19381   echo $ECHO_N "(cached) $ECHO_C" >&6
19382 else
19383   if test -n "$CC"; then
19384   ac_cv_prog_CC="$CC" # Let the user override the test.
19385 else
19386   ac_prog_rejected=no
19387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19388 for as_dir in $PATH
19389 do
19390   IFS=$as_save_IFS
19391   test -z "$as_dir" && as_dir=.
19392   for ac_exec_ext in '' $ac_executable_extensions; do
19393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19394     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19395        ac_prog_rejected=yes
19396        continue
19397      fi
19398     ac_cv_prog_CC="cc"
19399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19400     break 2
19401   fi
19402 done
19403 done
19404 IFS=$as_save_IFS
19405
19406 if test $ac_prog_rejected = yes; then
19407   # We found a bogon in the path, so make sure we never use it.
19408   set dummy $ac_cv_prog_CC
19409   shift
19410   if test $# != 0; then
19411     # We chose a different compiler from the bogus one.
19412     # However, it has the same basename, so the bogon will be chosen
19413     # first if we set CC to just the basename; use the full file name.
19414     shift
19415     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19416   fi
19417 fi
19418 fi
19419 fi
19420 CC=$ac_cv_prog_CC
19421 if test -n "$CC"; then
19422   { echo "$as_me:$LINENO: result: $CC" >&5
19423 echo "${ECHO_T}$CC" >&6; }
19424 else
19425   { echo "$as_me:$LINENO: result: no" >&5
19426 echo "${ECHO_T}no" >&6; }
19427 fi
19428
19429
19430 fi
19431 if test -z "$CC"; then
19432   if test -n "$ac_tool_prefix"; then
19433   for ac_prog in cl.exe
19434   do
19435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19439 if test "${ac_cv_prog_CC+set}" = set; then
19440   echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442   if test -n "$CC"; then
19443   ac_cv_prog_CC="$CC" # Let the user override the test.
19444 else
19445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19446 for as_dir in $PATH
19447 do
19448   IFS=$as_save_IFS
19449   test -z "$as_dir" && as_dir=.
19450   for ac_exec_ext in '' $ac_executable_extensions; do
19451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19452     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19454     break 2
19455   fi
19456 done
19457 done
19458 IFS=$as_save_IFS
19459
19460 fi
19461 fi
19462 CC=$ac_cv_prog_CC
19463 if test -n "$CC"; then
19464   { echo "$as_me:$LINENO: result: $CC" >&5
19465 echo "${ECHO_T}$CC" >&6; }
19466 else
19467   { echo "$as_me:$LINENO: result: no" >&5
19468 echo "${ECHO_T}no" >&6; }
19469 fi
19470
19471
19472     test -n "$CC" && break
19473   done
19474 fi
19475 if test -z "$CC"; then
19476   ac_ct_CC=$CC
19477   for ac_prog in cl.exe
19478 do
19479   # Extract the first word of "$ac_prog", so it can be a program name with args.
19480 set dummy $ac_prog; ac_word=$2
19481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19484   echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486   if test -n "$ac_ct_CC"; then
19487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19488 else
19489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19490 for as_dir in $PATH
19491 do
19492   IFS=$as_save_IFS
19493   test -z "$as_dir" && as_dir=.
19494   for ac_exec_ext in '' $ac_executable_extensions; do
19495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19496     ac_cv_prog_ac_ct_CC="$ac_prog"
19497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19498     break 2
19499   fi
19500 done
19501 done
19502 IFS=$as_save_IFS
19503
19504 fi
19505 fi
19506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19507 if test -n "$ac_ct_CC"; then
19508   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19509 echo "${ECHO_T}$ac_ct_CC" >&6; }
19510 else
19511   { echo "$as_me:$LINENO: result: no" >&5
19512 echo "${ECHO_T}no" >&6; }
19513 fi
19514
19515
19516   test -n "$ac_ct_CC" && break
19517 done
19518
19519   if test "x$ac_ct_CC" = x; then
19520     CC=""
19521   else
19522     case $cross_compiling:$ac_tool_warned in
19523 yes:)
19524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19525 whose name does not start with the host triplet.  If you think this
19526 configuration is useful to you, please write to autoconf@gnu.org." >&5
19527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19528 whose name does not start with the host triplet.  If you think this
19529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19530 ac_tool_warned=yes ;;
19531 esac
19532     CC=$ac_ct_CC
19533   fi
19534 fi
19535
19536 fi
19537
19538
19539 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19540 See \`config.log' for more details." >&5
19541 echo "$as_me: error: no acceptable C compiler found in \$PATH
19542 See \`config.log' for more details." >&2;}
19543    { (exit 1); exit 1; }; }
19544
19545 # Provide some information about the compiler.
19546 echo "$as_me:$LINENO: checking for C compiler version" >&5
19547 ac_compiler=`set X $ac_compile; echo $2`
19548 { (ac_try="$ac_compiler --version >&5"
19549 case "(($ac_try" in
19550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551   *) ac_try_echo=$ac_try;;
19552 esac
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554   (eval "$ac_compiler --version >&5") 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }
19558 { (ac_try="$ac_compiler -v >&5"
19559 case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_compiler -v >&5") 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }
19568 { (ac_try="$ac_compiler -V >&5"
19569 case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_compiler -V >&5") 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }
19578
19579 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19582   echo $ECHO_N "(cached) $ECHO_C" >&6
19583 else
19584   cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h.  */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h.  */
19590
19591 int
19592 main ()
19593 {
19594 #ifndef __GNUC__
19595        choke me
19596 #endif
19597
19598   ;
19599   return 0;
19600 }
19601 _ACEOF
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606   *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609   (eval "$ac_compile") 2>conftest.er1
19610   ac_status=$?
19611   grep -v '^ *+' conftest.er1 >conftest.err
19612   rm -f conftest.er1
19613   cat conftest.err >&5
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); } && {
19616          test -z "$ac_c_werror_flag" ||
19617          test ! -s conftest.err
19618        } && test -s conftest.$ac_objext; then
19619   ac_compiler_gnu=yes
19620 else
19621   echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624         ac_compiler_gnu=no
19625 fi
19626
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19629
19630 fi
19631 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19633 GCC=`test $ac_compiler_gnu = yes && echo yes`
19634 ac_test_CFLAGS=${CFLAGS+set}
19635 ac_save_CFLAGS=$CFLAGS
19636 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19637 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19638 if test "${ac_cv_prog_cc_g+set}" = set; then
19639   echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641   ac_save_c_werror_flag=$ac_c_werror_flag
19642    ac_c_werror_flag=yes
19643    ac_cv_prog_cc_g=no
19644    CFLAGS="-g"
19645    cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651
19652 int
19653 main ()
19654 {
19655
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_compile") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } && {
19674          test -z "$ac_c_werror_flag" ||
19675          test ! -s conftest.err
19676        } && test -s conftest.$ac_objext; then
19677   ac_cv_prog_cc_g=yes
19678 else
19679   echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682         CFLAGS=""
19683       cat >conftest.$ac_ext <<_ACEOF
19684 /* confdefs.h.  */
19685 _ACEOF
19686 cat confdefs.h >>conftest.$ac_ext
19687 cat >>conftest.$ac_ext <<_ACEOF
19688 /* end confdefs.h.  */
19689
19690 int
19691 main ()
19692 {
19693
19694   ;
19695   return 0;
19696 }
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705   (eval "$ac_compile") 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } && {
19712          test -z "$ac_c_werror_flag" ||
19713          test ! -s conftest.err
19714        } && test -s conftest.$ac_objext; then
19715   :
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720         ac_c_werror_flag=$ac_save_c_werror_flag
19721          CFLAGS="-g"
19722          cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h.  */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h.  */
19728
19729 int
19730 main ()
19731 {
19732
19733   ;
19734   return 0;
19735 }
19736 _ACEOF
19737 rm -f conftest.$ac_objext
19738 if { (ac_try="$ac_compile"
19739 case "(($ac_try" in
19740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741   *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744   (eval "$ac_compile") 2>conftest.er1
19745   ac_status=$?
19746   grep -v '^ *+' conftest.er1 >conftest.err
19747   rm -f conftest.er1
19748   cat conftest.err >&5
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); } && {
19751          test -z "$ac_c_werror_flag" ||
19752          test ! -s conftest.err
19753        } && test -s conftest.$ac_objext; then
19754   ac_cv_prog_cc_g=yes
19755 else
19756   echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759
19760 fi
19761
19762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19763 fi
19764
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19766 fi
19767
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19769    ac_c_werror_flag=$ac_save_c_werror_flag
19770 fi
19771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19772 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19773 if test "$ac_test_CFLAGS" = set; then
19774   CFLAGS=$ac_save_CFLAGS
19775 elif test $ac_cv_prog_cc_g = yes; then
19776   if test "$GCC" = yes; then
19777     CFLAGS="-g -O2"
19778   else
19779     CFLAGS="-g"
19780   fi
19781 else
19782   if test "$GCC" = yes; then
19783     CFLAGS="-O2"
19784   else
19785     CFLAGS=
19786   fi
19787 fi
19788 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19789 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19790 if test "${ac_cv_prog_cc_c89+set}" = set; then
19791   echo $ECHO_N "(cached) $ECHO_C" >&6
19792 else
19793   ac_cv_prog_cc_c89=no
19794 ac_save_CC=$CC
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h.  */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h.  */
19801 #include <stdarg.h>
19802 #include <stdio.h>
19803 #include <sys/types.h>
19804 #include <sys/stat.h>
19805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19806 struct buf { int x; };
19807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19808 static char *e (p, i)
19809      char **p;
19810      int i;
19811 {
19812   return p[i];
19813 }
19814 static char *f (char * (*g) (char **, int), char **p, ...)
19815 {
19816   char *s;
19817   va_list v;
19818   va_start (v,p);
19819   s = g (p, va_arg (v,int));
19820   va_end (v);
19821   return s;
19822 }
19823
19824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19825    function prototypes and stuff, but not '\xHH' hex character constants.
19826    These don't provoke an error unfortunately, instead are silently treated
19827    as 'x'.  The following induces an error, until -std is added to get
19828    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19829    array size at least.  It's necessary to write '\x00'==0 to get something
19830    that's true only with -std.  */
19831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19832
19833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19834    inside strings and character constants.  */
19835 #define FOO(x) 'x'
19836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19837
19838 int test (int i, double x);
19839 struct s1 {int (*f) (int a);};
19840 struct s2 {int (*f) (double a);};
19841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19842 int argc;
19843 char **argv;
19844 int
19845 main ()
19846 {
19847 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19853         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19854 do
19855   CC="$ac_save_CC $ac_arg"
19856   rm -f conftest.$ac_objext
19857 if { (ac_try="$ac_compile"
19858 case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_compile") 2>conftest.er1
19864   ac_status=$?
19865   grep -v '^ *+' conftest.er1 >conftest.err
19866   rm -f conftest.er1
19867   cat conftest.err >&5
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } && {
19870          test -z "$ac_c_werror_flag" ||
19871          test ! -s conftest.err
19872        } && test -s conftest.$ac_objext; then
19873   ac_cv_prog_cc_c89=$ac_arg
19874 else
19875   echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878
19879 fi
19880
19881 rm -f core conftest.err conftest.$ac_objext
19882   test "x$ac_cv_prog_cc_c89" != "xno" && break
19883 done
19884 rm -f conftest.$ac_ext
19885 CC=$ac_save_CC
19886
19887 fi
19888 # AC_CACHE_VAL
19889 case "x$ac_cv_prog_cc_c89" in
19890   x)
19891     { echo "$as_me:$LINENO: result: none needed" >&5
19892 echo "${ECHO_T}none needed" >&6; } ;;
19893   xno)
19894     { echo "$as_me:$LINENO: result: unsupported" >&5
19895 echo "${ECHO_T}unsupported" >&6; } ;;
19896   *)
19897     CC="$CC $ac_cv_prog_cc_c89"
19898     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19899 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19900 esac
19901
19902
19903 ac_ext=c
19904 ac_cpp='$CPP $CPPFLAGS'
19905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19908
19909 depcc="$CC"   am_compiler_list=
19910
19911 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19912 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19913 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19914   echo $ECHO_N "(cached) $ECHO_C" >&6
19915 else
19916   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19917   # We make a subdir and do the tests there.  Otherwise we can end up
19918   # making bogus files that we don't know about and never remove.  For
19919   # instance it was reported that on HP-UX the gcc test will end up
19920   # making a dummy file named `D' -- because `-MD' means `put the output
19921   # in D'.
19922   mkdir conftest.dir
19923   # Copy depcomp to subdir because otherwise we won't find it if we're
19924   # using a relative directory.
19925   cp "$am_depcomp" conftest.dir
19926   cd conftest.dir
19927   # We will build objects and dependencies in a subdirectory because
19928   # it helps to detect inapplicable dependency modes.  For instance
19929   # both Tru64's cc and ICC support -MD to output dependencies as a
19930   # side effect of compilation, but ICC will put the dependencies in
19931   # the current directory while Tru64 will put them in the object
19932   # directory.
19933   mkdir sub
19934
19935   am_cv_CC_dependencies_compiler_type=none
19936   if test "$am_compiler_list" = ""; then
19937      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19938   fi
19939   for depmode in $am_compiler_list; do
19940     # Setup a source with many dependencies, because some compilers
19941     # like to wrap large dependency lists on column 80 (with \), and
19942     # we should not choose a depcomp mode which is confused by this.
19943     #
19944     # We need to recreate these files for each test, as the compiler may
19945     # overwrite some of them when testing with obscure command lines.
19946     # This happens at least with the AIX C compiler.
19947     : > sub/conftest.c
19948     for i in 1 2 3 4 5 6; do
19949       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19950       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19951       # Solaris 8's {/usr,}/bin/sh.
19952       touch sub/conftst$i.h
19953     done
19954     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19955
19956     case $depmode in
19957     nosideeffect)
19958       # after this tag, mechanisms are not by side-effect, so they'll
19959       # only be used when explicitly requested
19960       if test "x$enable_dependency_tracking" = xyes; then
19961         continue
19962       else
19963         break
19964       fi
19965       ;;
19966     none) break ;;
19967     esac
19968     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19969     # mode.  It turns out that the SunPro C++ compiler does not properly
19970     # handle `-M -o', and we need to detect this.
19971     if depmode=$depmode \
19972        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19973        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19974        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19975          >/dev/null 2>conftest.err &&
19976        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19977        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19978        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19979       # icc doesn't choke on unknown options, it will just issue warnings
19980       # or remarks (even with -Werror).  So we grep stderr for any message
19981       # that says an option was ignored or not supported.
19982       # When given -MP, icc 7.0 and 7.1 complain thusly:
19983       #   icc: Command line warning: ignoring option '-M'; no argument required
19984       # The diagnosis changed in icc 8.0:
19985       #   icc: Command line remark: option '-MP' not supported
19986       if (grep 'ignoring option' conftest.err ||
19987           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19988         am_cv_CC_dependencies_compiler_type=$depmode
19989         break
19990       fi
19991     fi
19992   done
19993
19994   cd ..
19995   rm -rf conftest.dir
19996 else
19997   am_cv_CC_dependencies_compiler_type=none
19998 fi
19999
20000 fi
20001 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20002 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20004
20005
20006
20007 if
20008   test "x$enable_dependency_tracking" != xno \
20009   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20010   am__fastdepCC_TRUE=
20011   am__fastdepCC_FALSE='#'
20012 else
20013   am__fastdepCC_TRUE='#'
20014   am__fastdepCC_FALSE=
20015 fi
20016
20017
20018
20019 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20020 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20021 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20022 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20023   echo $ECHO_N "(cached) $ECHO_C" >&6
20024 else
20025   cat >conftest.make <<\_ACEOF
20026 SHELL = /bin/sh
20027 all:
20028         @echo '@@@%%%=$(MAKE)=@@@%%%'
20029 _ACEOF
20030 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20032   *@@@%%%=?*=@@@%%%*)
20033     eval ac_cv_prog_make_${ac_make}_set=yes;;
20034   *)
20035     eval ac_cv_prog_make_${ac_make}_set=no;;
20036 esac
20037 rm -f conftest.make
20038 fi
20039 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20040   { echo "$as_me:$LINENO: result: yes" >&5
20041 echo "${ECHO_T}yes" >&6; }
20042   SET_MAKE=
20043 else
20044   { echo "$as_me:$LINENO: result: no" >&5
20045 echo "${ECHO_T}no" >&6; }
20046   SET_MAKE="MAKE=${MAKE-make}"
20047 fi
20048
20049
20050 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20051 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20052 if test "${ac_cv_header_stdc+set}" = set; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055   cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061 #include <stdlib.h>
20062 #include <stdarg.h>
20063 #include <string.h>
20064 #include <float.h>
20065
20066 int
20067 main ()
20068 {
20069
20070   ;
20071   return 0;
20072 }
20073 _ACEOF
20074 rm -f conftest.$ac_objext
20075 if { (ac_try="$ac_compile"
20076 case "(($ac_try" in
20077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078   *) ac_try_echo=$ac_try;;
20079 esac
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081   (eval "$ac_compile") 2>conftest.er1
20082   ac_status=$?
20083   grep -v '^ *+' conftest.er1 >conftest.err
20084   rm -f conftest.er1
20085   cat conftest.err >&5
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); } && {
20088          test -z "$ac_c_werror_flag" ||
20089          test ! -s conftest.err
20090        } && test -s conftest.$ac_objext; then
20091   ac_cv_header_stdc=yes
20092 else
20093   echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096         ac_cv_header_stdc=no
20097 fi
20098
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100
20101 if test $ac_cv_header_stdc = yes; then
20102   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20103   cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 #include <string.h>
20110
20111 _ACEOF
20112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20113   $EGREP "memchr" >/dev/null 2>&1; then
20114   :
20115 else
20116   ac_cv_header_stdc=no
20117 fi
20118 rm -f conftest*
20119
20120 fi
20121
20122 if test $ac_cv_header_stdc = yes; then
20123   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20124   cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h.  */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h.  */
20130 #include <stdlib.h>
20131
20132 _ACEOF
20133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20134   $EGREP "free" >/dev/null 2>&1; then
20135   :
20136 else
20137   ac_cv_header_stdc=no
20138 fi
20139 rm -f conftest*
20140
20141 fi
20142
20143 if test $ac_cv_header_stdc = yes; then
20144   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20145   if test "$cross_compiling" = yes; then
20146   :
20147 else
20148   cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h.  */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h.  */
20154 #include <ctype.h>
20155 #include <stdlib.h>
20156 #if ((' ' & 0x0FF) == 0x020)
20157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20159 #else
20160 # define ISLOWER(c) \
20161                    (('a' <= (c) && (c) <= 'i') \
20162                      || ('j' <= (c) && (c) <= 'r') \
20163                      || ('s' <= (c) && (c) <= 'z'))
20164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20165 #endif
20166
20167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20168 int
20169 main ()
20170 {
20171   int i;
20172   for (i = 0; i < 256; i++)
20173     if (XOR (islower (i), ISLOWER (i))
20174         || toupper (i) != TOUPPER (i))
20175       return 2;
20176   return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183   *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186   (eval "$ac_link") 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20190   { (case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_try") 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; }; then
20199   :
20200 else
20201   echo "$as_me: program exited with status $ac_status" >&5
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ( exit $ac_status )
20206 ac_cv_header_stdc=no
20207 fi
20208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20209 fi
20210
20211
20212 fi
20213 fi
20214 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20215 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20216 if test $ac_cv_header_stdc = yes; then
20217
20218 cat >>confdefs.h <<\_ACEOF
20219 #define STDC_HEADERS 1
20220 _ACEOF
20221
20222 fi
20223
20224
20225
20226 for ac_header in unistd.h
20227 do
20228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20230   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 fi
20235 ac_res=`eval echo '${'$as_ac_Header'}'`
20236                { echo "$as_me:$LINENO: result: $ac_res" >&5
20237 echo "${ECHO_T}$ac_res" >&6; }
20238 else
20239   # Is the header compilable?
20240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 $ac_includes_default
20249 #include <$ac_header>
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255   *) ac_try_echo=$ac_try;;
20256 esac
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258   (eval "$ac_compile") 2>conftest.er1
20259   ac_status=$?
20260   grep -v '^ *+' conftest.er1 >conftest.err
20261   rm -f conftest.er1
20262   cat conftest.err >&5
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); } && {
20265          test -z "$ac_c_werror_flag" ||
20266          test ! -s conftest.err
20267        } && test -s conftest.$ac_objext; then
20268   ac_header_compiler=yes
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273         ac_header_compiler=no
20274 fi
20275
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278 echo "${ECHO_T}$ac_header_compiler" >&6; }
20279
20280 # Is the header present?
20281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 #include <$ac_header>
20290 _ACEOF
20291 if { (ac_try="$ac_cpp conftest.$ac_ext"
20292 case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20298   ac_status=$?
20299   grep -v '^ *+' conftest.er1 >conftest.err
20300   rm -f conftest.er1
20301   cat conftest.err >&5
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); } >/dev/null && {
20304          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20305          test ! -s conftest.err
20306        }; then
20307   ac_header_preproc=yes
20308 else
20309   echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20311
20312   ac_header_preproc=no
20313 fi
20314
20315 rm -f conftest.err conftest.$ac_ext
20316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20317 echo "${ECHO_T}$ac_header_preproc" >&6; }
20318
20319 # So?  What about this header?
20320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20321   yes:no: )
20322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20326     ac_header_preproc=yes
20327     ;;
20328   no:yes:* )
20329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20341
20342     ;;
20343 esac
20344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   eval "$as_ac_Header=\$ac_header_preproc"
20350 fi
20351 ac_res=`eval echo '${'$as_ac_Header'}'`
20352                { echo "$as_me:$LINENO: result: $ac_res" >&5
20353 echo "${ECHO_T}$ac_res" >&6; }
20354
20355 fi
20356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20357   cat >>confdefs.h <<_ACEOF
20358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20359 _ACEOF
20360
20361 else
20362   { { echo "$as_me:$LINENO: error: required header file missing" >&5
20363 echo "$as_me: error: required header file missing" >&2;}
20364    { (exit 1); exit 1; }; }
20365 fi
20366
20367 done
20368
20369
20370
20371
20372 for ac_func in access atoi
20373 do
20374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380   cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20388 #define $ac_func innocuous_$ac_func
20389
20390 /* System header to define __stub macros and hopefully few prototypes,
20391     which can conflict with char $ac_func (); below.
20392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20393     <limits.h> exists even on freestanding compilers.  */
20394
20395 #ifdef __STDC__
20396 # include <limits.h>
20397 #else
20398 # include <assert.h>
20399 #endif
20400
20401 #undef $ac_func
20402
20403 /* Override any GCC internal prototype to avoid an error.
20404    Use char because int might match the return type of a GCC
20405    builtin and then its argument prototype would still apply.  */
20406 #ifdef __cplusplus
20407 extern "C"
20408 #endif
20409 char $ac_func ();
20410 /* The GNU C library defines this for functions which it implements
20411     to always fail with ENOSYS.  Some functions are actually named
20412     something starting with __ and the normal name is an alias.  */
20413 #if defined __stub_$ac_func || defined __stub___$ac_func
20414 choke me
20415 #endif
20416
20417 int
20418 main ()
20419 {
20420 return $ac_func ();
20421   ;
20422   return 0;
20423 }
20424 _ACEOF
20425 rm -f conftest.$ac_objext conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429   *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432   (eval "$ac_link") 2>conftest.er1
20433   ac_status=$?
20434   grep -v '^ *+' conftest.er1 >conftest.err
20435   rm -f conftest.er1
20436   cat conftest.err >&5
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); } && {
20439          test -z "$ac_c_werror_flag" ||
20440          test ! -s conftest.err
20441        } && test -s conftest$ac_exeext &&
20442        $as_test_x conftest$ac_exeext; then
20443   eval "$as_ac_var=yes"
20444 else
20445   echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448         eval "$as_ac_var=no"
20449 fi
20450
20451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20452       conftest$ac_exeext conftest.$ac_ext
20453 fi
20454 ac_res=`eval echo '${'$as_ac_var'}'`
20455                { echo "$as_me:$LINENO: result: $ac_res" >&5
20456 echo "${ECHO_T}$ac_res" >&6; }
20457 if test `eval echo '${'$as_ac_var'}'` = yes; then
20458   cat >>confdefs.h <<_ACEOF
20459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20460 _ACEOF
20461
20462 else
20463   { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
20464 echo "$as_me: error: required standard library function missing" >&2;}
20465    { (exit 1); exit 1; }; }
20466 fi
20467 done
20468
20469
20470
20471 for ac_func in snprintf
20472 do
20473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20477   echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479   cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20487 #define $ac_func innocuous_$ac_func
20488
20489 /* System header to define __stub macros and hopefully few prototypes,
20490     which can conflict with char $ac_func (); below.
20491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20492     <limits.h> exists even on freestanding compilers.  */
20493
20494 #ifdef __STDC__
20495 # include <limits.h>
20496 #else
20497 # include <assert.h>
20498 #endif
20499
20500 #undef $ac_func
20501
20502 /* Override any GCC internal prototype to avoid an error.
20503    Use char because int might match the return type of a GCC
20504    builtin and then its argument prototype would still apply.  */
20505 #ifdef __cplusplus
20506 extern "C"
20507 #endif
20508 char $ac_func ();
20509 /* The GNU C library defines this for functions which it implements
20510     to always fail with ENOSYS.  Some functions are actually named
20511     something starting with __ and the normal name is an alias.  */
20512 #if defined __stub_$ac_func || defined __stub___$ac_func
20513 choke me
20514 #endif
20515
20516 int
20517 main ()
20518 {
20519 return $ac_func ();
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (ac_try="$ac_link"
20526 case "(($ac_try" in
20527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528   *) ac_try_echo=$ac_try;;
20529 esac
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531   (eval "$ac_link") 2>conftest.er1
20532   ac_status=$?
20533   grep -v '^ *+' conftest.er1 >conftest.err
20534   rm -f conftest.er1
20535   cat conftest.err >&5
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); } && {
20538          test -z "$ac_c_werror_flag" ||
20539          test ! -s conftest.err
20540        } && test -s conftest$ac_exeext &&
20541        $as_test_x conftest$ac_exeext; then
20542   eval "$as_ac_var=yes"
20543 else
20544   echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547         eval "$as_ac_var=no"
20548 fi
20549
20550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20551       conftest$ac_exeext conftest.$ac_ext
20552 fi
20553 ac_res=`eval echo '${'$as_ac_var'}'`
20554                { echo "$as_me:$LINENO: result: $ac_res" >&5
20555 echo "${ECHO_T}$ac_res" >&6; }
20556 if test `eval echo '${'$as_ac_var'}'` = yes; then
20557   cat >>confdefs.h <<_ACEOF
20558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20559 _ACEOF
20560
20561 fi
20562 done
20563
20564
20565 ac_config_files="$ac_config_files Makefile"
20566
20567 cat >confcache <<\_ACEOF
20568 # This file is a shell script that caches the results of configure
20569 # tests run on this system so they can be shared between configure
20570 # scripts and configure runs, see configure's option --config-cache.
20571 # It is not useful on other systems.  If it contains results you don't
20572 # want to keep, you may remove or edit it.
20573 #
20574 # config.status only pays attention to the cache file if you give it
20575 # the --recheck option to rerun configure.
20576 #
20577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20579 # following values.
20580
20581 _ACEOF
20582
20583 # The following way of writing the cache mishandles newlines in values,
20584 # but we know of no workaround that is simple, portable, and efficient.
20585 # So, we kill variables containing newlines.
20586 # Ultrix sh set writes to stderr and can't be redirected directly,
20587 # and sets the high bit in the cache file unless we assign to the vars.
20588 (
20589   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20590     eval ac_val=\$$ac_var
20591     case $ac_val in #(
20592     *${as_nl}*)
20593       case $ac_var in #(
20594       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20596       esac
20597       case $ac_var in #(
20598       _ | IFS | as_nl) ;; #(
20599       *) $as_unset $ac_var ;;
20600       esac ;;
20601     esac
20602   done
20603
20604   (set) 2>&1 |
20605     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20606     *${as_nl}ac_space=\ *)
20607       # `set' does not quote correctly, so add quotes (double-quote
20608       # substitution turns \\\\ into \\, and sed turns \\ into \).
20609       sed -n \
20610         "s/'/'\\\\''/g;
20611           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20612       ;; #(
20613     *)
20614       # `set' quotes correctly as required by POSIX, so do not add quotes.
20615       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20616       ;;
20617     esac |
20618     sort
20619 ) |
20620   sed '
20621      /^ac_cv_env_/b end
20622      t clear
20623      :clear
20624      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20625      t end
20626      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20627      :end' >>confcache
20628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20629   if test -w "$cache_file"; then
20630     test "x$cache_file" != "x/dev/null" &&
20631       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20632 echo "$as_me: updating cache $cache_file" >&6;}
20633     cat confcache >$cache_file
20634   else
20635     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20636 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20637   fi
20638 fi
20639 rm -f confcache
20640
20641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20642 # Let make expand exec_prefix.
20643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20644
20645 DEFS=-DHAVE_CONFIG_H
20646
20647 ac_libobjs=
20648 ac_ltlibobjs=
20649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20650   # 1. Remove the extension, and $U if already installed.
20651   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20652   ac_i=`echo "$ac_i" | sed "$ac_script"`
20653   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20654   #    will be set to the directory where LIBOBJS objects are built.
20655   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20656   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20657 done
20658 LIBOBJS=$ac_libobjs
20659
20660 LTLIBOBJS=$ac_ltlibobjs
20661
20662
20663 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20664   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20665 Usually this means the macro was only invoked conditionally." >&5
20666 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20667 Usually this means the macro was only invoked conditionally." >&2;}
20668    { (exit 1); exit 1; }; }
20669 fi
20670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20671   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20672 Usually this means the macro was only invoked conditionally." >&5
20673 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20674 Usually this means the macro was only invoked conditionally." >&2;}
20675    { (exit 1); exit 1; }; }
20676 fi
20677 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20678   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20679 Usually this means the macro was only invoked conditionally." >&5
20680 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20681 Usually this means the macro was only invoked conditionally." >&2;}
20682    { (exit 1); exit 1; }; }
20683 fi
20684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20685   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20686 Usually this means the macro was only invoked conditionally." >&5
20687 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20688 Usually this means the macro was only invoked conditionally." >&2;}
20689    { (exit 1); exit 1; }; }
20690 fi
20691
20692 : ${CONFIG_STATUS=./config.status}
20693 ac_clean_files_save=$ac_clean_files
20694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20695 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20696 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20697 cat >$CONFIG_STATUS <<_ACEOF
20698 #! $SHELL
20699 # Generated by $as_me.
20700 # Run this file to recreate the current configuration.
20701 # Compiler output produced by configure, useful for debugging
20702 # configure, is in config.log if it exists.
20703
20704 debug=false
20705 ac_cs_recheck=false
20706 ac_cs_silent=false
20707 SHELL=\${CONFIG_SHELL-$SHELL}
20708 _ACEOF
20709
20710 cat >>$CONFIG_STATUS <<\_ACEOF
20711 ## --------------------- ##
20712 ## M4sh Initialization.  ##
20713 ## --------------------- ##
20714
20715 # Be more Bourne compatible
20716 DUALCASE=1; export DUALCASE # for MKS sh
20717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20718   emulate sh
20719   NULLCMD=:
20720   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20721   # is contrary to our usage.  Disable this feature.
20722   alias -g '${1+"$@"}'='"$@"'
20723   setopt NO_GLOB_SUBST
20724 else
20725   case `(set -o) 2>/dev/null` in
20726   *posix*) set -o posix ;;
20727 esac
20728
20729 fi
20730
20731
20732
20733
20734 # PATH needs CR
20735 # Avoid depending upon Character Ranges.
20736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20739 as_cr_digits='0123456789'
20740 as_cr_alnum=$as_cr_Letters$as_cr_digits
20741
20742 # The user is always right.
20743 if test "${PATH_SEPARATOR+set}" != set; then
20744   echo "#! /bin/sh" >conf$$.sh
20745   echo  "exit 0"   >>conf$$.sh
20746   chmod +x conf$$.sh
20747   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20748     PATH_SEPARATOR=';'
20749   else
20750     PATH_SEPARATOR=:
20751   fi
20752   rm -f conf$$.sh
20753 fi
20754
20755 # Support unset when possible.
20756 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20757   as_unset=unset
20758 else
20759   as_unset=false
20760 fi
20761
20762
20763 # IFS
20764 # We need space, tab and new line, in precisely that order.  Quoting is
20765 # there to prevent editors from complaining about space-tab.
20766 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20767 # splitting by setting IFS to empty value.)
20768 as_nl='
20769 '
20770 IFS=" ""        $as_nl"
20771
20772 # Find who we are.  Look in the path if we contain no directory separator.
20773 case $0 in
20774   *[\\/]* ) as_myself=$0 ;;
20775   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20776 for as_dir in $PATH
20777 do
20778   IFS=$as_save_IFS
20779   test -z "$as_dir" && as_dir=.
20780   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20781 done
20782 IFS=$as_save_IFS
20783
20784      ;;
20785 esac
20786 # We did not find ourselves, most probably we were run as `sh COMMAND'
20787 # in which case we are not to be found in the path.
20788 if test "x$as_myself" = x; then
20789   as_myself=$0
20790 fi
20791 if test ! -f "$as_myself"; then
20792   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20793   { (exit 1); exit 1; }
20794 fi
20795
20796 # Work around bugs in pre-3.0 UWIN ksh.
20797 for as_var in ENV MAIL MAILPATH
20798 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20799 done
20800 PS1='$ '
20801 PS2='> '
20802 PS4='+ '
20803
20804 # NLS nuisances.
20805 for as_var in \
20806   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20807   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20808   LC_TELEPHONE LC_TIME
20809 do
20810   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20811     eval $as_var=C; export $as_var
20812   else
20813     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20814   fi
20815 done
20816
20817 # Required to use basename.
20818 if expr a : '\(a\)' >/dev/null 2>&1 &&
20819    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20820   as_expr=expr
20821 else
20822   as_expr=false
20823 fi
20824
20825 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20826   as_basename=basename
20827 else
20828   as_basename=false
20829 fi
20830
20831
20832 # Name of the executable.
20833 as_me=`$as_basename -- "$0" ||
20834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20835          X"$0" : 'X\(//\)$' \| \
20836          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20837 echo X/"$0" |
20838     sed '/^.*\/\([^/][^/]*\)\/*$/{
20839             s//\1/
20840             q
20841           }
20842           /^X\/\(\/\/\)$/{
20843             s//\1/
20844             q
20845           }
20846           /^X\/\(\/\).*/{
20847             s//\1/
20848             q
20849           }
20850           s/.*/./; q'`
20851
20852 # CDPATH.
20853 $as_unset CDPATH
20854
20855
20856
20857   as_lineno_1=$LINENO
20858   as_lineno_2=$LINENO
20859   test "x$as_lineno_1" != "x$as_lineno_2" &&
20860   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20861
20862   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20863   # uniformly replaced by the line number.  The first 'sed' inserts a
20864   # line-number line after each line using $LINENO; the second 'sed'
20865   # does the real work.  The second script uses 'N' to pair each
20866   # line-number line with the line containing $LINENO, and appends
20867   # trailing '-' during substitution so that $LINENO is not a special
20868   # case at line end.
20869   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20870   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20871   # E. McMahon (1931-1989) for sed's syntax.  :-)
20872   sed -n '
20873     p
20874     /[$]LINENO/=
20875   ' <$as_myself |
20876     sed '
20877       s/[$]LINENO.*/&-/
20878       t lineno
20879       b
20880       :lineno
20881       N
20882       :loop
20883       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20884       t loop
20885       s/-\n.*//
20886     ' >$as_me.lineno &&
20887   chmod +x "$as_me.lineno" ||
20888     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20889    { (exit 1); exit 1; }; }
20890
20891   # Don't try to exec as it changes $[0], causing all sort of problems
20892   # (the dirname of $[0] is not the place where we might find the
20893   # original and so on.  Autoconf is especially sensitive to this).
20894   . "./$as_me.lineno"
20895   # Exit status is that of the last command.
20896   exit
20897 }
20898
20899
20900 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20901   as_dirname=dirname
20902 else
20903   as_dirname=false
20904 fi
20905
20906 ECHO_C= ECHO_N= ECHO_T=
20907 case `echo -n x` in
20908 -n*)
20909   case `echo 'x\c'` in
20910   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20911   *)   ECHO_C='\c';;
20912   esac;;
20913 *)
20914   ECHO_N='-n';;
20915 esac
20916
20917 if expr a : '\(a\)' >/dev/null 2>&1 &&
20918    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20919   as_expr=expr
20920 else
20921   as_expr=false
20922 fi
20923
20924 rm -f conf$$ conf$$.exe conf$$.file
20925 if test -d conf$$.dir; then
20926   rm -f conf$$.dir/conf$$.file
20927 else
20928   rm -f conf$$.dir
20929   mkdir conf$$.dir
20930 fi
20931 echo >conf$$.file
20932 if ln -s conf$$.file conf$$ 2>/dev/null; then
20933   as_ln_s='ln -s'
20934   # ... but there are two gotchas:
20935   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20936   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20937   # In both cases, we have to default to `cp -p'.
20938   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20939     as_ln_s='cp -p'
20940 elif ln conf$$.file conf$$ 2>/dev/null; then
20941   as_ln_s=ln
20942 else
20943   as_ln_s='cp -p'
20944 fi
20945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20946 rmdir conf$$.dir 2>/dev/null
20947
20948 if mkdir -p . 2>/dev/null; then
20949   as_mkdir_p=:
20950 else
20951   test -d ./-p && rmdir ./-p
20952   as_mkdir_p=false
20953 fi
20954
20955 if test -x / >/dev/null 2>&1; then
20956   as_test_x='test -x'
20957 else
20958   if ls -dL / >/dev/null 2>&1; then
20959     as_ls_L_option=L
20960   else
20961     as_ls_L_option=
20962   fi
20963   as_test_x='
20964     eval sh -c '\''
20965       if test -d "$1"; then
20966         test -d "$1/.";
20967       else
20968         case $1 in
20969         -*)set "./$1";;
20970         esac;
20971         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20972         ???[sx]*):;;*)false;;esac;fi
20973     '\'' sh
20974   '
20975 fi
20976 as_executable_p=$as_test_x
20977
20978 # Sed expression to map a string onto a valid CPP name.
20979 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20980
20981 # Sed expression to map a string onto a valid variable name.
20982 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20983
20984
20985 exec 6>&1
20986
20987 # Save the log message, to keep $[0] and so on meaningful, and to
20988 # report actual input values of CONFIG_FILES etc. instead of their
20989 # values after options handling.
20990 ac_log="
20991 This file was extended by $as_me, which was
20992 generated by GNU Autoconf 2.61.  Invocation command line was
20993
20994   CONFIG_FILES    = $CONFIG_FILES
20995   CONFIG_HEADERS  = $CONFIG_HEADERS
20996   CONFIG_LINKS    = $CONFIG_LINKS
20997   CONFIG_COMMANDS = $CONFIG_COMMANDS
20998   $ $0 $@
20999
21000 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21001 "
21002
21003 _ACEOF
21004
21005 cat >>$CONFIG_STATUS <<_ACEOF
21006 # Files that config.status was made for.
21007 config_files="$ac_config_files"
21008 config_headers="$ac_config_headers"
21009 config_commands="$ac_config_commands"
21010
21011 _ACEOF
21012
21013 cat >>$CONFIG_STATUS <<\_ACEOF
21014 ac_cs_usage="\
21015 \`$as_me' instantiates files from templates according to the
21016 current configuration.
21017
21018 Usage: $0 [OPTIONS] [FILE]...
21019
21020   -h, --help       print this help, then exit
21021   -V, --version    print version number and configuration settings, then exit
21022   -q, --quiet      do not print progress messages
21023   -d, --debug      don't remove temporary files
21024       --recheck    update $as_me by reconfiguring in the same conditions
21025   --file=FILE[:TEMPLATE]
21026                    instantiate the configuration file FILE
21027   --header=FILE[:TEMPLATE]
21028                    instantiate the configuration header FILE
21029
21030 Configuration files:
21031 $config_files
21032
21033 Configuration headers:
21034 $config_headers
21035
21036 Configuration commands:
21037 $config_commands
21038
21039 Report bugs to <bug-autoconf@gnu.org>."
21040
21041 _ACEOF
21042 cat >>$CONFIG_STATUS <<_ACEOF
21043 ac_cs_version="\\
21044 config.status
21045 configured by $0, generated by GNU Autoconf 2.61,
21046   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21047
21048 Copyright (C) 2006 Free Software Foundation, Inc.
21049 This config.status script is free software; the Free Software Foundation
21050 gives unlimited permission to copy, distribute and modify it."
21051
21052 ac_pwd='$ac_pwd'
21053 srcdir='$srcdir'
21054 INSTALL='$INSTALL'
21055 _ACEOF
21056
21057 cat >>$CONFIG_STATUS <<\_ACEOF
21058 # If no file are specified by the user, then we need to provide default
21059 # value.  By we need to know if files were specified by the user.
21060 ac_need_defaults=:
21061 while test $# != 0
21062 do
21063   case $1 in
21064   --*=*)
21065     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21066     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21067     ac_shift=:
21068     ;;
21069   *)
21070     ac_option=$1
21071     ac_optarg=$2
21072     ac_shift=shift
21073     ;;
21074   esac
21075
21076   case $ac_option in
21077   # Handling of the options.
21078   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21079     ac_cs_recheck=: ;;
21080   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21081     echo "$ac_cs_version"; exit ;;
21082   --debug | --debu | --deb | --de | --d | -d )
21083     debug=: ;;
21084   --file | --fil | --fi | --f )
21085     $ac_shift
21086     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21087     ac_need_defaults=false;;
21088   --header | --heade | --head | --hea )
21089     $ac_shift
21090     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21091     ac_need_defaults=false;;
21092   --he | --h)
21093     # Conflict between --help and --header
21094     { echo "$as_me: error: ambiguous option: $1
21095 Try \`$0 --help' for more information." >&2
21096    { (exit 1); exit 1; }; };;
21097   --help | --hel | -h )
21098     echo "$ac_cs_usage"; exit ;;
21099   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21100   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21101     ac_cs_silent=: ;;
21102
21103   # This is an error.
21104   -*) { echo "$as_me: error: unrecognized option: $1
21105 Try \`$0 --help' for more information." >&2
21106    { (exit 1); exit 1; }; } ;;
21107
21108   *) ac_config_targets="$ac_config_targets $1"
21109      ac_need_defaults=false ;;
21110
21111   esac
21112   shift
21113 done
21114
21115 ac_configure_extra_args=
21116
21117 if $ac_cs_silent; then
21118   exec 6>/dev/null
21119   ac_configure_extra_args="$ac_configure_extra_args --silent"
21120 fi
21121
21122 _ACEOF
21123 cat >>$CONFIG_STATUS <<_ACEOF
21124 if \$ac_cs_recheck; then
21125   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21126   CONFIG_SHELL=$SHELL
21127   export CONFIG_SHELL
21128   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21129 fi
21130
21131 _ACEOF
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21133 exec 5>>config.log
21134 {
21135   echo
21136   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21137 ## Running $as_me. ##
21138 _ASBOX
21139   echo "$ac_log"
21140 } >&5
21141
21142 _ACEOF
21143 cat >>$CONFIG_STATUS <<_ACEOF
21144 #
21145 # INIT-COMMANDS
21146 #
21147 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21148
21149 _ACEOF
21150
21151 cat >>$CONFIG_STATUS <<\_ACEOF
21152
21153 # Handling of arguments.
21154 for ac_config_target in $ac_config_targets
21155 do
21156   case $ac_config_target in
21157     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21158     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21159     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21160
21161   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21163    { (exit 1); exit 1; }; };;
21164   esac
21165 done
21166
21167
21168 # If the user did not use the arguments to specify the items to instantiate,
21169 # then the envvar interface is used.  Set only those that are not.
21170 # We use the long form for the default assignment because of an extremely
21171 # bizarre bug on SunOS 4.1.3.
21172 if $ac_need_defaults; then
21173   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21174   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21175   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21176 fi
21177
21178 # Have a temporary directory for convenience.  Make it in the build tree
21179 # simply because there is no reason against having it here, and in addition,
21180 # creating and moving files from /tmp can sometimes cause problems.
21181 # Hook for its removal unless debugging.
21182 # Note that there is a small window in which the directory will not be cleaned:
21183 # after its creation but before its name has been assigned to `$tmp'.
21184 $debug ||
21185 {
21186   tmp=
21187   trap 'exit_status=$?
21188   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21189 ' 0
21190   trap '{ (exit 1); exit 1; }' 1 2 13 15
21191 }
21192 # Create a (secure) tmp directory for tmp files.
21193
21194 {
21195   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21196   test -n "$tmp" && test -d "$tmp"
21197 }  ||
21198 {
21199   tmp=./conf$$-$RANDOM
21200   (umask 077 && mkdir "$tmp")
21201 } ||
21202 {
21203    echo "$me: cannot create a temporary directory in ." >&2
21204    { (exit 1); exit 1; }
21205 }
21206
21207 #
21208 # Set up the sed scripts for CONFIG_FILES section.
21209 #
21210
21211 # No need to generate the scripts if there are no CONFIG_FILES.
21212 # This happens for instance when ./config.status config.h
21213 if test -n "$CONFIG_FILES"; then
21214
21215 _ACEOF
21216
21217
21218
21219 ac_delim='%!_!# '
21220 for ac_last_try in false false false false false :; do
21221   cat >conf$$subs.sed <<_ACEOF
21222 SHELL!$SHELL$ac_delim
21223 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21224 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21225 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21226 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21227 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21228 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21229 exec_prefix!$exec_prefix$ac_delim
21230 prefix!$prefix$ac_delim
21231 program_transform_name!$program_transform_name$ac_delim
21232 bindir!$bindir$ac_delim
21233 sbindir!$sbindir$ac_delim
21234 libexecdir!$libexecdir$ac_delim
21235 datarootdir!$datarootdir$ac_delim
21236 datadir!$datadir$ac_delim
21237 sysconfdir!$sysconfdir$ac_delim
21238 sharedstatedir!$sharedstatedir$ac_delim
21239 localstatedir!$localstatedir$ac_delim
21240 includedir!$includedir$ac_delim
21241 oldincludedir!$oldincludedir$ac_delim
21242 docdir!$docdir$ac_delim
21243 infodir!$infodir$ac_delim
21244 htmldir!$htmldir$ac_delim
21245 dvidir!$dvidir$ac_delim
21246 pdfdir!$pdfdir$ac_delim
21247 psdir!$psdir$ac_delim
21248 libdir!$libdir$ac_delim
21249 localedir!$localedir$ac_delim
21250 mandir!$mandir$ac_delim
21251 DEFS!$DEFS$ac_delim
21252 ECHO_C!$ECHO_C$ac_delim
21253 ECHO_N!$ECHO_N$ac_delim
21254 ECHO_T!$ECHO_T$ac_delim
21255 LIBS!$LIBS$ac_delim
21256 build_alias!$build_alias$ac_delim
21257 host_alias!$host_alias$ac_delim
21258 target_alias!$target_alias$ac_delim
21259 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21260 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21261 INSTALL_DATA!$INSTALL_DATA$ac_delim
21262 CYGPATH_W!$CYGPATH_W$ac_delim
21263 PACKAGE!$PACKAGE$ac_delim
21264 VERSION!$VERSION$ac_delim
21265 ACLOCAL!$ACLOCAL$ac_delim
21266 AUTOCONF!$AUTOCONF$ac_delim
21267 AUTOMAKE!$AUTOMAKE$ac_delim
21268 AUTOHEADER!$AUTOHEADER$ac_delim
21269 MAKEINFO!$MAKEINFO$ac_delim
21270 install_sh!$install_sh$ac_delim
21271 STRIP!$STRIP$ac_delim
21272 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21273 mkdir_p!$mkdir_p$ac_delim
21274 AWK!$AWK$ac_delim
21275 SET_MAKE!$SET_MAKE$ac_delim
21276 am__leading_dot!$am__leading_dot$ac_delim
21277 AMTAR!$AMTAR$ac_delim
21278 am__tar!$am__tar$ac_delim
21279 am__untar!$am__untar$ac_delim
21280 build!$build$ac_delim
21281 build_cpu!$build_cpu$ac_delim
21282 build_vendor!$build_vendor$ac_delim
21283 build_os!$build_os$ac_delim
21284 host!$host$ac_delim
21285 host_cpu!$host_cpu$ac_delim
21286 host_vendor!$host_vendor$ac_delim
21287 host_os!$host_os$ac_delim
21288 CC!$CC$ac_delim
21289 CFLAGS!$CFLAGS$ac_delim
21290 LDFLAGS!$LDFLAGS$ac_delim
21291 CPPFLAGS!$CPPFLAGS$ac_delim
21292 ac_ct_CC!$ac_ct_CC$ac_delim
21293 EXEEXT!$EXEEXT$ac_delim
21294 OBJEXT!$OBJEXT$ac_delim
21295 DEPDIR!$DEPDIR$ac_delim
21296 am__include!$am__include$ac_delim
21297 am__quote!$am__quote$ac_delim
21298 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21299 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21300 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21301 CCDEPMODE!$CCDEPMODE$ac_delim
21302 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21303 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21304 GREP!$GREP$ac_delim
21305 EGREP!$EGREP$ac_delim
21306 LN_S!$LN_S$ac_delim
21307 ECHO!$ECHO$ac_delim
21308 AR!$AR$ac_delim
21309 RANLIB!$RANLIB$ac_delim
21310 CPP!$CPP$ac_delim
21311 CXX!$CXX$ac_delim
21312 CXXFLAGS!$CXXFLAGS$ac_delim
21313 ac_ct_CXX!$ac_ct_CXX$ac_delim
21314 CXXDEPMODE!$CXXDEPMODE$ac_delim
21315 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21316 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21317 CXXCPP!$CXXCPP$ac_delim
21318 F77!$F77$ac_delim
21319 _ACEOF
21320
21321   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21322     break
21323   elif $ac_last_try; then
21324     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21325 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21326    { (exit 1); exit 1; }; }
21327   else
21328     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21329   fi
21330 done
21331
21332 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21333 if test -n "$ac_eof"; then
21334   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21335   ac_eof=`expr $ac_eof + 1`
21336 fi
21337
21338 cat >>$CONFIG_STATUS <<_ACEOF
21339 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21341 _ACEOF
21342 sed '
21343 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21344 s/^/s,@/; s/!/@,|#_!!_#|/
21345 :n
21346 t n
21347 s/'"$ac_delim"'$/,g/; t
21348 s/$/\\/; p
21349 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21350 ' >>$CONFIG_STATUS <conf$$subs.sed
21351 rm -f conf$$subs.sed
21352 cat >>$CONFIG_STATUS <<_ACEOF
21353 CEOF$ac_eof
21354 _ACEOF
21355
21356
21357 ac_delim='%!_!# '
21358 for ac_last_try in false false false false false :; do
21359   cat >conf$$subs.sed <<_ACEOF
21360 FFLAGS!$FFLAGS$ac_delim
21361 ac_ct_F77!$ac_ct_F77$ac_delim
21362 LIBTOOL!$LIBTOOL$ac_delim
21363 LIBOBJS!$LIBOBJS$ac_delim
21364 LTLIBOBJS!$LTLIBOBJS$ac_delim
21365 _ACEOF
21366
21367   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
21368     break
21369   elif $ac_last_try; then
21370     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21371 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21372    { (exit 1); exit 1; }; }
21373   else
21374     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21375   fi
21376 done
21377
21378 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21379 if test -n "$ac_eof"; then
21380   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21381   ac_eof=`expr $ac_eof + 1`
21382 fi
21383
21384 cat >>$CONFIG_STATUS <<_ACEOF
21385 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21387 _ACEOF
21388 sed '
21389 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21390 s/^/s,@/; s/!/@,|#_!!_#|/
21391 :n
21392 t n
21393 s/'"$ac_delim"'$/,g/; t
21394 s/$/\\/; p
21395 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21396 ' >>$CONFIG_STATUS <conf$$subs.sed
21397 rm -f conf$$subs.sed
21398 cat >>$CONFIG_STATUS <<_ACEOF
21399 :end
21400 s/|#_!!_#|//g
21401 CEOF$ac_eof
21402 _ACEOF
21403
21404
21405 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21406 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21407 # trailing colons and then remove the whole line if VPATH becomes empty
21408 # (actually we leave an empty line to preserve line numbers).
21409 if test "x$srcdir" = x.; then
21410   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21411 s/:*\$(srcdir):*/:/
21412 s/:*\${srcdir}:*/:/
21413 s/:*@srcdir@:*/:/
21414 s/^\([^=]*=[     ]*\):*/\1/
21415 s/:*$//
21416 s/^[^=]*=[       ]*$//
21417 }'
21418 fi
21419
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21421 fi # test -n "$CONFIG_FILES"
21422
21423
21424 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21425 do
21426   case $ac_tag in
21427   :[FHLC]) ac_mode=$ac_tag; continue;;
21428   esac
21429   case $ac_mode$ac_tag in
21430   :[FHL]*:*);;
21431   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21432 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21433    { (exit 1); exit 1; }; };;
21434   :[FH]-) ac_tag=-:-;;
21435   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21436   esac
21437   ac_save_IFS=$IFS
21438   IFS=:
21439   set x $ac_tag
21440   IFS=$ac_save_IFS
21441   shift
21442   ac_file=$1
21443   shift
21444
21445   case $ac_mode in
21446   :L) ac_source=$1;;
21447   :[FH])
21448     ac_file_inputs=
21449     for ac_f
21450     do
21451       case $ac_f in
21452       -) ac_f="$tmp/stdin";;
21453       *) # Look for the file first in the build tree, then in the source tree
21454          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21455          # because $ac_f cannot contain `:'.
21456          test -f "$ac_f" ||
21457            case $ac_f in
21458            [\\/$]*) false;;
21459            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21460            esac ||
21461            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21462 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21463    { (exit 1); exit 1; }; };;
21464       esac
21465       ac_file_inputs="$ac_file_inputs $ac_f"
21466     done
21467
21468     # Let's still pretend it is `configure' which instantiates (i.e., don't
21469     # use $as_me), people would be surprised to read:
21470     #    /* config.h.  Generated by config.status.  */
21471     configure_input="Generated from "`IFS=:
21472           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21473     if test x"$ac_file" != x-; then
21474       configure_input="$ac_file.  $configure_input"
21475       { echo "$as_me:$LINENO: creating $ac_file" >&5
21476 echo "$as_me: creating $ac_file" >&6;}
21477     fi
21478
21479     case $ac_tag in
21480     *:-:* | *:-) cat >"$tmp/stdin";;
21481     esac
21482     ;;
21483   esac
21484
21485   ac_dir=`$as_dirname -- "$ac_file" ||
21486 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21487          X"$ac_file" : 'X\(//\)[^/]' \| \
21488          X"$ac_file" : 'X\(//\)$' \| \
21489          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21490 echo X"$ac_file" |
21491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21492             s//\1/
21493             q
21494           }
21495           /^X\(\/\/\)[^/].*/{
21496             s//\1/
21497             q
21498           }
21499           /^X\(\/\/\)$/{
21500             s//\1/
21501             q
21502           }
21503           /^X\(\/\).*/{
21504             s//\1/
21505             q
21506           }
21507           s/.*/./; q'`
21508   { as_dir="$ac_dir"
21509   case $as_dir in #(
21510   -*) as_dir=./$as_dir;;
21511   esac
21512   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21513     as_dirs=
21514     while :; do
21515       case $as_dir in #(
21516       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21517       *) as_qdir=$as_dir;;
21518       esac
21519       as_dirs="'$as_qdir' $as_dirs"
21520       as_dir=`$as_dirname -- "$as_dir" ||
21521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522          X"$as_dir" : 'X\(//\)[^/]' \| \
21523          X"$as_dir" : 'X\(//\)$' \| \
21524          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21525 echo X"$as_dir" |
21526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21527             s//\1/
21528             q
21529           }
21530           /^X\(\/\/\)[^/].*/{
21531             s//\1/
21532             q
21533           }
21534           /^X\(\/\/\)$/{
21535             s//\1/
21536             q
21537           }
21538           /^X\(\/\).*/{
21539             s//\1/
21540             q
21541           }
21542           s/.*/./; q'`
21543       test -d "$as_dir" && break
21544     done
21545     test -z "$as_dirs" || eval "mkdir $as_dirs"
21546   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21547 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21548    { (exit 1); exit 1; }; }; }
21549   ac_builddir=.
21550
21551 case "$ac_dir" in
21552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21553 *)
21554   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21555   # A ".." for each directory in $ac_dir_suffix.
21556   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21557   case $ac_top_builddir_sub in
21558   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21559   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21560   esac ;;
21561 esac
21562 ac_abs_top_builddir=$ac_pwd
21563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21564 # for backward compatibility:
21565 ac_top_builddir=$ac_top_build_prefix
21566
21567 case $srcdir in
21568   .)  # We are building in place.
21569     ac_srcdir=.
21570     ac_top_srcdir=$ac_top_builddir_sub
21571     ac_abs_top_srcdir=$ac_pwd ;;
21572   [\\/]* | ?:[\\/]* )  # Absolute name.
21573     ac_srcdir=$srcdir$ac_dir_suffix;
21574     ac_top_srcdir=$srcdir
21575     ac_abs_top_srcdir=$srcdir ;;
21576   *) # Relative name.
21577     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21578     ac_top_srcdir=$ac_top_build_prefix$srcdir
21579     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21580 esac
21581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21582
21583
21584   case $ac_mode in
21585   :F)
21586   #
21587   # CONFIG_FILE
21588   #
21589
21590   case $INSTALL in
21591   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21592   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21593   esac
21594 _ACEOF
21595
21596 cat >>$CONFIG_STATUS <<\_ACEOF
21597 # If the template does not know about datarootdir, expand it.
21598 # FIXME: This hack should be removed a few years after 2.60.
21599 ac_datarootdir_hack=; ac_datarootdir_seen=
21600
21601 case `sed -n '/datarootdir/ {
21602   p
21603   q
21604 }
21605 /@datadir@/p
21606 /@docdir@/p
21607 /@infodir@/p
21608 /@localedir@/p
21609 /@mandir@/p
21610 ' $ac_file_inputs` in
21611 *datarootdir*) ac_datarootdir_seen=yes;;
21612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21613   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21614 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21615 _ACEOF
21616 cat >>$CONFIG_STATUS <<_ACEOF
21617   ac_datarootdir_hack='
21618   s&@datadir@&$datadir&g
21619   s&@docdir@&$docdir&g
21620   s&@infodir@&$infodir&g
21621   s&@localedir@&$localedir&g
21622   s&@mandir@&$mandir&g
21623     s&\\\${datarootdir}&$datarootdir&g' ;;
21624 esac
21625 _ACEOF
21626
21627 # Neutralize VPATH when `$srcdir' = `.'.
21628 # Shell code in configure.ac might set extrasub.
21629 # FIXME: do we really want to maintain this feature?
21630 cat >>$CONFIG_STATUS <<_ACEOF
21631   sed "$ac_vpsub
21632 $extrasub
21633 _ACEOF
21634 cat >>$CONFIG_STATUS <<\_ACEOF
21635 :t
21636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21637 s&@configure_input@&$configure_input&;t t
21638 s&@top_builddir@&$ac_top_builddir_sub&;t t
21639 s&@srcdir@&$ac_srcdir&;t t
21640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21641 s&@top_srcdir@&$ac_top_srcdir&;t t
21642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21643 s&@builddir@&$ac_builddir&;t t
21644 s&@abs_builddir@&$ac_abs_builddir&;t t
21645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21646 s&@INSTALL@&$ac_INSTALL&;t t
21647 $ac_datarootdir_hack
21648 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21649
21650 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21651   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21652   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21653   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21654 which seems to be undefined.  Please make sure it is defined." >&5
21655 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21656 which seems to be undefined.  Please make sure it is defined." >&2;}
21657
21658   rm -f "$tmp/stdin"
21659   case $ac_file in
21660   -) cat "$tmp/out"; rm -f "$tmp/out";;
21661   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21662   esac
21663  ;;
21664   :H)
21665   #
21666   # CONFIG_HEADER
21667   #
21668 _ACEOF
21669
21670 # Transform confdefs.h into a sed script `conftest.defines', that
21671 # substitutes the proper values into config.h.in to produce config.h.
21672 rm -f conftest.defines conftest.tail
21673 # First, append a space to every undef/define line, to ease matching.
21674 echo 's/$/ /' >conftest.defines
21675 # Then, protect against being on the right side of a sed subst, or in
21676 # an unquoted here document, in config.status.  If some macros were
21677 # called several times there might be several #defines for the same
21678 # symbol, which is useless.  But do not sort them, since the last
21679 # AC_DEFINE must be honored.
21680 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21681 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21682 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21683 # PARAMS is the parameter list in the macro definition--in most cases, it's
21684 # just an empty string.
21685 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21686 ac_dB='\\)[      (].*,\\1define\\2'
21687 ac_dC=' '
21688 ac_dD=' ,'
21689
21690 uniq confdefs.h |
21691   sed -n '
21692         t rset
21693         :rset
21694         s/^[     ]*#[    ]*define[       ][      ]*//
21695         t ok
21696         d
21697         :ok
21698         s/[\\&,]/\\&/g
21699         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21700         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21701   ' >>conftest.defines
21702
21703 # Remove the space that was appended to ease matching.
21704 # Then replace #undef with comments.  This is necessary, for
21705 # example, in the case of _POSIX_SOURCE, which is predefined and required
21706 # on some systems where configure will not decide to define it.
21707 # (The regexp can be short, since the line contains either #define or #undef.)
21708 echo 's/ $//
21709 s,^[     #]*u.*,/* & */,' >>conftest.defines
21710
21711 # Break up conftest.defines:
21712 ac_max_sed_lines=50
21713
21714 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21715 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21716 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21717 # et cetera.
21718 ac_in='$ac_file_inputs'
21719 ac_out='"$tmp/out1"'
21720 ac_nxt='"$tmp/out2"'
21721
21722 while :
21723 do
21724   # Write a here document:
21725     cat >>$CONFIG_STATUS <<_ACEOF
21726     # First, check the format of the line:
21727     cat >"\$tmp/defines.sed" <<\\CEOF
21728 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21729 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21730 b
21731 :def
21732 _ACEOF
21733   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21734   echo 'CEOF
21735     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21736   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21737   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21738   grep . conftest.tail >/dev/null || break
21739   rm -f conftest.defines
21740   mv conftest.tail conftest.defines
21741 done
21742 rm -f conftest.defines conftest.tail
21743
21744 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21745 cat >>$CONFIG_STATUS <<\_ACEOF
21746   if test x"$ac_file" != x-; then
21747     echo "/* $configure_input  */" >"$tmp/config.h"
21748     cat "$ac_result" >>"$tmp/config.h"
21749     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21750       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21751 echo "$as_me: $ac_file is unchanged" >&6;}
21752     else
21753       rm -f $ac_file
21754       mv "$tmp/config.h" $ac_file
21755     fi
21756   else
21757     echo "/* $configure_input  */"
21758     cat "$ac_result"
21759   fi
21760   rm -f "$tmp/out12"
21761 # Compute $ac_file's index in $config_headers.
21762 _am_stamp_count=1
21763 for _am_header in $config_headers :; do
21764   case $_am_header in
21765     $ac_file | $ac_file:* )
21766       break ;;
21767     * )
21768       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21769   esac
21770 done
21771 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21772 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21773          X$ac_file : 'X\(//\)[^/]' \| \
21774          X$ac_file : 'X\(//\)$' \| \
21775          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21776 echo X$ac_file |
21777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21778             s//\1/
21779             q
21780           }
21781           /^X\(\/\/\)[^/].*/{
21782             s//\1/
21783             q
21784           }
21785           /^X\(\/\/\)$/{
21786             s//\1/
21787             q
21788           }
21789           /^X\(\/\).*/{
21790             s//\1/
21791             q
21792           }
21793           s/.*/./; q'`/stamp-h$_am_stamp_count
21794  ;;
21795
21796   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21797 echo "$as_me: executing $ac_file commands" >&6;}
21798  ;;
21799   esac
21800
21801
21802   case $ac_file$ac_mode in
21803     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21804   # Strip MF so we end up with the name of the file.
21805   mf=`echo "$mf" | sed -e 's/:.*$//'`
21806   # Check whether this is an Automake generated Makefile or not.
21807   # We used to match only the files named `Makefile.in', but
21808   # some people rename them; so instead we look at the file content.
21809   # Grep'ing the first line is not enough: some people post-process
21810   # each Makefile.in and add a new line on top of each file to say so.
21811   # So let's grep whole file.
21812   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21813     dirpart=`$as_dirname -- "$mf" ||
21814 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21815          X"$mf" : 'X\(//\)[^/]' \| \
21816          X"$mf" : 'X\(//\)$' \| \
21817          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21818 echo X"$mf" |
21819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21820             s//\1/
21821             q
21822           }
21823           /^X\(\/\/\)[^/].*/{
21824             s//\1/
21825             q
21826           }
21827           /^X\(\/\/\)$/{
21828             s//\1/
21829             q
21830           }
21831           /^X\(\/\).*/{
21832             s//\1/
21833             q
21834           }
21835           s/.*/./; q'`
21836   else
21837     continue
21838   fi
21839   # Extract the definition of DEPDIR, am__include, and am__quote
21840   # from the Makefile without running `make'.
21841   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21842   test -z "$DEPDIR" && continue
21843   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21844   test -z "am__include" && continue
21845   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21846   # When using ansi2knr, U may be empty or an underscore; expand it
21847   U=`sed -n 's/^U = //p' < "$mf"`
21848   # Find all dependency output files, they are included files with
21849   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21850   # simplest approach to changing $(DEPDIR) to its actual value in the
21851   # expansion.
21852   for file in `sed -n "
21853     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21854        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21855     # Make sure the directory exists.
21856     test -f "$dirpart/$file" && continue
21857     fdir=`$as_dirname -- "$file" ||
21858 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21859          X"$file" : 'X\(//\)[^/]' \| \
21860          X"$file" : 'X\(//\)$' \| \
21861          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21862 echo X"$file" |
21863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21864             s//\1/
21865             q
21866           }
21867           /^X\(\/\/\)[^/].*/{
21868             s//\1/
21869             q
21870           }
21871           /^X\(\/\/\)$/{
21872             s//\1/
21873             q
21874           }
21875           /^X\(\/\).*/{
21876             s//\1/
21877             q
21878           }
21879           s/.*/./; q'`
21880     { as_dir=$dirpart/$fdir
21881   case $as_dir in #(
21882   -*) as_dir=./$as_dir;;
21883   esac
21884   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21885     as_dirs=
21886     while :; do
21887       case $as_dir in #(
21888       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21889       *) as_qdir=$as_dir;;
21890       esac
21891       as_dirs="'$as_qdir' $as_dirs"
21892       as_dir=`$as_dirname -- "$as_dir" ||
21893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21894          X"$as_dir" : 'X\(//\)[^/]' \| \
21895          X"$as_dir" : 'X\(//\)$' \| \
21896          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21897 echo X"$as_dir" |
21898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21899             s//\1/
21900             q
21901           }
21902           /^X\(\/\/\)[^/].*/{
21903             s//\1/
21904             q
21905           }
21906           /^X\(\/\/\)$/{
21907             s//\1/
21908             q
21909           }
21910           /^X\(\/\).*/{
21911             s//\1/
21912             q
21913           }
21914           s/.*/./; q'`
21915       test -d "$as_dir" && break
21916     done
21917     test -z "$as_dirs" || eval "mkdir $as_dirs"
21918   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21919 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21920    { (exit 1); exit 1; }; }; }
21921     # echo "creating $dirpart/$file"
21922     echo '# dummy' > "$dirpart/$file"
21923   done
21924 done
21925  ;;
21926
21927   esac
21928 done # for ac_tag
21929
21930
21931 { (exit 0); exit 0; }
21932 _ACEOF
21933 chmod +x $CONFIG_STATUS
21934 ac_clean_files=$ac_clean_files_save
21935
21936
21937 # configure is writing to config.log, and then calls config.status.
21938 # config.status does its own redirection, appending to config.log.
21939 # Unfortunately, on DOS this fails, as config.log is still kept open
21940 # by configure, so config.status won't be able to write to it; its
21941 # output is simply discarded.  So we exec the FD to /dev/null,
21942 # effectively closing config.log, so it can be properly (re)opened and
21943 # appended to by config.status.  When coming back to configure, we
21944 # need to make the FD available again.
21945 if test "$no_create" != yes; then
21946   ac_cs_success=:
21947   ac_config_status_args=
21948   test "$silent" = yes &&
21949     ac_config_status_args="$ac_config_status_args --quiet"
21950   exec 5>/dev/null
21951   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21952   exec 5>>config.log
21953   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21954   # would make configure fail if this is the last instruction.
21955   $ac_cs_success || { (exit 1); exit 1; }
21956 fi
21957