]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/libantlr3c-3.2/configure
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / libantlr3c-3.2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libantlr3c 3.2.
4 #
5 # Report bugs to <jimi@temporal-wave.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 #
13 #  (The "BSD licence")
14 #  Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
15 #  http://www.temporal-wave.com
16 #  http://www.linkedin.com/in/jimidle
17 #  All rights reserved.
18 #
19 #  Redistribution and use in source and binary forms, with or without
20 #  modification, are permitted provided that the following conditions
21 #  are met:
22 #  1. Redistributions of source code must retain the above copyright
23 #     notice, this list of conditions and the following disclaimer.
24 #  2. Redistributions in binary form must reproduce the above copyright
25 #     notice, this list of conditions and the following disclaimer in the
26 #     documentation and/or other materials provided with the distribution.
27 #  3. The name of the author may not be used to endorse or promote products
28 #     derived from this software without specific prior written permission.
29 #
30 #  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
31 #  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
32 #  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33 #  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
34 #  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
35 #  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 #  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 #  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 #  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
39 #  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 #
41 ## --------------------- ##
42 ## M4sh Initialization.  ##
43 ## --------------------- ##
44
45 # Be more Bourne compatible
46 DUALCASE=1; export DUALCASE # for MKS sh
47 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48   emulate sh
49   NULLCMD=:
50   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
51   # is contrary to our usage.  Disable this feature.
52   alias -g '${1+"$@"}'='"$@"'
53   setopt NO_GLOB_SUBST
54 else
55   case `(set -o) 2>/dev/null` in
56   *posix*) set -o posix ;;
57 esac
58
59 fi
60
61
62
63
64 # PATH needs CR
65 # Avoid depending upon Character Ranges.
66 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
67 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
68 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
69 as_cr_digits='0123456789'
70 as_cr_alnum=$as_cr_Letters$as_cr_digits
71
72 as_nl='
73 '
74 export as_nl
75 # Printing a long string crashes Solaris 7 /usr/bin/printf.
76 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
77 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
78 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
79 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
80   as_echo='printf %s\n'
81   as_echo_n='printf %s'
82 else
83   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
84     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
85     as_echo_n='/usr/ucb/echo -n'
86   else
87     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
88     as_echo_n_body='eval
89       arg=$1;
90       case $arg in
91       *"$as_nl"*)
92         expr "X$arg" : "X\\(.*\\)$as_nl";
93         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
94       esac;
95       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
96     '
97     export as_echo_n_body
98     as_echo_n='sh -c $as_echo_n_body as_echo'
99   fi
100   export as_echo_body
101   as_echo='sh -c $as_echo_body as_echo'
102 fi
103
104 # The user is always right.
105 if test "${PATH_SEPARATOR+set}" != set; then
106   PATH_SEPARATOR=:
107   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
108     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
109       PATH_SEPARATOR=';'
110   }
111 fi
112
113 # Support unset when possible.
114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
115   as_unset=unset
116 else
117   as_unset=false
118 fi
119
120
121 # IFS
122 # We need space, tab and new line, in precisely that order.  Quoting is
123 # there to prevent editors from complaining about space-tab.
124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
125 # splitting by setting IFS to empty value.)
126 IFS=" ""        $as_nl"
127
128 # Find who we are.  Look in the path if we contain no directory separator.
129 case $0 in
130   *[\\/]* ) as_myself=$0 ;;
131   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in $PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
137 done
138 IFS=$as_save_IFS
139
140      ;;
141 esac
142 # We did not find ourselves, most probably we were run as `sh COMMAND'
143 # in which case we are not to be found in the path.
144 if test "x$as_myself" = x; then
145   as_myself=$0
146 fi
147 if test ! -f "$as_myself"; then
148   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
149   { (exit 1); exit 1; }
150 fi
151
152 # Work around bugs in pre-3.0 UWIN ksh.
153 for as_var in ENV MAIL MAILPATH
154 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
155 done
156 PS1='$ '
157 PS2='> '
158 PS4='+ '
159
160 # NLS nuisances.
161 LC_ALL=C
162 export LC_ALL
163 LANGUAGE=C
164 export LANGUAGE
165
166 # Required to use basename.
167 if expr a : '\(a\)' >/dev/null 2>&1 &&
168    test "X`expr 00001 : '.*\(...\)'`" = X001; then
169   as_expr=expr
170 else
171   as_expr=false
172 fi
173
174 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
175   as_basename=basename
176 else
177   as_basename=false
178 fi
179
180
181 # Name of the executable.
182 as_me=`$as_basename -- "$0" ||
183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
184          X"$0" : 'X\(//\)$' \| \
185          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
186 $as_echo X/"$0" |
187     sed '/^.*\/\([^/][^/]*\)\/*$/{
188             s//\1/
189             q
190           }
191           /^X\/\(\/\/\)$/{
192             s//\1/
193             q
194           }
195           /^X\/\(\/\).*/{
196             s//\1/
197             q
198           }
199           s/.*/./; q'`
200
201 # CDPATH.
202 $as_unset CDPATH
203
204
205 if test "x$CONFIG_SHELL" = x; then
206   if (eval ":") 2>/dev/null; then
207   as_have_required=yes
208 else
209   as_have_required=no
210 fi
211
212   if test $as_have_required = yes &&     (eval ":
213 (as_func_return () {
214   (exit \$1)
215 }
216 as_func_success () {
217   as_func_return 0
218 }
219 as_func_failure () {
220   as_func_return 1
221 }
222 as_func_ret_success () {
223   return 0
224 }
225 as_func_ret_failure () {
226   return 1
227 }
228
229 exitcode=0
230 if as_func_success; then
231   :
232 else
233   exitcode=1
234   echo as_func_success failed.
235 fi
236
237 if as_func_failure; then
238   exitcode=1
239   echo as_func_failure succeeded.
240 fi
241
242 if as_func_ret_success; then
243   :
244 else
245   exitcode=1
246   echo as_func_ret_success failed.
247 fi
248
249 if as_func_ret_failure; then
250   exitcode=1
251   echo as_func_ret_failure succeeded.
252 fi
253
254 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
255   :
256 else
257   exitcode=1
258   echo positional parameters were not saved.
259 fi
260
261 test \$exitcode = 0) || { (exit 1); exit 1; }
262
263 (
264   as_lineno_1=\$LINENO
265   as_lineno_2=\$LINENO
266   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
267   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
268 ") 2> /dev/null; then
269   :
270 else
271   as_candidate_shells=
272     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
273 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
274 do
275   IFS=$as_save_IFS
276   test -z "$as_dir" && as_dir=.
277   case $as_dir in
278          /*)
279            for as_base in sh bash ksh sh5; do
280              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
281            done;;
282        esac
283 done
284 IFS=$as_save_IFS
285
286
287       for as_shell in $as_candidate_shells $SHELL; do
288          # Try only shells that exist, to save several forks.
289          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
290                 { ("$as_shell") 2> /dev/null <<\_ASEOF
291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
292   emulate sh
293   NULLCMD=:
294   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
295   # is contrary to our usage.  Disable this feature.
296   alias -g '${1+"$@"}'='"$@"'
297   setopt NO_GLOB_SUBST
298 else
299   case `(set -o) 2>/dev/null` in
300   *posix*) set -o posix ;;
301 esac
302
303 fi
304
305
306 :
307 _ASEOF
308 }; then
309   CONFIG_SHELL=$as_shell
310                as_have_required=yes
311                if { "$as_shell" 2> /dev/null <<\_ASEOF
312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
313   emulate sh
314   NULLCMD=:
315   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
316   # is contrary to our usage.  Disable this feature.
317   alias -g '${1+"$@"}'='"$@"'
318   setopt NO_GLOB_SUBST
319 else
320   case `(set -o) 2>/dev/null` in
321   *posix*) set -o posix ;;
322 esac
323
324 fi
325
326
327 :
328 (as_func_return () {
329   (exit $1)
330 }
331 as_func_success () {
332   as_func_return 0
333 }
334 as_func_failure () {
335   as_func_return 1
336 }
337 as_func_ret_success () {
338   return 0
339 }
340 as_func_ret_failure () {
341   return 1
342 }
343
344 exitcode=0
345 if as_func_success; then
346   :
347 else
348   exitcode=1
349   echo as_func_success failed.
350 fi
351
352 if as_func_failure; then
353   exitcode=1
354   echo as_func_failure succeeded.
355 fi
356
357 if as_func_ret_success; then
358   :
359 else
360   exitcode=1
361   echo as_func_ret_success failed.
362 fi
363
364 if as_func_ret_failure; then
365   exitcode=1
366   echo as_func_ret_failure succeeded.
367 fi
368
369 if ( set x; as_func_ret_success y && test x = "$1" ); then
370   :
371 else
372   exitcode=1
373   echo positional parameters were not saved.
374 fi
375
376 test $exitcode = 0) || { (exit 1); exit 1; }
377
378 (
379   as_lineno_1=$LINENO
380   as_lineno_2=$LINENO
381   test "x$as_lineno_1" != "x$as_lineno_2" &&
382   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
383
384 _ASEOF
385 }; then
386   break
387 fi
388
389 fi
390
391       done
392
393       if test "x$CONFIG_SHELL" != x; then
394   for as_var in BASH_ENV ENV
395         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
396         done
397         export CONFIG_SHELL
398         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
399 fi
400
401
402     if test $as_have_required = no; then
403   echo This script requires a shell more modern than all the
404       echo shells that I found on your system.  Please install a
405       echo modern shell, or manually run the script under such a
406       echo shell if you do have one.
407       { (exit 1); exit 1; }
408 fi
409
410
411 fi
412
413 fi
414
415
416
417 (eval "as_func_return () {
418   (exit \$1)
419 }
420 as_func_success () {
421   as_func_return 0
422 }
423 as_func_failure () {
424   as_func_return 1
425 }
426 as_func_ret_success () {
427   return 0
428 }
429 as_func_ret_failure () {
430   return 1
431 }
432
433 exitcode=0
434 if as_func_success; then
435   :
436 else
437   exitcode=1
438   echo as_func_success failed.
439 fi
440
441 if as_func_failure; then
442   exitcode=1
443   echo as_func_failure succeeded.
444 fi
445
446 if as_func_ret_success; then
447   :
448 else
449   exitcode=1
450   echo as_func_ret_success failed.
451 fi
452
453 if as_func_ret_failure; then
454   exitcode=1
455   echo as_func_ret_failure succeeded.
456 fi
457
458 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
459   :
460 else
461   exitcode=1
462   echo positional parameters were not saved.
463 fi
464
465 test \$exitcode = 0") || {
466   echo No shell found that supports shell functions.
467   echo Please tell bug-autoconf@gnu.org about your system,
468   echo including any error possibly output before this message.
469   echo This can help us improve future autoconf versions.
470   echo Configuration will now proceed without shell functions.
471 }
472
473
474
475   as_lineno_1=$LINENO
476   as_lineno_2=$LINENO
477   test "x$as_lineno_1" != "x$as_lineno_2" &&
478   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
479
480   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
481   # uniformly replaced by the line number.  The first 'sed' inserts a
482   # line-number line after each line using $LINENO; the second 'sed'
483   # does the real work.  The second script uses 'N' to pair each
484   # line-number line with the line containing $LINENO, and appends
485   # trailing '-' during substitution so that $LINENO is not a special
486   # case at line end.
487   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
488   # scripts with optimization help from Paolo Bonzini.  Blame Lee
489   # E. McMahon (1931-1989) for sed's syntax.  :-)
490   sed -n '
491     p
492     /[$]LINENO/=
493   ' <$as_myself |
494     sed '
495       s/[$]LINENO.*/&-/
496       t lineno
497       b
498       :lineno
499       N
500       :loop
501       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502       t loop
503       s/-\n.*//
504     ' >$as_me.lineno &&
505   chmod +x "$as_me.lineno" ||
506     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
507    { (exit 1); exit 1; }; }
508
509   # Don't try to exec as it changes $[0], causing all sort of problems
510   # (the dirname of $[0] is not the place where we might find the
511   # original and so on.  Autoconf is especially sensitive to this).
512   . "./$as_me.lineno"
513   # Exit status is that of the last command.
514   exit
515 }
516
517
518 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
519   as_dirname=dirname
520 else
521   as_dirname=false
522 fi
523
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in
526 -n*)
527   case `echo 'x\c'` in
528   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
529   *)   ECHO_C='\c';;
530   esac;;
531 *)
532   ECHO_N='-n';;
533 esac
534 if expr a : '\(a\)' >/dev/null 2>&1 &&
535    test "X`expr 00001 : '.*\(...\)'`" = X001; then
536   as_expr=expr
537 else
538   as_expr=false
539 fi
540
541 rm -f conf$$ conf$$.exe conf$$.file
542 if test -d conf$$.dir; then
543   rm -f conf$$.dir/conf$$.file
544 else
545   rm -f conf$$.dir
546   mkdir conf$$.dir 2>/dev/null
547 fi
548 if (echo >conf$$.file) 2>/dev/null; then
549   if ln -s conf$$.file conf$$ 2>/dev/null; then
550     as_ln_s='ln -s'
551     # ... but there are two gotchas:
552     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
553     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
554     # In both cases, we have to default to `cp -p'.
555     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
556       as_ln_s='cp -p'
557   elif ln conf$$.file conf$$ 2>/dev/null; then
558     as_ln_s=ln
559   else
560     as_ln_s='cp -p'
561   fi
562 else
563   as_ln_s='cp -p'
564 fi
565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
566 rmdir conf$$.dir 2>/dev/null
567
568 if mkdir -p . 2>/dev/null; then
569   as_mkdir_p=:
570 else
571   test -d ./-p && rmdir ./-p
572   as_mkdir_p=false
573 fi
574
575 if test -x / >/dev/null 2>&1; then
576   as_test_x='test -x'
577 else
578   if ls -dL / >/dev/null 2>&1; then
579     as_ls_L_option=L
580   else
581     as_ls_L_option=
582   fi
583   as_test_x='
584     eval sh -c '\''
585       if test -d "$1"; then
586         test -d "$1/.";
587       else
588         case $1 in
589         -*)set "./$1";;
590         esac;
591         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
592         ???[sx]*):;;*)false;;esac;fi
593     '\'' sh
594   '
595 fi
596 as_executable_p=$as_test_x
597
598 # Sed expression to map a string onto a valid CPP name.
599 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
600
601 # Sed expression to map a string onto a valid variable name.
602 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
603
604
605
606
607 # Check that we are running under the correct shell.
608 SHELL=${CONFIG_SHELL-/bin/sh}
609
610 case X$ECHO in
611 X*--fallback-echo)
612   # Remove one level of quotation (which was required for Make).
613   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
614   ;;
615 esac
616
617 echo=${ECHO-echo}
618 if test "X$1" = X--no-reexec; then
619   # Discard the --no-reexec flag, and continue.
620   shift
621 elif test "X$1" = X--fallback-echo; then
622   # Avoid inline document here, it may be left over
623   :
624 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
625   # Yippee, $echo works!
626   :
627 else
628   # Restart under the correct shell.
629   exec $SHELL "$0" --no-reexec ${1+"$@"}
630 fi
631
632 if test "X$1" = X--fallback-echo; then
633   # used as fallback echo
634   shift
635   cat <<EOF
636 $*
637 EOF
638   exit 0
639 fi
640
641 # The HP-UX ksh and POSIX shell print the target directory to stdout
642 # if CDPATH is set.
643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
644
645 if test -z "$ECHO"; then
646 if test "X${echo_test_string+set}" != Xset; then
647 # find a string as large as possible, as long as the shell can cope with it
648   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
649     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
650     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
651        echo_test_string=`eval $cmd` &&
652        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
653     then
654       break
655     fi
656   done
657 fi
658
659 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
660    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
661    test "X$echo_testing_string" = "X$echo_test_string"; then
662   :
663 else
664   # The Solaris, AIX, and Digital Unix default echo programs unquote
665   # backslashes.  This makes it impossible to quote backslashes using
666   #   echo "$something" | sed 's/\\/\\\\/g'
667   #
668   # So, first we look for a working echo in the user's PATH.
669
670   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
671   for dir in $PATH /usr/ucb; do
672     IFS="$lt_save_ifs"
673     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
674        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
675        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
676        test "X$echo_testing_string" = "X$echo_test_string"; then
677       echo="$dir/echo"
678       break
679     fi
680   done
681   IFS="$lt_save_ifs"
682
683   if test "X$echo" = Xecho; then
684     # We didn't find a better echo, so look for alternatives.
685     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
686        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
687        test "X$echo_testing_string" = "X$echo_test_string"; then
688       # This shell has a builtin print -r that does the trick.
689       echo='print -r'
690     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
691          test "X$CONFIG_SHELL" != X/bin/ksh; then
692       # If we have ksh, try running configure again with it.
693       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
694       export ORIGINAL_CONFIG_SHELL
695       CONFIG_SHELL=/bin/ksh
696       export CONFIG_SHELL
697       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
698     else
699       # Try using printf.
700       echo='printf %s\n'
701       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
702          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
703          test "X$echo_testing_string" = "X$echo_test_string"; then
704         # Cool, printf works
705         :
706       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
707            test "X$echo_testing_string" = 'X\t' &&
708            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
709            test "X$echo_testing_string" = "X$echo_test_string"; then
710         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
711         export CONFIG_SHELL
712         SHELL="$CONFIG_SHELL"
713         export SHELL
714         echo="$CONFIG_SHELL $0 --fallback-echo"
715       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
716            test "X$echo_testing_string" = 'X\t' &&
717            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
718            test "X$echo_testing_string" = "X$echo_test_string"; then
719         echo="$CONFIG_SHELL $0 --fallback-echo"
720       else
721         # maybe with a smaller string...
722         prev=:
723
724         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
725           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
726           then
727             break
728           fi
729           prev="$cmd"
730         done
731
732         if test "$prev" != 'sed 50q "$0"'; then
733           echo_test_string=`eval $prev`
734           export echo_test_string
735           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
736         else
737           # Oops.  We lost completely, so just stick with echo.
738           echo=echo
739         fi
740       fi
741     fi
742   fi
743 fi
744 fi
745
746 # Copy echo and quote the copy suitably for passing to libtool from
747 # the Makefile, instead of quoting the original, which is used later.
748 ECHO=$echo
749 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
750    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
751 fi
752
753
754
755
756 tagnames=${tagnames+${tagnames},}CXX
757
758 tagnames=${tagnames+${tagnames},}F77
759
760 exec 7<&0 </dev/null 6>&1
761
762 # Name of the host.
763 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
764 # so uname gets run too.
765 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
766
767 #
768 # Initializations.
769 #
770 ac_default_prefix=/usr/local
771 ac_clean_files=
772 ac_config_libobj_dir=.
773 LIBOBJS=
774 cross_compiling=no
775 subdirs=
776 MFLAGS=
777 MAKEFLAGS=
778 SHELL=${CONFIG_SHELL-/bin/sh}
779
780 # Identity of this package.
781 PACKAGE_NAME='libantlr3c'
782 PACKAGE_TARNAME='libantlr3c'
783 PACKAGE_VERSION='3.2'
784 PACKAGE_STRING='libantlr3c 3.2'
785 PACKAGE_BUGREPORT='jimi@temporal-wave.com'
786
787 ac_unique_file="src/antlr3parser.c"
788 # Factoring default headers for most tests.
789 ac_includes_default="\
790 #include <stdio.h>
791 #ifdef HAVE_SYS_TYPES_H
792 # include <sys/types.h>
793 #endif
794 #ifdef HAVE_SYS_STAT_H
795 # include <sys/stat.h>
796 #endif
797 #ifdef STDC_HEADERS
798 # include <stdlib.h>
799 # include <stddef.h>
800 #else
801 # ifdef HAVE_STDLIB_H
802 #  include <stdlib.h>
803 # endif
804 #endif
805 #ifdef HAVE_STRING_H
806 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
807 #  include <memory.h>
808 # endif
809 # include <string.h>
810 #endif
811 #ifdef HAVE_STRINGS_H
812 # include <strings.h>
813 #endif
814 #ifdef HAVE_INTTYPES_H
815 # include <inttypes.h>
816 #endif
817 #ifdef HAVE_STDINT_H
818 # include <stdint.h>
819 #endif
820 #ifdef HAVE_UNISTD_H
821 # include <unistd.h>
822 #endif"
823
824 ac_subst_vars='LTLIBOBJS
825 LIBOBJS
826 OBJECT_MODE
827 LIBTOOL
828 ac_ct_F77
829 FFLAGS
830 F77
831 CXXCPP
832 am__fastdepCXX_FALSE
833 am__fastdepCXX_TRUE
834 CXXDEPMODE
835 ac_ct_CXX
836 CXXFLAGS
837 CXX
838 CPP
839 RANLIB
840 AR
841 ECHO
842 LN_S
843 EGREP
844 GREP
845 SED
846 host_os
847 host_vendor
848 host_cpu
849 host
850 build_os
851 build_vendor
852 build_cpu
853 build
854 MAINT
855 MAINTAINER_MODE_FALSE
856 MAINTAINER_MODE_TRUE
857 am__fastdepCC_FALSE
858 am__fastdepCC_TRUE
859 CCDEPMODE
860 AMDEPBACKSLASH
861 AMDEP_FALSE
862 AMDEP_TRUE
863 am__quote
864 am__include
865 DEPDIR
866 OBJEXT
867 EXEEXT
868 ac_ct_CC
869 CPPFLAGS
870 LDFLAGS
871 CFLAGS
872 CC
873 am__untar
874 am__tar
875 AMTAR
876 am__leading_dot
877 SET_MAKE
878 AWK
879 mkdir_p
880 INSTALL_STRIP_PROGRAM
881 STRIP
882 install_sh
883 MAKEINFO
884 AUTOHEADER
885 AUTOMAKE
886 AUTOCONF
887 ACLOCAL
888 VERSION
889 PACKAGE
890 CYGPATH_W
891 INSTALL_DATA
892 INSTALL_SCRIPT
893 INSTALL_PROGRAM
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_BUGREPORT
925 PACKAGE_STRING
926 PACKAGE_VERSION
927 PACKAGE_TARNAME
928 PACKAGE_NAME
929 PATH_SEPARATOR
930 SHELL'
931 ac_subst_files=''
932 ac_user_opts='
933 enable_option_checking
934 enable_debuginfo
935 enable_64bit
936 enable_abiflags
937 enable_antlrdebug
938 enable_dependency_tracking
939 enable_maintainer_mode
940 enable_shared
941 enable_static
942 enable_fast_install
943 with_gnu_ld
944 enable_libtool_lock
945 with_pic
946 with_tags
947 '
948       ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
956 CPP
957 CXX
958 CXXFLAGS
959 CCC
960 CXXCPP
961 F77
962 FFLAGS'
963
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017   # If the previous option needs an argument, assign it.
1018   if test -n "$ac_prev"; then
1019     eval $ac_prev=\$ac_option
1020     ac_prev=
1021     continue
1022   fi
1023
1024   case $ac_option in
1025   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026   *)    ac_optarg=yes ;;
1027   esac
1028
1029   # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031   case $ac_dashdash$ac_option in
1032   --)
1033     ac_dashdash=yes ;;
1034
1035   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036     ac_prev=bindir ;;
1037   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038     bindir=$ac_optarg ;;
1039
1040   -build | --build | --buil | --bui | --bu)
1041     ac_prev=build_alias ;;
1042   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043     build_alias=$ac_optarg ;;
1044
1045   -cache-file | --cache-file | --cache-fil | --cache-fi \
1046   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047     ac_prev=cache_file ;;
1048   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050     cache_file=$ac_optarg ;;
1051
1052   --config-cache | -C)
1053     cache_file=config.cache ;;
1054
1055   -datadir | --datadir | --datadi | --datad)
1056     ac_prev=datadir ;;
1057   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058     datadir=$ac_optarg ;;
1059
1060   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061   | --dataroo | --dataro | --datar)
1062     ac_prev=datarootdir ;;
1063   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065     datarootdir=$ac_optarg ;;
1066
1067   -disable-* | --disable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval enable_$ac_useropt=no ;;
1083
1084   -docdir | --docdir | --docdi | --doc | --do)
1085     ac_prev=docdir ;;
1086   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087     docdir=$ac_optarg ;;
1088
1089   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090     ac_prev=dvidir ;;
1091   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092     dvidir=$ac_optarg ;;
1093
1094   -enable-* | --enable-*)
1095     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099    { (exit 1); exit 1; }; }
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113   | --exec | --exe | --ex)
1114     ac_prev=exec_prefix ;;
1115   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117   | --exec=* | --exe=* | --ex=*)
1118     exec_prefix=$ac_optarg ;;
1119
1120   -gas | --gas | --ga | --g)
1121     # Obsolete; use --with-gas.
1122     with_gas=yes ;;
1123
1124   -help | --help | --hel | --he | -h)
1125     ac_init_help=long ;;
1126   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127     ac_init_help=recursive ;;
1128   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129     ac_init_help=short ;;
1130
1131   -host | --host | --hos | --ho)
1132     ac_prev=host_alias ;;
1133   -host=* | --host=* | --hos=* | --ho=*)
1134     host_alias=$ac_optarg ;;
1135
1136   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137     ac_prev=htmldir ;;
1138   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139   | --ht=*)
1140     htmldir=$ac_optarg ;;
1141
1142   -includedir | --includedir | --includedi | --included | --include \
1143   | --includ | --inclu | --incl | --inc)
1144     ac_prev=includedir ;;
1145   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146   | --includ=* | --inclu=* | --incl=* | --inc=*)
1147     includedir=$ac_optarg ;;
1148
1149   -infodir | --infodir | --infodi | --infod | --info | --inf)
1150     ac_prev=infodir ;;
1151   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152     infodir=$ac_optarg ;;
1153
1154   -libdir | --libdir | --libdi | --libd)
1155     ac_prev=libdir ;;
1156   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157     libdir=$ac_optarg ;;
1158
1159   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160   | --libexe | --libex | --libe)
1161     ac_prev=libexecdir ;;
1162   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163   | --libexe=* | --libex=* | --libe=*)
1164     libexecdir=$ac_optarg ;;
1165
1166   -localedir | --localedir | --localedi | --localed | --locale)
1167     ac_prev=localedir ;;
1168   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169     localedir=$ac_optarg ;;
1170
1171   -localstatedir | --localstatedir | --localstatedi | --localstated \
1172   | --localstate | --localstat | --localsta | --localst | --locals)
1173     ac_prev=localstatedir ;;
1174   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176     localstatedir=$ac_optarg ;;
1177
1178   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179     ac_prev=mandir ;;
1180   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181     mandir=$ac_optarg ;;
1182
1183   -nfp | --nfp | --nf)
1184     # Obsolete; use --without-fp.
1185     with_fp=no ;;
1186
1187   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188   | --no-cr | --no-c | -n)
1189     no_create=yes ;;
1190
1191   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193     no_recursion=yes ;;
1194
1195   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197   | --oldin | --oldi | --old | --ol | --o)
1198     ac_prev=oldincludedir ;;
1199   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202     oldincludedir=$ac_optarg ;;
1203
1204   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205     ac_prev=prefix ;;
1206   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207     prefix=$ac_optarg ;;
1208
1209   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210   | --program-pre | --program-pr | --program-p)
1211     ac_prev=program_prefix ;;
1212   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214     program_prefix=$ac_optarg ;;
1215
1216   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217   | --program-suf | --program-su | --program-s)
1218     ac_prev=program_suffix ;;
1219   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221     program_suffix=$ac_optarg ;;
1222
1223   -program-transform-name | --program-transform-name \
1224   | --program-transform-nam | --program-transform-na \
1225   | --program-transform-n | --program-transform- \
1226   | --program-transform | --program-transfor \
1227   | --program-transfo | --program-transf \
1228   | --program-trans | --program-tran \
1229   | --progr-tra | --program-tr | --program-t)
1230     ac_prev=program_transform_name ;;
1231   -program-transform-name=* | --program-transform-name=* \
1232   | --program-transform-nam=* | --program-transform-na=* \
1233   | --program-transform-n=* | --program-transform-=* \
1234   | --program-transform=* | --program-transfor=* \
1235   | --program-transfo=* | --program-transf=* \
1236   | --program-trans=* | --program-tran=* \
1237   | --progr-tra=* | --program-tr=* | --program-t=*)
1238     program_transform_name=$ac_optarg ;;
1239
1240   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241     ac_prev=pdfdir ;;
1242   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243     pdfdir=$ac_optarg ;;
1244
1245   -psdir | --psdir | --psdi | --psd | --ps)
1246     ac_prev=psdir ;;
1247   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248     psdir=$ac_optarg ;;
1249
1250   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251   | -silent | --silent | --silen | --sile | --sil)
1252     silent=yes ;;
1253
1254   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255     ac_prev=sbindir ;;
1256   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257   | --sbi=* | --sb=*)
1258     sbindir=$ac_optarg ;;
1259
1260   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262   | --sharedst | --shareds | --shared | --share | --shar \
1263   | --sha | --sh)
1264     ac_prev=sharedstatedir ;;
1265   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268   | --sha=* | --sh=*)
1269     sharedstatedir=$ac_optarg ;;
1270
1271   -site | --site | --sit)
1272     ac_prev=site ;;
1273   -site=* | --site=* | --sit=*)
1274     site=$ac_optarg ;;
1275
1276   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277     ac_prev=srcdir ;;
1278   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279     srcdir=$ac_optarg ;;
1280
1281   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282   | --syscon | --sysco | --sysc | --sys | --sy)
1283     ac_prev=sysconfdir ;;
1284   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286     sysconfdir=$ac_optarg ;;
1287
1288   -target | --target | --targe | --targ | --tar | --ta | --t)
1289     ac_prev=target_alias ;;
1290   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291     target_alias=$ac_optarg ;;
1292
1293   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294     verbose=yes ;;
1295
1296   -version | --version | --versio | --versi | --vers | -V)
1297     ac_init_version=: ;;
1298
1299   -with-* | --with-*)
1300     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304    { (exit 1); exit 1; }; }
1305     ac_useropt_orig=$ac_useropt
1306     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307     case $ac_user_opts in
1308       *"
1309 "with_$ac_useropt"
1310 "*) ;;
1311       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312          ac_unrecognized_sep=', ';;
1313     esac
1314     eval with_$ac_useropt=\$ac_optarg ;;
1315
1316   -without-* | --without-*)
1317     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318     # Reject names that are not valid shell variable names.
1319     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321    { (exit 1); exit 1; }; }
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "with_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval with_$ac_useropt=no ;;
1332
1333   --x)
1334     # Obsolete; use --with-x.
1335     with_x=yes ;;
1336
1337   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338   | --x-incl | --x-inc | --x-in | --x-i)
1339     ac_prev=x_includes ;;
1340   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342     x_includes=$ac_optarg ;;
1343
1344   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346     ac_prev=x_libraries ;;
1347   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349     x_libraries=$ac_optarg ;;
1350
1351   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352 Try \`$0 --help' for more information." >&2
1353    { (exit 1); exit 1; }; }
1354     ;;
1355
1356   *=*)
1357     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361    { (exit 1); exit 1; }; }
1362     eval $ac_envvar=\$ac_optarg
1363     export $ac_envvar ;;
1364
1365   *)
1366     # FIXME: should be removed in autoconf 3.0.
1367     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371     ;;
1372
1373   esac
1374 done
1375
1376 if test -n "$ac_prev"; then
1377   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379    { (exit 1); exit 1; }; }
1380 fi
1381
1382 if test -n "$ac_unrecognized_opts"; then
1383   case $enable_option_checking in
1384     no) ;;
1385     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386    { (exit 1); exit 1; }; } ;;
1387     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388   esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393                 datadir sysconfdir sharedstatedir localstatedir includedir \
1394                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395                 libdir localedir mandir
1396 do
1397   eval ac_val=\$$ac_var
1398   # Remove trailing slashes.
1399   case $ac_val in
1400     */ )
1401       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402       eval $ac_var=\$ac_val;;
1403   esac
1404   # Be sure to have absolute directory names.
1405   case $ac_val in
1406     [\\/$]* | ?:[\\/]* )  continue;;
1407     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408   esac
1409   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410    { (exit 1); exit 1; }; }
1411 done
1412
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1416 build=$build_alias
1417 host=$host_alias
1418 target=$target_alias
1419
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x; then
1422   if test "x$build_alias" = x; then
1423     cross_compiling=maybe
1424     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425     If a cross compiler is detected then cross compile mode will be used." >&2
1426   elif test "x$build_alias" != "x$host_alias"; then
1427     cross_compiling=yes
1428   fi
1429 fi
1430
1431 ac_tool_prefix=
1432 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433
1434 test "$silent" = yes && exec 6>/dev/null
1435
1436
1437 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438 ac_ls_di=`ls -di .` &&
1439 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1441    { (exit 1); exit 1; }; }
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444    { (exit 1); exit 1; }; }
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449   ac_srcdir_defaulted=yes
1450   # Try the directory containing this script, then the parent directory.
1451   ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453          X"$as_myself" : 'X\(//\)[^/]' \| \
1454          X"$as_myself" : 'X\(//\)$' \| \
1455          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458             s//\1/
1459             q
1460           }
1461           /^X\(\/\/\)[^/].*/{
1462             s//\1/
1463             q
1464           }
1465           /^X\(\/\/\)$/{
1466             s//\1/
1467             q
1468           }
1469           /^X\(\/\).*/{
1470             s//\1/
1471             q
1472           }
1473           s/.*/./; q'`
1474   srcdir=$ac_confdir
1475   if test ! -r "$srcdir/$ac_unique_file"; then
1476     srcdir=..
1477   fi
1478 else
1479   ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484    { (exit 1); exit 1; }; }
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489    { (exit 1); exit 1; }; }
1490         pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493   srcdir=.
1494 fi
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503   eval ac_env_${ac_var}_value=\$${ac_var}
1504   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1507
1508 #
1509 # Report the --help message.
1510 #
1511 if test "$ac_init_help" = "long"; then
1512   # Omit some internal or obsolete options to make the list less imposing.
1513   # This message is too long to be a string in the A/UX 3.1 sh.
1514   cat <<_ACEOF
1515 \`configure' configures libantlr3c 3.2 to adapt to many kinds of systems.
1516
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE.  See below for descriptions of some of the useful variables.
1521
1522 Defaults for the options are specified in brackets.
1523
1524 Configuration:
1525   -h, --help              display this help and exit
1526       --help=short        display options specific to this package
1527       --help=recursive    display the short help of all the included packages
1528   -V, --version           display version information and exit
1529   -q, --quiet, --silent   do not print \`checking...' messages
1530       --cache-file=FILE   cache test results in FILE [disabled]
1531   -C, --config-cache      alias for \`--cache-file=config.cache'
1532   -n, --no-create         do not create output files
1533       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1534
1535 Installation directories:
1536   --prefix=PREFIX         install architecture-independent files in PREFIX
1537                           [$ac_default_prefix]
1538   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1539                           [PREFIX]
1540
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1545
1546 For better control, use the options below.
1547
1548 Fine tuning of the installation directories:
1549   --bindir=DIR            user executables [EPREFIX/bin]
1550   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1551   --libexecdir=DIR        program executables [EPREFIX/libexec]
1552   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1553   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1554   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1555   --libdir=DIR            object code libraries [EPREFIX/lib]
1556   --includedir=DIR        C header files [PREFIX/include]
1557   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1558   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1559   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1560   --infodir=DIR           info documentation [DATAROOTDIR/info]
1561   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1562   --mandir=DIR            man documentation [DATAROOTDIR/man]
1563   --docdir=DIR            documentation root [DATAROOTDIR/doc/libantlr3c]
1564   --htmldir=DIR           html documentation [DOCDIR]
1565   --dvidir=DIR            dvi documentation [DOCDIR]
1566   --pdfdir=DIR            pdf documentation [DOCDIR]
1567   --psdir=DIR             ps documentation [DOCDIR]
1568 _ACEOF
1569
1570   cat <<\_ACEOF
1571
1572 Program names:
1573   --program-prefix=PREFIX            prepend PREFIX to installed program names
1574   --program-suffix=SUFFIX            append SUFFIX to installed program names
1575   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1576
1577 System types:
1578   --build=BUILD     configure for building on BUILD [guessed]
1579   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1580 _ACEOF
1581 fi
1582
1583 if test -n "$ac_init_help"; then
1584   case $ac_init_help in
1585      short | recursive ) echo "Configuration of libantlr3c 3.2:";;
1586    esac
1587   cat <<\_ACEOF
1588
1589 Optional Features:
1590   --disable-option-checking  ignore unrecognized --enable/--with options
1591   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1592   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1593   --enable-debuginfo      Compiles debug info into the library (default
1594                           --disable-debuginfo)
1595   --enable-64bit          Turns on flags that produce 64 bit object code if
1596                           any are required (default --disable-64bit)
1597   --disable-abiflags      Does not add ABI flags -m32 or -m64 for older
1598                           versions of gcc, such as itanium 3.x (default
1599                           --enable-abiflags=yes)
1600   --disable-antlrdebug    Turns off default flags that include the antlr
1601                           debugger in the runtime. Specify to remove debugger
1602                           and the socket dependancies (default
1603                           --enable-antlrdebug)
1604   --disable-dependency-tracking  speeds up one-time build
1605   --enable-dependency-tracking   do not reject slow dependency extractors
1606   --enable-maintainer-mode  enable make rules and dependencies not useful
1607                           (and sometimes confusing) to the casual installer
1608   --enable-shared[=PKGS]  build shared libraries [default=yes]
1609   --enable-static[=PKGS]  build static libraries [default=yes]
1610   --enable-fast-install[=PKGS]
1611                           optimize for fast installation [default=yes]
1612   --disable-libtool-lock  avoid locking (might break parallel builds)
1613
1614 Optional Packages:
1615   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1616   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1617   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618   --with-pic              try to use only PIC/non-PIC objects [default=use
1619                           both]
1620   --with-tags[=TAGS]      include additional configurations [automatic]
1621
1622 Some influential environment variables:
1623   CC          C compiler command
1624   CFLAGS      C compiler flags
1625   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1626               nonstandard directory <lib dir>
1627   LIBS        libraries to pass to the linker, e.g. -l<library>
1628   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629               you have headers in a nonstandard directory <include dir>
1630   CPP         C preprocessor
1631   CXX         C++ compiler command
1632   CXXFLAGS    C++ compiler flags
1633   CXXCPP      C++ preprocessor
1634   F77         Fortran 77 compiler command
1635   FFLAGS      Fortran 77 compiler flags
1636
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1639
1640 Report bugs to <jimi@temporal-wave.com>.
1641 _ACEOF
1642 ac_status=$?
1643 fi
1644
1645 if test "$ac_init_help" = "recursive"; then
1646   # If there are subdirs, report their specific --help.
1647   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648     test -d "$ac_dir" ||
1649       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650       continue
1651     ac_builddir=.
1652
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *)
1656   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657   # A ".." for each directory in $ac_dir_suffix.
1658   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659   case $ac_top_builddir_sub in
1660   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662   esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1668
1669 case $srcdir in
1670   .)  # We are building in place.
1671     ac_srcdir=.
1672     ac_top_srcdir=$ac_top_builddir_sub
1673     ac_abs_top_srcdir=$ac_pwd ;;
1674   [\\/]* | ?:[\\/]* )  # Absolute name.
1675     ac_srcdir=$srcdir$ac_dir_suffix;
1676     ac_top_srcdir=$srcdir
1677     ac_abs_top_srcdir=$srcdir ;;
1678   *) # Relative name.
1679     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680     ac_top_srcdir=$ac_top_build_prefix$srcdir
1681     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685     cd "$ac_dir" || { ac_status=$?; continue; }
1686     # Check for guested configure.
1687     if test -f "$ac_srcdir/configure.gnu"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690     elif test -f "$ac_srcdir/configure"; then
1691       echo &&
1692       $SHELL "$ac_srcdir/configure" --help=recursive
1693     else
1694       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695     fi || ac_status=$?
1696     cd "$ac_pwd" || { ac_status=$?; break; }
1697   done
1698 fi
1699
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702   cat <<\_ACEOF
1703 libantlr3c configure 3.2
1704 generated by GNU Autoconf 2.63
1705
1706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1710
1711
1712  (The "BSD licence")
1713  Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
1714  http://www.temporal-wave.com
1715  http://www.linkedin.com/in/jimidle
1716  All rights reserved.
1717
1718  Redistribution and use in source and binary forms, with or without
1719  modification, are permitted provided that the following conditions
1720  are met:
1721  1. Redistributions of source code must retain the above copyright
1722     notice, this list of conditions and the following disclaimer.
1723  2. Redistributions in binary form must reproduce the above copyright
1724     notice, this list of conditions and the following disclaimer in the
1725     documentation and/or other materials provided with the distribution.
1726  3. The name of the author may not be used to endorse or promote products
1727     derived from this software without specific prior written permission.
1728
1729  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1730  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1731  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1732  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1733  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1734  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1735  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1736  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1737  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1738  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1739
1740 _ACEOF
1741   exit
1742 fi
1743 cat >config.log <<_ACEOF
1744 This file contains any messages produced by compilers while
1745 running configure, to aid debugging if configure makes a mistake.
1746
1747 It was created by libantlr3c $as_me 3.2, which was
1748 generated by GNU Autoconf 2.63.  Invocation command line was
1749
1750   $ $0 $@
1751
1752 _ACEOF
1753 exec 5>>config.log
1754 {
1755 cat <<_ASUNAME
1756 ## --------- ##
1757 ## Platform. ##
1758 ## --------- ##
1759
1760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1765
1766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1768
1769 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1770 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1773 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1774 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1775 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1776
1777 _ASUNAME
1778
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1781 do
1782   IFS=$as_save_IFS
1783   test -z "$as_dir" && as_dir=.
1784   $as_echo "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1787
1788 } >&5
1789
1790 cat >&5 <<_ACEOF
1791
1792
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1796
1797 _ACEOF
1798
1799
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1810 do
1811   for ac_arg
1812   do
1813     case $ac_arg in
1814     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816     | -silent | --silent | --silen | --sile | --sil)
1817       continue ;;
1818     *\'*)
1819       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820     esac
1821     case $ac_pass in
1822     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1823     2)
1824       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1825       if test $ac_must_keep_next = true; then
1826         ac_must_keep_next=false # Got value, back to normal.
1827       else
1828         case $ac_arg in
1829           *=* | --config-cache | -C | -disable-* | --disable-* \
1830           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832           | -with-* | --with-* | -without-* | --without-* | --x)
1833             case "$ac_configure_args0 " in
1834               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835             esac
1836             ;;
1837           -* ) ac_must_keep_next=true ;;
1838         esac
1839       fi
1840       ac_configure_args="$ac_configure_args '$ac_arg'"
1841       ;;
1842     esac
1843   done
1844 done
1845 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1846 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1847
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log.  We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854   # Save into config.log some information that might help in debugging.
1855   {
1856     echo
1857
1858     cat <<\_ASBOX
1859 ## ---------------- ##
1860 ## Cache variables. ##
1861 ## ---------------- ##
1862 _ASBOX
1863     echo
1864     # The following way of writing the cache mishandles newlines in values,
1865 (
1866   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867     eval ac_val=\$$ac_var
1868     case $ac_val in #(
1869     *${as_nl}*)
1870       case $ac_var in #(
1871       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873       esac
1874       case $ac_var in #(
1875       _ | IFS | as_nl) ;; #(
1876       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877       *) $as_unset $ac_var ;;
1878       esac ;;
1879     esac
1880   done
1881   (set) 2>&1 |
1882     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883     *${as_nl}ac_space=\ *)
1884       sed -n \
1885         "s/'\''/'\''\\\\'\'''\''/g;
1886           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887       ;; #(
1888     *)
1889       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890       ;;
1891     esac |
1892     sort
1893 )
1894     echo
1895
1896     cat <<\_ASBOX
1897 ## ----------------- ##
1898 ## Output variables. ##
1899 ## ----------------- ##
1900 _ASBOX
1901     echo
1902     for ac_var in $ac_subst_vars
1903     do
1904       eval ac_val=\$$ac_var
1905       case $ac_val in
1906       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907       esac
1908       $as_echo "$ac_var='\''$ac_val'\''"
1909     done | sort
1910     echo
1911
1912     if test -n "$ac_subst_files"; then
1913       cat <<\_ASBOX
1914 ## ------------------- ##
1915 ## File substitutions. ##
1916 ## ------------------- ##
1917 _ASBOX
1918       echo
1919       for ac_var in $ac_subst_files
1920       do
1921         eval ac_val=\$$ac_var
1922         case $ac_val in
1923         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924         esac
1925         $as_echo "$ac_var='\''$ac_val'\''"
1926       done | sort
1927       echo
1928     fi
1929
1930     if test -s confdefs.h; then
1931       cat <<\_ASBOX
1932 ## ----------- ##
1933 ## confdefs.h. ##
1934 ## ----------- ##
1935 _ASBOX
1936       echo
1937       cat confdefs.h
1938       echo
1939     fi
1940     test "$ac_signal" != 0 &&
1941       $as_echo "$as_me: caught signal $ac_signal"
1942     $as_echo "$as_me: exit $exit_status"
1943   } >&5
1944   rm -f core *.core core.conftest.* &&
1945     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946     exit $exit_status
1947 ' 0
1948 for ac_signal in 1 2 13 15; do
1949   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1950 done
1951 ac_signal=0
1952
1953 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1954 rm -f -r conftest* confdefs.h
1955
1956 # Predefined preprocessor variables.
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_NAME "$PACKAGE_NAME"
1960 _ACEOF
1961
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1970 _ACEOF
1971
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_STRING "$PACKAGE_STRING"
1975 _ACEOF
1976
1977
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980 _ACEOF
1981
1982
1983 # Let the site file select an alternate cache file if it wants to.
1984 # Prefer an explicitly selected file to automatically selected ones.
1985 ac_site_file1=NONE
1986 ac_site_file2=NONE
1987 if test -n "$CONFIG_SITE"; then
1988   ac_site_file1=$CONFIG_SITE
1989 elif test "x$prefix" != xNONE; then
1990   ac_site_file1=$prefix/share/config.site
1991   ac_site_file2=$prefix/etc/config.site
1992 else
1993   ac_site_file1=$ac_default_prefix/share/config.site
1994   ac_site_file2=$ac_default_prefix/etc/config.site
1995 fi
1996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1997 do
1998   test "x$ac_site_file" = xNONE && continue
1999   if test -r "$ac_site_file"; then
2000     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002     sed 's/^/| /' "$ac_site_file" >&5
2003     . "$ac_site_file"
2004   fi
2005 done
2006
2007 if test -r "$cache_file"; then
2008   # Some versions of bash will fail to source /dev/null (special
2009   # files actually), so we avoid doing that.
2010   if test -f "$cache_file"; then
2011     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2012 $as_echo "$as_me: loading cache $cache_file" >&6;}
2013     case $cache_file in
2014       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015       *)                      . "./$cache_file";;
2016     esac
2017   fi
2018 else
2019   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2020 $as_echo "$as_me: creating cache $cache_file" >&6;}
2021   >$cache_file
2022 fi
2023
2024 # Check that the precious variables saved in the cache have kept the same
2025 # value.
2026 ac_cache_corrupted=false
2027 for ac_var in $ac_precious_vars; do
2028   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029   eval ac_new_set=\$ac_env_${ac_var}_set
2030   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031   eval ac_new_val=\$ac_env_${ac_var}_value
2032   case $ac_old_set,$ac_new_set in
2033     set,)
2034       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036       ac_cache_corrupted=: ;;
2037     ,set)
2038       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040       ac_cache_corrupted=: ;;
2041     ,);;
2042     *)
2043       if test "x$ac_old_val" != "x$ac_new_val"; then
2044         # differences in whitespace do not lead to failure.
2045         ac_old_val_w=`echo x $ac_old_val`
2046         ac_new_val_w=`echo x $ac_new_val`
2047         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050           ac_cache_corrupted=:
2051         else
2052           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054           eval $ac_var=\$ac_old_val
2055         fi
2056         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2057 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2058         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2059 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2060       fi;;
2061   esac
2062   # Pass precious variables to config.status.
2063   if test "$ac_new_set" = set; then
2064     case $ac_new_val in
2065     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066     *) ac_arg=$ac_var=$ac_new_val ;;
2067     esac
2068     case " $ac_configure_args " in
2069       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2070       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2071     esac
2072   fi
2073 done
2074 if $ac_cache_corrupted; then
2075   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2080 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2081    { (exit 1); exit 1; }; }
2082 fi
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
2114
2115
2116
2117
2118
2119
2120 # Check whether --enable-debuginfo was given.
2121 if test "${enable_debuginfo+set}" = set; then
2122   enableval=$enable_debuginfo;
2123 else
2124   enable_debuginfo=no
2125 fi
2126
2127
2128 # Check whether --enable-64bit was given.
2129 if test "${enable_64bit+set}" = set; then
2130   enableval=$enable_64bit;
2131 else
2132   enable_64bit=no
2133 fi
2134
2135
2136 # Check whether --enable-abiflags was given.
2137 if test "${enable_abiflags+set}" = set; then
2138   enableval=$enable_abiflags;
2139 else
2140   enable_abiflags=yes
2141 fi
2142
2143
2144 # Check whether --enable-antlrdebug was given.
2145 if test "${enable_antlrdebug+set}" = set; then
2146   enableval=$enable_antlrdebug;
2147 else
2148   enable_antlrdebug=yes
2149 fi
2150
2151
2152 am__api_version="1.9"
2153 ac_aux_dir=
2154 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2155   if test -f "$ac_dir/install-sh"; then
2156     ac_aux_dir=$ac_dir
2157     ac_install_sh="$ac_aux_dir/install-sh -c"
2158     break
2159   elif test -f "$ac_dir/install.sh"; then
2160     ac_aux_dir=$ac_dir
2161     ac_install_sh="$ac_aux_dir/install.sh -c"
2162     break
2163   elif test -f "$ac_dir/shtool"; then
2164     ac_aux_dir=$ac_dir
2165     ac_install_sh="$ac_aux_dir/shtool install -c"
2166     break
2167   fi
2168 done
2169 if test -z "$ac_aux_dir"; then
2170   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2171 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2182
2183
2184 # Find a good install program.  We prefer a C program (faster),
2185 # so one script is as good as another.  But avoid the broken or
2186 # incompatible versions:
2187 # SysV /etc/install, /usr/sbin/install
2188 # SunOS /usr/etc/install
2189 # IRIX /sbin/install
2190 # AIX /bin/install
2191 # AmigaOS /C/install, which installs bootblocks on floppy discs
2192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2195 # OS/2's system install, which has a completely different semantic
2196 # ./install, which can be erroneously created by make from ./install.sh.
2197 # Reject install programs that cannot install multiple files.
2198 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2199 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2200 if test -z "$INSTALL"; then
2201 if test "${ac_cv_path_install+set}" = set; then
2202   $as_echo_n "(cached) " >&6
2203 else
2204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   # Account for people who put trailing slashes in PATH elements.
2210 case $as_dir/ in
2211   ./ | .// | /cC/* | \
2212   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2214   /usr/ucb/* ) ;;
2215   *)
2216     # OSF1 and SCO ODT 3.0 have their own names for install.
2217     # Don't use installbsd from OSF since it installs stuff as root
2218     # by default.
2219     for ac_prog in ginstall scoinst install; do
2220       for ac_exec_ext in '' $ac_executable_extensions; do
2221         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2222           if test $ac_prog = install &&
2223             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224             # AIX install.  It has an incompatible calling convention.
2225             :
2226           elif test $ac_prog = install &&
2227             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228             # program-specific install script used by HP pwplus--don't use.
2229             :
2230           else
2231             rm -rf conftest.one conftest.two conftest.dir
2232             echo one > conftest.one
2233             echo two > conftest.two
2234             mkdir conftest.dir
2235             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2236               test -s conftest.one && test -s conftest.two &&
2237               test -s conftest.dir/conftest.one &&
2238               test -s conftest.dir/conftest.two
2239             then
2240               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2241               break 3
2242             fi
2243           fi
2244         fi
2245       done
2246     done
2247     ;;
2248 esac
2249
2250 done
2251 IFS=$as_save_IFS
2252
2253 rm -rf conftest.one conftest.two conftest.dir
2254
2255 fi
2256   if test "${ac_cv_path_install+set}" = set; then
2257     INSTALL=$ac_cv_path_install
2258   else
2259     # As a last resort, use the slow shell script.  Don't cache a
2260     # value for INSTALL within a source directory, because that will
2261     # break other packages using the cache if that directory is
2262     # removed, or if the value is a relative name.
2263     INSTALL=$ac_install_sh
2264   fi
2265 fi
2266 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2267 $as_echo "$INSTALL" >&6; }
2268
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2272
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2274
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2276
2277 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2278 $as_echo_n "checking whether build environment is sane... " >&6; }
2279 # Just in case
2280 sleep 1
2281 echo timestamp > conftest.file
2282 # Do `set' in a subshell so we don't clobber the current shell's
2283 # arguments.  Must try -L first in case configure is actually a
2284 # symlink; some systems play weird games with the mod time of symlinks
2285 # (eg FreeBSD returns the mod time of the symlink's containing
2286 # directory).
2287 if (
2288    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2289    if test "$*" = "X"; then
2290       # -L didn't work.
2291       set X `ls -t $srcdir/configure conftest.file`
2292    fi
2293    rm -f conftest.file
2294    if test "$*" != "X $srcdir/configure conftest.file" \
2295       && test "$*" != "X conftest.file $srcdir/configure"; then
2296
2297       # If neither matched, then we have a broken ls.  This can happen
2298       # if, for instance, CONFIG_SHELL is bash and it inherits a
2299       # broken ls alias from the environment.  This has actually
2300       # happened.  Such a system could not be considered "sane".
2301       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2302 alias in your environment" >&5
2303 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2304 alias in your environment" >&2;}
2305    { (exit 1); exit 1; }; }
2306    fi
2307
2308    test "$2" = conftest.file
2309    )
2310 then
2311    # Ok.
2312    :
2313 else
2314    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2315 Check your system clock" >&5
2316 $as_echo "$as_me: error: newly created file is older than distributed files!
2317 Check your system clock" >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320 { $as_echo "$as_me:$LINENO: result: yes" >&5
2321 $as_echo "yes" >&6; }
2322 test "$program_prefix" != NONE &&
2323   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2324 # Use a double $ so make ignores it.
2325 test "$program_suffix" != NONE &&
2326   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2327 # Double any \ or $.
2328 # By default was `s,x,x', remove it if useless.
2329 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2330 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2331
2332 # expand $ac_aux_dir to an absolute path
2333 am_aux_dir=`cd $ac_aux_dir && pwd`
2334
2335 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2336 # Use eval to expand $SHELL
2337 if eval "$MISSING --run true"; then
2338   am_missing_run="$MISSING --run "
2339 else
2340   am_missing_run=
2341   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2342 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2343 fi
2344
2345 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2346   # We used to keeping the `.' as first argument, in order to
2347   # allow $(mkdir_p) to be used without argument.  As in
2348   #   $(mkdir_p) $(somedir)
2349   # where $(somedir) is conditionally defined.  However this is wrong
2350   # for two reasons:
2351   #  1. if the package is installed by a user who cannot write `.'
2352   #     make install will fail,
2353   #  2. the above comment should most certainly read
2354   #     $(mkdir_p) $(DESTDIR)$(somedir)
2355   #     so it does not work when $(somedir) is undefined and
2356   #     $(DESTDIR) is not.
2357   #  To support the latter case, we have to write
2358   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2359   #  so the `.' trick is pointless.
2360   mkdir_p='mkdir -p --'
2361 else
2362   # On NextStep and OpenStep, the `mkdir' command does not
2363   # recognize any option.  It will interpret all options as
2364   # directories to create, and then abort because `.' already
2365   # exists.
2366   for d in ./-p ./--version;
2367   do
2368     test -d $d && rmdir $d
2369   done
2370   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2371   if test -f "$ac_aux_dir/mkinstalldirs"; then
2372     mkdir_p='$(mkinstalldirs)'
2373   else
2374     mkdir_p='$(install_sh) -d'
2375   fi
2376 fi
2377
2378 for ac_prog in gawk mawk nawk awk
2379 do
2380   # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if test "${ac_cv_prog_AWK+set}" = set; then
2385   $as_echo_n "(cached) " >&6
2386 else
2387   if test -n "$AWK"; then
2388   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395   for ac_exec_ext in '' $ac_executable_extensions; do
2396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397     ac_cv_prog_AWK="$ac_prog"
2398     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399     break 2
2400   fi
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406 fi
2407 AWK=$ac_cv_prog_AWK
2408 if test -n "$AWK"; then
2409   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2410 $as_echo "$AWK" >&6; }
2411 else
2412   { $as_echo "$as_me:$LINENO: result: no" >&5
2413 $as_echo "no" >&6; }
2414 fi
2415
2416
2417   test -n "$AWK" && break
2418 done
2419
2420 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2421 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2422 set x ${MAKE-make}
2423 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2424 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2425   $as_echo_n "(cached) " >&6
2426 else
2427   cat >conftest.make <<\_ACEOF
2428 SHELL = /bin/sh
2429 all:
2430         @echo '@@@%%%=$(MAKE)=@@@%%%'
2431 _ACEOF
2432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2434   *@@@%%%=?*=@@@%%%*)
2435     eval ac_cv_prog_make_${ac_make}_set=yes;;
2436   *)
2437     eval ac_cv_prog_make_${ac_make}_set=no;;
2438 esac
2439 rm -f conftest.make
2440 fi
2441 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2442   { $as_echo "$as_me:$LINENO: result: yes" >&5
2443 $as_echo "yes" >&6; }
2444   SET_MAKE=
2445 else
2446   { $as_echo "$as_me:$LINENO: result: no" >&5
2447 $as_echo "no" >&6; }
2448   SET_MAKE="MAKE=${MAKE-make}"
2449 fi
2450
2451 rm -rf .tst 2>/dev/null
2452 mkdir .tst 2>/dev/null
2453 if test -d .tst; then
2454   am__leading_dot=.
2455 else
2456   am__leading_dot=_
2457 fi
2458 rmdir .tst 2>/dev/null
2459
2460 # test to see if srcdir already configured
2461 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2462    test -f $srcdir/config.status; then
2463   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2464 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2465    { (exit 1); exit 1; }; }
2466 fi
2467
2468 # test whether we have cygpath
2469 if test -z "$CYGPATH_W"; then
2470   if (cygpath --version) >/dev/null 2>/dev/null; then
2471     CYGPATH_W='cygpath -w'
2472   else
2473     CYGPATH_W=echo
2474   fi
2475 fi
2476
2477
2478 # Define the identity of the package.
2479  PACKAGE='libantlr3c'
2480  VERSION='3.2'
2481
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE "$PACKAGE"
2485 _ACEOF
2486
2487
2488 cat >>confdefs.h <<_ACEOF
2489 #define VERSION "$VERSION"
2490 _ACEOF
2491
2492 # Some tools Automake needs.
2493
2494 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2495
2496
2497 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2498
2499
2500 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2501
2502
2503 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2504
2505
2506 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2507
2508 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2509
2510 # Installed binaries are usually stripped using `strip' when the user
2511 # run `make install-strip'.  However `strip' might not be the right
2512 # tool to use in cross-compilation environments, therefore Automake
2513 # will honor the `STRIP' environment variable to overrule this program.
2514 if test "$cross_compiling" != no; then
2515   if test -n "$ac_tool_prefix"; then
2516   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}strip; ac_word=$2
2518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_STRIP+set}" = set; then
2521   $as_echo_n "(cached) " >&6
2522 else
2523   if test -n "$STRIP"; then
2524   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531   for ac_exec_ext in '' $ac_executable_extensions; do
2532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2534     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538 done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 STRIP=$ac_cv_prog_STRIP
2544 if test -n "$STRIP"; then
2545   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2546 $as_echo "$STRIP" >&6; }
2547 else
2548   { $as_echo "$as_me:$LINENO: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552
2553 fi
2554 if test -z "$ac_cv_prog_STRIP"; then
2555   ac_ct_STRIP=$STRIP
2556   # Extract the first word of "strip", so it can be a program name with args.
2557 set dummy strip; ac_word=$2
2558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2561   $as_echo_n "(cached) " >&6
2562 else
2563   if test -n "$ac_ct_STRIP"; then
2564   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571   for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_ac_ct_STRIP="strip"
2574     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2584 if test -n "$ac_ct_STRIP"; then
2585   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2586 $as_echo "$ac_ct_STRIP" >&6; }
2587 else
2588   { $as_echo "$as_me:$LINENO: result: no" >&5
2589 $as_echo "no" >&6; }
2590 fi
2591
2592   if test "x$ac_ct_STRIP" = x; then
2593     STRIP=":"
2594   else
2595     case $cross_compiling:$ac_tool_warned in
2596 yes:)
2597 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599 ac_tool_warned=yes ;;
2600 esac
2601     STRIP=$ac_ct_STRIP
2602   fi
2603 else
2604   STRIP="$ac_cv_prog_STRIP"
2605 fi
2606
2607 fi
2608 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2609
2610 # We need awk for the "check" target.  The system "awk" is bad on
2611 # some platforms.
2612 # Always define AMTAR for backward compatibility.
2613
2614 AMTAR=${AMTAR-"${am_missing_run}tar"}
2615
2616 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2617
2618
2619
2620
2621
2622 ac_ext=c
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627
2628 ac_ext=c
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633 if test -n "$ac_tool_prefix"; then
2634   for ac_prog in xlc aCC gcc cc
2635   do
2636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641   $as_echo_n "(cached) " >&6
2642 else
2643   if test -n "$CC"; then
2644   ac_cv_prog_CC="$CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651   for ac_exec_ext in '' $ac_executable_extensions; do
2652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655     break 2
2656   fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2666 $as_echo "$CC" >&6; }
2667 else
2668   { $as_echo "$as_me:$LINENO: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673     test -n "$CC" && break
2674   done
2675 fi
2676 if test -z "$CC"; then
2677   ac_ct_CC=$CC
2678   for ac_prog in xlc aCC gcc cc
2679 do
2680   # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685   $as_echo_n "(cached) " >&6
2686 else
2687   if test -n "$ac_ct_CC"; then
2688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695   for ac_exec_ext in '' $ac_executable_extensions; do
2696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697     ac_cv_prog_ac_ct_CC="$ac_prog"
2698     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 $as_echo "$ac_ct_CC" >&6; }
2711 else
2712   { $as_echo "$as_me:$LINENO: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716
2717   test -n "$ac_ct_CC" && break
2718 done
2719
2720   if test "x$ac_ct_CC" = x; then
2721     CC=""
2722   else
2723     case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729     CC=$ac_ct_CC
2730   fi
2731 fi
2732
2733
2734 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740    { (exit 1); exit 1; }; }; }
2741
2742 # Provide some information about the compiler.
2743 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 set X $ac_compile
2745 ac_compiler=$2
2746 { (ac_try="$ac_compiler --version >&5"
2747 case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2752 $as_echo "$ac_try_echo") >&5
2753   (eval "$ac_compiler --version >&5") 2>&5
2754   ac_status=$?
2755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763 $as_echo "$ac_try_echo") >&5
2764   (eval "$ac_compiler -v >&5") 2>&5
2765   ac_status=$?
2766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }
2768 { (ac_try="$ac_compiler -V >&5"
2769 case "(($ac_try" in
2770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771   *) ac_try_echo=$ac_try;;
2772 esac
2773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2774 $as_echo "$ac_try_echo") >&5
2775   (eval "$ac_compiler -V >&5") 2>&5
2776   ac_status=$?
2777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }
2779
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786
2787 int
2788 main ()
2789 {
2790
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2799 # of exeext.
2800 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 $as_echo_n "checking for C compiler default output file name... " >&6; }
2802 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803
2804 # The possible output files:
2805 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2806
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2809 do
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2812     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813   esac
2814 done
2815 rm -f $ac_rmfiles
2816
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2823 $as_echo "$ac_try_echo") >&5
2824   (eval "$ac_link_default") 2>&5
2825   ac_status=$?
2826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; then
2828   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files ''
2834 do
2835   test -f "$ac_file" || continue
2836   case $ac_file in
2837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2838         ;;
2839     [ab].out )
2840         # We found the default executable, but exeext='' is most
2841         # certainly right.
2842         break;;
2843     *.* )
2844         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845         then :; else
2846            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847         fi
2848         # We set ac_cv_exeext here because the later test for it is not
2849         # safe: cross compilers may not add the suffix if given an `-o'
2850         # argument, so we may need to know it at that point already.
2851         # Even if this section looks crufty: it has the advantage of
2852         # actually working.
2853         break;;
2854     * )
2855         break;;
2856   esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
2860 else
2861   ac_file=''
2862 fi
2863
2864 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2865 $as_echo "$ac_file" >&6; }
2866 if test -z "$ac_file"; then
2867   $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&5
2874 $as_echo "$as_me: error: C compiler cannot create executables
2875 See \`config.log' for more details." >&2;}
2876    { (exit 77); exit 77; }; }; }
2877 fi
2878
2879 ac_exeext=$ac_cv_exeext
2880
2881 # Check that the compiler produces executables we can run.  If not, either
2882 # the compiler is broken, or we cross compile.
2883 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 $as_echo_n "checking whether the C compiler works... " >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888   if { ac_try='./$ac_file'
2889   { (case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895   (eval "$ac_try") 2>&5
2896   ac_status=$?
2897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; }; then
2899     cross_compiling=no
2900   else
2901     if test "$cross_compiling" = maybe; then
2902         cross_compiling=yes
2903     else
2904         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&5
2909 $as_echo "$as_me: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&2;}
2912    { (exit 1); exit 1; }; }; }
2913     fi
2914   fi
2915 fi
2916 { $as_echo "$as_me:$LINENO: result: yes" >&5
2917 $as_echo "yes" >&6; }
2918
2919 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2920 ac_clean_files=$ac_clean_files_save
2921 # Check that the compiler produces executables we can run.  If not, either
2922 # the compiler is broken, or we cross compile.
2923 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2924 $as_echo_n "checking whether we are cross compiling... " >&6; }
2925 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2926 $as_echo "$cross_compiling" >&6; }
2927
2928 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2929 $as_echo_n "checking for suffix of executables... " >&6; }
2930 if { (ac_try="$ac_link"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936 $as_echo "$ac_try_echo") >&5
2937   (eval "$ac_link") 2>&5
2938   ac_status=$?
2939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; then
2941   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2942 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2943 # work properly (i.e., refer to `conftest.exe'), while it won't with
2944 # `rm'.
2945 for ac_file in conftest.exe conftest conftest.*; do
2946   test -f "$ac_file" || continue
2947   case $ac_file in
2948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2949     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950           break;;
2951     * ) break;;
2952   esac
2953 done
2954 else
2955   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958 See \`config.log' for more details." >&5
2959 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960 See \`config.log' for more details." >&2;}
2961    { (exit 1); exit 1; }; }; }
2962 fi
2963
2964 rm -f conftest$ac_cv_exeext
2965 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966 $as_echo "$ac_cv_exeext" >&6; }
2967
2968 rm -f conftest.$ac_ext
2969 EXEEXT=$ac_cv_exeext
2970 ac_exeext=$EXEEXT
2971 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972 $as_echo_n "checking for suffix of object files... " >&6; }
2973 if test "${ac_cv_objext+set}" = set; then
2974   $as_echo_n "(cached) " >&6
2975 else
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.o conftest.obj
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2998 $as_echo "$ac_try_echo") >&5
2999   (eval "$ac_compile") 2>&5
3000   ac_status=$?
3001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; then
3003   for ac_file in conftest.o conftest.obj conftest.*; do
3004   test -f "$ac_file" || continue;
3005   case $ac_file in
3006     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3007     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3008        break;;
3009   esac
3010 done
3011 else
3012   $as_echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3018 See \`config.log' for more details." >&5
3019 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3020 See \`config.log' for more details." >&2;}
3021    { (exit 1); exit 1; }; }; }
3022 fi
3023
3024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3025 fi
3026 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3027 $as_echo "$ac_cv_objext" >&6; }
3028 OBJEXT=$ac_cv_objext
3029 ac_objext=$OBJEXT
3030 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3031 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3032 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3033   $as_echo_n "(cached) " >&6
3034 else
3035   cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041
3042 int
3043 main ()
3044 {
3045 #ifndef __GNUC__
3046        choke me
3047 #endif
3048
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060 $as_echo "$ac_try_echo") >&5
3061   (eval "$ac_compile") 2>conftest.er1
3062   ac_status=$?
3063   grep -v '^ *+' conftest.er1 >conftest.err
3064   rm -f conftest.er1
3065   cat conftest.err >&5
3066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); } && {
3068          test -z "$ac_c_werror_flag" ||
3069          test ! -s conftest.err
3070        } && test -s conftest.$ac_objext; then
3071   ac_compiler_gnu=yes
3072 else
3073   $as_echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         ac_compiler_gnu=no
3077 fi
3078
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3081
3082 fi
3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3085 if test $ac_compiler_gnu = yes; then
3086   GCC=yes
3087 else
3088   GCC=
3089 fi
3090 ac_test_CFLAGS=${CFLAGS+set}
3091 ac_save_CFLAGS=$CFLAGS
3092 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3093 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3094 if test "${ac_cv_prog_cc_g+set}" = set; then
3095   $as_echo_n "(cached) " >&6
3096 else
3097   ac_save_c_werror_flag=$ac_c_werror_flag
3098    ac_c_werror_flag=yes
3099    ac_cv_prog_cc_g=no
3100    CFLAGS="-g"
3101    cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124   (eval "$ac_compile") 2>conftest.er1
3125   ac_status=$?
3126   grep -v '^ *+' conftest.er1 >conftest.err
3127   rm -f conftest.er1
3128   cat conftest.err >&5
3129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); } && {
3131          test -z "$ac_c_werror_flag" ||
3132          test ! -s conftest.err
3133        } && test -s conftest.$ac_objext; then
3134   ac_cv_prog_cc_g=yes
3135 else
3136   $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139         CFLAGS=""
3140       cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162 $as_echo "$ac_try_echo") >&5
3163   (eval "$ac_compile") 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } && {
3170          test -z "$ac_c_werror_flag" ||
3171          test ! -s conftest.err
3172        } && test -s conftest.$ac_objext; then
3173   :
3174 else
3175   $as_echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178         ac_c_werror_flag=$ac_save_c_werror_flag
3179          CFLAGS="-g"
3180          cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203   (eval "$ac_compile") 2>conftest.er1
3204   ac_status=$?
3205   grep -v '^ *+' conftest.er1 >conftest.err
3206   rm -f conftest.er1
3207   cat conftest.err >&5
3208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } && {
3210          test -z "$ac_c_werror_flag" ||
3211          test ! -s conftest.err
3212        } && test -s conftest.$ac_objext; then
3213   ac_cv_prog_cc_g=yes
3214 else
3215   $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228    ac_c_werror_flag=$ac_save_c_werror_flag
3229 fi
3230 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231 $as_echo "$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233   CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235   if test "$GCC" = yes; then
3236     CFLAGS="-g -O2"
3237   else
3238     CFLAGS="-g"
3239   fi
3240 else
3241   if test "$GCC" = yes; then
3242     CFLAGS="-O2"
3243   else
3244     CFLAGS=
3245   fi
3246 fi
3247 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250   $as_echo_n "(cached) " >&6
3251 else
3252   ac_cv_prog_cc_c89=no
3253 ac_save_CC=$CC
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 #include <stdarg.h>
3261 #include <stdio.h>
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3265 struct buf { int x; };
3266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267 static char *e (p, i)
3268      char **p;
3269      int i;
3270 {
3271   return p[i];
3272 }
3273 static char *f (char * (*g) (char **, int), char **p, ...)
3274 {
3275   char *s;
3276   va_list v;
3277   va_start (v,p);
3278   s = g (p, va_arg (v,int));
3279   va_end (v);
3280   return s;
3281 }
3282
3283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3284    function prototypes and stuff, but not '\xHH' hex character constants.
3285    These don't provoke an error unfortunately, instead are silently treated
3286    as 'x'.  The following induces an error, until -std is added to get
3287    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3288    array size at least.  It's necessary to write '\x00'==0 to get something
3289    that's true only with -std.  */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293    inside strings and character constants.  */
3294 #define FOO(x) 'x'
3295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301 int argc;
3302 char **argv;
3303 int
3304 main ()
3305 {
3306 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 do
3314   CC="$ac_save_CC $ac_arg"
3315   rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319   *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323   (eval "$ac_compile") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } && {
3330          test -z "$ac_c_werror_flag" ||
3331          test ! -s conftest.err
3332        } && test -s conftest.$ac_objext; then
3333   ac_cv_prog_cc_c89=$ac_arg
3334 else
3335   $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338
3339 fi
3340
3341 rm -f core conftest.err conftest.$ac_objext
3342   test "x$ac_cv_prog_cc_c89" != "xno" && break
3343 done
3344 rm -f conftest.$ac_ext
3345 CC=$ac_save_CC
3346
3347 fi
3348 # AC_CACHE_VAL
3349 case "x$ac_cv_prog_cc_c89" in
3350   x)
3351     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3352 $as_echo "none needed" >&6; } ;;
3353   xno)
3354     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3355 $as_echo "unsupported" >&6; } ;;
3356   *)
3357     CC="$CC $ac_cv_prog_cc_c89"
3358     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3360 esac
3361
3362
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 DEPDIR="${am__leading_dot}deps"
3369
3370 ac_config_commands="$ac_config_commands depfiles"
3371
3372
3373 am_make=${MAKE-make}
3374 cat > confinc << 'END'
3375 am__doit:
3376         @echo done
3377 .PHONY: am__doit
3378 END
3379 # If we don't find an include directive, just comment out the code.
3380 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3381 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3382 am__include="#"
3383 am__quote=
3384 _am_result=none
3385 # First try GNU make style include.
3386 echo "include confinc" > confmf
3387 # We grep out `Entering directory' and `Leaving directory'
3388 # messages which can occur if `w' ends up in MAKEFLAGS.
3389 # In particular we don't look at `^make:' because GNU make might
3390 # be invoked under some other name (usually "gmake"), in which
3391 # case it prints its new name instead of `make'.
3392 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3393    am__include=include
3394    am__quote=
3395    _am_result=GNU
3396 fi
3397 # Now try BSD make style include.
3398 if test "$am__include" = "#"; then
3399    echo '.include "confinc"' > confmf
3400    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3401       am__include=.include
3402       am__quote="\""
3403       _am_result=BSD
3404    fi
3405 fi
3406
3407
3408 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3409 $as_echo "$_am_result" >&6; }
3410 rm -f confinc confmf
3411
3412 # Check whether --enable-dependency-tracking was given.
3413 if test "${enable_dependency_tracking+set}" = set; then
3414   enableval=$enable_dependency_tracking;
3415 fi
3416
3417 if test "x$enable_dependency_tracking" != xno; then
3418   am_depcomp="$ac_aux_dir/depcomp"
3419   AMDEPBACKSLASH='\'
3420 fi
3421
3422
3423 if test "x$enable_dependency_tracking" != xno; then
3424   AMDEP_TRUE=
3425   AMDEP_FALSE='#'
3426 else
3427   AMDEP_TRUE='#'
3428   AMDEP_FALSE=
3429 fi
3430
3431
3432
3433
3434 depcc="$CC"   am_compiler_list=
3435
3436 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3437 $as_echo_n "checking dependency style of $depcc... " >&6; }
3438 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3439   $as_echo_n "(cached) " >&6
3440 else
3441   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3442   # We make a subdir and do the tests there.  Otherwise we can end up
3443   # making bogus files that we don't know about and never remove.  For
3444   # instance it was reported that on HP-UX the gcc test will end up
3445   # making a dummy file named `D' -- because `-MD' means `put the output
3446   # in D'.
3447   mkdir conftest.dir
3448   # Copy depcomp to subdir because otherwise we won't find it if we're
3449   # using a relative directory.
3450   cp "$am_depcomp" conftest.dir
3451   cd conftest.dir
3452   # We will build objects and dependencies in a subdirectory because
3453   # it helps to detect inapplicable dependency modes.  For instance
3454   # both Tru64's cc and ICC support -MD to output dependencies as a
3455   # side effect of compilation, but ICC will put the dependencies in
3456   # the current directory while Tru64 will put them in the object
3457   # directory.
3458   mkdir sub
3459
3460   am_cv_CC_dependencies_compiler_type=none
3461   if test "$am_compiler_list" = ""; then
3462      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3463   fi
3464   for depmode in $am_compiler_list; do
3465     # Setup a source with many dependencies, because some compilers
3466     # like to wrap large dependency lists on column 80 (with \), and
3467     # we should not choose a depcomp mode which is confused by this.
3468     #
3469     # We need to recreate these files for each test, as the compiler may
3470     # overwrite some of them when testing with obscure command lines.
3471     # This happens at least with the AIX C compiler.
3472     : > sub/conftest.c
3473     for i in 1 2 3 4 5 6; do
3474       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3475       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3476       # Solaris 8's {/usr,}/bin/sh.
3477       touch sub/conftst$i.h
3478     done
3479     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3480
3481     case $depmode in
3482     nosideeffect)
3483       # after this tag, mechanisms are not by side-effect, so they'll
3484       # only be used when explicitly requested
3485       if test "x$enable_dependency_tracking" = xyes; then
3486         continue
3487       else
3488         break
3489       fi
3490       ;;
3491     none) break ;;
3492     esac
3493     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3494     # mode.  It turns out that the SunPro C++ compiler does not properly
3495     # handle `-M -o', and we need to detect this.
3496     if depmode=$depmode \
3497        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3498        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3499        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3500          >/dev/null 2>conftest.err &&
3501        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504       # icc doesn't choke on unknown options, it will just issue warnings
3505       # or remarks (even with -Werror).  So we grep stderr for any message
3506       # that says an option was ignored or not supported.
3507       # When given -MP, icc 7.0 and 7.1 complain thusly:
3508       #   icc: Command line warning: ignoring option '-M'; no argument required
3509       # The diagnosis changed in icc 8.0:
3510       #   icc: Command line remark: option '-MP' not supported
3511       if (grep 'ignoring option' conftest.err ||
3512           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513         am_cv_CC_dependencies_compiler_type=$depmode
3514         break
3515       fi
3516     fi
3517   done
3518
3519   cd ..
3520   rm -rf conftest.dir
3521 else
3522   am_cv_CC_dependencies_compiler_type=none
3523 fi
3524
3525 fi
3526 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529
3530
3531
3532 if
3533   test "x$enable_dependency_tracking" != xno \
3534   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3535   am__fastdepCC_TRUE=
3536   am__fastdepCC_FALSE='#'
3537 else
3538   am__fastdepCC_TRUE='#'
3539   am__fastdepCC_FALSE=
3540 fi
3541
3542
3543 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3544 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3545     # Check whether --enable-maintainer-mode was given.
3546 if test "${enable_maintainer_mode+set}" = set; then
3547   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3548 else
3549   USE_MAINTAINER_MODE=no
3550 fi
3551
3552   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3553 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3554
3555
3556 if test $USE_MAINTAINER_MODE = yes; then
3557   MAINTAINER_MODE_TRUE=
3558   MAINTAINER_MODE_FALSE='#'
3559 else
3560   MAINTAINER_MODE_TRUE='#'
3561   MAINTAINER_MODE_FALSE=
3562 fi
3563
3564   MAINT=$MAINTAINER_MODE_TRUE
3565
3566
3567 # Check whether --enable-shared was given.
3568 if test "${enable_shared+set}" = set; then
3569   enableval=$enable_shared; p=${PACKAGE-default}
3570     case $enableval in
3571     yes) enable_shared=yes ;;
3572     no) enable_shared=no ;;
3573     *)
3574       enable_shared=no
3575       # Look at the argument we got.  We use all the common list separators.
3576       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3577       for pkg in $enableval; do
3578         IFS="$lt_save_ifs"
3579         if test "X$pkg" = "X$p"; then
3580           enable_shared=yes
3581         fi
3582       done
3583       IFS="$lt_save_ifs"
3584       ;;
3585     esac
3586 else
3587   enable_shared=yes
3588 fi
3589
3590
3591 # Check whether --enable-static was given.
3592 if test "${enable_static+set}" = set; then
3593   enableval=$enable_static; p=${PACKAGE-default}
3594     case $enableval in
3595     yes) enable_static=yes ;;
3596     no) enable_static=no ;;
3597     *)
3598      enable_static=no
3599       # Look at the argument we got.  We use all the common list separators.
3600       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3601       for pkg in $enableval; do
3602         IFS="$lt_save_ifs"
3603         if test "X$pkg" = "X$p"; then
3604           enable_static=yes
3605         fi
3606       done
3607       IFS="$lt_save_ifs"
3608       ;;
3609     esac
3610 else
3611   enable_static=yes
3612 fi
3613
3614
3615 # Check whether --enable-fast-install was given.
3616 if test "${enable_fast_install+set}" = set; then
3617   enableval=$enable_fast_install; p=${PACKAGE-default}
3618     case $enableval in
3619     yes) enable_fast_install=yes ;;
3620     no) enable_fast_install=no ;;
3621     *)
3622       enable_fast_install=no
3623       # Look at the argument we got.  We use all the common list separators.
3624       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3625       for pkg in $enableval; do
3626         IFS="$lt_save_ifs"
3627         if test "X$pkg" = "X$p"; then
3628           enable_fast_install=yes
3629         fi
3630       done
3631       IFS="$lt_save_ifs"
3632       ;;
3633     esac
3634 else
3635   enable_fast_install=yes
3636 fi
3637
3638
3639 # Make sure we can run config.sub.
3640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3641   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3642 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3643    { (exit 1); exit 1; }; }
3644
3645 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3646 $as_echo_n "checking build system type... " >&6; }
3647 if test "${ac_cv_build+set}" = set; then
3648   $as_echo_n "(cached) " >&6
3649 else
3650   ac_build_alias=$build_alias
3651 test "x$ac_build_alias" = x &&
3652   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3653 test "x$ac_build_alias" = x &&
3654   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3655 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3656    { (exit 1); exit 1; }; }
3657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3658   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3660    { (exit 1); exit 1; }; }
3661
3662 fi
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3664 $as_echo "$ac_cv_build" >&6; }
3665 case $ac_cv_build in
3666 *-*-*) ;;
3667 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3668 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3669    { (exit 1); exit 1; }; };;
3670 esac
3671 build=$ac_cv_build
3672 ac_save_IFS=$IFS; IFS='-'
3673 set x $ac_cv_build
3674 shift
3675 build_cpu=$1
3676 build_vendor=$2
3677 shift; shift
3678 # Remember, the first character of IFS is used to create $*,
3679 # except with old shells:
3680 build_os=$*
3681 IFS=$ac_save_IFS
3682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3683
3684
3685 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3686 $as_echo_n "checking host system type... " >&6; }
3687 if test "${ac_cv_host+set}" = set; then
3688   $as_echo_n "(cached) " >&6
3689 else
3690   if test "x$host_alias" = x; then
3691   ac_cv_host=$ac_cv_build
3692 else
3693   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3694     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3695 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3696    { (exit 1); exit 1; }; }
3697 fi
3698
3699 fi
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3701 $as_echo "$ac_cv_host" >&6; }
3702 case $ac_cv_host in
3703 *-*-*) ;;
3704 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3705 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3706    { (exit 1); exit 1; }; };;
3707 esac
3708 host=$ac_cv_host
3709 ac_save_IFS=$IFS; IFS='-'
3710 set x $ac_cv_host
3711 shift
3712 host_cpu=$1
3713 host_vendor=$2
3714 shift; shift
3715 # Remember, the first character of IFS is used to create $*,
3716 # except with old shells:
3717 host_os=$*
3718 IFS=$ac_save_IFS
3719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3720
3721
3722 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3723 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3724 if test "${lt_cv_path_SED+set}" = set; then
3725   $as_echo_n "(cached) " >&6
3726 else
3727   # Loop through the user's path and test for sed and gsed.
3728 # Then use that list of sed's as ones to test for truncation.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   for lt_ac_prog in sed gsed; do
3735     for ac_exec_ext in '' $ac_executable_extensions; do
3736       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3737         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3738       fi
3739     done
3740   done
3741 done
3742 IFS=$as_save_IFS
3743 lt_ac_max=0
3744 lt_ac_count=0
3745 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3746 # along with /bin/sed that truncates output.
3747 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3748   test ! -f $lt_ac_sed && continue
3749   cat /dev/null > conftest.in
3750   lt_ac_count=0
3751   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3752   # Check for GNU sed and select it if it is found.
3753   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3754     lt_cv_path_SED=$lt_ac_sed
3755     break
3756   fi
3757   while true; do
3758     cat conftest.in conftest.in >conftest.tmp
3759     mv conftest.tmp conftest.in
3760     cp conftest.in conftest.nl
3761     echo >>conftest.nl
3762     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3763     cmp -s conftest.out conftest.nl || break
3764     # 10000 chars as input seems more than enough
3765     test $lt_ac_count -gt 10 && break
3766     lt_ac_count=`expr $lt_ac_count + 1`
3767     if test $lt_ac_count -gt $lt_ac_max; then
3768       lt_ac_max=$lt_ac_count
3769       lt_cv_path_SED=$lt_ac_sed
3770     fi
3771   done
3772 done
3773
3774 fi
3775
3776 SED=$lt_cv_path_SED
3777
3778 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3779 $as_echo "$SED" >&6; }
3780
3781 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3782 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -z "$GREP"; then
3787   ac_path_GREP_found=false
3788   # Loop through the user's path and test for each of PROGNAME-LIST
3789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794   for ac_prog in grep ggrep; do
3795     for ac_exec_ext in '' $ac_executable_extensions; do
3796       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3797       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3798 # Check for GNU ac_path_GREP and select it if it is found.
3799   # Check for GNU $ac_path_GREP
3800 case `"$ac_path_GREP" --version 2>&1` in
3801 *GNU*)
3802   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3803 *)
3804   ac_count=0
3805   $as_echo_n 0123456789 >"conftest.in"
3806   while :
3807   do
3808     cat "conftest.in" "conftest.in" >"conftest.tmp"
3809     mv "conftest.tmp" "conftest.in"
3810     cp "conftest.in" "conftest.nl"
3811     $as_echo 'GREP' >> "conftest.nl"
3812     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814     ac_count=`expr $ac_count + 1`
3815     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3816       # Best one so far, save it but keep looking for a better one
3817       ac_cv_path_GREP="$ac_path_GREP"
3818       ac_path_GREP_max=$ac_count
3819     fi
3820     # 10*(2^10) chars as input seems more than enough
3821     test $ac_count -gt 10 && break
3822   done
3823   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 esac
3825
3826       $ac_path_GREP_found && break 3
3827     done
3828   done
3829 done
3830 IFS=$as_save_IFS
3831   if test -z "$ac_cv_path_GREP"; then
3832     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834    { (exit 1); exit 1; }; }
3835   fi
3836 else
3837   ac_cv_path_GREP=$GREP
3838 fi
3839
3840 fi
3841 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3842 $as_echo "$ac_cv_path_GREP" >&6; }
3843  GREP="$ac_cv_path_GREP"
3844
3845
3846 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3847 $as_echo_n "checking for egrep... " >&6; }
3848 if test "${ac_cv_path_EGREP+set}" = set; then
3849   $as_echo_n "(cached) " >&6
3850 else
3851   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3852    then ac_cv_path_EGREP="$GREP -E"
3853    else
3854      if test -z "$EGREP"; then
3855   ac_path_EGREP_found=false
3856   # Loop through the user's path and test for each of PROGNAME-LIST
3857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862   for ac_prog in egrep; do
3863     for ac_exec_ext in '' $ac_executable_extensions; do
3864       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3865       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3866 # Check for GNU ac_path_EGREP and select it if it is found.
3867   # Check for GNU $ac_path_EGREP
3868 case `"$ac_path_EGREP" --version 2>&1` in
3869 *GNU*)
3870   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3871 *)
3872   ac_count=0
3873   $as_echo_n 0123456789 >"conftest.in"
3874   while :
3875   do
3876     cat "conftest.in" "conftest.in" >"conftest.tmp"
3877     mv "conftest.tmp" "conftest.in"
3878     cp "conftest.in" "conftest.nl"
3879     $as_echo 'EGREP' >> "conftest.nl"
3880     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3881     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3882     ac_count=`expr $ac_count + 1`
3883     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3884       # Best one so far, save it but keep looking for a better one
3885       ac_cv_path_EGREP="$ac_path_EGREP"
3886       ac_path_EGREP_max=$ac_count
3887     fi
3888     # 10*(2^10) chars as input seems more than enough
3889     test $ac_count -gt 10 && break
3890   done
3891   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3892 esac
3893
3894       $ac_path_EGREP_found && break 3
3895     done
3896   done
3897 done
3898 IFS=$as_save_IFS
3899   if test -z "$ac_cv_path_EGREP"; then
3900     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3901 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3902    { (exit 1); exit 1; }; }
3903   fi
3904 else
3905   ac_cv_path_EGREP=$EGREP
3906 fi
3907
3908    fi
3909 fi
3910 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3911 $as_echo "$ac_cv_path_EGREP" >&6; }
3912  EGREP="$ac_cv_path_EGREP"
3913
3914
3915
3916 # Check whether --with-gnu-ld was given.
3917 if test "${with_gnu_ld+set}" = set; then
3918   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3919 else
3920   with_gnu_ld=no
3921 fi
3922
3923 ac_prog=ld
3924 if test "$GCC" = yes; then
3925   # Check if gcc -print-prog-name=ld gives a path.
3926   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3927 $as_echo_n "checking for ld used by $CC... " >&6; }
3928   case $host in
3929   *-*-mingw*)
3930     # gcc leaves a trailing carriage return which upsets mingw
3931     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3932   *)
3933     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3934   esac
3935   case $ac_prog in
3936     # Accept absolute paths.
3937     [\\/]* | ?:[\\/]*)
3938       re_direlt='/[^/][^/]*/\.\./'
3939       # Canonicalize the pathname of ld
3940       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3941       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3942         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3943       done
3944       test -z "$LD" && LD="$ac_prog"
3945       ;;
3946   "")
3947     # If it fails, then pretend we aren't using GCC.
3948     ac_prog=ld
3949     ;;
3950   *)
3951     # If it is relative, then search for the first ld in PATH.
3952     with_gnu_ld=unknown
3953     ;;
3954   esac
3955 elif test "$with_gnu_ld" = yes; then
3956   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3957 $as_echo_n "checking for GNU ld... " >&6; }
3958 else
3959   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3960 $as_echo_n "checking for non-GNU ld... " >&6; }
3961 fi
3962 if test "${lt_cv_path_LD+set}" = set; then
3963   $as_echo_n "(cached) " >&6
3964 else
3965   if test -z "$LD"; then
3966   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3967   for ac_dir in $PATH; do
3968     IFS="$lt_save_ifs"
3969     test -z "$ac_dir" && ac_dir=.
3970     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3971       lt_cv_path_LD="$ac_dir/$ac_prog"
3972       # Check to see if the program is GNU ld.  I'd rather use --version,
3973       # but apparently some variants of GNU ld only accept -v.
3974       # Break only if it was the GNU/non-GNU ld that we prefer.
3975       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3976       *GNU* | *'with BFD'*)
3977         test "$with_gnu_ld" != no && break
3978         ;;
3979       *)
3980         test "$with_gnu_ld" != yes && break
3981         ;;
3982       esac
3983     fi
3984   done
3985   IFS="$lt_save_ifs"
3986 else
3987   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3988 fi
3989 fi
3990
3991 LD="$lt_cv_path_LD"
3992 if test -n "$LD"; then
3993   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3994 $as_echo "$LD" >&6; }
3995 else
3996   { $as_echo "$as_me:$LINENO: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4000 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4001    { (exit 1); exit 1; }; }
4002 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4003 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4004 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4005   $as_echo_n "(cached) " >&6
4006 else
4007   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4008 case `$LD -v 2>&1 </dev/null` in
4009 *GNU* | *'with BFD'*)
4010   lt_cv_prog_gnu_ld=yes
4011   ;;
4012 *)
4013   lt_cv_prog_gnu_ld=no
4014   ;;
4015 esac
4016 fi
4017 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4018 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4019 with_gnu_ld=$lt_cv_prog_gnu_ld
4020
4021
4022 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4023 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4024 if test "${lt_cv_ld_reload_flag+set}" = set; then
4025   $as_echo_n "(cached) " >&6
4026 else
4027   lt_cv_ld_reload_flag='-r'
4028 fi
4029 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4030 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4031 reload_flag=$lt_cv_ld_reload_flag
4032 case $reload_flag in
4033 "" | " "*) ;;
4034 *) reload_flag=" $reload_flag" ;;
4035 esac
4036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4037 case $host_os in
4038   darwin*)
4039     if test "$GCC" = yes; then
4040       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4041     else
4042       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4043     fi
4044     ;;
4045 esac
4046
4047 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4048 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4049 if test "${lt_cv_path_NM+set}" = set; then
4050   $as_echo_n "(cached) " >&6
4051 else
4052   if test -n "$NM"; then
4053   # Let the user override the test.
4054   lt_cv_path_NM="$NM"
4055 else
4056   lt_nm_to_check="${ac_tool_prefix}nm"
4057   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4058     lt_nm_to_check="$lt_nm_to_check nm"
4059   fi
4060   for lt_tmp_nm in $lt_nm_to_check; do
4061     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4062     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4063       IFS="$lt_save_ifs"
4064       test -z "$ac_dir" && ac_dir=.
4065       tmp_nm="$ac_dir/$lt_tmp_nm"
4066       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4067         # Check to see if the nm accepts a BSD-compat flag.
4068         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4069         #   nm: unknown option "B" ignored
4070         # Tru64's nm complains that /dev/null is an invalid object file
4071         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4072         */dev/null* | *'Invalid file or object type'*)
4073           lt_cv_path_NM="$tmp_nm -B"
4074           break
4075           ;;
4076         *)
4077           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4078           */dev/null*)
4079             lt_cv_path_NM="$tmp_nm -p"
4080             break
4081             ;;
4082           *)
4083             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4084             continue # so that we can try to find one that supports BSD flags
4085             ;;
4086           esac
4087           ;;
4088         esac
4089       fi
4090     done
4091     IFS="$lt_save_ifs"
4092   done
4093   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4094 fi
4095 fi
4096 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4097 $as_echo "$lt_cv_path_NM" >&6; }
4098 NM="$lt_cv_path_NM"
4099
4100 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4101 $as_echo_n "checking whether ln -s works... " >&6; }
4102 LN_S=$as_ln_s
4103 if test "$LN_S" = "ln -s"; then
4104   { $as_echo "$as_me:$LINENO: result: yes" >&5
4105 $as_echo "yes" >&6; }
4106 else
4107   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4108 $as_echo "no, using $LN_S" >&6; }
4109 fi
4110
4111 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4112 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4113 if test "${lt_cv_deplibs_check_method+set}" = set; then
4114   $as_echo_n "(cached) " >&6
4115 else
4116   lt_cv_file_magic_cmd='$MAGIC_CMD'
4117 lt_cv_file_magic_test_file=
4118 lt_cv_deplibs_check_method='unknown'
4119 # Need to set the preceding variable on all platforms that support
4120 # interlibrary dependencies.
4121 # 'none' -- dependencies not supported.
4122 # `unknown' -- same as none, but documents that we really don't know.
4123 # 'pass_all' -- all dependencies passed with no checks.
4124 # 'test_compile' -- check by making test program.
4125 # 'file_magic [[regex]]' -- check by looking for files in library path
4126 # which responds to the $file_magic_cmd with a given extended regex.
4127 # If you have `file' or equivalent on your system and you're not sure
4128 # whether `pass_all' will *always* work, you probably want this one.
4129
4130 case $host_os in
4131 aix4* | aix5*)
4132   lt_cv_deplibs_check_method=pass_all
4133   ;;
4134
4135 beos*)
4136   lt_cv_deplibs_check_method=pass_all
4137   ;;
4138
4139 bsdi[45]*)
4140   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4141   lt_cv_file_magic_cmd='/usr/bin/file -L'
4142   lt_cv_file_magic_test_file=/shlib/libc.so
4143   ;;
4144
4145 cygwin*)
4146   # func_win32_libid is a shell function defined in ltmain.sh
4147   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4148   lt_cv_file_magic_cmd='func_win32_libid'
4149   ;;
4150
4151 mingw* | pw32*)
4152   # Base MSYS/MinGW do not provide the 'file' command needed by
4153   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4154   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4155   lt_cv_file_magic_cmd='$OBJDUMP -f'
4156   ;;
4157
4158 darwin* | rhapsody*)
4159   lt_cv_deplibs_check_method=pass_all
4160   ;;
4161
4162 freebsd* | kfreebsd*-gnu | dragonfly*)
4163   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4164     case $host_cpu in
4165     i*86 )
4166       # Not sure whether the presence of OpenBSD here was a mistake.
4167       # Let's accept both of them until this is cleared up.
4168       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4169       lt_cv_file_magic_cmd=/usr/bin/file
4170       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4171       ;;
4172     esac
4173   else
4174     lt_cv_deplibs_check_method=pass_all
4175   fi
4176   ;;
4177
4178 gnu*)
4179   lt_cv_deplibs_check_method=pass_all
4180   ;;
4181
4182 hpux10.20* | hpux11*)
4183   lt_cv_file_magic_cmd=/usr/bin/file
4184   case $host_cpu in
4185   ia64*)
4186     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4187     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4188     ;;
4189   hppa*64*)
4190     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]'
4191     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4192     ;;
4193   *)
4194     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4195     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4196     ;;
4197   esac
4198   ;;
4199
4200 interix3*)
4201   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4202   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4203   ;;
4204
4205 irix5* | irix6* | nonstopux*)
4206   case $LD in
4207   *-32|*"-32 ") libmagic=32-bit;;
4208   *-n32|*"-n32 ") libmagic=N32;;
4209   *-64|*"-64 ") libmagic=64-bit;;
4210   *) libmagic=never-match;;
4211   esac
4212   lt_cv_deplibs_check_method=pass_all
4213   ;;
4214
4215 # This must be Linux ELF.
4216 linux*)
4217   lt_cv_deplibs_check_method=pass_all
4218   ;;
4219
4220 netbsd*)
4221   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4222     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4223   else
4224     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4225   fi
4226   ;;
4227
4228 newos6*)
4229   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4230   lt_cv_file_magic_cmd=/usr/bin/file
4231   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4232   ;;
4233
4234 nto-qnx*)
4235   lt_cv_deplibs_check_method=unknown
4236   ;;
4237
4238 openbsd*)
4239   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4240     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4241   else
4242     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4243   fi
4244   ;;
4245
4246 osf3* | osf4* | osf5*)
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249
4250 solaris*)
4251   lt_cv_deplibs_check_method=pass_all
4252   ;;
4253
4254 sysv4 | sysv4.3*)
4255   case $host_vendor in
4256   motorola)
4257     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]'
4258     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4259     ;;
4260   ncr)
4261     lt_cv_deplibs_check_method=pass_all
4262     ;;
4263   sequent)
4264     lt_cv_file_magic_cmd='/bin/file'
4265     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4266     ;;
4267   sni)
4268     lt_cv_file_magic_cmd='/bin/file'
4269     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4270     lt_cv_file_magic_test_file=/lib/libc.so
4271     ;;
4272   siemens)
4273     lt_cv_deplibs_check_method=pass_all
4274     ;;
4275   pc)
4276     lt_cv_deplibs_check_method=pass_all
4277     ;;
4278   esac
4279   ;;
4280
4281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4282   lt_cv_deplibs_check_method=pass_all
4283   ;;
4284 esac
4285
4286 fi
4287 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4288 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4289 file_magic_cmd=$lt_cv_file_magic_cmd
4290 deplibs_check_method=$lt_cv_deplibs_check_method
4291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4292
4293
4294
4295
4296 # If no C compiler was specified, use CC.
4297 LTCC=${LTCC-"$CC"}
4298
4299 # If no C compiler flags were specified, use CFLAGS.
4300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4301
4302 # Allow CC to be a program name with arguments.
4303 compiler=$CC
4304
4305
4306 # Check whether --enable-libtool-lock was given.
4307 if test "${enable_libtool_lock+set}" = set; then
4308   enableval=$enable_libtool_lock;
4309 fi
4310
4311 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4312
4313 # Some flags need to be propagated to the compiler or linker for good
4314 # libtool support.
4315 case $host in
4316 ia64-*-hpux*)
4317   # Find out which ABI we are using.
4318   echo 'int i;' > conftest.$ac_ext
4319   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320   (eval $ac_compile) 2>&5
4321   ac_status=$?
4322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; then
4324     case `/usr/bin/file conftest.$ac_objext` in
4325     *ELF-32*)
4326       HPUX_IA64_MODE="32"
4327       ;;
4328     *ELF-64*)
4329       HPUX_IA64_MODE="64"
4330       ;;
4331     esac
4332   fi
4333   rm -rf conftest*
4334   ;;
4335 *-*-irix6*)
4336   # Find out which ABI we are using.
4337   echo '#line 4337 "configure"' > conftest.$ac_ext
4338   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339   (eval $ac_compile) 2>&5
4340   ac_status=$?
4341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; then
4343    if test "$lt_cv_prog_gnu_ld" = yes; then
4344     case `/usr/bin/file conftest.$ac_objext` in
4345     *32-bit*)
4346       LD="${LD-ld} -melf32bsmip"
4347       ;;
4348     *N32*)
4349       LD="${LD-ld} -melf32bmipn32"
4350       ;;
4351     *64-bit*)
4352       LD="${LD-ld} -melf64bmip"
4353       ;;
4354     esac
4355    else
4356     case `/usr/bin/file conftest.$ac_objext` in
4357     *32-bit*)
4358       LD="${LD-ld} -32"
4359       ;;
4360     *N32*)
4361       LD="${LD-ld} -n32"
4362       ;;
4363     *64-bit*)
4364       LD="${LD-ld} -64"
4365       ;;
4366     esac
4367    fi
4368   fi
4369   rm -rf conftest*
4370   ;;
4371
4372 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4373   # Find out which ABI we are using.
4374   echo 'int i;' > conftest.$ac_ext
4375   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376   (eval $ac_compile) 2>&5
4377   ac_status=$?
4378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }; then
4380     case `/usr/bin/file conftest.o` in
4381     *32-bit*)
4382       case $host in
4383         x86_64-*linux*)
4384           LD="${LD-ld} -m elf_i386"
4385           ;;
4386         ppc64-*linux*|powerpc64-*linux*)
4387           LD="${LD-ld} -m elf32ppclinux"
4388           ;;
4389         s390x-*linux*)
4390           LD="${LD-ld} -m elf_s390"
4391           ;;
4392         sparc64-*linux*)
4393           LD="${LD-ld} -m elf32_sparc"
4394           ;;
4395       esac
4396       ;;
4397     *64-bit*)
4398       case $host in
4399         x86_64-*linux*)
4400           LD="${LD-ld} -m elf_x86_64"
4401           ;;
4402         ppc*-*linux*|powerpc*-*linux*)
4403           LD="${LD-ld} -m elf64ppc"
4404           ;;
4405         s390*-*linux*)
4406           LD="${LD-ld} -m elf64_s390"
4407           ;;
4408         sparc*-*linux*)
4409           LD="${LD-ld} -m elf64_sparc"
4410           ;;
4411       esac
4412       ;;
4413     esac
4414   fi
4415   rm -rf conftest*
4416   ;;
4417
4418 *-*-sco3.2v5*)
4419   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4420   SAVE_CFLAGS="$CFLAGS"
4421   CFLAGS="$CFLAGS -belf"
4422   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4423 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4424 if test "${lt_cv_cc_needs_belf+set}" = set; then
4425   $as_echo_n "(cached) " >&6
4426 else
4427   ac_ext=c
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432
4433      cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439
4440 int
4441 main ()
4442 {
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext conftest$ac_exeext
4449 if { (ac_try="$ac_link"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4455 $as_echo "$ac_try_echo") >&5
4456   (eval "$ac_link") 2>conftest.er1
4457   ac_status=$?
4458   grep -v '^ *+' conftest.er1 >conftest.err
4459   rm -f conftest.er1
4460   cat conftest.err >&5
4461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } && {
4463          test -z "$ac_c_werror_flag" ||
4464          test ! -s conftest.err
4465        } && test -s conftest$ac_exeext && {
4466          test "$cross_compiling" = yes ||
4467          $as_test_x conftest$ac_exeext
4468        }; then
4469   lt_cv_cc_needs_belf=yes
4470 else
4471   $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474         lt_cv_cc_needs_belf=no
4475 fi
4476
4477 rm -rf conftest.dSYM
4478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4479       conftest$ac_exeext conftest.$ac_ext
4480      ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486 fi
4487 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4489   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4490     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4491     CFLAGS="$SAVE_CFLAGS"
4492   fi
4493   ;;
4494 sparc*-*solaris*)
4495   # Find out which ABI we are using.
4496   echo 'int i;' > conftest.$ac_ext
4497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498   (eval $ac_compile) 2>&5
4499   ac_status=$?
4500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; then
4502     case `/usr/bin/file conftest.o` in
4503     *64-bit*)
4504       case $lt_cv_prog_gnu_ld in
4505       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4506       *)    LD="${LD-ld} -64" ;;
4507       esac
4508       ;;
4509     esac
4510   fi
4511   rm -rf conftest*
4512   ;;
4513
4514
4515 esac
4516
4517 need_locks="$enable_libtool_lock"
4518
4519
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4527 # On Suns, sometimes $CPP names a directory.
4528 if test -n "$CPP" && test -d "$CPP"; then
4529   CPP=
4530 fi
4531 if test -z "$CPP"; then
4532   if test "${ac_cv_prog_CPP+set}" = set; then
4533   $as_echo_n "(cached) " >&6
4534 else
4535       # Double quotes because CPP needs to be expanded
4536     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4537     do
4538       ac_preproc_ok=false
4539 for ac_c_preproc_warn_flag in '' yes
4540 do
4541   # Use a header file that comes with gcc, so configuring glibc
4542   # with a fresh cross-compiler works.
4543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544   # <limits.h> exists even on freestanding compilers.
4545   # On the NeXT, cc -E runs the code through the compiler's parser,
4546   # not just through cpp. "Syntax error" is here to catch this case.
4547   cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h.  */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h.  */
4553 #ifdef __STDC__
4554 # include <limits.h>
4555 #else
4556 # include <assert.h>
4557 #endif
4558                      Syntax error
4559 _ACEOF
4560 if { (ac_try="$ac_cpp conftest.$ac_ext"
4561 case "(($ac_try" in
4562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563   *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4566 $as_echo "$ac_try_echo") >&5
4567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4568   ac_status=$?
4569   grep -v '^ *+' conftest.er1 >conftest.err
4570   rm -f conftest.er1
4571   cat conftest.err >&5
4572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); } >/dev/null && {
4574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4575          test ! -s conftest.err
4576        }; then
4577   :
4578 else
4579   $as_echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4581
4582   # Broken: fails on valid input.
4583 continue
4584 fi
4585
4586 rm -f conftest.err conftest.$ac_ext
4587
4588   # OK, works on sane cases.  Now check whether nonexistent headers
4589   # can be detected and how.
4590   cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 #include <ac_nonexistent.h>
4597 _ACEOF
4598 if { (ac_try="$ac_cpp conftest.$ac_ext"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$ac_try_echo") >&5
4605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4606   ac_status=$?
4607   grep -v '^ *+' conftest.er1 >conftest.err
4608   rm -f conftest.er1
4609   cat conftest.err >&5
4610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } >/dev/null && {
4612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4613          test ! -s conftest.err
4614        }; then
4615   # Broken: success on invalid input.
4616 continue
4617 else
4618   $as_echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621   # Passes both tests.
4622 ac_preproc_ok=:
4623 break
4624 fi
4625
4626 rm -f conftest.err conftest.$ac_ext
4627
4628 done
4629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630 rm -f conftest.err conftest.$ac_ext
4631 if $ac_preproc_ok; then
4632   break
4633 fi
4634
4635     done
4636     ac_cv_prog_CPP=$CPP
4637
4638 fi
4639   CPP=$ac_cv_prog_CPP
4640 else
4641   ac_cv_prog_CPP=$CPP
4642 fi
4643 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4644 $as_echo "$CPP" >&6; }
4645 ac_preproc_ok=false
4646 for ac_c_preproc_warn_flag in '' yes
4647 do
4648   # Use a header file that comes with gcc, so configuring glibc
4649   # with a fresh cross-compiler works.
4650   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651   # <limits.h> exists even on freestanding compilers.
4652   # On the NeXT, cc -E runs the code through the compiler's parser,
4653   # not just through cpp. "Syntax error" is here to catch this case.
4654   cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660 #ifdef __STDC__
4661 # include <limits.h>
4662 #else
4663 # include <assert.h>
4664 #endif
4665                      Syntax error
4666 _ACEOF
4667 if { (ac_try="$ac_cpp conftest.$ac_ext"
4668 case "(($ac_try" in
4669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670   *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673 $as_echo "$ac_try_echo") >&5
4674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4675   ac_status=$?
4676   grep -v '^ *+' conftest.er1 >conftest.err
4677   rm -f conftest.er1
4678   cat conftest.err >&5
4679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } >/dev/null && {
4681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4682          test ! -s conftest.err
4683        }; then
4684   :
4685 else
4686   $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689   # Broken: fails on valid input.
4690 continue
4691 fi
4692
4693 rm -f conftest.err conftest.$ac_ext
4694
4695   # OK, works on sane cases.  Now check whether nonexistent headers
4696   # can be detected and how.
4697   cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703 #include <ac_nonexistent.h>
4704 _ACEOF
4705 if { (ac_try="$ac_cpp conftest.$ac_ext"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4713   ac_status=$?
4714   grep -v '^ *+' conftest.er1 >conftest.err
4715   rm -f conftest.er1
4716   cat conftest.err >&5
4717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); } >/dev/null && {
4719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4720          test ! -s conftest.err
4721        }; then
4722   # Broken: success on invalid input.
4723 continue
4724 else
4725   $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728   # Passes both tests.
4729 ac_preproc_ok=:
4730 break
4731 fi
4732
4733 rm -f conftest.err conftest.$ac_ext
4734
4735 done
4736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4737 rm -f conftest.err conftest.$ac_ext
4738 if $ac_preproc_ok; then
4739   :
4740 else
4741   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4743 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4744 See \`config.log' for more details." >&5
4745 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4746 See \`config.log' for more details." >&2;}
4747    { (exit 1); exit 1; }; }; }
4748 fi
4749
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755
4756
4757 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 $as_echo_n "checking for ANSI C header files... " >&6; }
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760   $as_echo_n "(cached) " >&6
4761 else
4762   cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 #include <stdlib.h>
4769 #include <stdarg.h>
4770 #include <string.h>
4771 #include <float.h>
4772
4773 int
4774 main ()
4775 {
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4783 case "(($ac_try" in
4784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785   *) ac_try_echo=$ac_try;;
4786 esac
4787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4788 $as_echo "$ac_try_echo") >&5
4789   (eval "$ac_compile") 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } && {
4796          test -z "$ac_c_werror_flag" ||
4797          test ! -s conftest.err
4798        } && test -s conftest.$ac_objext; then
4799   ac_cv_header_stdc=yes
4800 else
4801   $as_echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804         ac_cv_header_stdc=no
4805 fi
4806
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808
4809 if test $ac_cv_header_stdc = yes; then
4810   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4811   cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h.  */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h.  */
4817 #include <string.h>
4818
4819 _ACEOF
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821   $EGREP "memchr" >/dev/null 2>&1; then
4822   :
4823 else
4824   ac_cv_header_stdc=no
4825 fi
4826 rm -f conftest*
4827
4828 fi
4829
4830 if test $ac_cv_header_stdc = yes; then
4831   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4832   cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h.  */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h.  */
4838 #include <stdlib.h>
4839
4840 _ACEOF
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842   $EGREP "free" >/dev/null 2>&1; then
4843   :
4844 else
4845   ac_cv_header_stdc=no
4846 fi
4847 rm -f conftest*
4848
4849 fi
4850
4851 if test $ac_cv_header_stdc = yes; then
4852   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4853   if test "$cross_compiling" = yes; then
4854   :
4855 else
4856   cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862 #include <ctype.h>
4863 #include <stdlib.h>
4864 #if ((' ' & 0x0FF) == 0x020)
4865 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4866 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4867 #else
4868 # define ISLOWER(c) \
4869                    (('a' <= (c) && (c) <= 'i') \
4870                      || ('j' <= (c) && (c) <= 'r') \
4871                      || ('s' <= (c) && (c) <= 'z'))
4872 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4873 #endif
4874
4875 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4876 int
4877 main ()
4878 {
4879   int i;
4880   for (i = 0; i < 256; i++)
4881     if (XOR (islower (i), ISLOWER (i))
4882         || toupper (i) != TOUPPER (i))
4883       return 2;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest$ac_exeext
4888 if { (ac_try="$ac_link"
4889 case "(($ac_try" in
4890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891   *) ac_try_echo=$ac_try;;
4892 esac
4893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894 $as_echo "$ac_try_echo") >&5
4895   (eval "$ac_link") 2>&5
4896   ac_status=$?
4897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4899   { (case "(($ac_try" in
4900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901   *) ac_try_echo=$ac_try;;
4902 esac
4903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4904 $as_echo "$ac_try_echo") >&5
4905   (eval "$ac_try") 2>&5
4906   ac_status=$?
4907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   :
4910 else
4911   $as_echo "$as_me: program exited with status $ac_status" >&5
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 ( exit $ac_status )
4916 ac_cv_header_stdc=no
4917 fi
4918 rm -rf conftest.dSYM
4919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4920 fi
4921
4922
4923 fi
4924 fi
4925 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4926 $as_echo "$ac_cv_header_stdc" >&6; }
4927 if test $ac_cv_header_stdc = yes; then
4928
4929 cat >>confdefs.h <<\_ACEOF
4930 #define STDC_HEADERS 1
4931 _ACEOF
4932
4933 fi
4934
4935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4946                   inttypes.h stdint.h unistd.h
4947 do
4948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4950 $as_echo_n "checking for $ac_header... " >&6; }
4951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4952   $as_echo_n "(cached) " >&6
4953 else
4954   cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960 $ac_includes_default
4961
4962 #include <$ac_header>
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4966 case "(($ac_try" in
4967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968   *) ac_try_echo=$ac_try;;
4969 esac
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972   (eval "$ac_compile") 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } && {
4979          test -z "$ac_c_werror_flag" ||
4980          test ! -s conftest.err
4981        } && test -s conftest.$ac_objext; then
4982   eval "$as_ac_Header=yes"
4983 else
4984   $as_echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987         eval "$as_ac_Header=no"
4988 fi
4989
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 fi
4992 ac_res=`eval 'as_val=${'$as_ac_Header'}
4993                  $as_echo "$as_val"'`
4994                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4995 $as_echo "$ac_res" >&6; }
4996 as_val=`eval 'as_val=${'$as_ac_Header'}
4997                  $as_echo "$as_val"'`
4998    if test "x$as_val" = x""yes; then
4999   cat >>confdefs.h <<_ACEOF
5000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001 _ACEOF
5002
5003 fi
5004
5005 done
5006
5007
5008
5009 for ac_header in dlfcn.h
5010 do
5011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 $as_echo_n "checking for $ac_header... " >&6; }
5015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016   $as_echo_n "(cached) " >&6
5017 fi
5018 ac_res=`eval 'as_val=${'$as_ac_Header'}
5019                  $as_echo "$as_val"'`
5020                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5021 $as_echo "$ac_res" >&6; }
5022 else
5023   # Is the header compilable?
5024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5025 $as_echo_n "checking $ac_header usability... " >&6; }
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 $ac_includes_default
5033 #include <$ac_header>
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5037 case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5042 $as_echo "$ac_try_echo") >&5
5043   (eval "$ac_compile") 2>conftest.er1
5044   ac_status=$?
5045   grep -v '^ *+' conftest.er1 >conftest.err
5046   rm -f conftest.er1
5047   cat conftest.err >&5
5048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); } && {
5050          test -z "$ac_c_werror_flag" ||
5051          test ! -s conftest.err
5052        } && test -s conftest.$ac_objext; then
5053   ac_header_compiler=yes
5054 else
5055   $as_echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058         ac_header_compiler=no
5059 fi
5060
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5063 $as_echo "$ac_header_compiler" >&6; }
5064
5065 # Is the header present?
5066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5067 $as_echo_n "checking $ac_header presence... " >&6; }
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #include <$ac_header>
5075 _ACEOF
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5077 case "(($ac_try" in
5078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079   *) ac_try_echo=$ac_try;;
5080 esac
5081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5082 $as_echo "$ac_try_echo") >&5
5083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5084   ac_status=$?
5085   grep -v '^ *+' conftest.er1 >conftest.err
5086   rm -f conftest.er1
5087   cat conftest.err >&5
5088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } >/dev/null && {
5090          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091          test ! -s conftest.err
5092        }; then
5093   ac_header_preproc=yes
5094 else
5095   $as_echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5097
5098   ac_header_preproc=no
5099 fi
5100
5101 rm -f conftest.err conftest.$ac_ext
5102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 $as_echo "$ac_header_preproc" >&6; }
5104
5105 # So?  What about this header?
5106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5107   yes:no: )
5108     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112     ac_header_preproc=yes
5113     ;;
5114   no:yes:* )
5115     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5118 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5119     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5122 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5127     ( cat <<\_ASBOX
5128 ## ------------------------------------- ##
5129 ## Report this to jimi@temporal-wave.com ##
5130 ## ------------------------------------- ##
5131 _ASBOX
5132      ) | sed "s/^/$as_me: WARNING:     /" >&2
5133     ;;
5134 esac
5135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 $as_echo_n "checking for $ac_header... " >&6; }
5137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138   $as_echo_n "(cached) " >&6
5139 else
5140   eval "$as_ac_Header=\$ac_header_preproc"
5141 fi
5142 ac_res=`eval 'as_val=${'$as_ac_Header'}
5143                  $as_echo "$as_val"'`
5144                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5145 $as_echo "$ac_res" >&6; }
5146
5147 fi
5148 as_val=`eval 'as_val=${'$as_ac_Header'}
5149                  $as_echo "$as_val"'`
5150    if test "x$as_val" = x""yes; then
5151   cat >>confdefs.h <<_ACEOF
5152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5153 _ACEOF
5154
5155 fi
5156
5157 done
5158
5159 ac_ext=cpp
5160 ac_cpp='$CXXCPP $CPPFLAGS'
5161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5164 if test -z "$CXX"; then
5165   if test -n "$CCC"; then
5166     CXX=$CCC
5167   else
5168     if test -n "$ac_tool_prefix"; then
5169   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5170   do
5171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_CXX+set}" = set; then
5176   $as_echo_n "(cached) " >&6
5177 else
5178   if test -n "$CXX"; then
5179   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   for ac_exec_ext in '' $ac_executable_extensions; do
5187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 CXX=$ac_cv_prog_CXX
5199 if test -n "$CXX"; then
5200   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5201 $as_echo "$CXX" >&6; }
5202 else
5203   { $as_echo "$as_me:$LINENO: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206
5207
5208     test -n "$CXX" && break
5209   done
5210 fi
5211 if test -z "$CXX"; then
5212   ac_ct_CXX=$CXX
5213   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5214 do
5215   # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5220   $as_echo_n "(cached) " >&6
5221 else
5222   if test -n "$ac_ct_CXX"; then
5223   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230   for ac_exec_ext in '' $ac_executable_extensions; do
5231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232     ac_cv_prog_ac_ct_CXX="$ac_prog"
5233     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234     break 2
5235   fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5243 if test -n "$ac_ct_CXX"; then
5244   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5245 $as_echo "$ac_ct_CXX" >&6; }
5246 else
5247   { $as_echo "$as_me:$LINENO: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251
5252   test -n "$ac_ct_CXX" && break
5253 done
5254
5255   if test "x$ac_ct_CXX" = x; then
5256     CXX="g++"
5257   else
5258     case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264     CXX=$ac_ct_CXX
5265   fi
5266 fi
5267
5268   fi
5269 fi
5270 # Provide some information about the compiler.
5271 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5272 set X $ac_compile
5273 ac_compiler=$2
5274 { (ac_try="$ac_compiler --version >&5"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5280 $as_echo "$ac_try_echo") >&5
5281   (eval "$ac_compiler --version >&5") 2>&5
5282   ac_status=$?
5283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }
5285 { (ac_try="$ac_compiler -v >&5"
5286 case "(($ac_try" in
5287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288   *) ac_try_echo=$ac_try;;
5289 esac
5290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5291 $as_echo "$ac_try_echo") >&5
5292   (eval "$ac_compiler -v >&5") 2>&5
5293   ac_status=$?
5294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }
5296 { (ac_try="$ac_compiler -V >&5"
5297 case "(($ac_try" in
5298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299   *) ac_try_echo=$ac_try;;
5300 esac
5301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5302 $as_echo "$ac_try_echo") >&5
5303   (eval "$ac_compiler -V >&5") 2>&5
5304   ac_status=$?
5305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }
5307
5308 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5309 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5310 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5311   $as_echo_n "(cached) " >&6
5312 else
5313   cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h.  */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h.  */
5319
5320 int
5321 main ()
5322 {
5323 #ifndef __GNUC__
5324        choke me
5325 #endif
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335   *) ac_try_echo=$ac_try;;
5336 esac
5337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5338 $as_echo "$ac_try_echo") >&5
5339   (eval "$ac_compile") 2>conftest.er1
5340   ac_status=$?
5341   grep -v '^ *+' conftest.er1 >conftest.err
5342   rm -f conftest.er1
5343   cat conftest.err >&5
5344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } && {
5346          test -z "$ac_cxx_werror_flag" ||
5347          test ! -s conftest.err
5348        } && test -s conftest.$ac_objext; then
5349   ac_compiler_gnu=yes
5350 else
5351   $as_echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354         ac_compiler_gnu=no
5355 fi
5356
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5359
5360 fi
5361 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5362 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5363 if test $ac_compiler_gnu = yes; then
5364   GXX=yes
5365 else
5366   GXX=
5367 fi
5368 ac_test_CXXFLAGS=${CXXFLAGS+set}
5369 ac_save_CXXFLAGS=$CXXFLAGS
5370 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5371 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5372 if test "${ac_cv_prog_cxx_g+set}" = set; then
5373   $as_echo_n "(cached) " >&6
5374 else
5375   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5376    ac_cxx_werror_flag=yes
5377    ac_cv_prog_cxx_g=no
5378    CXXFLAGS="-g"
5379    cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385
5386 int
5387 main ()
5388 {
5389
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398   *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402   (eval "$ac_compile") 2>conftest.er1
5403   ac_status=$?
5404   grep -v '^ *+' conftest.er1 >conftest.err
5405   rm -f conftest.er1
5406   cat conftest.err >&5
5407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } && {
5409          test -z "$ac_cxx_werror_flag" ||
5410          test ! -s conftest.err
5411        } && test -s conftest.$ac_objext; then
5412   ac_cv_prog_cxx_g=yes
5413 else
5414   $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417         CXXFLAGS=""
5418       cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h.  */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h.  */
5424
5425 int
5426 main ()
5427 {
5428
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437   *) ac_try_echo=$ac_try;;
5438 esac
5439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5440 $as_echo "$ac_try_echo") >&5
5441   (eval "$ac_compile") 2>conftest.er1
5442   ac_status=$?
5443   grep -v '^ *+' conftest.er1 >conftest.err
5444   rm -f conftest.er1
5445   cat conftest.err >&5
5446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); } && {
5448          test -z "$ac_cxx_werror_flag" ||
5449          test ! -s conftest.err
5450        } && test -s conftest.$ac_objext; then
5451   :
5452 else
5453   $as_echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5457          CXXFLAGS="-g"
5458          cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h.  */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h.  */
5464
5465 int
5466 main ()
5467 {
5468
5469   ;
5470   return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477   *) ac_try_echo=$ac_try;;
5478 esac
5479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480 $as_echo "$ac_try_echo") >&5
5481   (eval "$ac_compile") 2>conftest.er1
5482   ac_status=$?
5483   grep -v '^ *+' conftest.er1 >conftest.err
5484   rm -f conftest.er1
5485   cat conftest.err >&5
5486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); } && {
5488          test -z "$ac_cxx_werror_flag" ||
5489          test ! -s conftest.err
5490        } && test -s conftest.$ac_objext; then
5491   ac_cv_prog_cxx_g=yes
5492 else
5493   $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496
5497 fi
5498
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 fi
5501
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 fi
5504
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5507 fi
5508 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5510 if test "$ac_test_CXXFLAGS" = set; then
5511   CXXFLAGS=$ac_save_CXXFLAGS
5512 elif test $ac_cv_prog_cxx_g = yes; then
5513   if test "$GXX" = yes; then
5514     CXXFLAGS="-g -O2"
5515   else
5516     CXXFLAGS="-g"
5517   fi
5518 else
5519   if test "$GXX" = yes; then
5520     CXXFLAGS="-O2"
5521   else
5522     CXXFLAGS=
5523   fi
5524 fi
5525 ac_ext=cpp
5526 ac_cpp='$CXXCPP $CPPFLAGS'
5527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5530
5531 depcc="$CXX"  am_compiler_list=
5532
5533 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5534 $as_echo_n "checking dependency style of $depcc... " >&6; }
5535 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5536   $as_echo_n "(cached) " >&6
5537 else
5538   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539   # We make a subdir and do the tests there.  Otherwise we can end up
5540   # making bogus files that we don't know about and never remove.  For
5541   # instance it was reported that on HP-UX the gcc test will end up
5542   # making a dummy file named `D' -- because `-MD' means `put the output
5543   # in D'.
5544   mkdir conftest.dir
5545   # Copy depcomp to subdir because otherwise we won't find it if we're
5546   # using a relative directory.
5547   cp "$am_depcomp" conftest.dir
5548   cd conftest.dir
5549   # We will build objects and dependencies in a subdirectory because
5550   # it helps to detect inapplicable dependency modes.  For instance
5551   # both Tru64's cc and ICC support -MD to output dependencies as a
5552   # side effect of compilation, but ICC will put the dependencies in
5553   # the current directory while Tru64 will put them in the object
5554   # directory.
5555   mkdir sub
5556
5557   am_cv_CXX_dependencies_compiler_type=none
5558   if test "$am_compiler_list" = ""; then
5559      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5560   fi
5561   for depmode in $am_compiler_list; do
5562     # Setup a source with many dependencies, because some compilers
5563     # like to wrap large dependency lists on column 80 (with \), and
5564     # we should not choose a depcomp mode which is confused by this.
5565     #
5566     # We need to recreate these files for each test, as the compiler may
5567     # overwrite some of them when testing with obscure command lines.
5568     # This happens at least with the AIX C compiler.
5569     : > sub/conftest.c
5570     for i in 1 2 3 4 5 6; do
5571       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5573       # Solaris 8's {/usr,}/bin/sh.
5574       touch sub/conftst$i.h
5575     done
5576     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
5578     case $depmode in
5579     nosideeffect)
5580       # after this tag, mechanisms are not by side-effect, so they'll
5581       # only be used when explicitly requested
5582       if test "x$enable_dependency_tracking" = xyes; then
5583         continue
5584       else
5585         break
5586       fi
5587       ;;
5588     none) break ;;
5589     esac
5590     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5591     # mode.  It turns out that the SunPro C++ compiler does not properly
5592     # handle `-M -o', and we need to detect this.
5593     if depmode=$depmode \
5594        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5595        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5596        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5597          >/dev/null 2>conftest.err &&
5598        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5599        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5600        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5601       # icc doesn't choke on unknown options, it will just issue warnings
5602       # or remarks (even with -Werror).  So we grep stderr for any message
5603       # that says an option was ignored or not supported.
5604       # When given -MP, icc 7.0 and 7.1 complain thusly:
5605       #   icc: Command line warning: ignoring option '-M'; no argument required
5606       # The diagnosis changed in icc 8.0:
5607       #   icc: Command line remark: option '-MP' not supported
5608       if (grep 'ignoring option' conftest.err ||
5609           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5610         am_cv_CXX_dependencies_compiler_type=$depmode
5611         break
5612       fi
5613     fi
5614   done
5615
5616   cd ..
5617   rm -rf conftest.dir
5618 else
5619   am_cv_CXX_dependencies_compiler_type=none
5620 fi
5621
5622 fi
5623 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5624 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5625 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5626
5627
5628
5629 if
5630   test "x$enable_dependency_tracking" != xno \
5631   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5632   am__fastdepCXX_TRUE=
5633   am__fastdepCXX_FALSE='#'
5634 else
5635   am__fastdepCXX_TRUE='#'
5636   am__fastdepCXX_FALSE=
5637 fi
5638
5639
5640
5641
5642 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5643     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5644     (test "X$CXX" != "Xg++"))) ; then
5645   ac_ext=cpp
5646 ac_cpp='$CXXCPP $CPPFLAGS'
5647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5650 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5651 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5652 if test -z "$CXXCPP"; then
5653   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5654   $as_echo_n "(cached) " >&6
5655 else
5656       # Double quotes because CXXCPP needs to be expanded
5657     for CXXCPP in "$CXX -E" "/lib/cpp"
5658     do
5659       ac_preproc_ok=false
5660 for ac_cxx_preproc_warn_flag in '' yes
5661 do
5662   # Use a header file that comes with gcc, so configuring glibc
5663   # with a fresh cross-compiler works.
5664   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665   # <limits.h> exists even on freestanding compilers.
5666   # On the NeXT, cc -E runs the code through the compiler's parser,
5667   # not just through cpp. "Syntax error" is here to catch this case.
5668   cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h.  */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h.  */
5674 #ifdef __STDC__
5675 # include <limits.h>
5676 #else
5677 # include <assert.h>
5678 #endif
5679                      Syntax error
5680 _ACEOF
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5682 case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687 $as_echo "$ac_try_echo") >&5
5688   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689   ac_status=$?
5690   grep -v '^ *+' conftest.er1 >conftest.err
5691   rm -f conftest.er1
5692   cat conftest.err >&5
5693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } >/dev/null && {
5695          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5696          test ! -s conftest.err
5697        }; then
5698   :
5699 else
5700   $as_echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703   # Broken: fails on valid input.
5704 continue
5705 fi
5706
5707 rm -f conftest.err conftest.$ac_ext
5708
5709   # OK, works on sane cases.  Now check whether nonexistent headers
5710   # can be detected and how.
5711   cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717 #include <ac_nonexistent.h>
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } >/dev/null && {
5733          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5734          test ! -s conftest.err
5735        }; then
5736   # Broken: success on invalid input.
5737 continue
5738 else
5739   $as_echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742   # Passes both tests.
5743 ac_preproc_ok=:
5744 break
5745 fi
5746
5747 rm -f conftest.err conftest.$ac_ext
5748
5749 done
5750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5751 rm -f conftest.err conftest.$ac_ext
5752 if $ac_preproc_ok; then
5753   break
5754 fi
5755
5756     done
5757     ac_cv_prog_CXXCPP=$CXXCPP
5758
5759 fi
5760   CXXCPP=$ac_cv_prog_CXXCPP
5761 else
5762   ac_cv_prog_CXXCPP=$CXXCPP
5763 fi
5764 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5765 $as_echo "$CXXCPP" >&6; }
5766 ac_preproc_ok=false
5767 for ac_cxx_preproc_warn_flag in '' yes
5768 do
5769   # Use a header file that comes with gcc, so configuring glibc
5770   # with a fresh cross-compiler works.
5771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5772   # <limits.h> exists even on freestanding compilers.
5773   # On the NeXT, cc -E runs the code through the compiler's parser,
5774   # not just through cpp. "Syntax error" is here to catch this case.
5775   cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 #ifdef __STDC__
5782 # include <limits.h>
5783 #else
5784 # include <assert.h>
5785 #endif
5786                      Syntax error
5787 _ACEOF
5788 if { (ac_try="$ac_cpp conftest.$ac_ext"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5794 $as_echo "$ac_try_echo") >&5
5795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null && {
5802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803          test ! -s conftest.err
5804        }; then
5805   :
5806 else
5807   $as_echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810   # Broken: fails on valid input.
5811 continue
5812 fi
5813
5814 rm -f conftest.err conftest.$ac_ext
5815
5816   # OK, works on sane cases.  Now check whether nonexistent headers
5817   # can be detected and how.
5818   cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824 #include <ac_nonexistent.h>
5825 _ACEOF
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 case "(($ac_try" in
5828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829   *) ac_try_echo=$ac_try;;
5830 esac
5831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834   ac_status=$?
5835   grep -v '^ *+' conftest.er1 >conftest.err
5836   rm -f conftest.er1
5837   cat conftest.err >&5
5838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); } >/dev/null && {
5840          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5841          test ! -s conftest.err
5842        }; then
5843   # Broken: success on invalid input.
5844 continue
5845 else
5846   $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849   # Passes both tests.
5850 ac_preproc_ok=:
5851 break
5852 fi
5853
5854 rm -f conftest.err conftest.$ac_ext
5855
5856 done
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then
5860   :
5861 else
5862   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5865 See \`config.log' for more details." >&5
5866 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5867 See \`config.log' for more details." >&2;}
5868    { (exit 1); exit 1; }; }; }
5869 fi
5870
5871 ac_ext=cpp
5872 ac_cpp='$CXXCPP $CPPFLAGS'
5873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5876
5877 fi
5878
5879
5880 ac_ext=f
5881 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5882 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5884 if test -n "$ac_tool_prefix"; then
5885   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
5886   do
5887     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_F77+set}" = set; then
5892   $as_echo_n "(cached) " >&6
5893 else
5894   if test -n "$F77"; then
5895   ac_cv_prog_F77="$F77" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5905     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 F77=$ac_cv_prog_F77
5915 if test -n "$F77"; then
5916   { $as_echo "$as_me:$LINENO: result: $F77" >&5
5917 $as_echo "$F77" >&6; }
5918 else
5919   { $as_echo "$as_me:$LINENO: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924     test -n "$F77" && break
5925   done
5926 fi
5927 if test -z "$F77"; then
5928   ac_ct_F77=$F77
5929   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
5930 do
5931   # Extract the first word of "$ac_prog", so it can be a program name with args.
5932 set dummy $ac_prog; ac_word=$2
5933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5936   $as_echo_n "(cached) " >&6
5937 else
5938   if test -n "$ac_ct_F77"; then
5939   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948     ac_cv_prog_ac_ct_F77="$ac_prog"
5949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5959 if test -n "$ac_ct_F77"; then
5960   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5961 $as_echo "$ac_ct_F77" >&6; }
5962 else
5963   { $as_echo "$as_me:$LINENO: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966
5967
5968   test -n "$ac_ct_F77" && break
5969 done
5970
5971   if test "x$ac_ct_F77" = x; then
5972     F77=""
5973   else
5974     case $cross_compiling:$ac_tool_warned in
5975 yes:)
5976 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978 ac_tool_warned=yes ;;
5979 esac
5980     F77=$ac_ct_F77
5981   fi
5982 fi
5983
5984
5985 # Provide some information about the compiler.
5986 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5987 set X $ac_compile
5988 ac_compiler=$2
5989 { (ac_try="$ac_compiler --version >&5"
5990 case "(($ac_try" in
5991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992   *) ac_try_echo=$ac_try;;
5993 esac
5994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5995 $as_echo "$ac_try_echo") >&5
5996   (eval "$ac_compiler --version >&5") 2>&5
5997   ac_status=$?
5998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }
6000 { (ac_try="$ac_compiler -v >&5"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007   (eval "$ac_compiler -v >&5") 2>&5
6008   ac_status=$?
6009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }
6011 { (ac_try="$ac_compiler -V >&5"
6012 case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018   (eval "$ac_compiler -V >&5") 2>&5
6019   ac_status=$?
6020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }
6022 rm -f a.out
6023
6024 # If we don't use `.F' as extension, the preprocessor is not run on the
6025 # input file.  (Note that this only needs to work for GNU compilers.)
6026 ac_save_ext=$ac_ext
6027 ac_ext=F
6028 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6029 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6030 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6031   $as_echo_n "(cached) " >&6
6032 else
6033   cat >conftest.$ac_ext <<_ACEOF
6034       program main
6035 #ifndef __GNUC__
6036        choke me
6037 #endif
6038
6039       end
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6048 $as_echo "$ac_try_echo") >&5
6049   (eval "$ac_compile") 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } && {
6056          test -z "$ac_f77_werror_flag" ||
6057          test ! -s conftest.err
6058        } && test -s conftest.$ac_objext; then
6059   ac_compiler_gnu=yes
6060 else
6061   $as_echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064         ac_compiler_gnu=no
6065 fi
6066
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6069
6070 fi
6071 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6072 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6073 ac_ext=$ac_save_ext
6074 ac_test_FFLAGS=${FFLAGS+set}
6075 ac_save_FFLAGS=$FFLAGS
6076 FFLAGS=
6077 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6078 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6079 if test "${ac_cv_prog_f77_g+set}" = set; then
6080   $as_echo_n "(cached) " >&6
6081 else
6082   FFLAGS=-g
6083 cat >conftest.$ac_ext <<_ACEOF
6084       program main
6085
6086       end
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092   *) ac_try_echo=$ac_try;;
6093 esac
6094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095 $as_echo "$ac_try_echo") >&5
6096   (eval "$ac_compile") 2>conftest.er1
6097   ac_status=$?
6098   grep -v '^ *+' conftest.er1 >conftest.err
6099   rm -f conftest.er1
6100   cat conftest.err >&5
6101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); } && {
6103          test -z "$ac_f77_werror_flag" ||
6104          test ! -s conftest.err
6105        } && test -s conftest.$ac_objext; then
6106   ac_cv_prog_f77_g=yes
6107 else
6108   $as_echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111         ac_cv_prog_f77_g=no
6112 fi
6113
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115
6116 fi
6117 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6118 $as_echo "$ac_cv_prog_f77_g" >&6; }
6119 if test "$ac_test_FFLAGS" = set; then
6120   FFLAGS=$ac_save_FFLAGS
6121 elif test $ac_cv_prog_f77_g = yes; then
6122   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6123     FFLAGS="-g -O2"
6124   else
6125     FFLAGS="-g"
6126   fi
6127 else
6128   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6129     FFLAGS="-O2"
6130   else
6131     FFLAGS=
6132   fi
6133 fi
6134
6135 if test $ac_compiler_gnu = yes; then
6136   G77=yes
6137 else
6138   G77=
6139 fi
6140 ac_ext=c
6141 ac_cpp='$CPP $CPPFLAGS'
6142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6145
6146
6147
6148 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6149
6150 # find the maximum length of command line arguments
6151 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6153 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6154   $as_echo_n "(cached) " >&6
6155 else
6156     i=0
6157   teststring="ABCD"
6158
6159   case $build_os in
6160   msdosdjgpp*)
6161     # On DJGPP, this test can blow up pretty badly due to problems in libc
6162     # (any single argument exceeding 2000 bytes causes a buffer overrun
6163     # during glob expansion).  Even if it were fixed, the result of this
6164     # check would be larger than it should be.
6165     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6166     ;;
6167
6168   gnu*)
6169     # Under GNU Hurd, this test is not required because there is
6170     # no limit to the length of command line arguments.
6171     # Libtool will interpret -1 as no limit whatsoever
6172     lt_cv_sys_max_cmd_len=-1;
6173     ;;
6174
6175   cygwin* | mingw*)
6176     # On Win9x/ME, this test blows up -- it succeeds, but takes
6177     # about 5 minutes as the teststring grows exponentially.
6178     # Worse, since 9x/ME are not pre-emptively multitasking,
6179     # you end up with a "frozen" computer, even though with patience
6180     # the test eventually succeeds (with a max line length of 256k).
6181     # Instead, let's just punt: use the minimum linelength reported by
6182     # all of the supported platforms: 8192 (on NT/2K/XP).
6183     lt_cv_sys_max_cmd_len=8192;
6184     ;;
6185
6186   amigaos*)
6187     # On AmigaOS with pdksh, this test takes hours, literally.
6188     # So we just punt and use a minimum line length of 8192.
6189     lt_cv_sys_max_cmd_len=8192;
6190     ;;
6191
6192   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6193     # This has been around since 386BSD, at least.  Likely further.
6194     if test -x /sbin/sysctl; then
6195       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6196     elif test -x /usr/sbin/sysctl; then
6197       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6198     else
6199       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6200     fi
6201     # And add a safety zone
6202     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6203     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6204     ;;
6205
6206   interix*)
6207     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6208     lt_cv_sys_max_cmd_len=196608
6209     ;;
6210
6211   osf*)
6212     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6213     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6214     # nice to cause kernel panics so lets avoid the loop below.
6215     # First set a reasonable default.
6216     lt_cv_sys_max_cmd_len=16384
6217     #
6218     if test -x /sbin/sysconfig; then
6219       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6220         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6221       esac
6222     fi
6223     ;;
6224   sco3.2v5*)
6225     lt_cv_sys_max_cmd_len=102400
6226     ;;
6227   sysv5* | sco5v6* | sysv4.2uw2*)
6228     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6229     if test -n "$kargmax"; then
6230       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6231     else
6232       lt_cv_sys_max_cmd_len=32768
6233     fi
6234     ;;
6235   *)
6236     # If test is not a shell built-in, we'll probably end up computing a
6237     # maximum length that is only half of the actual maximum length, but
6238     # we can't tell.
6239     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6240     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6241                = "XX$teststring") >/dev/null 2>&1 &&
6242             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6243             lt_cv_sys_max_cmd_len=$new_result &&
6244             test $i != 17 # 1/2 MB should be enough
6245     do
6246       i=`expr $i + 1`
6247       teststring=$teststring$teststring
6248     done
6249     teststring=
6250     # Add a significant safety factor because C++ compilers can tack on massive
6251     # amounts of additional arguments before passing them to the linker.
6252     # It appears as though 1/2 is a usable value.
6253     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6254     ;;
6255   esac
6256
6257 fi
6258
6259 if test -n $lt_cv_sys_max_cmd_len ; then
6260   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6261 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6262 else
6263   { $as_echo "$as_me:$LINENO: result: none" >&5
6264 $as_echo "none" >&6; }
6265 fi
6266
6267
6268
6269
6270 # Check for command to grab the raw symbol name followed by C symbol from nm.
6271 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6272 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6273 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6274   $as_echo_n "(cached) " >&6
6275 else
6276
6277 # These are sane defaults that work on at least a few old systems.
6278 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6279
6280 # Character class describing NM global symbol codes.
6281 symcode='[BCDEGRST]'
6282
6283 # Regexp to match symbols that can be accessed directly from C.
6284 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6285
6286 # Transform an extracted symbol line into a proper C declaration
6287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6288
6289 # Transform an extracted symbol line into symbol name and symbol address
6290 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'"
6291
6292 # Define system-specific variables.
6293 case $host_os in
6294 aix*)
6295   symcode='[BCDT]'
6296   ;;
6297 cygwin* | mingw* | pw32*)
6298   symcode='[ABCDGISTW]'
6299   ;;
6300 hpux*) # Its linker distinguishes data from code symbols
6301   if test "$host_cpu" = ia64; then
6302     symcode='[ABCDEGRST]'
6303   fi
6304   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6305   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'"
6306   ;;
6307 linux*)
6308   if test "$host_cpu" = ia64; then
6309     symcode='[ABCDGIRSTW]'
6310     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311     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'"
6312   fi
6313   ;;
6314 irix* | nonstopux*)
6315   symcode='[BCDEGRST]'
6316   ;;
6317 osf*)
6318   symcode='[BCDEGQRST]'
6319   ;;
6320 solaris*)
6321   symcode='[BDRT]'
6322   ;;
6323 sco3.2v5*)
6324   symcode='[DT]'
6325   ;;
6326 sysv4.2uw2*)
6327   symcode='[DT]'
6328   ;;
6329 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6330   symcode='[ABDT]'
6331   ;;
6332 sysv4)
6333   symcode='[DFNSTU]'
6334   ;;
6335 esac
6336
6337 # Handle CRLF in mingw tool chain
6338 opt_cr=
6339 case $build_os in
6340 mingw*)
6341   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6342   ;;
6343 esac
6344
6345 # If we're using GNU nm, then use its standard symbol codes.
6346 case `$NM -V 2>&1` in
6347 *GNU* | *'with BFD'*)
6348   symcode='[ABCDGIRSTW]' ;;
6349 esac
6350
6351 # Try without a prefix undercore, then with it.
6352 for ac_symprfx in "" "_"; do
6353
6354   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6355   symxfrm="\\1 $ac_symprfx\\2 \\2"
6356
6357   # Write the raw and C identifiers.
6358   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6359
6360   # Check to see that the pipe works correctly.
6361   pipe_works=no
6362
6363   rm -f conftest*
6364   cat > conftest.$ac_ext <<EOF
6365 #ifdef __cplusplus
6366 extern "C" {
6367 #endif
6368 char nm_test_var;
6369 void nm_test_func(){}
6370 #ifdef __cplusplus
6371 }
6372 #endif
6373 int main(){nm_test_var='a';nm_test_func();return(0);}
6374 EOF
6375
6376   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377   (eval $ac_compile) 2>&5
6378   ac_status=$?
6379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; then
6381     # Now try to grab the symbols.
6382     nlist=conftest.nm
6383     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6384   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6385   ac_status=$?
6386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } && test -s "$nlist"; then
6388       # Try sorting and uniquifying the output.
6389       if sort "$nlist" | uniq > "$nlist"T; then
6390         mv -f "$nlist"T "$nlist"
6391       else
6392         rm -f "$nlist"T
6393       fi
6394
6395       # Make sure that we snagged all the symbols we need.
6396       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6397         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6398           cat <<EOF > conftest.$ac_ext
6399 #ifdef __cplusplus
6400 extern "C" {
6401 #endif
6402
6403 EOF
6404           # Now generate the symbol file.
6405           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6406
6407           cat <<EOF >> conftest.$ac_ext
6408 #if defined (__STDC__) && __STDC__
6409 # define lt_ptr_t void *
6410 #else
6411 # define lt_ptr_t char *
6412 # define const
6413 #endif
6414
6415 /* The mapping between symbol names and symbols. */
6416 const struct {
6417   const char *name;
6418   lt_ptr_t address;
6419 }
6420 lt_preloaded_symbols[] =
6421 {
6422 EOF
6423           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6424           cat <<\EOF >> conftest.$ac_ext
6425   {0, (lt_ptr_t) 0}
6426 };
6427
6428 #ifdef __cplusplus
6429 }
6430 #endif
6431 EOF
6432           # Now try linking the two files.
6433           mv conftest.$ac_objext conftstm.$ac_objext
6434           lt_save_LIBS="$LIBS"
6435           lt_save_CFLAGS="$CFLAGS"
6436           LIBS="conftstm.$ac_objext"
6437           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6438           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439   (eval $ac_link) 2>&5
6440   ac_status=$?
6441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6443             pipe_works=yes
6444           fi
6445           LIBS="$lt_save_LIBS"
6446           CFLAGS="$lt_save_CFLAGS"
6447         else
6448           echo "cannot find nm_test_func in $nlist" >&5
6449         fi
6450       else
6451         echo "cannot find nm_test_var in $nlist" >&5
6452       fi
6453     else
6454       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6455     fi
6456   else
6457     echo "$progname: failed program was:" >&5
6458     cat conftest.$ac_ext >&5
6459   fi
6460   rm -f conftest* conftst*
6461
6462   # Do not use the global_symbol_pipe unless it works.
6463   if test "$pipe_works" = yes; then
6464     break
6465   else
6466     lt_cv_sys_global_symbol_pipe=
6467   fi
6468 done
6469
6470 fi
6471
6472 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6473   lt_cv_sys_global_symbol_to_cdecl=
6474 fi
6475 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6476   { $as_echo "$as_me:$LINENO: result: failed" >&5
6477 $as_echo "failed" >&6; }
6478 else
6479   { $as_echo "$as_me:$LINENO: result: ok" >&5
6480 $as_echo "ok" >&6; }
6481 fi
6482
6483 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6484 $as_echo_n "checking for objdir... " >&6; }
6485 if test "${lt_cv_objdir+set}" = set; then
6486   $as_echo_n "(cached) " >&6
6487 else
6488   rm -f .libs 2>/dev/null
6489 mkdir .libs 2>/dev/null
6490 if test -d .libs; then
6491   lt_cv_objdir=.libs
6492 else
6493   # MS-DOS does not allow filenames that begin with a dot.
6494   lt_cv_objdir=_libs
6495 fi
6496 rmdir .libs 2>/dev/null
6497 fi
6498 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6499 $as_echo "$lt_cv_objdir" >&6; }
6500 objdir=$lt_cv_objdir
6501
6502
6503
6504
6505
6506 case $host_os in
6507 aix3*)
6508   # AIX sometimes has problems with the GCC collect2 program.  For some
6509   # reason, if we set the COLLECT_NAMES environment variable, the problems
6510   # vanish in a puff of smoke.
6511   if test "X${COLLECT_NAMES+set}" != Xset; then
6512     COLLECT_NAMES=
6513     export COLLECT_NAMES
6514   fi
6515   ;;
6516 esac
6517
6518 # Sed substitution that helps us do robust quoting.  It backslashifies
6519 # metacharacters that are still active within double-quoted strings.
6520 Xsed='sed -e 1s/^X//'
6521 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6522
6523 # Same as above, but do not quote variable references.
6524 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6525
6526 # Sed substitution to delay expansion of an escaped shell variable in a
6527 # double_quote_subst'ed string.
6528 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6529
6530 # Sed substitution to avoid accidental globbing in evaled expressions
6531 no_glob_subst='s/\*/\\\*/g'
6532
6533 # Constants:
6534 rm="rm -f"
6535
6536 # Global variables:
6537 default_ofile=libtool
6538 can_build_shared=yes
6539
6540 # All known linkers require a `.a' archive for static linking (except MSVC,
6541 # which needs '.lib').
6542 libext=a
6543 ltmain="$ac_aux_dir/ltmain.sh"
6544 ofile="$default_ofile"
6545 with_gnu_ld="$lt_cv_prog_gnu_ld"
6546
6547 if test -n "$ac_tool_prefix"; then
6548   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}ar; ac_word=$2
6550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_AR+set}" = set; then
6553   $as_echo_n "(cached) " >&6
6554 else
6555   if test -n "$AR"; then
6556   ac_cv_prog_AR="$AR" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563   for ac_exec_ext in '' $ac_executable_extensions; do
6564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565     ac_cv_prog_AR="${ac_tool_prefix}ar"
6566     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 AR=$ac_cv_prog_AR
6576 if test -n "$AR"; then
6577   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6578 $as_echo "$AR" >&6; }
6579 else
6580   { $as_echo "$as_me:$LINENO: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_AR"; then
6587   ac_ct_AR=$AR
6588   # Extract the first word of "ar", so it can be a program name with args.
6589 set dummy ar; ac_word=$2
6590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6593   $as_echo_n "(cached) " >&6
6594 else
6595   if test -n "$ac_ct_AR"; then
6596   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601   IFS=$as_save_IFS
6602   test -z "$as_dir" && as_dir=.
6603   for ac_exec_ext in '' $ac_executable_extensions; do
6604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605     ac_cv_prog_ac_ct_AR="ar"
6606     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6616 if test -n "$ac_ct_AR"; then
6617   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6618 $as_echo "$ac_ct_AR" >&6; }
6619 else
6620   { $as_echo "$as_me:$LINENO: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624   if test "x$ac_ct_AR" = x; then
6625     AR="false"
6626   else
6627     case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633     AR=$ac_ct_AR
6634   fi
6635 else
6636   AR="$ac_cv_prog_AR"
6637 fi
6638
6639 if test -n "$ac_tool_prefix"; then
6640   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645   $as_echo_n "(cached) " >&6
6646 else
6647   if test -n "$RANLIB"; then
6648   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6670 $as_echo "$RANLIB" >&6; }
6671 else
6672   { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676
6677 fi
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679   ac_ct_RANLIB=$RANLIB
6680   # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib; ac_word=$2
6682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6685   $as_echo_n "(cached) " >&6
6686 else
6687   if test -n "$ac_ct_RANLIB"; then
6688   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_prog_ac_ct_RANLIB="ranlib"
6698     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6708 if test -n "$ac_ct_RANLIB"; then
6709   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6710 $as_echo "$ac_ct_RANLIB" >&6; }
6711 else
6712   { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716   if test "x$ac_ct_RANLIB" = x; then
6717     RANLIB=":"
6718   else
6719     case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725     RANLIB=$ac_ct_RANLIB
6726   fi
6727 else
6728   RANLIB="$ac_cv_prog_RANLIB"
6729 fi
6730
6731 if test -n "$ac_tool_prefix"; then
6732   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}strip; ac_word=$2
6734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_STRIP+set}" = set; then
6737   $as_echo_n "(cached) " >&6
6738 else
6739   if test -n "$STRIP"; then
6740   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6750     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 STRIP=$ac_cv_prog_STRIP
6760 if test -n "$STRIP"; then
6761   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6762 $as_echo "$STRIP" >&6; }
6763 else
6764   { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768
6769 fi
6770 if test -z "$ac_cv_prog_STRIP"; then
6771   ac_ct_STRIP=$STRIP
6772   # Extract the first word of "strip", so it can be a program name with args.
6773 set dummy strip; ac_word=$2
6774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6777   $as_echo_n "(cached) " >&6
6778 else
6779   if test -n "$ac_ct_STRIP"; then
6780   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787   for ac_exec_ext in '' $ac_executable_extensions; do
6788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789     ac_cv_prog_ac_ct_STRIP="strip"
6790     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6800 if test -n "$ac_ct_STRIP"; then
6801   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6802 $as_echo "$ac_ct_STRIP" >&6; }
6803 else
6804   { $as_echo "$as_me:$LINENO: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808   if test "x$ac_ct_STRIP" = x; then
6809     STRIP=":"
6810   else
6811     case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817     STRIP=$ac_ct_STRIP
6818   fi
6819 else
6820   STRIP="$ac_cv_prog_STRIP"
6821 fi
6822
6823
6824 old_CC="$CC"
6825 old_CFLAGS="$CFLAGS"
6826
6827 # Set sane defaults for various variables
6828 test -z "$AR" && AR=ar
6829 test -z "$AR_FLAGS" && AR_FLAGS=cru
6830 test -z "$AS" && AS=as
6831 test -z "$CC" && CC=cc
6832 test -z "$LTCC" && LTCC=$CC
6833 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6834 test -z "$DLLTOOL" && DLLTOOL=dlltool
6835 test -z "$LD" && LD=ld
6836 test -z "$LN_S" && LN_S="ln -s"
6837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6838 test -z "$NM" && NM=nm
6839 test -z "$SED" && SED=sed
6840 test -z "$OBJDUMP" && OBJDUMP=objdump
6841 test -z "$RANLIB" && RANLIB=:
6842 test -z "$STRIP" && STRIP=:
6843 test -z "$ac_objext" && ac_objext=o
6844
6845 # Determine commands to create old-style static archives.
6846 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6847 old_postinstall_cmds='chmod 644 $oldlib'
6848 old_postuninstall_cmds=
6849
6850 if test -n "$RANLIB"; then
6851   case $host_os in
6852   openbsd*)
6853     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6854     ;;
6855   *)
6856     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6857     ;;
6858   esac
6859   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6860 fi
6861
6862 for cc_temp in $compiler""; do
6863   case $cc_temp in
6864     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6865     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6866     \-*) ;;
6867     *) break;;
6868   esac
6869 done
6870 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6871
6872
6873 # Only perform the check for file, if the check method requires it
6874 case $deplibs_check_method in
6875 file_magic*)
6876   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6877     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6878 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6880   $as_echo_n "(cached) " >&6
6881 else
6882   case $MAGIC_CMD in
6883 [\\/*] |  ?:[\\/]*)
6884   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6885   ;;
6886 *)
6887   lt_save_MAGIC_CMD="$MAGIC_CMD"
6888   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6889   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6890   for ac_dir in $ac_dummy; do
6891     IFS="$lt_save_ifs"
6892     test -z "$ac_dir" && ac_dir=.
6893     if test -f $ac_dir/${ac_tool_prefix}file; then
6894       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6895       if test -n "$file_magic_test_file"; then
6896         case $deplibs_check_method in
6897         "file_magic "*)
6898           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6899           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6900           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6901             $EGREP "$file_magic_regex" > /dev/null; then
6902             :
6903           else
6904             cat <<EOF 1>&2
6905
6906 *** Warning: the command libtool uses to detect shared libraries,
6907 *** $file_magic_cmd, produces output that libtool cannot recognize.
6908 *** The result is that libtool may fail to recognize shared libraries
6909 *** as such.  This will affect the creation of libtool libraries that
6910 *** depend on shared libraries, but programs linked with such libtool
6911 *** libraries will work regardless of this problem.  Nevertheless, you
6912 *** may want to report the problem to your system manager and/or to
6913 *** bug-libtool@gnu.org
6914
6915 EOF
6916           fi ;;
6917         esac
6918       fi
6919       break
6920     fi
6921   done
6922   IFS="$lt_save_ifs"
6923   MAGIC_CMD="$lt_save_MAGIC_CMD"
6924   ;;
6925 esac
6926 fi
6927
6928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929 if test -n "$MAGIC_CMD"; then
6930   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6931 $as_echo "$MAGIC_CMD" >&6; }
6932 else
6933   { $as_echo "$as_me:$LINENO: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937 if test -z "$lt_cv_path_MAGIC_CMD"; then
6938   if test -n "$ac_tool_prefix"; then
6939     { $as_echo "$as_me:$LINENO: checking for file" >&5
6940 $as_echo_n "checking for file... " >&6; }
6941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6942   $as_echo_n "(cached) " >&6
6943 else
6944   case $MAGIC_CMD in
6945 [\\/*] |  ?:[\\/]*)
6946   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6947   ;;
6948 *)
6949   lt_save_MAGIC_CMD="$MAGIC_CMD"
6950   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6951   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6952   for ac_dir in $ac_dummy; do
6953     IFS="$lt_save_ifs"
6954     test -z "$ac_dir" && ac_dir=.
6955     if test -f $ac_dir/file; then
6956       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6957       if test -n "$file_magic_test_file"; then
6958         case $deplibs_check_method in
6959         "file_magic "*)
6960           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6961           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6962           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6963             $EGREP "$file_magic_regex" > /dev/null; then
6964             :
6965           else
6966             cat <<EOF 1>&2
6967
6968 *** Warning: the command libtool uses to detect shared libraries,
6969 *** $file_magic_cmd, produces output that libtool cannot recognize.
6970 *** The result is that libtool may fail to recognize shared libraries
6971 *** as such.  This will affect the creation of libtool libraries that
6972 *** depend on shared libraries, but programs linked with such libtool
6973 *** libraries will work regardless of this problem.  Nevertheless, you
6974 *** may want to report the problem to your system manager and/or to
6975 *** bug-libtool@gnu.org
6976
6977 EOF
6978           fi ;;
6979         esac
6980       fi
6981       break
6982     fi
6983   done
6984   IFS="$lt_save_ifs"
6985   MAGIC_CMD="$lt_save_MAGIC_CMD"
6986   ;;
6987 esac
6988 fi
6989
6990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6991 if test -n "$MAGIC_CMD"; then
6992   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6993 $as_echo "$MAGIC_CMD" >&6; }
6994 else
6995   { $as_echo "$as_me:$LINENO: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999   else
7000     MAGIC_CMD=:
7001   fi
7002 fi
7003
7004   fi
7005   ;;
7006 esac
7007
7008 enable_dlopen=no
7009 enable_win32_dll=no
7010
7011 # Check whether --enable-libtool-lock was given.
7012 if test "${enable_libtool_lock+set}" = set; then
7013   enableval=$enable_libtool_lock;
7014 fi
7015
7016 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7017
7018
7019 # Check whether --with-pic was given.
7020 if test "${with_pic+set}" = set; then
7021   withval=$with_pic; pic_mode="$withval"
7022 else
7023   pic_mode=default
7024 fi
7025
7026 test -z "$pic_mode" && pic_mode=default
7027
7028 # Use C for the default configuration in the libtool script
7029 tagname=
7030 lt_save_CC="$CC"
7031 ac_ext=c
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037
7038 # Source file extension for C test sources.
7039 ac_ext=c
7040
7041 # Object file extension for compiled C test sources.
7042 objext=o
7043 objext=$objext
7044
7045 # Code to be used in simple compile tests
7046 lt_simple_compile_test_code="int some_variable = 0;\n"
7047
7048 # Code to be used in simple link tests
7049 lt_simple_link_test_code='int main(){return(0);}\n'
7050
7051
7052 # If no C compiler was specified, use CC.
7053 LTCC=${LTCC-"$CC"}
7054
7055 # If no C compiler flags were specified, use CFLAGS.
7056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7057
7058 # Allow CC to be a program name with arguments.
7059 compiler=$CC
7060
7061
7062 # save warnings/boilerplate of simple test code
7063 ac_outfile=conftest.$ac_objext
7064 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7066 _lt_compiler_boilerplate=`cat conftest.err`
7067 $rm conftest*
7068
7069 ac_outfile=conftest.$ac_objext
7070 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7072 _lt_linker_boilerplate=`cat conftest.err`
7073 $rm conftest*
7074
7075
7076
7077 lt_prog_compiler_no_builtin_flag=
7078
7079 if test "$GCC" = yes; then
7080   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7081
7082
7083 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7084 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7085 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7086   $as_echo_n "(cached) " >&6
7087 else
7088   lt_cv_prog_compiler_rtti_exceptions=no
7089   ac_outfile=conftest.$ac_objext
7090    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7091    lt_compiler_flag="-fno-rtti -fno-exceptions"
7092    # Insert the option either (1) after the last *FLAGS variable, or
7093    # (2) before a word containing "conftest.", or (3) at the end.
7094    # Note that $ac_compile itself does not contain backslashes and begins
7095    # with a dollar sign (not a hyphen), so the echo should work correctly.
7096    # The option is referenced via a variable to avoid confusing sed.
7097    lt_compile=`echo "$ac_compile" | $SED \
7098    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7099    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7100    -e 's:$: $lt_compiler_flag:'`
7101    (eval echo "\"\$as_me:7101: $lt_compile\"" >&5)
7102    (eval "$lt_compile" 2>conftest.err)
7103    ac_status=$?
7104    cat conftest.err >&5
7105    echo "$as_me:7105: \$? = $ac_status" >&5
7106    if (exit $ac_status) && test -s "$ac_outfile"; then
7107      # The compiler can only warn and ignore the option if not recognized
7108      # So say no if there are warnings other than the usual output.
7109      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7110      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7111      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7112        lt_cv_prog_compiler_rtti_exceptions=yes
7113      fi
7114    fi
7115    $rm conftest*
7116
7117 fi
7118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7119 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7120
7121 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7122     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7123 else
7124     :
7125 fi
7126
7127 fi
7128
7129 lt_prog_compiler_wl=
7130 lt_prog_compiler_pic=
7131 lt_prog_compiler_static=
7132
7133 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7134 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7135
7136   if test "$GCC" = yes; then
7137     lt_prog_compiler_wl='-Wl,'
7138     lt_prog_compiler_static='-static'
7139
7140     case $host_os in
7141       aix*)
7142       # All AIX code is PIC.
7143       if test "$host_cpu" = ia64; then
7144         # AIX 5 now supports IA64 processor
7145         lt_prog_compiler_static='-Bstatic'
7146       fi
7147       ;;
7148
7149     amigaos*)
7150       # FIXME: we need at least 68020 code to build shared libraries, but
7151       # adding the `-m68020' flag to GCC prevents building anything better,
7152       # like `-m68040'.
7153       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7154       ;;
7155
7156     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7157       # PIC is the default for these OSes.
7158       ;;
7159
7160     mingw* | pw32* | os2*)
7161       # This hack is so that the source file can tell whether it is being
7162       # built for inclusion in a dll (and should export symbols for example).
7163       lt_prog_compiler_pic='-DDLL_EXPORT'
7164       ;;
7165
7166     darwin* | rhapsody*)
7167       # PIC is the default on this platform
7168       # Common symbols not allowed in MH_DYLIB files
7169       lt_prog_compiler_pic='-fno-common'
7170       ;;
7171
7172     interix3*)
7173       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7174       # Instead, we relocate shared libraries at runtime.
7175       ;;
7176
7177     msdosdjgpp*)
7178       # Just because we use GCC doesn't mean we suddenly get shared libraries
7179       # on systems that don't support them.
7180       lt_prog_compiler_can_build_shared=no
7181       enable_shared=no
7182       ;;
7183
7184     sysv4*MP*)
7185       if test -d /usr/nec; then
7186         lt_prog_compiler_pic=-Kconform_pic
7187       fi
7188       ;;
7189
7190     hpux*)
7191       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7192       # not for PA HP-UX.
7193       case $host_cpu in
7194       hppa*64*|ia64*)
7195         # +Z the default
7196         ;;
7197       *)
7198         lt_prog_compiler_pic='-fPIC'
7199         ;;
7200       esac
7201       ;;
7202
7203     *)
7204       lt_prog_compiler_pic='-fPIC'
7205       ;;
7206     esac
7207   else
7208     # PORTME Check for flag to pass linker flags through the system compiler.
7209     case $host_os in
7210     aix*)
7211       lt_prog_compiler_wl='-Wl,'
7212       if test "$host_cpu" = ia64; then
7213         # AIX 5 now supports IA64 processor
7214         lt_prog_compiler_static='-Bstatic'
7215       else
7216         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7217       fi
7218       ;;
7219       darwin*)
7220         # PIC is the default on this platform
7221         # Common symbols not allowed in MH_DYLIB files
7222        case $cc_basename in
7223          xlc*)
7224          lt_prog_compiler_pic='-qnocommon'
7225          lt_prog_compiler_wl='-Wl,'
7226          ;;
7227        esac
7228        ;;
7229
7230     mingw* | pw32* | os2*)
7231       # This hack is so that the source file can tell whether it is being
7232       # built for inclusion in a dll (and should export symbols for example).
7233       lt_prog_compiler_pic='-DDLL_EXPORT'
7234       ;;
7235
7236     hpux9* | hpux10* | hpux11*)
7237       lt_prog_compiler_wl='-Wl,'
7238       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7239       # not for PA HP-UX.
7240       case $host_cpu in
7241       hppa*64*|ia64*)
7242         # +Z the default
7243         ;;
7244       *)
7245         lt_prog_compiler_pic='+Z'
7246         ;;
7247       esac
7248       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7249       lt_prog_compiler_static='${wl}-a ${wl}archive'
7250       ;;
7251
7252     irix5* | irix6* | nonstopux*)
7253       lt_prog_compiler_wl='-Wl,'
7254       # PIC (with -KPIC) is the default.
7255       lt_prog_compiler_static='-non_shared'
7256       ;;
7257
7258     newsos6)
7259       lt_prog_compiler_pic='-KPIC'
7260       lt_prog_compiler_static='-Bstatic'
7261       ;;
7262
7263     linux*)
7264       case $cc_basename in
7265       icc* | ecc*)
7266         lt_prog_compiler_wl='-Wl,'
7267         lt_prog_compiler_pic='-KPIC'
7268         lt_prog_compiler_static='-static'
7269         ;;
7270       pgcc* | pgf77* | pgf90* | pgf95*)
7271         # Portland Group compilers (*not* the Pentium gcc compiler,
7272         # which looks to be a dead project)
7273         lt_prog_compiler_wl='-Wl,'
7274         lt_prog_compiler_pic='-fpic'
7275         lt_prog_compiler_static='-Bstatic'
7276         ;;
7277       ccc*)
7278         lt_prog_compiler_wl='-Wl,'
7279         # All Alpha code is PIC.
7280         lt_prog_compiler_static='-non_shared'
7281         ;;
7282       esac
7283       ;;
7284
7285     osf3* | osf4* | osf5*)
7286       lt_prog_compiler_wl='-Wl,'
7287       # All OSF/1 code is PIC.
7288       lt_prog_compiler_static='-non_shared'
7289       ;;
7290
7291     solaris*)
7292       lt_prog_compiler_pic='-KPIC'
7293       lt_prog_compiler_static='-Bstatic'
7294       case $cc_basename in
7295       f77* | f90* | f95*)
7296         lt_prog_compiler_wl='-Qoption ld ';;
7297       *)
7298         lt_prog_compiler_wl='-Wl,';;
7299       esac
7300       ;;
7301
7302     sunos4*)
7303       lt_prog_compiler_wl='-Qoption ld '
7304       lt_prog_compiler_pic='-PIC'
7305       lt_prog_compiler_static='-Bstatic'
7306       ;;
7307
7308     sysv4 | sysv4.2uw2* | sysv4.3*)
7309       lt_prog_compiler_wl='-Wl,'
7310       lt_prog_compiler_pic='-KPIC'
7311       lt_prog_compiler_static='-Bstatic'
7312       ;;
7313
7314     sysv4*MP*)
7315       if test -d /usr/nec ;then
7316         lt_prog_compiler_pic='-Kconform_pic'
7317         lt_prog_compiler_static='-Bstatic'
7318       fi
7319       ;;
7320
7321     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7322       lt_prog_compiler_wl='-Wl,'
7323       lt_prog_compiler_pic='-KPIC'
7324       lt_prog_compiler_static='-Bstatic'
7325       ;;
7326
7327     unicos*)
7328       lt_prog_compiler_wl='-Wl,'
7329       lt_prog_compiler_can_build_shared=no
7330       ;;
7331
7332     uts4*)
7333       lt_prog_compiler_pic='-pic'
7334       lt_prog_compiler_static='-Bstatic'
7335       ;;
7336
7337     *)
7338       lt_prog_compiler_can_build_shared=no
7339       ;;
7340     esac
7341   fi
7342
7343 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7344 $as_echo "$lt_prog_compiler_pic" >&6; }
7345
7346 #
7347 # Check to make sure the PIC flag actually works.
7348 #
7349 if test -n "$lt_prog_compiler_pic"; then
7350
7351 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7352 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7353 if test "${lt_prog_compiler_pic_works+set}" = set; then
7354   $as_echo_n "(cached) " >&6
7355 else
7356   lt_prog_compiler_pic_works=no
7357   ac_outfile=conftest.$ac_objext
7358    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7359    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7360    # Insert the option either (1) after the last *FLAGS variable, or
7361    # (2) before a word containing "conftest.", or (3) at the end.
7362    # Note that $ac_compile itself does not contain backslashes and begins
7363    # with a dollar sign (not a hyphen), so the echo should work correctly.
7364    # The option is referenced via a variable to avoid confusing sed.
7365    lt_compile=`echo "$ac_compile" | $SED \
7366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368    -e 's:$: $lt_compiler_flag:'`
7369    (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370    (eval "$lt_compile" 2>conftest.err)
7371    ac_status=$?
7372    cat conftest.err >&5
7373    echo "$as_me:7373: \$? = $ac_status" >&5
7374    if (exit $ac_status) && test -s "$ac_outfile"; then
7375      # The compiler can only warn and ignore the option if not recognized
7376      # So say no if there are warnings other than the usual output.
7377      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7378      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7379      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7380        lt_prog_compiler_pic_works=yes
7381      fi
7382    fi
7383    $rm conftest*
7384
7385 fi
7386 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7387 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7388
7389 if test x"$lt_prog_compiler_pic_works" = xyes; then
7390     case $lt_prog_compiler_pic in
7391      "" | " "*) ;;
7392      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7393      esac
7394 else
7395     lt_prog_compiler_pic=
7396      lt_prog_compiler_can_build_shared=no
7397 fi
7398
7399 fi
7400 case $host_os in
7401   # For platforms which do not support PIC, -DPIC is meaningless:
7402   *djgpp*)
7403     lt_prog_compiler_pic=
7404     ;;
7405   *)
7406     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7407     ;;
7408 esac
7409
7410 #
7411 # Check to make sure the static flag actually works.
7412 #
7413 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7414 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7416 if test "${lt_prog_compiler_static_works+set}" = set; then
7417   $as_echo_n "(cached) " >&6
7418 else
7419   lt_prog_compiler_static_works=no
7420    save_LDFLAGS="$LDFLAGS"
7421    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7422    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7423    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7424      # The linker can only warn and ignore the option if not recognized
7425      # So say no if there are warnings
7426      if test -s conftest.err; then
7427        # Append any errors to the config.log.
7428        cat conftest.err 1>&5
7429        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7430        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7431        if diff conftest.exp conftest.er2 >/dev/null; then
7432          lt_prog_compiler_static_works=yes
7433        fi
7434      else
7435        lt_prog_compiler_static_works=yes
7436      fi
7437    fi
7438    $rm conftest*
7439    LDFLAGS="$save_LDFLAGS"
7440
7441 fi
7442 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7443 $as_echo "$lt_prog_compiler_static_works" >&6; }
7444
7445 if test x"$lt_prog_compiler_static_works" = xyes; then
7446     :
7447 else
7448     lt_prog_compiler_static=
7449 fi
7450
7451
7452 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7454 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7455   $as_echo_n "(cached) " >&6
7456 else
7457   lt_cv_prog_compiler_c_o=no
7458    $rm -r conftest 2>/dev/null
7459    mkdir conftest
7460    cd conftest
7461    mkdir out
7462    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7463
7464    lt_compiler_flag="-o out/conftest2.$ac_objext"
7465    # Insert the option either (1) after the last *FLAGS variable, or
7466    # (2) before a word containing "conftest.", or (3) at the end.
7467    # Note that $ac_compile itself does not contain backslashes and begins
7468    # with a dollar sign (not a hyphen), so the echo should work correctly.
7469    lt_compile=`echo "$ac_compile" | $SED \
7470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7472    -e 's:$: $lt_compiler_flag:'`
7473    (eval echo "\"\$as_me:7473: $lt_compile\"" >&5)
7474    (eval "$lt_compile" 2>out/conftest.err)
7475    ac_status=$?
7476    cat out/conftest.err >&5
7477    echo "$as_me:7477: \$? = $ac_status" >&5
7478    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7479    then
7480      # The compiler can only warn and ignore the option if not recognized
7481      # So say no if there are warnings
7482      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7483      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7484      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7485        lt_cv_prog_compiler_c_o=yes
7486      fi
7487    fi
7488    chmod u+w . 2>&5
7489    $rm conftest*
7490    # SGI C++ compiler will create directory out/ii_files/ for
7491    # template instantiation
7492    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7493    $rm out/* && rmdir out
7494    cd ..
7495    rmdir conftest
7496    $rm conftest*
7497
7498 fi
7499 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7501
7502
7503 hard_links="nottested"
7504 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7505   # do not overwrite the value of need_locks provided by the user
7506   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7507 $as_echo_n "checking if we can lock with hard links... " >&6; }
7508   hard_links=yes
7509   $rm conftest*
7510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7511   touch conftest.a
7512   ln conftest.a conftest.b 2>&5 || hard_links=no
7513   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7514   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7515 $as_echo "$hard_links" >&6; }
7516   if test "$hard_links" = no; then
7517     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7518 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7519     need_locks=warn
7520   fi
7521 else
7522   need_locks=no
7523 fi
7524
7525 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7527
7528   runpath_var=
7529   allow_undefined_flag=
7530   enable_shared_with_static_runtimes=no
7531   archive_cmds=
7532   archive_expsym_cmds=
7533   old_archive_From_new_cmds=
7534   old_archive_from_expsyms_cmds=
7535   export_dynamic_flag_spec=
7536   whole_archive_flag_spec=
7537   thread_safe_flag_spec=
7538   hardcode_libdir_flag_spec=
7539   hardcode_libdir_flag_spec_ld=
7540   hardcode_libdir_separator=
7541   hardcode_direct=no
7542   hardcode_minus_L=no
7543   hardcode_shlibpath_var=unsupported
7544   link_all_deplibs=unknown
7545   hardcode_automatic=no
7546   module_cmds=
7547   module_expsym_cmds=
7548   always_export_symbols=no
7549   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7550   # include_expsyms should be a list of space-separated symbols to be *always*
7551   # included in the symbol list
7552   include_expsyms=
7553   # exclude_expsyms can be an extended regexp of symbols to exclude
7554   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7555   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7556   # as well as any symbol that contains `d'.
7557   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7558   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7559   # platforms (ab)use it in PIC code, but their linkers get confused if
7560   # the symbol is explicitly referenced.  Since portable code cannot
7561   # rely on this symbol name, it's probably fine to never include it in
7562   # preloaded symbol tables.
7563   extract_expsyms_cmds=
7564   # Just being paranoid about ensuring that cc_basename is set.
7565   for cc_temp in $compiler""; do
7566   case $cc_temp in
7567     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7568     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7569     \-*) ;;
7570     *) break;;
7571   esac
7572 done
7573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7574
7575   case $host_os in
7576   cygwin* | mingw* | pw32*)
7577     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7578     # When not using gcc, we currently assume that we are using
7579     # Microsoft Visual C++.
7580     if test "$GCC" != yes; then
7581       with_gnu_ld=no
7582     fi
7583     ;;
7584   interix*)
7585     # we just hope/assume this is gcc and not c89 (= MSVC++)
7586     with_gnu_ld=yes
7587     ;;
7588   openbsd*)
7589     with_gnu_ld=no
7590     ;;
7591   esac
7592
7593   ld_shlibs=yes
7594   if test "$with_gnu_ld" = yes; then
7595     # If archive_cmds runs LD, not CC, wlarc should be empty
7596     wlarc='${wl}'
7597
7598     # Set some defaults for GNU ld with shared library support. These
7599     # are reset later if shared libraries are not supported. Putting them
7600     # here allows them to be overridden if necessary.
7601     runpath_var=LD_RUN_PATH
7602     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7603     export_dynamic_flag_spec='${wl}--export-dynamic'
7604     # ancient GNU ld didn't support --whole-archive et. al.
7605     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7606         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7607       else
7608         whole_archive_flag_spec=
7609     fi
7610     supports_anon_versioning=no
7611     case `$LD -v 2>/dev/null` in
7612       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7613       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7614       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7615       *\ 2.11.*) ;; # other 2.11 versions
7616       *) supports_anon_versioning=yes ;;
7617     esac
7618
7619     # See if GNU ld supports shared libraries.
7620     case $host_os in
7621     aix3* | aix4* | aix5*)
7622       # On AIX/PPC, the GNU linker is very broken
7623       if test "$host_cpu" != ia64; then
7624         ld_shlibs=no
7625         cat <<EOF 1>&2
7626
7627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7628 *** to be unable to reliably create shared libraries on AIX.
7629 *** Therefore, libtool is disabling shared libraries support.  If you
7630 *** really care for shared libraries, you may want to modify your PATH
7631 *** so that a non-GNU linker is found, and then restart.
7632
7633 EOF
7634       fi
7635       ;;
7636
7637     amigaos*)
7638       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)'
7639       hardcode_libdir_flag_spec='-L$libdir'
7640       hardcode_minus_L=yes
7641
7642       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7643       # that the semantics of dynamic libraries on AmigaOS, at least up
7644       # to version 4, is to share data among multiple programs linked
7645       # with the same dynamic library.  Since this doesn't match the
7646       # behavior of shared libraries on other platforms, we can't use
7647       # them.
7648       ld_shlibs=no
7649       ;;
7650
7651     beos*)
7652       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7653         allow_undefined_flag=unsupported
7654         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7655         # support --undefined.  This deserves some investigation.  FIXME
7656         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657       else
7658         ld_shlibs=no
7659       fi
7660       ;;
7661
7662     cygwin* | mingw* | pw32*)
7663       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7664       # as there is no search path for DLLs.
7665       hardcode_libdir_flag_spec='-L$libdir'
7666       allow_undefined_flag=unsupported
7667       always_export_symbols=no
7668       enable_shared_with_static_runtimes=yes
7669       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7670
7671       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7672         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7673         # If the export-symbols file already is a .def file (1st line
7674         # is EXPORTS), use it as is; otherwise, prepend...
7675         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7676           cp $export_symbols $output_objdir/$soname.def;
7677         else
7678           echo EXPORTS > $output_objdir/$soname.def;
7679           cat $export_symbols >> $output_objdir/$soname.def;
7680         fi~
7681         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7682       else
7683         ld_shlibs=no
7684       fi
7685       ;;
7686
7687     interix3*)
7688       hardcode_direct=no
7689       hardcode_shlibpath_var=no
7690       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7691       export_dynamic_flag_spec='${wl}-E'
7692       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7693       # Instead, shared libraries are loaded at an image base (0x10000000 by
7694       # default) and relocated if they conflict, which is a slow very memory
7695       # consuming and fragmenting process.  To avoid this, we pick a random,
7696       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7697       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7698       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7699       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'
7700       ;;
7701
7702     linux*)
7703       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7704         tmp_addflag=
7705         case $cc_basename,$host_cpu in
7706         pgcc*)                          # Portland Group C compiler
7707           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'
7708           tmp_addflag=' $pic_flag'
7709           ;;
7710         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7711           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'
7712           tmp_addflag=' $pic_flag -Mnomain' ;;
7713         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7714           tmp_addflag=' -i_dynamic' ;;
7715         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7716           tmp_addflag=' -i_dynamic -nofor_main' ;;
7717         ifc* | ifort*)                  # Intel Fortran compiler
7718           tmp_addflag=' -nofor_main' ;;
7719         esac
7720         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721
7722         if test $supports_anon_versioning = yes; then
7723           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7724   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7725   $echo "local: *; };" >> $output_objdir/$libname.ver~
7726           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7727         fi
7728       else
7729         ld_shlibs=no
7730       fi
7731       ;;
7732
7733     netbsd*)
7734       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7735         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7736         wlarc=
7737       else
7738         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7739         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7740       fi
7741       ;;
7742
7743     solaris*)
7744       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7745         ld_shlibs=no
7746         cat <<EOF 1>&2
7747
7748 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7749 *** create shared libraries on Solaris systems.  Therefore, libtool
7750 *** is disabling shared libraries support.  We urge you to upgrade GNU
7751 *** binutils to release 2.9.1 or newer.  Another option is to modify
7752 *** your PATH or compiler configuration so that the native linker is
7753 *** used, and then restart.
7754
7755 EOF
7756       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7757         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7759       else
7760         ld_shlibs=no
7761       fi
7762       ;;
7763
7764     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7765       case `$LD -v 2>&1` in
7766         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7767         ld_shlibs=no
7768         cat <<_LT_EOF 1>&2
7769
7770 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7771 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7772 *** is disabling shared libraries support.  We urge you to upgrade GNU
7773 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7774 *** your PATH or compiler configuration so that the native linker is
7775 *** used, and then restart.
7776
7777 _LT_EOF
7778         ;;
7779         *)
7780           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7781             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7782             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7783             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7784           else
7785             ld_shlibs=no
7786           fi
7787         ;;
7788       esac
7789       ;;
7790
7791     sunos4*)
7792       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7793       wlarc=
7794       hardcode_direct=yes
7795       hardcode_shlibpath_var=no
7796       ;;
7797
7798     *)
7799       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7802       else
7803         ld_shlibs=no
7804       fi
7805       ;;
7806     esac
7807
7808     if test "$ld_shlibs" = no; then
7809       runpath_var=
7810       hardcode_libdir_flag_spec=
7811       export_dynamic_flag_spec=
7812       whole_archive_flag_spec=
7813     fi
7814   else
7815     # PORTME fill in a description of your system's linker (not GNU ld)
7816     case $host_os in
7817     aix3*)
7818       allow_undefined_flag=unsupported
7819       always_export_symbols=yes
7820       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'
7821       # Note: this linker hardcodes the directories in LIBPATH if there
7822       # are no directories specified by -L.
7823       hardcode_minus_L=yes
7824       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7825         # Neither direct hardcoding nor static linking is supported with a
7826         # broken collect2.
7827         hardcode_direct=unsupported
7828       fi
7829       ;;
7830
7831     aix4* | aix5*)
7832       if test "$host_cpu" = ia64; then
7833         # On IA64, the linker does run time linking by default, so we don't
7834         # have to do anything special.
7835         aix_use_runtimelinking=no
7836         exp_sym_flag='-Bexport'
7837         no_entry_flag=""
7838       else
7839         # If we're using GNU nm, then we don't want the "-C" option.
7840         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7841         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7842           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'
7843         else
7844           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'
7845         fi
7846         aix_use_runtimelinking=no
7847
7848         # Test if we are trying to use run time linking or normal
7849         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7850         # need to do runtime linking.
7851         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7852           for ld_flag in $LDFLAGS; do
7853           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7854             aix_use_runtimelinking=yes
7855             break
7856           fi
7857           done
7858           ;;
7859         esac
7860
7861         exp_sym_flag='-bexport'
7862         no_entry_flag='-bnoentry'
7863       fi
7864
7865       # When large executables or shared objects are built, AIX ld can
7866       # have problems creating the table of contents.  If linking a library
7867       # or program results in "error TOC overflow" add -mminimal-toc to
7868       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7869       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7870
7871       archive_cmds=''
7872       hardcode_direct=yes
7873       hardcode_libdir_separator=':'
7874       link_all_deplibs=yes
7875
7876       if test "$GCC" = yes; then
7877         case $host_os in aix4.[012]|aix4.[012].*)
7878         # We only want to do this on AIX 4.2 and lower, the check
7879         # below for broken collect2 doesn't work under 4.3+
7880           collect2name=`${CC} -print-prog-name=collect2`
7881           if test -f "$collect2name" && \
7882            strings "$collect2name" | grep resolve_lib_name >/dev/null
7883           then
7884           # We have reworked collect2
7885           hardcode_direct=yes
7886           else
7887           # We have old collect2
7888           hardcode_direct=unsupported
7889           # It fails to find uninstalled libraries when the uninstalled
7890           # path is not listed in the libpath.  Setting hardcode_minus_L
7891           # to unsupported forces relinking
7892           hardcode_minus_L=yes
7893           hardcode_libdir_flag_spec='-L$libdir'
7894           hardcode_libdir_separator=
7895           fi
7896           ;;
7897         esac
7898         shared_flag='-shared'
7899         if test "$aix_use_runtimelinking" = yes; then
7900           shared_flag="$shared_flag "'${wl}-G'
7901         fi
7902       else
7903         # not using gcc
7904         if test "$host_cpu" = ia64; then
7905         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7906         # chokes on -Wl,-G. The following line is correct:
7907           shared_flag='-G'
7908         else
7909           if test "$aix_use_runtimelinking" = yes; then
7910             shared_flag='${wl}-G'
7911           else
7912             shared_flag='${wl}-bM:SRE'
7913           fi
7914         fi
7915       fi
7916
7917       # It seems that -bexpall does not export symbols beginning with
7918       # underscore (_), so it is better to generate a list of symbols to export.
7919       always_export_symbols=yes
7920       if test "$aix_use_runtimelinking" = yes; then
7921         # Warning - without using the other runtime loading flags (-brtl),
7922         # -berok will link without error, but may produce a broken library.
7923         allow_undefined_flag='-berok'
7924        # Determine the default libpath from the value encoded in an empty executable.
7925        cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931
7932 int
7933 main ()
7934 {
7935
7936   ;
7937   return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948   (eval "$ac_link") 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } && {
7955          test -z "$ac_c_werror_flag" ||
7956          test ! -s conftest.err
7957        } && test -s conftest$ac_exeext && {
7958          test "$cross_compiling" = yes ||
7959          $as_test_x conftest$ac_exeext
7960        }; then
7961
7962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7963 }'`
7964 # Check for a 64-bit object if we didn't find anything.
7965 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; }
7966 }'`; fi
7967 else
7968   $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971
7972 fi
7973
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7976       conftest$ac_exeext conftest.$ac_ext
7977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7978
7979        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7980         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"
7981        else
7982         if test "$host_cpu" = ia64; then
7983           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7984           allow_undefined_flag="-z nodefs"
7985           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"
7986         else
7987          # Determine the default libpath from the value encoded in an empty executable.
7988          cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994
7995 int
7996 main ()
7997 {
7998
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (ac_try="$ac_link"
8005 case "(($ac_try" in
8006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007   *) ac_try_echo=$ac_try;;
8008 esac
8009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8010 $as_echo "$ac_try_echo") >&5
8011   (eval "$ac_link") 2>conftest.er1
8012   ac_status=$?
8013   grep -v '^ *+' conftest.er1 >conftest.err
8014   rm -f conftest.er1
8015   cat conftest.err >&5
8016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); } && {
8018          test -z "$ac_c_werror_flag" ||
8019          test ! -s conftest.err
8020        } && test -s conftest$ac_exeext && {
8021          test "$cross_compiling" = yes ||
8022          $as_test_x conftest$ac_exeext
8023        }; then
8024
8025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8026 }'`
8027 # Check for a 64-bit object if we didn't find anything.
8028 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; }
8029 }'`; fi
8030 else
8031   $as_echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034
8035 fi
8036
8037 rm -rf conftest.dSYM
8038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8039       conftest$ac_exeext conftest.$ac_ext
8040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8041
8042          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8043           # Warning - without using the other run time loading flags,
8044           # -berok will link without error, but may produce a broken library.
8045           no_undefined_flag=' ${wl}-bernotok'
8046           allow_undefined_flag=' ${wl}-berok'
8047           # Exported symbols can be pulled into shared objects from archives
8048           whole_archive_flag_spec='$convenience'
8049           archive_cmds_need_lc=yes
8050           # This is similar to how AIX traditionally builds its shared libraries.
8051           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'
8052         fi
8053       fi
8054       ;;
8055
8056     amigaos*)
8057       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)'
8058       hardcode_libdir_flag_spec='-L$libdir'
8059       hardcode_minus_L=yes
8060       # see comment about different semantics on the GNU ld section
8061       ld_shlibs=no
8062       ;;
8063
8064     bsdi[45]*)
8065       export_dynamic_flag_spec=-rdynamic
8066       ;;
8067
8068     cygwin* | mingw* | pw32*)
8069       # When not using gcc, we currently assume that we are using
8070       # Microsoft Visual C++.
8071       # hardcode_libdir_flag_spec is actually meaningless, as there is
8072       # no search path for DLLs.
8073       hardcode_libdir_flag_spec=' '
8074       allow_undefined_flag=unsupported
8075       # Tell ltmain to make .lib files, not .a files.
8076       libext=lib
8077       # Tell ltmain to make .dll files, not .so files.
8078       shrext_cmds=".dll"
8079       # FIXME: Setting linknames here is a bad hack.
8080       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8081       # The linker will automatically build a .lib file if we build a DLL.
8082       old_archive_From_new_cmds='true'
8083       # FIXME: Should let the user specify the lib program.
8084       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8085       fix_srcfile_path='`cygpath -w "$srcfile"`'
8086       enable_shared_with_static_runtimes=yes
8087       ;;
8088
8089     darwin* | rhapsody*)
8090       case $host_os in
8091         rhapsody* | darwin1.[012])
8092          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8093          ;;
8094        *) # Darwin 1.3 on
8095          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8096            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8097          else
8098            case ${MACOSX_DEPLOYMENT_TARGET} in
8099              10.[012])
8100                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8101                ;;
8102              10.*)
8103                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8104                ;;
8105            esac
8106          fi
8107          ;;
8108       esac
8109       archive_cmds_need_lc=no
8110       hardcode_direct=no
8111       hardcode_automatic=yes
8112       hardcode_shlibpath_var=unsupported
8113       whole_archive_flag_spec=''
8114       link_all_deplibs=yes
8115     if test "$GCC" = yes ; then
8116         output_verbose_link_cmd='echo'
8117         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8118       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8119       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8120       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}'
8121       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}'
8122     else
8123       case $cc_basename in
8124         xlc*)
8125          output_verbose_link_cmd='echo'
8126          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8127          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8128           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8129          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}'
8130           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}'
8131           ;;
8132        *)
8133          ld_shlibs=no
8134           ;;
8135       esac
8136     fi
8137       ;;
8138
8139     dgux*)
8140       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141       hardcode_libdir_flag_spec='-L$libdir'
8142       hardcode_shlibpath_var=no
8143       ;;
8144
8145     freebsd1*)
8146       ld_shlibs=no
8147       ;;
8148
8149     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8150     # support.  Future versions do this automatically, but an explicit c++rt0.o
8151     # does not break anything, and helps significantly (at the cost of a little
8152     # extra space).
8153     freebsd2.2*)
8154       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8155       hardcode_libdir_flag_spec='-R$libdir'
8156       hardcode_direct=yes
8157       hardcode_shlibpath_var=no
8158       ;;
8159
8160     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8161     freebsd2*)
8162       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8163       hardcode_direct=yes
8164       hardcode_minus_L=yes
8165       hardcode_shlibpath_var=no
8166       ;;
8167
8168     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8169     freebsd* | kfreebsd*-gnu | dragonfly*)
8170       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8171       hardcode_libdir_flag_spec='-R$libdir'
8172       hardcode_direct=yes
8173       hardcode_shlibpath_var=no
8174       ;;
8175
8176     hpux9*)
8177       if test "$GCC" = yes; then
8178         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'
8179       else
8180         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'
8181       fi
8182       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8183       hardcode_libdir_separator=:
8184       hardcode_direct=yes
8185
8186       # hardcode_minus_L: Not really in the search PATH,
8187       # but as the default location of the library.
8188       hardcode_minus_L=yes
8189       export_dynamic_flag_spec='${wl}-E'
8190       ;;
8191
8192     hpux10*)
8193       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8194         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8195       else
8196         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8197       fi
8198       if test "$with_gnu_ld" = no; then
8199         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8200         hardcode_libdir_separator=:
8201
8202         hardcode_direct=yes
8203         export_dynamic_flag_spec='${wl}-E'
8204
8205         # hardcode_minus_L: Not really in the search PATH,
8206         # but as the default location of the library.
8207         hardcode_minus_L=yes
8208       fi
8209       ;;
8210
8211     hpux11*)
8212       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8213         case $host_cpu in
8214         hppa*64*)
8215           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8216           ;;
8217         ia64*)
8218           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8219           ;;
8220         *)
8221           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8222           ;;
8223         esac
8224       else
8225         case $host_cpu in
8226         hppa*64*)
8227           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228           ;;
8229         ia64*)
8230           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8231           ;;
8232         *)
8233           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234           ;;
8235         esac
8236       fi
8237       if test "$with_gnu_ld" = no; then
8238         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8239         hardcode_libdir_separator=:
8240
8241         case $host_cpu in
8242         hppa*64*|ia64*)
8243           hardcode_libdir_flag_spec_ld='+b $libdir'
8244           hardcode_direct=no
8245           hardcode_shlibpath_var=no
8246           ;;
8247         *)
8248           hardcode_direct=yes
8249           export_dynamic_flag_spec='${wl}-E'
8250
8251           # hardcode_minus_L: Not really in the search PATH,
8252           # but as the default location of the library.
8253           hardcode_minus_L=yes
8254           ;;
8255         esac
8256       fi
8257       ;;
8258
8259     irix5* | irix6* | nonstopux*)
8260       if test "$GCC" = yes; then
8261         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'
8262       else
8263         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'
8264         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8265       fi
8266       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267       hardcode_libdir_separator=:
8268       link_all_deplibs=yes
8269       ;;
8270
8271     netbsd*)
8272       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8273         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8274       else
8275         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8276       fi
8277       hardcode_libdir_flag_spec='-R$libdir'
8278       hardcode_direct=yes
8279       hardcode_shlibpath_var=no
8280       ;;
8281
8282     newsos6)
8283       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284       hardcode_direct=yes
8285       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8286       hardcode_libdir_separator=:
8287       hardcode_shlibpath_var=no
8288       ;;
8289
8290     openbsd*)
8291       hardcode_direct=yes
8292       hardcode_shlibpath_var=no
8293       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8294         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8296         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8297         export_dynamic_flag_spec='${wl}-E'
8298       else
8299        case $host_os in
8300          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8301            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8302            hardcode_libdir_flag_spec='-R$libdir'
8303            ;;
8304          *)
8305            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8306            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8307            ;;
8308        esac
8309       fi
8310       ;;
8311
8312     os2*)
8313       hardcode_libdir_flag_spec='-L$libdir'
8314       hardcode_minus_L=yes
8315       allow_undefined_flag=unsupported
8316       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'
8317       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8318       ;;
8319
8320     osf3*)
8321       if test "$GCC" = yes; then
8322         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8323         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'
8324       else
8325         allow_undefined_flag=' -expect_unresolved \*'
8326         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'
8327       fi
8328       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8329       hardcode_libdir_separator=:
8330       ;;
8331
8332     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8333       if test "$GCC" = yes; then
8334         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8335         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'
8336         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337       else
8338         allow_undefined_flag=' -expect_unresolved \*'
8339         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'
8340         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8341         $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'
8342
8343         # Both c and cxx compiler support -rpath directly
8344         hardcode_libdir_flag_spec='-rpath $libdir'
8345       fi
8346       hardcode_libdir_separator=:
8347       ;;
8348
8349     solaris*)
8350       no_undefined_flag=' -z text'
8351       if test "$GCC" = yes; then
8352         wlarc='${wl}'
8353         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8354         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8355           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8356       else
8357         wlarc=''
8358         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8360         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8361       fi
8362       hardcode_libdir_flag_spec='-R$libdir'
8363       hardcode_shlibpath_var=no
8364       case $host_os in
8365       solaris2.[0-5] | solaris2.[0-5].*) ;;
8366       *)
8367         # The compiler driver will combine linker options so we
8368         # cannot just pass the convience library names through
8369         # without $wl, iff we do not link with $LD.
8370         # Luckily, gcc supports the same syntax we need for Sun Studio.
8371         # Supported since Solaris 2.6 (maybe 2.5.1?)
8372         case $wlarc in
8373         '')
8374           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8375         *)
8376           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' ;;
8377         esac ;;
8378       esac
8379       link_all_deplibs=yes
8380       ;;
8381
8382     sunos4*)
8383       if test "x$host_vendor" = xsequent; then
8384         # Use $CC to link under sequent, because it throws in some extra .o
8385         # files that make .init and .fini sections work.
8386         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8387       else
8388         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8389       fi
8390       hardcode_libdir_flag_spec='-L$libdir'
8391       hardcode_direct=yes
8392       hardcode_minus_L=yes
8393       hardcode_shlibpath_var=no
8394       ;;
8395
8396     sysv4)
8397       case $host_vendor in
8398         sni)
8399           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400           hardcode_direct=yes # is this really true???
8401         ;;
8402         siemens)
8403           ## LD is ld it makes a PLAMLIB
8404           ## CC just makes a GrossModule.
8405           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8406           reload_cmds='$CC -r -o $output$reload_objs'
8407           hardcode_direct=no
8408         ;;
8409         motorola)
8410           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8412         ;;
8413       esac
8414       runpath_var='LD_RUN_PATH'
8415       hardcode_shlibpath_var=no
8416       ;;
8417
8418     sysv4.3*)
8419       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420       hardcode_shlibpath_var=no
8421       export_dynamic_flag_spec='-Bexport'
8422       ;;
8423
8424     sysv4*MP*)
8425       if test -d /usr/nec; then
8426         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8427         hardcode_shlibpath_var=no
8428         runpath_var=LD_RUN_PATH
8429         hardcode_runpath_var=yes
8430         ld_shlibs=yes
8431       fi
8432       ;;
8433
8434     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8435       no_undefined_flag='${wl}-z,text'
8436       archive_cmds_need_lc=no
8437       hardcode_shlibpath_var=no
8438       runpath_var='LD_RUN_PATH'
8439
8440       if test "$GCC" = yes; then
8441         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8443       else
8444         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8446       fi
8447       ;;
8448
8449     sysv5* | sco3.2v5* | sco5v6*)
8450       # Note: We can NOT use -z defs as we might desire, because we do not
8451       # link with -lc, and that would cause any symbols used from libc to
8452       # always be unresolved, which means just about no library would
8453       # ever link correctly.  If we're not using GNU ld we use -z text
8454       # though, which does catch some bad symbols but isn't as heavy-handed
8455       # as -z defs.
8456       no_undefined_flag='${wl}-z,text'
8457       allow_undefined_flag='${wl}-z,nodefs'
8458       archive_cmds_need_lc=no
8459       hardcode_shlibpath_var=no
8460       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8461       hardcode_libdir_separator=':'
8462       link_all_deplibs=yes
8463       export_dynamic_flag_spec='${wl}-Bexport'
8464       runpath_var='LD_RUN_PATH'
8465
8466       if test "$GCC" = yes; then
8467         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8469       else
8470         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8472       fi
8473       ;;
8474
8475     uts4*)
8476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477       hardcode_libdir_flag_spec='-L$libdir'
8478       hardcode_shlibpath_var=no
8479       ;;
8480
8481     *)
8482       ld_shlibs=no
8483       ;;
8484     esac
8485   fi
8486
8487 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8488 $as_echo "$ld_shlibs" >&6; }
8489 test "$ld_shlibs" = no && can_build_shared=no
8490
8491 #
8492 # Do we need to explicitly link libc?
8493 #
8494 case "x$archive_cmds_need_lc" in
8495 x|xyes)
8496   # Assume -lc should be added
8497   archive_cmds_need_lc=yes
8498
8499   if test "$enable_shared" = yes && test "$GCC" = yes; then
8500     case $archive_cmds in
8501     *'~'*)
8502       # FIXME: we may have to deal with multi-command sequences.
8503       ;;
8504     '$CC '*)
8505       # Test whether the compiler implicitly links with -lc since on some
8506       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8507       # to ld, don't add -lc before -lgcc.
8508       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8510       $rm conftest*
8511       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8512
8513       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514   (eval $ac_compile) 2>&5
8515   ac_status=$?
8516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } 2>conftest.err; then
8518         soname=conftest
8519         lib=conftest
8520         libobjs=conftest.$ac_objext
8521         deplibs=
8522         wl=$lt_prog_compiler_wl
8523         pic_flag=$lt_prog_compiler_pic
8524         compiler_flags=-v
8525         linker_flags=-v
8526         verstring=
8527         output_objdir=.
8528         libname=conftest
8529         lt_save_allow_undefined_flag=$allow_undefined_flag
8530         allow_undefined_flag=
8531         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8532   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8533   ac_status=$?
8534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }
8536         then
8537           archive_cmds_need_lc=no
8538         else
8539           archive_cmds_need_lc=yes
8540         fi
8541         allow_undefined_flag=$lt_save_allow_undefined_flag
8542       else
8543         cat conftest.err 1>&5
8544       fi
8545       $rm conftest*
8546       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8547 $as_echo "$archive_cmds_need_lc" >&6; }
8548       ;;
8549     esac
8550   fi
8551   ;;
8552 esac
8553
8554 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8555 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8556 library_names_spec=
8557 libname_spec='lib$name'
8558 soname_spec=
8559 shrext_cmds=".so"
8560 postinstall_cmds=
8561 postuninstall_cmds=
8562 finish_cmds=
8563 finish_eval=
8564 shlibpath_var=
8565 shlibpath_overrides_runpath=unknown
8566 version_type=none
8567 dynamic_linker="$host_os ld.so"
8568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8569 if test "$GCC" = yes; then
8570   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8571   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8572     # if the path contains ";" then we assume it to be the separator
8573     # otherwise default to the standard path separator (i.e. ":") - it is
8574     # assumed that no part of a normal pathname contains ";" but that should
8575     # okay in the real world where ";" in dirpaths is itself problematic.
8576     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8577   else
8578     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8579   fi
8580 else
8581   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8582 fi
8583 need_lib_prefix=unknown
8584 hardcode_into_libs=no
8585
8586 # when you set need_version to no, make sure it does not cause -set_version
8587 # flags to be left without arguments
8588 need_version=unknown
8589
8590 case $host_os in
8591 aix3*)
8592   version_type=linux
8593   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8594   shlibpath_var=LIBPATH
8595
8596   # AIX 3 has no versioning support, so we append a major version to the name.
8597   soname_spec='${libname}${release}${shared_ext}$major'
8598   ;;
8599
8600 aix4* | aix5*)
8601   version_type=linux
8602   need_lib_prefix=no
8603   need_version=no
8604   hardcode_into_libs=yes
8605   if test "$host_cpu" = ia64; then
8606     # AIX 5 supports IA64
8607     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8608     shlibpath_var=LD_LIBRARY_PATH
8609   else
8610     # With GCC up to 2.95.x, collect2 would create an import file
8611     # for dependence libraries.  The import file would start with
8612     # the line `#! .'.  This would cause the generated library to
8613     # depend on `.', always an invalid library.  This was fixed in
8614     # development snapshots of GCC prior to 3.0.
8615     case $host_os in
8616       aix4 | aix4.[01] | aix4.[01].*)
8617       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8618            echo ' yes '
8619            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8620         :
8621       else
8622         can_build_shared=no
8623       fi
8624       ;;
8625     esac
8626     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8627     # soname into executable. Probably we can add versioning support to
8628     # collect2, so additional links can be useful in future.
8629     if test "$aix_use_runtimelinking" = yes; then
8630       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8631       # instead of lib<name>.a to let people know that these are not
8632       # typical AIX shared libraries.
8633       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634     else
8635       # We preserve .a as extension for shared libraries through AIX4.2
8636       # and later when we are not doing run time linking.
8637       library_names_spec='${libname}${release}.a $libname.a'
8638       soname_spec='${libname}${release}${shared_ext}$major'
8639     fi
8640     shlibpath_var=LIBPATH
8641   fi
8642   ;;
8643
8644 amigaos*)
8645   library_names_spec='$libname.ixlibrary $libname.a'
8646   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8647   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'
8648   ;;
8649
8650 beos*)
8651   library_names_spec='${libname}${shared_ext}'
8652   dynamic_linker="$host_os ld.so"
8653   shlibpath_var=LIBRARY_PATH
8654   ;;
8655
8656 bsdi[45]*)
8657   version_type=linux
8658   need_version=no
8659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8660   soname_spec='${libname}${release}${shared_ext}$major'
8661   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8662   shlibpath_var=LD_LIBRARY_PATH
8663   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8664   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8665   # the default ld.so.conf also contains /usr/contrib/lib and
8666   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8667   # libtool to hard-code these into programs
8668   ;;
8669
8670 cygwin* | mingw* | pw32*)
8671   version_type=windows
8672   shrext_cmds=".dll"
8673   need_version=no
8674   need_lib_prefix=no
8675
8676   case $GCC,$host_os in
8677   yes,cygwin* | yes,mingw* | yes,pw32*)
8678     library_names_spec='$libname.dll.a'
8679     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8680     postinstall_cmds='base_file=`basename \${file}`~
8681       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8682       dldir=$destdir/`dirname \$dlpath`~
8683       test -d \$dldir || mkdir -p \$dldir~
8684       $install_prog $dir/$dlname \$dldir/$dlname~
8685       chmod a+x \$dldir/$dlname'
8686     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8687       dlpath=$dir/\$dldll~
8688        $rm \$dlpath'
8689     shlibpath_overrides_runpath=yes
8690
8691     case $host_os in
8692     cygwin*)
8693       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8694       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8695       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8696       ;;
8697     mingw*)
8698       # MinGW DLLs use traditional 'lib' prefix
8699       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8700       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8701       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8702         # It is most probably a Windows format PATH printed by
8703         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8704         # path with ; separators, and with drive letters. We can handle the
8705         # drive letters (cygwin fileutils understands them), so leave them,
8706         # especially as we might pass files found there to a mingw objdump,
8707         # which wouldn't understand a cygwinified path. Ahh.
8708         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8709       else
8710         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8711       fi
8712       ;;
8713     pw32*)
8714       # pw32 DLLs use 'pw' prefix rather than 'lib'
8715       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8716       ;;
8717     esac
8718     ;;
8719
8720   *)
8721     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8722     ;;
8723   esac
8724   dynamic_linker='Win32 ld.exe'
8725   # FIXME: first we should search . and the directory the executable is in
8726   shlibpath_var=PATH
8727   ;;
8728
8729 darwin* | rhapsody*)
8730   dynamic_linker="$host_os dyld"
8731   version_type=darwin
8732   need_lib_prefix=no
8733   need_version=no
8734   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8735   soname_spec='${libname}${release}${major}$shared_ext'
8736   shlibpath_overrides_runpath=yes
8737   shlibpath_var=DYLD_LIBRARY_PATH
8738   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8739   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8740   if test "$GCC" = yes; then
8741     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"`
8742   else
8743     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8744   fi
8745   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8746   ;;
8747
8748 dgux*)
8749   version_type=linux
8750   need_lib_prefix=no
8751   need_version=no
8752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8753   soname_spec='${libname}${release}${shared_ext}$major'
8754   shlibpath_var=LD_LIBRARY_PATH
8755   ;;
8756
8757 freebsd1*)
8758   dynamic_linker=no
8759   ;;
8760
8761 kfreebsd*-gnu)
8762   version_type=linux
8763   need_lib_prefix=no
8764   need_version=no
8765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8766   soname_spec='${libname}${release}${shared_ext}$major'
8767   shlibpath_var=LD_LIBRARY_PATH
8768   shlibpath_overrides_runpath=no
8769   hardcode_into_libs=yes
8770   dynamic_linker='GNU ld.so'
8771   ;;
8772
8773 freebsd* | dragonfly*)
8774   # DragonFly does not have aout.  When/if they implement a new
8775   # versioning mechanism, adjust this.
8776   if test -x /usr/bin/objformat; then
8777     objformat=`/usr/bin/objformat`
8778   else
8779     case $host_os in
8780     freebsd[123]*) objformat=aout ;;
8781     *) objformat=elf ;;
8782     esac
8783   fi
8784   version_type=freebsd-$objformat
8785   case $version_type in
8786     freebsd-elf*)
8787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8788       need_version=no
8789       need_lib_prefix=no
8790       ;;
8791     freebsd-*)
8792       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8793       need_version=yes
8794       ;;
8795   esac
8796   shlibpath_var=LD_LIBRARY_PATH
8797   case $host_os in
8798   freebsd2*)
8799     shlibpath_overrides_runpath=yes
8800     ;;
8801   freebsd3.[01]* | freebsdelf3.[01]*)
8802     shlibpath_overrides_runpath=yes
8803     hardcode_into_libs=yes
8804     ;;
8805   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8806   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8807     shlibpath_overrides_runpath=no
8808     hardcode_into_libs=yes
8809     ;;
8810   freebsd*) # from 4.6 on
8811     shlibpath_overrides_runpath=yes
8812     hardcode_into_libs=yes
8813     ;;
8814   esac
8815   ;;
8816
8817 gnu*)
8818   version_type=linux
8819   need_lib_prefix=no
8820   need_version=no
8821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8822   soname_spec='${libname}${release}${shared_ext}$major'
8823   shlibpath_var=LD_LIBRARY_PATH
8824   hardcode_into_libs=yes
8825   ;;
8826
8827 hpux9* | hpux10* | hpux11*)
8828   # Give a soname corresponding to the major version so that dld.sl refuses to
8829   # link against other versions.
8830   version_type=sunos
8831   need_lib_prefix=no
8832   need_version=no
8833   case $host_cpu in
8834   ia64*)
8835     shrext_cmds='.so'
8836     hardcode_into_libs=yes
8837     dynamic_linker="$host_os dld.so"
8838     shlibpath_var=LD_LIBRARY_PATH
8839     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841     soname_spec='${libname}${release}${shared_ext}$major'
8842     if test "X$HPUX_IA64_MODE" = X32; then
8843       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8844     else
8845       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8846     fi
8847     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8848     ;;
8849    hppa*64*)
8850      shrext_cmds='.sl'
8851      hardcode_into_libs=yes
8852      dynamic_linker="$host_os dld.sl"
8853      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8854      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856      soname_spec='${libname}${release}${shared_ext}$major'
8857      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8858      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8859      ;;
8860    *)
8861     shrext_cmds='.sl'
8862     dynamic_linker="$host_os dld.sl"
8863     shlibpath_var=SHLIB_PATH
8864     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866     soname_spec='${libname}${release}${shared_ext}$major'
8867     ;;
8868   esac
8869   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8870   postinstall_cmds='chmod 555 $lib'
8871   ;;
8872
8873 interix3*)
8874   version_type=linux
8875   need_lib_prefix=no
8876   need_version=no
8877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8878   soname_spec='${libname}${release}${shared_ext}$major'
8879   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8880   shlibpath_var=LD_LIBRARY_PATH
8881   shlibpath_overrides_runpath=no
8882   hardcode_into_libs=yes
8883   ;;
8884
8885 irix5* | irix6* | nonstopux*)
8886   case $host_os in
8887     nonstopux*) version_type=nonstopux ;;
8888     *)
8889         if test "$lt_cv_prog_gnu_ld" = yes; then
8890                 version_type=linux
8891         else
8892                 version_type=irix
8893         fi ;;
8894   esac
8895   need_lib_prefix=no
8896   need_version=no
8897   soname_spec='${libname}${release}${shared_ext}$major'
8898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8899   case $host_os in
8900   irix5* | nonstopux*)
8901     libsuff= shlibsuff=
8902     ;;
8903   *)
8904     case $LD in # libtool.m4 will add one of these switches to LD
8905     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8906       libsuff= shlibsuff= libmagic=32-bit;;
8907     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8908       libsuff=32 shlibsuff=N32 libmagic=N32;;
8909     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8910       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8911     *) libsuff= shlibsuff= libmagic=never-match;;
8912     esac
8913     ;;
8914   esac
8915   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8916   shlibpath_overrides_runpath=no
8917   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8918   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8919   hardcode_into_libs=yes
8920   ;;
8921
8922 # No shared lib support for Linux oldld, aout, or coff.
8923 linux*oldld* | linux*aout* | linux*coff*)
8924   dynamic_linker=no
8925   ;;
8926
8927 # This must be Linux ELF.
8928 linux*)
8929   version_type=linux
8930   need_lib_prefix=no
8931   need_version=no
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933   soname_spec='${libname}${release}${shared_ext}$major'
8934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8935   shlibpath_var=LD_LIBRARY_PATH
8936   shlibpath_overrides_runpath=no
8937   # This implies no fast_install, which is unacceptable.
8938   # Some rework will be needed to allow for fast_install
8939   # before this can be enabled.
8940   hardcode_into_libs=yes
8941
8942   # find out which ABI we are using
8943   libsuff=
8944   case "$host_cpu" in
8945   x86_64*|s390x*|powerpc64*)
8946     echo '#line 8946 "configure"' > conftest.$ac_ext
8947     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948   (eval $ac_compile) 2>&5
8949   ac_status=$?
8950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; then
8952       case `/usr/bin/file conftest.$ac_objext` in
8953       *64-bit*)
8954         libsuff=64
8955         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8956         ;;
8957       esac
8958     fi
8959     rm -rf conftest*
8960     ;;
8961   esac
8962
8963   # Append ld.so.conf contents to the search path
8964   if test -f /etc/ld.so.conf; then
8965     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8966     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8967   fi
8968
8969   # We used to test for /lib/ld.so.1 and disable shared libraries on
8970   # powerpc, because MkLinux only supported shared libraries with the
8971   # GNU dynamic linker.  Since this was broken with cross compilers,
8972   # most powerpc-linux boxes support dynamic linking these days and
8973   # people can always --disable-shared, the test was removed, and we
8974   # assume the GNU/Linux dynamic linker is in use.
8975   dynamic_linker='GNU/Linux ld.so'
8976   ;;
8977
8978 knetbsd*-gnu)
8979   version_type=linux
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   hardcode_into_libs=yes
8987   dynamic_linker='GNU ld.so'
8988   ;;
8989
8990 netbsd*)
8991   version_type=sunos
8992   need_lib_prefix=no
8993   need_version=no
8994   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8996     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8997     dynamic_linker='NetBSD (a.out) ld.so'
8998   else
8999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9000     soname_spec='${libname}${release}${shared_ext}$major'
9001     dynamic_linker='NetBSD ld.elf_so'
9002   fi
9003   shlibpath_var=LD_LIBRARY_PATH
9004   shlibpath_overrides_runpath=yes
9005   hardcode_into_libs=yes
9006   ;;
9007
9008 newsos6)
9009   version_type=linux
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011   shlibpath_var=LD_LIBRARY_PATH
9012   shlibpath_overrides_runpath=yes
9013   ;;
9014
9015 nto-qnx*)
9016   version_type=linux
9017   need_lib_prefix=no
9018   need_version=no
9019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020   soname_spec='${libname}${release}${shared_ext}$major'
9021   shlibpath_var=LD_LIBRARY_PATH
9022   shlibpath_overrides_runpath=yes
9023   ;;
9024
9025 openbsd*)
9026   version_type=sunos
9027   sys_lib_dlsearch_path_spec="/usr/lib"
9028   need_lib_prefix=no
9029   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9030   case $host_os in
9031     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9032     *)                         need_version=no  ;;
9033   esac
9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9036   shlibpath_var=LD_LIBRARY_PATH
9037   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9038     case $host_os in
9039       openbsd2.[89] | openbsd2.[89].*)
9040         shlibpath_overrides_runpath=no
9041         ;;
9042       *)
9043         shlibpath_overrides_runpath=yes
9044         ;;
9045       esac
9046   else
9047     shlibpath_overrides_runpath=yes
9048   fi
9049   ;;
9050
9051 os2*)
9052   libname_spec='$name'
9053   shrext_cmds=".dll"
9054   need_lib_prefix=no
9055   library_names_spec='$libname${shared_ext} $libname.a'
9056   dynamic_linker='OS/2 ld.exe'
9057   shlibpath_var=LIBPATH
9058   ;;
9059
9060 osf3* | osf4* | osf5*)
9061   version_type=osf
9062   need_lib_prefix=no
9063   need_version=no
9064   soname_spec='${libname}${release}${shared_ext}$major'
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066   shlibpath_var=LD_LIBRARY_PATH
9067   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9068   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9069   ;;
9070
9071 solaris*)
9072   version_type=linux
9073   need_lib_prefix=no
9074   need_version=no
9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076   soname_spec='${libname}${release}${shared_ext}$major'
9077   shlibpath_var=LD_LIBRARY_PATH
9078   shlibpath_overrides_runpath=yes
9079   hardcode_into_libs=yes
9080   # ldd complains unless libraries are executable
9081   postinstall_cmds='chmod +x $lib'
9082   ;;
9083
9084 sunos4*)
9085   version_type=sunos
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9087   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9088   shlibpath_var=LD_LIBRARY_PATH
9089   shlibpath_overrides_runpath=yes
9090   if test "$with_gnu_ld" = yes; then
9091     need_lib_prefix=no
9092   fi
9093   need_version=yes
9094   ;;
9095
9096 sysv4 | sysv4.3*)
9097   version_type=linux
9098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099   soname_spec='${libname}${release}${shared_ext}$major'
9100   shlibpath_var=LD_LIBRARY_PATH
9101   case $host_vendor in
9102     sni)
9103       shlibpath_overrides_runpath=no
9104       need_lib_prefix=no
9105       export_dynamic_flag_spec='${wl}-Blargedynsym'
9106       runpath_var=LD_RUN_PATH
9107       ;;
9108     siemens)
9109       need_lib_prefix=no
9110       ;;
9111     motorola)
9112       need_lib_prefix=no
9113       need_version=no
9114       shlibpath_overrides_runpath=no
9115       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9116       ;;
9117   esac
9118   ;;
9119
9120 sysv4*MP*)
9121   if test -d /usr/nec ;then
9122     version_type=linux
9123     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9124     soname_spec='$libname${shared_ext}.$major'
9125     shlibpath_var=LD_LIBRARY_PATH
9126   fi
9127   ;;
9128
9129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9130   version_type=freebsd-elf
9131   need_lib_prefix=no
9132   need_version=no
9133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9134   soname_spec='${libname}${release}${shared_ext}$major'
9135   shlibpath_var=LD_LIBRARY_PATH
9136   hardcode_into_libs=yes
9137   if test "$with_gnu_ld" = yes; then
9138     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9139     shlibpath_overrides_runpath=no
9140   else
9141     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9142     shlibpath_overrides_runpath=yes
9143     case $host_os in
9144       sco3.2v5*)
9145         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9146         ;;
9147     esac
9148   fi
9149   sys_lib_dlsearch_path_spec='/usr/lib'
9150   ;;
9151
9152 uts4*)
9153   version_type=linux
9154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155   soname_spec='${libname}${release}${shared_ext}$major'
9156   shlibpath_var=LD_LIBRARY_PATH
9157   ;;
9158
9159 *)
9160   dynamic_linker=no
9161   ;;
9162 esac
9163 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9164 $as_echo "$dynamic_linker" >&6; }
9165 test "$dynamic_linker" = no && can_build_shared=no
9166
9167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9168 if test "$GCC" = yes; then
9169   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9170 fi
9171
9172 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9174 hardcode_action=
9175 if test -n "$hardcode_libdir_flag_spec" || \
9176    test -n "$runpath_var" || \
9177    test "X$hardcode_automatic" = "Xyes" ; then
9178
9179   # We can hardcode non-existant directories.
9180   if test "$hardcode_direct" != no &&
9181      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9182      # have to relink, otherwise we might link with an installed library
9183      # when we should be linking with a yet-to-be-installed one
9184      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9185      test "$hardcode_minus_L" != no; then
9186     # Linking always hardcodes the temporary library directory.
9187     hardcode_action=relink
9188   else
9189     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9190     hardcode_action=immediate
9191   fi
9192 else
9193   # We cannot hardcode anything, or else we can only hardcode existing
9194   # directories.
9195   hardcode_action=unsupported
9196 fi
9197 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9198 $as_echo "$hardcode_action" >&6; }
9199
9200 if test "$hardcode_action" = relink; then
9201   # Fast installation is not supported
9202   enable_fast_install=no
9203 elif test "$shlibpath_overrides_runpath" = yes ||
9204      test "$enable_shared" = no; then
9205   # Fast installation is not necessary
9206   enable_fast_install=needless
9207 fi
9208
9209 striplib=
9210 old_striplib=
9211 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9213 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9214   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9215   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9216   { $as_echo "$as_me:$LINENO: result: yes" >&5
9217 $as_echo "yes" >&6; }
9218 else
9219 # FIXME - insert some real tests, host_os isn't really good enough
9220   case $host_os in
9221    darwin*)
9222        if test -n "$STRIP" ; then
9223          striplib="$STRIP -x"
9224          { $as_echo "$as_me:$LINENO: result: yes" >&5
9225 $as_echo "yes" >&6; }
9226        else
9227   { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230        ;;
9231    *)
9232   { $as_echo "$as_me:$LINENO: result: no" >&5
9233 $as_echo "no" >&6; }
9234     ;;
9235   esac
9236 fi
9237
9238 if test "x$enable_dlopen" != xyes; then
9239   enable_dlopen=unknown
9240   enable_dlopen_self=unknown
9241   enable_dlopen_self_static=unknown
9242 else
9243   lt_cv_dlopen=no
9244   lt_cv_dlopen_libs=
9245
9246   case $host_os in
9247   beos*)
9248     lt_cv_dlopen="load_add_on"
9249     lt_cv_dlopen_libs=
9250     lt_cv_dlopen_self=yes
9251     ;;
9252
9253   mingw* | pw32*)
9254     lt_cv_dlopen="LoadLibrary"
9255     lt_cv_dlopen_libs=
9256    ;;
9257
9258   cygwin*)
9259     lt_cv_dlopen="dlopen"
9260     lt_cv_dlopen_libs=
9261    ;;
9262
9263   darwin*)
9264   # if libdl is installed we need to link against it
9265     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9266 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9267 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9268   $as_echo_n "(cached) " >&6
9269 else
9270   ac_check_lib_save_LIBS=$LIBS
9271 LIBS="-ldl  $LIBS"
9272 cat >conftest.$ac_ext <<_ACEOF
9273 /* confdefs.h.  */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h.  */
9278
9279 /* Override any GCC internal prototype to avoid an error.
9280    Use char because int might match the return type of a GCC
9281    builtin and then its argument prototype would still apply.  */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char dlopen ();
9286 int
9287 main ()
9288 {
9289 return dlopen ();
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9296 case "(($ac_try" in
9297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298   *) ac_try_echo=$ac_try;;
9299 esac
9300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9301 $as_echo "$ac_try_echo") >&5
9302   (eval "$ac_link") 2>conftest.er1
9303   ac_status=$?
9304   grep -v '^ *+' conftest.er1 >conftest.err
9305   rm -f conftest.er1
9306   cat conftest.err >&5
9307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); } && {
9309          test -z "$ac_c_werror_flag" ||
9310          test ! -s conftest.err
9311        } && test -s conftest$ac_exeext && {
9312          test "$cross_compiling" = yes ||
9313          $as_test_x conftest$ac_exeext
9314        }; then
9315   ac_cv_lib_dl_dlopen=yes
9316 else
9317   $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9319
9320         ac_cv_lib_dl_dlopen=no
9321 fi
9322
9323 rm -rf conftest.dSYM
9324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325       conftest$ac_exeext conftest.$ac_ext
9326 LIBS=$ac_check_lib_save_LIBS
9327 fi
9328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9329 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9330 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9332 else
9333
9334     lt_cv_dlopen="dyld"
9335     lt_cv_dlopen_libs=
9336     lt_cv_dlopen_self=yes
9337
9338 fi
9339
9340    ;;
9341
9342   *)
9343     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9344 $as_echo_n "checking for shl_load... " >&6; }
9345 if test "${ac_cv_func_shl_load+set}" = set; then
9346   $as_echo_n "(cached) " >&6
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9356 #define shl_load innocuous_shl_load
9357
9358 /* System header to define __stub macros and hopefully few prototypes,
9359     which can conflict with char shl_load (); below.
9360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361     <limits.h> exists even on freestanding compilers.  */
9362
9363 #ifdef __STDC__
9364 # include <limits.h>
9365 #else
9366 # include <assert.h>
9367 #endif
9368
9369 #undef shl_load
9370
9371 /* Override any GCC internal prototype to avoid an error.
9372    Use char because int might match the return type of a GCC
9373    builtin and then its argument prototype would still apply.  */
9374 #ifdef __cplusplus
9375 extern "C"
9376 #endif
9377 char shl_load ();
9378 /* The GNU C library defines this for functions which it implements
9379     to always fail with ENOSYS.  Some functions are actually named
9380     something starting with __ and the normal name is an alias.  */
9381 #if defined __stub_shl_load || defined __stub___shl_load
9382 choke me
9383 #endif
9384
9385 int
9386 main ()
9387 {
9388 return shl_load ();
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9395 case "(($ac_try" in
9396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397   *) ac_try_echo=$ac_try;;
9398 esac
9399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9400 $as_echo "$ac_try_echo") >&5
9401   (eval "$ac_link") 2>conftest.er1
9402   ac_status=$?
9403   grep -v '^ *+' conftest.er1 >conftest.err
9404   rm -f conftest.er1
9405   cat conftest.err >&5
9406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } && {
9408          test -z "$ac_c_werror_flag" ||
9409          test ! -s conftest.err
9410        } && test -s conftest$ac_exeext && {
9411          test "$cross_compiling" = yes ||
9412          $as_test_x conftest$ac_exeext
9413        }; then
9414   ac_cv_func_shl_load=yes
9415 else
9416   $as_echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419         ac_cv_func_shl_load=no
9420 fi
9421
9422 rm -rf conftest.dSYM
9423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424       conftest$ac_exeext conftest.$ac_ext
9425 fi
9426 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9427 $as_echo "$ac_cv_func_shl_load" >&6; }
9428 if test "x$ac_cv_func_shl_load" = x""yes; then
9429   lt_cv_dlopen="shl_load"
9430 else
9431   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9434   $as_echo_n "(cached) " >&6
9435 else
9436   ac_check_lib_save_LIBS=$LIBS
9437 LIBS="-ldld  $LIBS"
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h.  */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h.  */
9444
9445 /* Override any GCC internal prototype to avoid an error.
9446    Use char because int might match the return type of a GCC
9447    builtin and then its argument prototype would still apply.  */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char shl_load ();
9452 int
9453 main ()
9454 {
9455 return shl_load ();
9456   ;
9457   return 0;
9458 }
9459 _ACEOF
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (ac_try="$ac_link"
9462 case "(($ac_try" in
9463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464   *) ac_try_echo=$ac_try;;
9465 esac
9466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9467 $as_echo "$ac_try_echo") >&5
9468   (eval "$ac_link") 2>conftest.er1
9469   ac_status=$?
9470   grep -v '^ *+' conftest.er1 >conftest.err
9471   rm -f conftest.er1
9472   cat conftest.err >&5
9473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } && {
9475          test -z "$ac_c_werror_flag" ||
9476          test ! -s conftest.err
9477        } && test -s conftest$ac_exeext && {
9478          test "$cross_compiling" = yes ||
9479          $as_test_x conftest$ac_exeext
9480        }; then
9481   ac_cv_lib_dld_shl_load=yes
9482 else
9483   $as_echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9485
9486         ac_cv_lib_dld_shl_load=no
9487 fi
9488
9489 rm -rf conftest.dSYM
9490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9491       conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9493 fi
9494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9497   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9498 else
9499   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9500 $as_echo_n "checking for dlopen... " >&6; }
9501 if test "${ac_cv_func_dlopen+set}" = set; then
9502   $as_echo_n "(cached) " >&6
9503 else
9504   cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9512 #define dlopen innocuous_dlopen
9513
9514 /* System header to define __stub macros and hopefully few prototypes,
9515     which can conflict with char dlopen (); below.
9516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517     <limits.h> exists even on freestanding compilers.  */
9518
9519 #ifdef __STDC__
9520 # include <limits.h>
9521 #else
9522 # include <assert.h>
9523 #endif
9524
9525 #undef dlopen
9526
9527 /* Override any GCC internal prototype to avoid an error.
9528    Use char because int might match the return type of a GCC
9529    builtin and then its argument prototype would still apply.  */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char dlopen ();
9534 /* The GNU C library defines this for functions which it implements
9535     to always fail with ENOSYS.  Some functions are actually named
9536     something starting with __ and the normal name is an alias.  */
9537 #if defined __stub_dlopen || defined __stub___dlopen
9538 choke me
9539 #endif
9540
9541 int
9542 main ()
9543 {
9544 return dlopen ();
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9556 $as_echo "$ac_try_echo") >&5
9557   (eval "$ac_link") 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } && {
9564          test -z "$ac_c_werror_flag" ||
9565          test ! -s conftest.err
9566        } && test -s conftest$ac_exeext && {
9567          test "$cross_compiling" = yes ||
9568          $as_test_x conftest$ac_exeext
9569        }; then
9570   ac_cv_func_dlopen=yes
9571 else
9572   $as_echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9574
9575         ac_cv_func_dlopen=no
9576 fi
9577
9578 rm -rf conftest.dSYM
9579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9580       conftest$ac_exeext conftest.$ac_ext
9581 fi
9582 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9583 $as_echo "$ac_cv_func_dlopen" >&6; }
9584 if test "x$ac_cv_func_dlopen" = x""yes; then
9585   lt_cv_dlopen="dlopen"
9586 else
9587   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9590   $as_echo_n "(cached) " >&6
9591 else
9592   ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-ldl  $LIBS"
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600
9601 /* Override any GCC internal prototype to avoid an error.
9602    Use char because int might match the return type of a GCC
9603    builtin and then its argument prototype would still apply.  */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char dlopen ();
9608 int
9609 main ()
9610 {
9611 return dlopen ();
9612   ;
9613   return 0;
9614 }
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (ac_try="$ac_link"
9618 case "(($ac_try" in
9619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620   *) ac_try_echo=$ac_try;;
9621 esac
9622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9623 $as_echo "$ac_try_echo") >&5
9624   (eval "$ac_link") 2>conftest.er1
9625   ac_status=$?
9626   grep -v '^ *+' conftest.er1 >conftest.err
9627   rm -f conftest.er1
9628   cat conftest.err >&5
9629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } && {
9631          test -z "$ac_c_werror_flag" ||
9632          test ! -s conftest.err
9633        } && test -s conftest$ac_exeext && {
9634          test "$cross_compiling" = yes ||
9635          $as_test_x conftest$ac_exeext
9636        }; then
9637   ac_cv_lib_dl_dlopen=yes
9638 else
9639   $as_echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642         ac_cv_lib_dl_dlopen=no
9643 fi
9644
9645 rm -rf conftest.dSYM
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647       conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9649 fi
9650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9652 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9653   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9654 else
9655   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9656 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9657 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9658   $as_echo_n "(cached) " >&6
9659 else
9660   ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-lsvld  $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668
9669 /* Override any GCC internal prototype to avoid an error.
9670    Use char because int might match the return type of a GCC
9671    builtin and then its argument prototype would still apply.  */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char dlopen ();
9676 int
9677 main ()
9678 {
9679 return dlopen ();
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9691 $as_echo "$ac_try_echo") >&5
9692   (eval "$ac_link") 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } && {
9699          test -z "$ac_c_werror_flag" ||
9700          test ! -s conftest.err
9701        } && test -s conftest$ac_exeext && {
9702          test "$cross_compiling" = yes ||
9703          $as_test_x conftest$ac_exeext
9704        }; then
9705   ac_cv_lib_svld_dlopen=yes
9706 else
9707   $as_echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710         ac_cv_lib_svld_dlopen=no
9711 fi
9712
9713 rm -rf conftest.dSYM
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715       conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9717 fi
9718 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9719 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9720 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9721   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9722 else
9723   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9724 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9725 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9726   $as_echo_n "(cached) " >&6
9727 else
9728   ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-ldld  $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 /* Override any GCC internal prototype to avoid an error.
9738    Use char because int might match the return type of a GCC
9739    builtin and then its argument prototype would still apply.  */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char dld_link ();
9744 int
9745 main ()
9746 {
9747 return dld_link ();
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760   (eval "$ac_link") 2>conftest.er1
9761   ac_status=$?
9762   grep -v '^ *+' conftest.er1 >conftest.err
9763   rm -f conftest.er1
9764   cat conftest.err >&5
9765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); } && {
9767          test -z "$ac_c_werror_flag" ||
9768          test ! -s conftest.err
9769        } && test -s conftest$ac_exeext && {
9770          test "$cross_compiling" = yes ||
9771          $as_test_x conftest$ac_exeext
9772        }; then
9773   ac_cv_lib_dld_dld_link=yes
9774 else
9775   $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778         ac_cv_lib_dld_dld_link=no
9779 fi
9780
9781 rm -rf conftest.dSYM
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783       conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9785 fi
9786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9788 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9789   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9790 fi
9791
9792
9793 fi
9794
9795
9796 fi
9797
9798
9799 fi
9800
9801
9802 fi
9803
9804
9805 fi
9806
9807     ;;
9808   esac
9809
9810   if test "x$lt_cv_dlopen" != xno; then
9811     enable_dlopen=yes
9812   else
9813     enable_dlopen=no
9814   fi
9815
9816   case $lt_cv_dlopen in
9817   dlopen)
9818     save_CPPFLAGS="$CPPFLAGS"
9819     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9820
9821     save_LDFLAGS="$LDFLAGS"
9822     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9823
9824     save_LIBS="$LIBS"
9825     LIBS="$lt_cv_dlopen_libs $LIBS"
9826
9827     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9829 if test "${lt_cv_dlopen_self+set}" = set; then
9830   $as_echo_n "(cached) " >&6
9831 else
9832           if test "$cross_compiling" = yes; then :
9833   lt_cv_dlopen_self=cross
9834 else
9835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9836   lt_status=$lt_dlunknown
9837   cat > conftest.$ac_ext <<EOF
9838 #line 9838 "configure"
9839 #include "confdefs.h"
9840
9841 #if HAVE_DLFCN_H
9842 #include <dlfcn.h>
9843 #endif
9844
9845 #include <stdio.h>
9846
9847 #ifdef RTLD_GLOBAL
9848 #  define LT_DLGLOBAL           RTLD_GLOBAL
9849 #else
9850 #  ifdef DL_GLOBAL
9851 #    define LT_DLGLOBAL         DL_GLOBAL
9852 #  else
9853 #    define LT_DLGLOBAL         0
9854 #  endif
9855 #endif
9856
9857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9858    find out it does not work in some platform. */
9859 #ifndef LT_DLLAZY_OR_NOW
9860 #  ifdef RTLD_LAZY
9861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9862 #  else
9863 #    ifdef DL_LAZY
9864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9865 #    else
9866 #      ifdef RTLD_NOW
9867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9868 #      else
9869 #        ifdef DL_NOW
9870 #          define LT_DLLAZY_OR_NOW      DL_NOW
9871 #        else
9872 #          define LT_DLLAZY_OR_NOW      0
9873 #        endif
9874 #      endif
9875 #    endif
9876 #  endif
9877 #endif
9878
9879 #ifdef __cplusplus
9880 extern "C" void exit (int);
9881 #endif
9882
9883 void fnord() { int i=42;}
9884 int main ()
9885 {
9886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9887   int status = $lt_dlunknown;
9888
9889   if (self)
9890     {
9891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9892       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9893       /* dlclose (self); */
9894     }
9895   else
9896     puts (dlerror ());
9897
9898     exit (status);
9899 }
9900 EOF
9901   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902   (eval $ac_link) 2>&5
9903   ac_status=$?
9904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9906     (./conftest; exit; ) >&5 2>/dev/null
9907     lt_status=$?
9908     case x$lt_status in
9909       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9910       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9911       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9912     esac
9913   else :
9914     # compilation failed
9915     lt_cv_dlopen_self=no
9916   fi
9917 fi
9918 rm -fr conftest*
9919
9920
9921 fi
9922 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9923 $as_echo "$lt_cv_dlopen_self" >&6; }
9924
9925     if test "x$lt_cv_dlopen_self" = xyes; then
9926       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9927       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9928 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9929 if test "${lt_cv_dlopen_self_static+set}" = set; then
9930   $as_echo_n "(cached) " >&6
9931 else
9932           if test "$cross_compiling" = yes; then :
9933   lt_cv_dlopen_self_static=cross
9934 else
9935   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9936   lt_status=$lt_dlunknown
9937   cat > conftest.$ac_ext <<EOF
9938 #line 9938 "configure"
9939 #include "confdefs.h"
9940
9941 #if HAVE_DLFCN_H
9942 #include <dlfcn.h>
9943 #endif
9944
9945 #include <stdio.h>
9946
9947 #ifdef RTLD_GLOBAL
9948 #  define LT_DLGLOBAL           RTLD_GLOBAL
9949 #else
9950 #  ifdef DL_GLOBAL
9951 #    define LT_DLGLOBAL         DL_GLOBAL
9952 #  else
9953 #    define LT_DLGLOBAL         0
9954 #  endif
9955 #endif
9956
9957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9958    find out it does not work in some platform. */
9959 #ifndef LT_DLLAZY_OR_NOW
9960 #  ifdef RTLD_LAZY
9961 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9962 #  else
9963 #    ifdef DL_LAZY
9964 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9965 #    else
9966 #      ifdef RTLD_NOW
9967 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9968 #      else
9969 #        ifdef DL_NOW
9970 #          define LT_DLLAZY_OR_NOW      DL_NOW
9971 #        else
9972 #          define LT_DLLAZY_OR_NOW      0
9973 #        endif
9974 #      endif
9975 #    endif
9976 #  endif
9977 #endif
9978
9979 #ifdef __cplusplus
9980 extern "C" void exit (int);
9981 #endif
9982
9983 void fnord() { int i=42;}
9984 int main ()
9985 {
9986   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9987   int status = $lt_dlunknown;
9988
9989   if (self)
9990     {
9991       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9992       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9993       /* dlclose (self); */
9994     }
9995   else
9996     puts (dlerror ());
9997
9998     exit (status);
9999 }
10000 EOF
10001   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002   (eval $ac_link) 2>&5
10003   ac_status=$?
10004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10006     (./conftest; exit; ) >&5 2>/dev/null
10007     lt_status=$?
10008     case x$lt_status in
10009       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10010       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10011       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10012     esac
10013   else :
10014     # compilation failed
10015     lt_cv_dlopen_self_static=no
10016   fi
10017 fi
10018 rm -fr conftest*
10019
10020
10021 fi
10022 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10023 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10024     fi
10025
10026     CPPFLAGS="$save_CPPFLAGS"
10027     LDFLAGS="$save_LDFLAGS"
10028     LIBS="$save_LIBS"
10029     ;;
10030   esac
10031
10032   case $lt_cv_dlopen_self in
10033   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10034   *) enable_dlopen_self=unknown ;;
10035   esac
10036
10037   case $lt_cv_dlopen_self_static in
10038   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10039   *) enable_dlopen_self_static=unknown ;;
10040   esac
10041 fi
10042
10043
10044 # Report which library types will actually be built
10045 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10046 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10047 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10048 $as_echo "$can_build_shared" >&6; }
10049
10050 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10051 $as_echo_n "checking whether to build shared libraries... " >&6; }
10052 test "$can_build_shared" = "no" && enable_shared=no
10053
10054 # On AIX, shared libraries and static libraries use the same namespace, and
10055 # are all built from PIC.
10056 case $host_os in
10057 aix3*)
10058   test "$enable_shared" = yes && enable_static=no
10059   if test -n "$RANLIB"; then
10060     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10061     postinstall_cmds='$RANLIB $lib'
10062   fi
10063   ;;
10064
10065 aix4* | aix5*)
10066   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10067     test "$enable_shared" = yes && enable_static=no
10068   fi
10069     ;;
10070 esac
10071 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10072 $as_echo "$enable_shared" >&6; }
10073
10074 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10075 $as_echo_n "checking whether to build static libraries... " >&6; }
10076 # Make sure either enable_shared or enable_static is yes.
10077 test "$enable_shared" = yes || enable_static=yes
10078 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10079 $as_echo "$enable_static" >&6; }
10080
10081 # The else clause should only fire when bootstrapping the
10082 # libtool distribution, otherwise you forgot to ship ltmain.sh
10083 # with your package, and you will get complaints that there are
10084 # no rules to generate ltmain.sh.
10085 if test -f "$ltmain"; then
10086   # See if we are running on zsh, and set the options which allow our commands through
10087   # without removal of \ escapes.
10088   if test -n "${ZSH_VERSION+set}" ; then
10089     setopt NO_GLOB_SUBST
10090   fi
10091   # Now quote all the things that may contain metacharacters while being
10092   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10093   # variables and quote the copies for generation of the libtool script.
10094   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10095     SED SHELL STRIP \
10096     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10097     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10098     deplibs_check_method reload_flag reload_cmds need_locks \
10099     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10100     lt_cv_sys_global_symbol_to_c_name_address \
10101     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10102     old_postinstall_cmds old_postuninstall_cmds \
10103     compiler \
10104     CC \
10105     LD \
10106     lt_prog_compiler_wl \
10107     lt_prog_compiler_pic \
10108     lt_prog_compiler_static \
10109     lt_prog_compiler_no_builtin_flag \
10110     export_dynamic_flag_spec \
10111     thread_safe_flag_spec \
10112     whole_archive_flag_spec \
10113     enable_shared_with_static_runtimes \
10114     old_archive_cmds \
10115     old_archive_from_new_cmds \
10116     predep_objects \
10117     postdep_objects \
10118     predeps \
10119     postdeps \
10120     compiler_lib_search_path \
10121     archive_cmds \
10122     archive_expsym_cmds \
10123     postinstall_cmds \
10124     postuninstall_cmds \
10125     old_archive_from_expsyms_cmds \
10126     allow_undefined_flag \
10127     no_undefined_flag \
10128     export_symbols_cmds \
10129     hardcode_libdir_flag_spec \
10130     hardcode_libdir_flag_spec_ld \
10131     hardcode_libdir_separator \
10132     hardcode_automatic \
10133     module_cmds \
10134     module_expsym_cmds \
10135     lt_cv_prog_compiler_c_o \
10136     exclude_expsyms \
10137     include_expsyms; do
10138
10139     case $var in
10140     old_archive_cmds | \
10141     old_archive_from_new_cmds | \
10142     archive_cmds | \
10143     archive_expsym_cmds | \
10144     module_cmds | \
10145     module_expsym_cmds | \
10146     old_archive_from_expsyms_cmds | \
10147     export_symbols_cmds | \
10148     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10149     postinstall_cmds | postuninstall_cmds | \
10150     old_postinstall_cmds | old_postuninstall_cmds | \
10151     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10152       # Double-quote double-evaled strings.
10153       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10154       ;;
10155     *)
10156       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10157       ;;
10158     esac
10159   done
10160
10161   case $lt_echo in
10162   *'\$0 --fallback-echo"')
10163     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10164     ;;
10165   esac
10166
10167 cfgfile="${ofile}T"
10168   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10169   $rm -f "$cfgfile"
10170   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10171 $as_echo "$as_me: creating $ofile" >&6;}
10172
10173   cat <<__EOF__ >> "$cfgfile"
10174 #! $SHELL
10175
10176 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10177 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10179 #
10180 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10181 # Free Software Foundation, Inc.
10182 #
10183 # This file is part of GNU Libtool:
10184 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10185 #
10186 # This program is free software; you can redistribute it and/or modify
10187 # it under the terms of the GNU General Public License as published by
10188 # the Free Software Foundation; either version 2 of the License, or
10189 # (at your option) any later version.
10190 #
10191 # This program is distributed in the hope that it will be useful, but
10192 # WITHOUT ANY WARRANTY; without even the implied warranty of
10193 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10194 # General Public License for more details.
10195 #
10196 # You should have received a copy of the GNU General Public License
10197 # along with this program; if not, write to the Free Software
10198 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10199 #
10200 # As a special exception to the GNU General Public License, if you
10201 # distribute this file as part of a program that contains a
10202 # configuration script generated by Autoconf, you may include it under
10203 # the same distribution terms that you use for the rest of that program.
10204
10205 # A sed program that does not truncate output.
10206 SED=$lt_SED
10207
10208 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10209 Xsed="$SED -e 1s/^X//"
10210
10211 # The HP-UX ksh and POSIX shell print the target directory to stdout
10212 # if CDPATH is set.
10213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10214
10215 # The names of the tagged configurations supported by this script.
10216 available_tags=
10217
10218 # ### BEGIN LIBTOOL CONFIG
10219
10220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10221
10222 # Shell to use when invoking shell scripts.
10223 SHELL=$lt_SHELL
10224
10225 # Whether or not to build shared libraries.
10226 build_libtool_libs=$enable_shared
10227
10228 # Whether or not to build static libraries.
10229 build_old_libs=$enable_static
10230
10231 # Whether or not to add -lc for building shared libraries.
10232 build_libtool_need_lc=$archive_cmds_need_lc
10233
10234 # Whether or not to disallow shared libs when runtime libs are static
10235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10236
10237 # Whether or not to optimize for fast installation.
10238 fast_install=$enable_fast_install
10239
10240 # The host system.
10241 host_alias=$host_alias
10242 host=$host
10243 host_os=$host_os
10244
10245 # The build system.
10246 build_alias=$build_alias
10247 build=$build
10248 build_os=$build_os
10249
10250 # An echo program that does not interpret backslashes.
10251 echo=$lt_echo
10252
10253 # The archiver.
10254 AR=$lt_AR
10255 AR_FLAGS=$lt_AR_FLAGS
10256
10257 # A C compiler.
10258 LTCC=$lt_LTCC
10259
10260 # LTCC compiler flags.
10261 LTCFLAGS=$lt_LTCFLAGS
10262
10263 # A language-specific compiler.
10264 CC=$lt_compiler
10265
10266 # Is the compiler the GNU C compiler?
10267 with_gcc=$GCC
10268
10269 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10270 gcc_ver=\`gcc -dumpversion\`
10271
10272 # An ERE matcher.
10273 EGREP=$lt_EGREP
10274
10275 # The linker used to build libraries.
10276 LD=$lt_LD
10277
10278 # Whether we need hard or soft links.
10279 LN_S=$lt_LN_S
10280
10281 # A BSD-compatible nm program.
10282 NM=$lt_NM
10283
10284 # A symbol stripping program
10285 STRIP=$lt_STRIP
10286
10287 # Used to examine libraries when file_magic_cmd begins "file"
10288 MAGIC_CMD=$MAGIC_CMD
10289
10290 # Used on cygwin: DLL creation program.
10291 DLLTOOL="$DLLTOOL"
10292
10293 # Used on cygwin: object dumper.
10294 OBJDUMP="$OBJDUMP"
10295
10296 # Used on cygwin: assembler.
10297 AS="$AS"
10298
10299 # The name of the directory that contains temporary libtool files.
10300 objdir=$objdir
10301
10302 # How to create reloadable object files.
10303 reload_flag=$lt_reload_flag
10304 reload_cmds=$lt_reload_cmds
10305
10306 # How to pass a linker flag through the compiler.
10307 wl=$lt_lt_prog_compiler_wl
10308
10309 # Object file suffix (normally "o").
10310 objext="$ac_objext"
10311
10312 # Old archive suffix (normally "a").
10313 libext="$libext"
10314
10315 # Shared library suffix (normally ".so").
10316 shrext_cmds='$shrext_cmds'
10317
10318 # Executable file suffix (normally "").
10319 exeext="$exeext"
10320
10321 # Additional compiler flags for building library objects.
10322 pic_flag=$lt_lt_prog_compiler_pic
10323 pic_mode=$pic_mode
10324
10325 # What is the maximum length of a command?
10326 max_cmd_len=$lt_cv_sys_max_cmd_len
10327
10328 # Does compiler simultaneously support -c and -o options?
10329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10330
10331 # Must we lock files when doing compilation?
10332 need_locks=$lt_need_locks
10333
10334 # Do we need the lib prefix for modules?
10335 need_lib_prefix=$need_lib_prefix
10336
10337 # Do we need a version for libraries?
10338 need_version=$need_version
10339
10340 # Whether dlopen is supported.
10341 dlopen_support=$enable_dlopen
10342
10343 # Whether dlopen of programs is supported.
10344 dlopen_self=$enable_dlopen_self
10345
10346 # Whether dlopen of statically linked programs is supported.
10347 dlopen_self_static=$enable_dlopen_self_static
10348
10349 # Compiler flag to prevent dynamic linking.
10350 link_static_flag=$lt_lt_prog_compiler_static
10351
10352 # Compiler flag to turn off builtin functions.
10353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10354
10355 # Compiler flag to allow reflexive dlopens.
10356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10357
10358 # Compiler flag to generate shared objects directly from archives.
10359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10360
10361 # Compiler flag to generate thread-safe objects.
10362 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10363
10364 # Library versioning type.
10365 version_type=$version_type
10366
10367 # Format of library name prefix.
10368 libname_spec=$lt_libname_spec
10369
10370 # List of archive names.  First name is the real one, the rest are links.
10371 # The last name is the one that the linker finds with -lNAME.
10372 library_names_spec=$lt_library_names_spec
10373
10374 # The coded name of the library, if different from the real name.
10375 soname_spec=$lt_soname_spec
10376
10377 # Commands used to build and install an old-style archive.
10378 RANLIB=$lt_RANLIB
10379 old_archive_cmds=$lt_old_archive_cmds
10380 old_postinstall_cmds=$lt_old_postinstall_cmds
10381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10382
10383 # Create an old-style archive from a shared archive.
10384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10385
10386 # Create a temporary old-style archive to link instead of a shared archive.
10387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10388
10389 # Commands used to build and install a shared archive.
10390 archive_cmds=$lt_archive_cmds
10391 archive_expsym_cmds=$lt_archive_expsym_cmds
10392 postinstall_cmds=$lt_postinstall_cmds
10393 postuninstall_cmds=$lt_postuninstall_cmds
10394
10395 # Commands used to build a loadable module (assumed same as above if empty)
10396 module_cmds=$lt_module_cmds
10397 module_expsym_cmds=$lt_module_expsym_cmds
10398
10399 # Commands to strip libraries.
10400 old_striplib=$lt_old_striplib
10401 striplib=$lt_striplib
10402
10403 # Dependencies to place before the objects being linked to create a
10404 # shared library.
10405 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10406
10407 # Dependencies to place after the objects being linked to create a
10408 # shared library.
10409 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10410
10411 # Dependencies to place before the objects being linked to create a
10412 # shared library.
10413 predeps=$lt_predeps
10414
10415 # Dependencies to place after the objects being linked to create a
10416 # shared library.
10417 postdeps=$lt_postdeps
10418
10419 # The library search path used internally by the compiler when linking
10420 # a shared library.
10421 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10422
10423 # Method to check whether dependent libraries are shared objects.
10424 deplibs_check_method=$lt_deplibs_check_method
10425
10426 # Command to use when deplibs_check_method == file_magic.
10427 file_magic_cmd=$lt_file_magic_cmd
10428
10429 # Flag that allows shared libraries with undefined symbols to be built.
10430 allow_undefined_flag=$lt_allow_undefined_flag
10431
10432 # Flag that forces no undefined symbols.
10433 no_undefined_flag=$lt_no_undefined_flag
10434
10435 # Commands used to finish a libtool library installation in a directory.
10436 finish_cmds=$lt_finish_cmds
10437
10438 # Same as above, but a single script fragment to be evaled but not shown.
10439 finish_eval=$lt_finish_eval
10440
10441 # Take the output of nm and produce a listing of raw symbols and C names.
10442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10443
10444 # Transform the output of nm in a proper C declaration
10445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10446
10447 # Transform the output of nm in a C name address pair
10448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10449
10450 # This is the shared library runtime path variable.
10451 runpath_var=$runpath_var
10452
10453 # This is the shared library path variable.
10454 shlibpath_var=$shlibpath_var
10455
10456 # Is shlibpath searched before the hard-coded library search path?
10457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10458
10459 # How to hardcode a shared library path into an executable.
10460 hardcode_action=$hardcode_action
10461
10462 # Whether we should hardcode library paths into libraries.
10463 hardcode_into_libs=$hardcode_into_libs
10464
10465 # Flag to hardcode \$libdir into a binary during linking.
10466 # This must work even if \$libdir does not exist.
10467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10468
10469 # If ld is used when linking, flag to hardcode \$libdir into
10470 # a binary during linking. This must work even if \$libdir does
10471 # not exist.
10472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10473
10474 # Whether we need a single -rpath flag with a separated argument.
10475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10476
10477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10478 # resulting binary.
10479 hardcode_direct=$hardcode_direct
10480
10481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10482 # resulting binary.
10483 hardcode_minus_L=$hardcode_minus_L
10484
10485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10486 # the resulting binary.
10487 hardcode_shlibpath_var=$hardcode_shlibpath_var
10488
10489 # Set to yes if building a shared library automatically hardcodes DIR into the library
10490 # and all subsequent libraries and executables linked against it.
10491 hardcode_automatic=$hardcode_automatic
10492
10493 # Variables whose values should be saved in libtool wrapper scripts and
10494 # restored at relink time.
10495 variables_saved_for_relink="$variables_saved_for_relink"
10496
10497 # Whether libtool must link a program against all its dependency libraries.
10498 link_all_deplibs=$link_all_deplibs
10499
10500 # Compile-time system search path for libraries
10501 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"\`
10502
10503 # Run-time system search path for libraries
10504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10505
10506 # Fix the shell variable \$srcfile for the compiler.
10507 fix_srcfile_path="$fix_srcfile_path"
10508
10509 # Set to yes if exported symbols are required.
10510 always_export_symbols=$always_export_symbols
10511
10512 # The commands to list exported symbols.
10513 export_symbols_cmds=$lt_export_symbols_cmds
10514
10515 # The commands to extract the exported symbol list from a shared archive.
10516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10517
10518 # Symbols that should not be listed in the preloaded symbols.
10519 exclude_expsyms=$lt_exclude_expsyms
10520
10521 # Symbols that must always be exported.
10522 include_expsyms=$lt_include_expsyms
10523
10524 # ### END LIBTOOL CONFIG
10525
10526 __EOF__
10527
10528
10529   case $host_os in
10530   aix3*)
10531     cat <<\EOF >> "$cfgfile"
10532
10533 # AIX sometimes has problems with the GCC collect2 program.  For some
10534 # reason, if we set the COLLECT_NAMES environment variable, the problems
10535 # vanish in a puff of smoke.
10536 if test "X${COLLECT_NAMES+set}" != Xset; then
10537   COLLECT_NAMES=
10538   export COLLECT_NAMES
10539 fi
10540 EOF
10541     ;;
10542   esac
10543
10544   # We use sed instead of cat because bash on DJGPP gets confused if
10545   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10546   # text mode, it properly converts lines to CR/LF.  This bash problem
10547   # is reportedly fixed, but why not run on old versions too?
10548   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10549
10550   mv -f "$cfgfile" "$ofile" || \
10551     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10552   chmod +x "$ofile"
10553
10554 else
10555   # If there is no Makefile yet, we rely on a make rule to execute
10556   # `config.status --recheck' to rerun these tests and create the
10557   # libtool script then.
10558   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10559   if test -f "$ltmain_in"; then
10560     test -f Makefile && make "$ltmain"
10561   fi
10562 fi
10563
10564
10565 ac_ext=c
10566 ac_cpp='$CPP $CPPFLAGS'
10567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10570
10571 CC="$lt_save_CC"
10572
10573
10574 # Check whether --with-tags was given.
10575 if test "${with_tags+set}" = set; then
10576   withval=$with_tags; tagnames="$withval"
10577 fi
10578
10579
10580 if test -f "$ltmain" && test -n "$tagnames"; then
10581   if test ! -f "${ofile}"; then
10582     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10583 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10584   fi
10585
10586   if test -z "$LTCC"; then
10587     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10588     if test -z "$LTCC"; then
10589       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10590 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10591     else
10592       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10593 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10594     fi
10595   fi
10596   if test -z "$LTCFLAGS"; then
10597     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10598   fi
10599
10600   # Extract list of available tagged configurations in $ofile.
10601   # Note that this assumes the entire list is on one line.
10602   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10603
10604   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10605   for tagname in $tagnames; do
10606     IFS="$lt_save_ifs"
10607     # Check whether tagname contains only valid characters
10608     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10609     "") ;;
10610     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10611 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10612    { (exit 1); exit 1; }; }
10613         ;;
10614     esac
10615
10616     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10617     then
10618       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10619 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10620    { (exit 1); exit 1; }; }
10621     fi
10622
10623     # Update the list of available tags.
10624     if test -n "$tagname"; then
10625       echo appending configuration tag \"$tagname\" to $ofile
10626
10627       case $tagname in
10628       CXX)
10629         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10630             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10631             (test "X$CXX" != "Xg++"))) ; then
10632           ac_ext=cpp
10633 ac_cpp='$CXXCPP $CPPFLAGS'
10634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10637
10638
10639
10640
10641 archive_cmds_need_lc_CXX=no
10642 allow_undefined_flag_CXX=
10643 always_export_symbols_CXX=no
10644 archive_expsym_cmds_CXX=
10645 export_dynamic_flag_spec_CXX=
10646 hardcode_direct_CXX=no
10647 hardcode_libdir_flag_spec_CXX=
10648 hardcode_libdir_flag_spec_ld_CXX=
10649 hardcode_libdir_separator_CXX=
10650 hardcode_minus_L_CXX=no
10651 hardcode_shlibpath_var_CXX=unsupported
10652 hardcode_automatic_CXX=no
10653 module_cmds_CXX=
10654 module_expsym_cmds_CXX=
10655 link_all_deplibs_CXX=unknown
10656 old_archive_cmds_CXX=$old_archive_cmds
10657 no_undefined_flag_CXX=
10658 whole_archive_flag_spec_CXX=
10659 enable_shared_with_static_runtimes_CXX=no
10660
10661 # Dependencies to place before and after the object being linked:
10662 predep_objects_CXX=
10663 postdep_objects_CXX=
10664 predeps_CXX=
10665 postdeps_CXX=
10666 compiler_lib_search_path_CXX=
10667
10668 # Source file extension for C++ test sources.
10669 ac_ext=cpp
10670
10671 # Object file extension for compiled C++ test sources.
10672 objext=o
10673 objext_CXX=$objext
10674
10675 # Code to be used in simple compile tests
10676 lt_simple_compile_test_code="int some_variable = 0;\n"
10677
10678 # Code to be used in simple link tests
10679 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10680
10681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10682
10683 # If no C compiler was specified, use CC.
10684 LTCC=${LTCC-"$CC"}
10685
10686 # If no C compiler flags were specified, use CFLAGS.
10687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10688
10689 # Allow CC to be a program name with arguments.
10690 compiler=$CC
10691
10692
10693 # save warnings/boilerplate of simple test code
10694 ac_outfile=conftest.$ac_objext
10695 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10697 _lt_compiler_boilerplate=`cat conftest.err`
10698 $rm conftest*
10699
10700 ac_outfile=conftest.$ac_objext
10701 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10703 _lt_linker_boilerplate=`cat conftest.err`
10704 $rm conftest*
10705
10706
10707 # Allow CC to be a program name with arguments.
10708 lt_save_CC=$CC
10709 lt_save_LD=$LD
10710 lt_save_GCC=$GCC
10711 GCC=$GXX
10712 lt_save_with_gnu_ld=$with_gnu_ld
10713 lt_save_path_LD=$lt_cv_path_LD
10714 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10715   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10716 else
10717   $as_unset lt_cv_prog_gnu_ld
10718 fi
10719 if test -n "${lt_cv_path_LDCXX+set}"; then
10720   lt_cv_path_LD=$lt_cv_path_LDCXX
10721 else
10722   $as_unset lt_cv_path_LD
10723 fi
10724 test -z "${LDCXX+set}" || LD=$LDCXX
10725 CC=${CXX-"c++"}
10726 compiler=$CC
10727 compiler_CXX=$CC
10728 for cc_temp in $compiler""; do
10729   case $cc_temp in
10730     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10731     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10732     \-*) ;;
10733     *) break;;
10734   esac
10735 done
10736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10737
10738
10739 # We don't want -fno-exception wen compiling C++ code, so set the
10740 # no_builtin_flag separately
10741 if test "$GXX" = yes; then
10742   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10743 else
10744   lt_prog_compiler_no_builtin_flag_CXX=
10745 fi
10746
10747 if test "$GXX" = yes; then
10748   # Set up default GNU C++ configuration
10749
10750
10751 # Check whether --with-gnu-ld was given.
10752 if test "${with_gnu_ld+set}" = set; then
10753   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10754 else
10755   with_gnu_ld=no
10756 fi
10757
10758 ac_prog=ld
10759 if test "$GCC" = yes; then
10760   # Check if gcc -print-prog-name=ld gives a path.
10761   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10762 $as_echo_n "checking for ld used by $CC... " >&6; }
10763   case $host in
10764   *-*-mingw*)
10765     # gcc leaves a trailing carriage return which upsets mingw
10766     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10767   *)
10768     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10769   esac
10770   case $ac_prog in
10771     # Accept absolute paths.
10772     [\\/]* | ?:[\\/]*)
10773       re_direlt='/[^/][^/]*/\.\./'
10774       # Canonicalize the pathname of ld
10775       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10776       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10777         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10778       done
10779       test -z "$LD" && LD="$ac_prog"
10780       ;;
10781   "")
10782     # If it fails, then pretend we aren't using GCC.
10783     ac_prog=ld
10784     ;;
10785   *)
10786     # If it is relative, then search for the first ld in PATH.
10787     with_gnu_ld=unknown
10788     ;;
10789   esac
10790 elif test "$with_gnu_ld" = yes; then
10791   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10792 $as_echo_n "checking for GNU ld... " >&6; }
10793 else
10794   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10795 $as_echo_n "checking for non-GNU ld... " >&6; }
10796 fi
10797 if test "${lt_cv_path_LD+set}" = set; then
10798   $as_echo_n "(cached) " >&6
10799 else
10800   if test -z "$LD"; then
10801   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10802   for ac_dir in $PATH; do
10803     IFS="$lt_save_ifs"
10804     test -z "$ac_dir" && ac_dir=.
10805     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10806       lt_cv_path_LD="$ac_dir/$ac_prog"
10807       # Check to see if the program is GNU ld.  I'd rather use --version,
10808       # but apparently some variants of GNU ld only accept -v.
10809       # Break only if it was the GNU/non-GNU ld that we prefer.
10810       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10811       *GNU* | *'with BFD'*)
10812         test "$with_gnu_ld" != no && break
10813         ;;
10814       *)
10815         test "$with_gnu_ld" != yes && break
10816         ;;
10817       esac
10818     fi
10819   done
10820   IFS="$lt_save_ifs"
10821 else
10822   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10823 fi
10824 fi
10825
10826 LD="$lt_cv_path_LD"
10827 if test -n "$LD"; then
10828   { $as_echo "$as_me:$LINENO: result: $LD" >&5
10829 $as_echo "$LD" >&6; }
10830 else
10831   { $as_echo "$as_me:$LINENO: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10834 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10835 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10836    { (exit 1); exit 1; }; }
10837 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10839 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10840   $as_echo_n "(cached) " >&6
10841 else
10842   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10843 case `$LD -v 2>&1 </dev/null` in
10844 *GNU* | *'with BFD'*)
10845   lt_cv_prog_gnu_ld=yes
10846   ;;
10847 *)
10848   lt_cv_prog_gnu_ld=no
10849   ;;
10850 esac
10851 fi
10852 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10854 with_gnu_ld=$lt_cv_prog_gnu_ld
10855
10856
10857
10858   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10859   # archiving commands below assume that GNU ld is being used.
10860   if test "$with_gnu_ld" = yes; then
10861     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10862     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'
10863
10864     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10865     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10866
10867     # If archive_cmds runs LD, not CC, wlarc should be empty
10868     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10869     #     investigate it a little bit more. (MM)
10870     wlarc='${wl}'
10871
10872     # ancient GNU ld didn't support --whole-archive et. al.
10873     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10874         grep 'no-whole-archive' > /dev/null; then
10875       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10876     else
10877       whole_archive_flag_spec_CXX=
10878     fi
10879   else
10880     with_gnu_ld=no
10881     wlarc=
10882
10883     # A generic and very simple default shared library creation
10884     # command for GNU C++ for the case where it uses the native
10885     # linker, instead of GNU ld.  If possible, this setting should
10886     # overridden to take advantage of the native linker features on
10887     # the platform it is being used on.
10888     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10889   fi
10890
10891   # Commands to make compiler produce verbose output that lists
10892   # what "hidden" libraries, object files and flags are used when
10893   # linking a shared library.
10894   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10895
10896 else
10897   GXX=no
10898   with_gnu_ld=no
10899   wlarc=
10900 fi
10901
10902 # PORTME: fill in a description of your system's C++ link characteristics
10903 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10904 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10905 ld_shlibs_CXX=yes
10906 case $host_os in
10907   aix3*)
10908     # FIXME: insert proper C++ library support
10909     ld_shlibs_CXX=no
10910     ;;
10911   aix4* | aix5*)
10912     if test "$host_cpu" = ia64; then
10913       # On IA64, the linker does run time linking by default, so we don't
10914       # have to do anything special.
10915       aix_use_runtimelinking=no
10916       exp_sym_flag='-Bexport'
10917       no_entry_flag=""
10918     else
10919       aix_use_runtimelinking=no
10920
10921       # Test if we are trying to use run time linking or normal
10922       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10923       # need to do runtime linking.
10924       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10925         for ld_flag in $LDFLAGS; do
10926           case $ld_flag in
10927           *-brtl*)
10928             aix_use_runtimelinking=yes
10929             break
10930             ;;
10931           esac
10932         done
10933         ;;
10934       esac
10935
10936       exp_sym_flag='-bexport'
10937       no_entry_flag='-bnoentry'
10938     fi
10939
10940     # When large executables or shared objects are built, AIX ld can
10941     # have problems creating the table of contents.  If linking a library
10942     # or program results in "error TOC overflow" add -mminimal-toc to
10943     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10944     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10945
10946     archive_cmds_CXX=''
10947     hardcode_direct_CXX=yes
10948     hardcode_libdir_separator_CXX=':'
10949     link_all_deplibs_CXX=yes
10950
10951     if test "$GXX" = yes; then
10952       case $host_os in aix4.[012]|aix4.[012].*)
10953       # We only want to do this on AIX 4.2 and lower, the check
10954       # below for broken collect2 doesn't work under 4.3+
10955         collect2name=`${CC} -print-prog-name=collect2`
10956         if test -f "$collect2name" && \
10957            strings "$collect2name" | grep resolve_lib_name >/dev/null
10958         then
10959           # We have reworked collect2
10960           hardcode_direct_CXX=yes
10961         else
10962           # We have old collect2
10963           hardcode_direct_CXX=unsupported
10964           # It fails to find uninstalled libraries when the uninstalled
10965           # path is not listed in the libpath.  Setting hardcode_minus_L
10966           # to unsupported forces relinking
10967           hardcode_minus_L_CXX=yes
10968           hardcode_libdir_flag_spec_CXX='-L$libdir'
10969           hardcode_libdir_separator_CXX=
10970         fi
10971         ;;
10972       esac
10973       shared_flag='-shared'
10974       if test "$aix_use_runtimelinking" = yes; then
10975         shared_flag="$shared_flag "'${wl}-G'
10976       fi
10977     else
10978       # not using gcc
10979       if test "$host_cpu" = ia64; then
10980         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10981         # chokes on -Wl,-G. The following line is correct:
10982         shared_flag='-G'
10983       else
10984         if test "$aix_use_runtimelinking" = yes; then
10985           shared_flag='${wl}-G'
10986         else
10987           shared_flag='${wl}-bM:SRE'
10988         fi
10989       fi
10990     fi
10991
10992     # It seems that -bexpall does not export symbols beginning with
10993     # underscore (_), so it is better to generate a list of symbols to export.
10994     always_export_symbols_CXX=yes
10995     if test "$aix_use_runtimelinking" = yes; then
10996       # Warning - without using the other runtime loading flags (-brtl),
10997       # -berok will link without error, but may produce a broken library.
10998       allow_undefined_flag_CXX='-berok'
10999       # Determine the default libpath from the value encoded in an empty executable.
11000       cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006
11007 int
11008 main ()
11009 {
11010
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11022 $as_echo "$ac_try_echo") >&5
11023   (eval "$ac_link") 2>conftest.er1
11024   ac_status=$?
11025   grep -v '^ *+' conftest.er1 >conftest.err
11026   rm -f conftest.er1
11027   cat conftest.err >&5
11028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } && {
11030          test -z "$ac_cxx_werror_flag" ||
11031          test ! -s conftest.err
11032        } && test -s conftest$ac_exeext && {
11033          test "$cross_compiling" = yes ||
11034          $as_test_x conftest$ac_exeext
11035        }; then
11036
11037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11038 }'`
11039 # Check for a 64-bit object if we didn't find anything.
11040 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; }
11041 }'`; fi
11042 else
11043   $as_echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046
11047 fi
11048
11049 rm -rf conftest.dSYM
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051       conftest$ac_exeext conftest.$ac_ext
11052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11053
11054       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11055
11056       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"
11057      else
11058       if test "$host_cpu" = ia64; then
11059         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11060         allow_undefined_flag_CXX="-z nodefs"
11061         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"
11062       else
11063         # Determine the default libpath from the value encoded in an empty executable.
11064         cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070
11071 int
11072 main ()
11073 {
11074
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (ac_try="$ac_link"
11081 case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087   (eval "$ac_link") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } && {
11094          test -z "$ac_cxx_werror_flag" ||
11095          test ! -s conftest.err
11096        } && test -s conftest$ac_exeext && {
11097          test "$cross_compiling" = yes ||
11098          $as_test_x conftest$ac_exeext
11099        }; then
11100
11101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11102 }'`
11103 # Check for a 64-bit object if we didn't find anything.
11104 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; }
11105 }'`; fi
11106 else
11107   $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110
11111 fi
11112
11113 rm -rf conftest.dSYM
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115       conftest$ac_exeext conftest.$ac_ext
11116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11117
11118         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11119         # Warning - without using the other run time loading flags,
11120         # -berok will link without error, but may produce a broken library.
11121         no_undefined_flag_CXX=' ${wl}-bernotok'
11122         allow_undefined_flag_CXX=' ${wl}-berok'
11123         # Exported symbols can be pulled into shared objects from archives
11124         whole_archive_flag_spec_CXX='$convenience'
11125         archive_cmds_need_lc_CXX=yes
11126         # This is similar to how AIX traditionally builds its shared libraries.
11127         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'
11128       fi
11129     fi
11130     ;;
11131
11132   beos*)
11133     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11134       allow_undefined_flag_CXX=unsupported
11135       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11136       # support --undefined.  This deserves some investigation.  FIXME
11137       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11138     else
11139       ld_shlibs_CXX=no
11140     fi
11141     ;;
11142
11143   chorus*)
11144     case $cc_basename in
11145       *)
11146         # FIXME: insert proper C++ library support
11147         ld_shlibs_CXX=no
11148         ;;
11149     esac
11150     ;;
11151
11152   cygwin* | mingw* | pw32*)
11153     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11154     # as there is no search path for DLLs.
11155     hardcode_libdir_flag_spec_CXX='-L$libdir'
11156     allow_undefined_flag_CXX=unsupported
11157     always_export_symbols_CXX=no
11158     enable_shared_with_static_runtimes_CXX=yes
11159
11160     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11161       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'
11162       # If the export-symbols file already is a .def file (1st line
11163       # is EXPORTS), use it as is; otherwise, prepend...
11164       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11165         cp $export_symbols $output_objdir/$soname.def;
11166       else
11167         echo EXPORTS > $output_objdir/$soname.def;
11168         cat $export_symbols >> $output_objdir/$soname.def;
11169       fi~
11170       $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'
11171     else
11172       ld_shlibs_CXX=no
11173     fi
11174   ;;
11175       darwin* | rhapsody*)
11176         case $host_os in
11177         rhapsody* | darwin1.[012])
11178          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11179          ;;
11180        *) # Darwin 1.3 on
11181          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11182            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11183          else
11184            case ${MACOSX_DEPLOYMENT_TARGET} in
11185              10.[012])
11186                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11187                ;;
11188              10.*)
11189                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11190                ;;
11191            esac
11192          fi
11193          ;;
11194         esac
11195       archive_cmds_need_lc_CXX=no
11196       hardcode_direct_CXX=no
11197       hardcode_automatic_CXX=yes
11198       hardcode_shlibpath_var_CXX=unsupported
11199       whole_archive_flag_spec_CXX=''
11200       link_all_deplibs_CXX=yes
11201
11202     if test "$GXX" = yes ; then
11203       lt_int_apple_cc_single_mod=no
11204       output_verbose_link_cmd='echo'
11205       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11206        lt_int_apple_cc_single_mod=yes
11207       fi
11208       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11209        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11210       else
11211           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'
11212         fi
11213         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11214         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11215           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11216             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}'
11217           else
11218             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}'
11219           fi
11220             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}'
11221       else
11222       case $cc_basename in
11223         xlc*)
11224          output_verbose_link_cmd='echo'
11225           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'
11226           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11227           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11228           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}'
11229           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}'
11230           ;;
11231        *)
11232          ld_shlibs_CXX=no
11233           ;;
11234       esac
11235       fi
11236         ;;
11237
11238   dgux*)
11239     case $cc_basename in
11240       ec++*)
11241         # FIXME: insert proper C++ library support
11242         ld_shlibs_CXX=no
11243         ;;
11244       ghcx*)
11245         # Green Hills C++ Compiler
11246         # FIXME: insert proper C++ library support
11247         ld_shlibs_CXX=no
11248         ;;
11249       *)
11250         # FIXME: insert proper C++ library support
11251         ld_shlibs_CXX=no
11252         ;;
11253     esac
11254     ;;
11255   freebsd[12]*)
11256     # C++ shared libraries reported to be fairly broken before switch to ELF
11257     ld_shlibs_CXX=no
11258     ;;
11259   freebsd-elf*)
11260     archive_cmds_need_lc_CXX=no
11261     ;;
11262   freebsd* | kfreebsd*-gnu | dragonfly*)
11263     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11264     # conventions
11265     ld_shlibs_CXX=yes
11266     ;;
11267   gnu*)
11268     ;;
11269   hpux9*)
11270     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11271     hardcode_libdir_separator_CXX=:
11272     export_dynamic_flag_spec_CXX='${wl}-E'
11273     hardcode_direct_CXX=yes
11274     hardcode_minus_L_CXX=yes # Not in the search PATH,
11275                                 # but as the default
11276                                 # location of the library.
11277
11278     case $cc_basename in
11279     CC*)
11280       # FIXME: insert proper C++ library support
11281       ld_shlibs_CXX=no
11282       ;;
11283     aCC*)
11284       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'
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 -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'
11294       ;;
11295     *)
11296       if test "$GXX" = yes; then
11297         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'
11298       else
11299         # FIXME: insert proper C++ library support
11300         ld_shlibs_CXX=no
11301       fi
11302       ;;
11303     esac
11304     ;;
11305   hpux10*|hpux11*)
11306     if test $with_gnu_ld = no; then
11307       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11308       hardcode_libdir_separator_CXX=:
11309
11310       case $host_cpu in
11311       hppa*64*|ia64*)
11312         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11313         ;;
11314       *)
11315         export_dynamic_flag_spec_CXX='${wl}-E'
11316         ;;
11317       esac
11318     fi
11319     case $host_cpu in
11320     hppa*64*|ia64*)
11321       hardcode_direct_CXX=no
11322       hardcode_shlibpath_var_CXX=no
11323       ;;
11324     *)
11325       hardcode_direct_CXX=yes
11326       hardcode_minus_L_CXX=yes # Not in the search PATH,
11327                                               # but as the default
11328                                               # location of the library.
11329       ;;
11330     esac
11331
11332     case $cc_basename in
11333       CC*)
11334         # FIXME: insert proper C++ library support
11335         ld_shlibs_CXX=no
11336         ;;
11337       aCC*)
11338         case $host_cpu in
11339         hppa*64*)
11340           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11341           ;;
11342         ia64*)
11343           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11344           ;;
11345         *)
11346           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11347           ;;
11348         esac
11349         # Commands to make compiler produce verbose output that lists
11350         # what "hidden" libraries, object files and flags are used when
11351         # linking a shared library.
11352         #
11353         # There doesn't appear to be a way to prevent this compiler from
11354         # explicitly linking system object files so we need to strip them
11355         # from the output so that they don't get included in the library
11356         # dependencies.
11357         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'
11358         ;;
11359       *)
11360         if test "$GXX" = yes; then
11361           if test $with_gnu_ld = no; then
11362             case $host_cpu in
11363             hppa*64*)
11364               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11365               ;;
11366             ia64*)
11367               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11368               ;;
11369             *)
11370               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'
11371               ;;
11372             esac
11373           fi
11374         else
11375           # FIXME: insert proper C++ library support
11376           ld_shlibs_CXX=no
11377         fi
11378         ;;
11379     esac
11380     ;;
11381   interix3*)
11382     hardcode_direct_CXX=no
11383     hardcode_shlibpath_var_CXX=no
11384     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11385     export_dynamic_flag_spec_CXX='${wl}-E'
11386     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11387     # Instead, shared libraries are loaded at an image base (0x10000000 by
11388     # default) and relocated if they conflict, which is a slow very memory
11389     # consuming and fragmenting process.  To avoid this, we pick a random,
11390     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11391     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11392     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'
11393     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'
11394     ;;
11395   irix5* | irix6*)
11396     case $cc_basename in
11397       CC*)
11398         # SGI C++
11399         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'
11400
11401         # Archives containing C++ object files must be created using
11402         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11403         # necessary to make sure instantiated templates are included
11404         # in the archive.
11405         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11406         ;;
11407       *)
11408         if test "$GXX" = yes; then
11409           if test "$with_gnu_ld" = no; then
11410             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'
11411           else
11412             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'
11413           fi
11414         fi
11415         link_all_deplibs_CXX=yes
11416         ;;
11417     esac
11418     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11419     hardcode_libdir_separator_CXX=:
11420     ;;
11421   linux*)
11422     case $cc_basename in
11423       KCC*)
11424         # Kuck and Associates, Inc. (KAI) C++ Compiler
11425
11426         # KCC will only create a shared library if the output file
11427         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11428         # to its proper name (with version) after linking.
11429         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'
11430         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'
11431         # Commands to make compiler produce verbose output that lists
11432         # what "hidden" libraries, object files and flags are used when
11433         # linking a shared library.
11434         #
11435         # There doesn't appear to be a way to prevent this compiler from
11436         # explicitly linking system object files so we need to strip them
11437         # from the output so that they don't get included in the library
11438         # dependencies.
11439         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'
11440
11441         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11442         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11443
11444         # Archives containing C++ object files must be created using
11445         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11446         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11447         ;;
11448       icpc*)
11449         # Intel C++
11450         with_gnu_ld=yes
11451         # version 8.0 and above of icpc choke on multiply defined symbols
11452         # if we add $predep_objects and $postdep_objects, however 7.1 and
11453         # earlier do not add the objects themselves.
11454         case `$CC -V 2>&1` in
11455         *"Version 7."*)
11456           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11457           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'
11458           ;;
11459         *)  # Version 8.0 or newer
11460           tmp_idyn=
11461           case $host_cpu in
11462             ia64*) tmp_idyn=' -i_dynamic';;
11463           esac
11464           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465           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'
11466           ;;
11467         esac
11468         archive_cmds_need_lc_CXX=no
11469         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11470         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11471         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11472         ;;
11473       pgCC*)
11474         # Portland Group C++ compiler
11475         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11476         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'
11477
11478         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11479         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11480         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'
11481         ;;
11482       cxx*)
11483         # Compaq C++
11484         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11485         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'
11486
11487         runpath_var=LD_RUN_PATH
11488         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11489         hardcode_libdir_separator_CXX=:
11490
11491         # Commands to make compiler produce verbose output that lists
11492         # what "hidden" libraries, object files and flags are used when
11493         # linking a shared library.
11494         #
11495         # There doesn't appear to be a way to prevent this compiler from
11496         # explicitly linking system object files so we need to strip them
11497         # from the output so that they don't get included in the library
11498         # dependencies.
11499         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'
11500         ;;
11501     esac
11502     ;;
11503   lynxos*)
11504     # FIXME: insert proper C++ library support
11505     ld_shlibs_CXX=no
11506     ;;
11507   m88k*)
11508     # FIXME: insert proper C++ library support
11509     ld_shlibs_CXX=no
11510     ;;
11511   mvs*)
11512     case $cc_basename in
11513       cxx*)
11514         # FIXME: insert proper C++ library support
11515         ld_shlibs_CXX=no
11516         ;;
11517       *)
11518         # FIXME: insert proper C++ library support
11519         ld_shlibs_CXX=no
11520         ;;
11521     esac
11522     ;;
11523   netbsd*)
11524     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11525       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11526       wlarc=
11527       hardcode_libdir_flag_spec_CXX='-R$libdir'
11528       hardcode_direct_CXX=yes
11529       hardcode_shlibpath_var_CXX=no
11530     fi
11531     # Workaround some broken pre-1.5 toolchains
11532     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11533     ;;
11534   openbsd2*)
11535     # C++ shared libraries are fairly broken
11536     ld_shlibs_CXX=no
11537     ;;
11538   openbsd*)
11539     hardcode_direct_CXX=yes
11540     hardcode_shlibpath_var_CXX=no
11541     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11542     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11543     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11544       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11545       export_dynamic_flag_spec_CXX='${wl}-E'
11546       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11547     fi
11548     output_verbose_link_cmd='echo'
11549     ;;
11550   osf3*)
11551     case $cc_basename in
11552       KCC*)
11553         # Kuck and Associates, Inc. (KAI) C++ Compiler
11554
11555         # KCC will only create a shared library if the output file
11556         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11557         # to its proper name (with version) after linking.
11558         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'
11559
11560         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11561         hardcode_libdir_separator_CXX=:
11562
11563         # Archives containing C++ object files must be created using
11564         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11565         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11566
11567         ;;
11568       RCC*)
11569         # Rational C++ 2.4.1
11570         # FIXME: insert proper C++ library support
11571         ld_shlibs_CXX=no
11572         ;;
11573       cxx*)
11574         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11575         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'
11576
11577         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11578         hardcode_libdir_separator_CXX=:
11579
11580         # Commands to make compiler produce verbose output that lists
11581         # what "hidden" libraries, object files and flags are used when
11582         # linking a shared library.
11583         #
11584         # There doesn't appear to be a way to prevent this compiler from
11585         # explicitly linking system object files so we need to strip them
11586         # from the output so that they don't get included in the library
11587         # dependencies.
11588         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'
11589         ;;
11590       *)
11591         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11592           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11593           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'
11594
11595           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11596           hardcode_libdir_separator_CXX=:
11597
11598           # Commands to make compiler produce verbose output that lists
11599           # what "hidden" libraries, object files and flags are used when
11600           # linking a shared library.
11601           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11602
11603         else
11604           # FIXME: insert proper C++ library support
11605           ld_shlibs_CXX=no
11606         fi
11607         ;;
11608     esac
11609     ;;
11610   osf4* | osf5*)
11611     case $cc_basename in
11612       KCC*)
11613         # Kuck and Associates, Inc. (KAI) C++ Compiler
11614
11615         # KCC will only create a shared library if the output file
11616         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11617         # to its proper name (with version) after linking.
11618         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'
11619
11620         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11621         hardcode_libdir_separator_CXX=:
11622
11623         # Archives containing C++ object files must be created using
11624         # the KAI C++ compiler.
11625         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11626         ;;
11627       RCC*)
11628         # Rational C++ 2.4.1
11629         # FIXME: insert proper C++ library support
11630         ld_shlibs_CXX=no
11631         ;;
11632       cxx*)
11633         allow_undefined_flag_CXX=' -expect_unresolved \*'
11634         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'
11635         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11636           echo "-hidden">> $lib.exp~
11637           $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~
11638           $rm $lib.exp'
11639
11640         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11641         hardcode_libdir_separator_CXX=:
11642
11643         # Commands to make compiler produce verbose output that lists
11644         # what "hidden" libraries, object files and flags are used when
11645         # linking a shared library.
11646         #
11647         # There doesn't appear to be a way to prevent this compiler from
11648         # explicitly linking system object files so we need to strip them
11649         # from the output so that they don't get included in the library
11650         # dependencies.
11651         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'
11652         ;;
11653       *)
11654         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11655           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11656          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'
11657
11658           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11659           hardcode_libdir_separator_CXX=:
11660
11661           # Commands to make compiler produce verbose output that lists
11662           # what "hidden" libraries, object files and flags are used when
11663           # linking a shared library.
11664           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11665
11666         else
11667           # FIXME: insert proper C++ library support
11668           ld_shlibs_CXX=no
11669         fi
11670         ;;
11671     esac
11672     ;;
11673   psos*)
11674     # FIXME: insert proper C++ library support
11675     ld_shlibs_CXX=no
11676     ;;
11677   sunos4*)
11678     case $cc_basename in
11679       CC*)
11680         # Sun C++ 4.x
11681         # FIXME: insert proper C++ library support
11682         ld_shlibs_CXX=no
11683         ;;
11684       lcc*)
11685         # Lucid
11686         # FIXME: insert proper C++ library support
11687         ld_shlibs_CXX=no
11688         ;;
11689       *)
11690         # FIXME: insert proper C++ library support
11691         ld_shlibs_CXX=no
11692         ;;
11693     esac
11694     ;;
11695   solaris*)
11696     case $cc_basename in
11697       CC*)
11698         # Sun C++ 4.2, 5.x and Centerline C++
11699         archive_cmds_need_lc_CXX=yes
11700         no_undefined_flag_CXX=' -zdefs'
11701         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11703         $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'
11704
11705         hardcode_libdir_flag_spec_CXX='-R$libdir'
11706         hardcode_shlibpath_var_CXX=no
11707         case $host_os in
11708           solaris2.[0-5] | solaris2.[0-5].*) ;;
11709           *)
11710             # The C++ compiler is used as linker so we must use $wl
11711             # flag to pass the commands to the underlying system
11712             # linker. We must also pass each convience library through
11713             # to the system linker between allextract/defaultextract.
11714             # The C++ compiler will combine linker options so we
11715             # cannot just pass the convience library names through
11716             # without $wl.
11717             # Supported since Solaris 2.6 (maybe 2.5.1?)
11718             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'
11719             ;;
11720         esac
11721         link_all_deplibs_CXX=yes
11722
11723         output_verbose_link_cmd='echo'
11724
11725         # Archives containing C++ object files must be created using
11726         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11727         # necessary to make sure instantiated templates are included
11728         # in the archive.
11729         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11730         ;;
11731       gcx*)
11732         # Green Hills C++ Compiler
11733         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11734
11735         # The C++ compiler must be used to create the archive.
11736         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11737         ;;
11738       *)
11739         # GNU C++ compiler with Solaris linker
11740         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11741           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11742           if $CC --version | grep -v '^2\.7' > /dev/null; then
11743             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11745                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11746
11747             # Commands to make compiler produce verbose output that lists
11748             # what "hidden" libraries, object files and flags are used when
11749             # linking a shared library.
11750             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11751           else
11752             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11753             # platform.
11754             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11755             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11757
11758             # Commands to make compiler produce verbose output that lists
11759             # what "hidden" libraries, object files and flags are used when
11760             # linking a shared library.
11761             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11762           fi
11763
11764           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11765         fi
11766         ;;
11767     esac
11768     ;;
11769   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11770     no_undefined_flag_CXX='${wl}-z,text'
11771     archive_cmds_need_lc_CXX=no
11772     hardcode_shlibpath_var_CXX=no
11773     runpath_var='LD_RUN_PATH'
11774
11775     case $cc_basename in
11776       CC*)
11777         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779         ;;
11780       *)
11781         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11783         ;;
11784     esac
11785     ;;
11786   sysv5* | sco3.2v5* | sco5v6*)
11787     # Note: We can NOT use -z defs as we might desire, because we do not
11788     # link with -lc, and that would cause any symbols used from libc to
11789     # always be unresolved, which means just about no library would
11790     # ever link correctly.  If we're not using GNU ld we use -z text
11791     # though, which does catch some bad symbols but isn't as heavy-handed
11792     # as -z defs.
11793     # For security reasons, it is highly recommended that you always
11794     # use absolute paths for naming shared libraries, and exclude the
11795     # DT_RUNPATH tag from executables and libraries.  But doing so
11796     # requires that you compile everything twice, which is a pain.
11797     # So that behaviour is only enabled if SCOABSPATH is set to a
11798     # non-empty value in the environment.  Most likely only useful for
11799     # creating official distributions of packages.
11800     # This is a hack until libtool officially supports absolute path
11801     # names for shared libraries.
11802     no_undefined_flag_CXX='${wl}-z,text'
11803     allow_undefined_flag_CXX='${wl}-z,nodefs'
11804     archive_cmds_need_lc_CXX=no
11805     hardcode_shlibpath_var_CXX=no
11806     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11807     hardcode_libdir_separator_CXX=':'
11808     link_all_deplibs_CXX=yes
11809     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11810     runpath_var='LD_RUN_PATH'
11811
11812     case $cc_basename in
11813       CC*)
11814         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11815         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816         ;;
11817       *)
11818         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11820         ;;
11821     esac
11822     ;;
11823   tandem*)
11824     case $cc_basename in
11825       NCC*)
11826         # NonStop-UX NCC 3.20
11827         # FIXME: insert proper C++ library support
11828         ld_shlibs_CXX=no
11829         ;;
11830       *)
11831         # FIXME: insert proper C++ library support
11832         ld_shlibs_CXX=no
11833         ;;
11834     esac
11835     ;;
11836   vxworks*)
11837     # FIXME: insert proper C++ library support
11838     ld_shlibs_CXX=no
11839     ;;
11840   *)
11841     # FIXME: insert proper C++ library support
11842     ld_shlibs_CXX=no
11843     ;;
11844 esac
11845 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11846 $as_echo "$ld_shlibs_CXX" >&6; }
11847 test "$ld_shlibs_CXX" = no && can_build_shared=no
11848
11849 GCC_CXX="$GXX"
11850 LD_CXX="$LD"
11851
11852
11853 cat > conftest.$ac_ext <<EOF
11854 class Foo
11855 {
11856 public:
11857   Foo (void) { a = 0; }
11858 private:
11859   int a;
11860 };
11861 EOF
11862
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864   (eval $ac_compile) 2>&5
11865   ac_status=$?
11866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); }; then
11868   # Parse the compiler output and extract the necessary
11869   # objects, libraries and library flags.
11870
11871   # Sentinel used to keep track of whether or not we are before
11872   # the conftest object file.
11873   pre_test_object_deps_done=no
11874
11875   # The `*' in the case matches for architectures that use `case' in
11876   # $output_verbose_cmd can trigger glob expansion during the loop
11877   # eval without this substitution.
11878   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11879
11880   for p in `eval $output_verbose_link_cmd`; do
11881     case $p in
11882
11883     -L* | -R* | -l*)
11884        # Some compilers place space between "-{L,R}" and the path.
11885        # Remove the space.
11886        if test $p = "-L" \
11887           || test $p = "-R"; then
11888          prev=$p
11889          continue
11890        else
11891          prev=
11892        fi
11893
11894        if test "$pre_test_object_deps_done" = no; then
11895          case $p in
11896          -L* | -R*)
11897            # Internal compiler library paths should come after those
11898            # provided the user.  The postdeps already come after the
11899            # user supplied libs so there is no need to process them.
11900            if test -z "$compiler_lib_search_path_CXX"; then
11901              compiler_lib_search_path_CXX="${prev}${p}"
11902            else
11903              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11904            fi
11905            ;;
11906          # The "-l" case would never come before the object being
11907          # linked, so don't bother handling this case.
11908          esac
11909        else
11910          if test -z "$postdeps_CXX"; then
11911            postdeps_CXX="${prev}${p}"
11912          else
11913            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11914          fi
11915        fi
11916        ;;
11917
11918     *.$objext)
11919        # This assumes that the test object file only shows up
11920        # once in the compiler output.
11921        if test "$p" = "conftest.$objext"; then
11922          pre_test_object_deps_done=yes
11923          continue
11924        fi
11925
11926        if test "$pre_test_object_deps_done" = no; then
11927          if test -z "$predep_objects_CXX"; then
11928            predep_objects_CXX="$p"
11929          else
11930            predep_objects_CXX="$predep_objects_CXX $p"
11931          fi
11932        else
11933          if test -z "$postdep_objects_CXX"; then
11934            postdep_objects_CXX="$p"
11935          else
11936            postdep_objects_CXX="$postdep_objects_CXX $p"
11937          fi
11938        fi
11939        ;;
11940
11941     *) ;; # Ignore the rest.
11942
11943     esac
11944   done
11945
11946   # Clean up.
11947   rm -f a.out a.exe
11948 else
11949   echo "libtool.m4: error: problem compiling CXX test program"
11950 fi
11951
11952 $rm -f confest.$objext
11953
11954 # PORTME: override above test on systems where it is broken
11955 case $host_os in
11956 interix3*)
11957   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11958   # hack all around it, let's just trust "g++" to DTRT.
11959   predep_objects_CXX=
11960   postdep_objects_CXX=
11961   postdeps_CXX=
11962   ;;
11963
11964 solaris*)
11965   case $cc_basename in
11966   CC*)
11967     # Adding this requires a known-good setup of shared libraries for
11968     # Sun compiler versions before 5.6, else PIC objects from an old
11969     # archive will be linked into the output, leading to subtle bugs.
11970     postdeps_CXX='-lCstd -lCrun'
11971     ;;
11972   esac
11973   ;;
11974 esac
11975
11976
11977 case " $postdeps_CXX " in
11978 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11979 esac
11980
11981 lt_prog_compiler_wl_CXX=
11982 lt_prog_compiler_pic_CXX=
11983 lt_prog_compiler_static_CXX=
11984
11985 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11987
11988   # C++ specific cases for pic, static, wl, etc.
11989   if test "$GXX" = yes; then
11990     lt_prog_compiler_wl_CXX='-Wl,'
11991     lt_prog_compiler_static_CXX='-static'
11992
11993     case $host_os in
11994     aix*)
11995       # All AIX code is PIC.
11996       if test "$host_cpu" = ia64; then
11997         # AIX 5 now supports IA64 processor
11998         lt_prog_compiler_static_CXX='-Bstatic'
11999       fi
12000       ;;
12001     amigaos*)
12002       # FIXME: we need at least 68020 code to build shared libraries, but
12003       # adding the `-m68020' flag to GCC prevents building anything better,
12004       # like `-m68040'.
12005       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12006       ;;
12007     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12008       # PIC is the default for these OSes.
12009       ;;
12010     mingw* | os2* | pw32*)
12011       # This hack is so that the source file can tell whether it is being
12012       # built for inclusion in a dll (and should export symbols for example).
12013       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12014       ;;
12015     darwin* | rhapsody*)
12016       # PIC is the default on this platform
12017       # Common symbols not allowed in MH_DYLIB files
12018       lt_prog_compiler_pic_CXX='-fno-common'
12019       ;;
12020     *djgpp*)
12021       # DJGPP does not support shared libraries at all
12022       lt_prog_compiler_pic_CXX=
12023       ;;
12024     interix3*)
12025       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12026       # Instead, we relocate shared libraries at runtime.
12027       ;;
12028     sysv4*MP*)
12029       if test -d /usr/nec; then
12030         lt_prog_compiler_pic_CXX=-Kconform_pic
12031       fi
12032       ;;
12033     hpux*)
12034       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12035       # not for PA HP-UX.
12036       case $host_cpu in
12037       hppa*64*|ia64*)
12038         ;;
12039       *)
12040         lt_prog_compiler_pic_CXX='-fPIC'
12041         ;;
12042       esac
12043       ;;
12044     *)
12045       lt_prog_compiler_pic_CXX='-fPIC'
12046       ;;
12047     esac
12048   else
12049     case $host_os in
12050       aix4* | aix5*)
12051         # All AIX code is PIC.
12052         if test "$host_cpu" = ia64; then
12053           # AIX 5 now supports IA64 processor
12054           lt_prog_compiler_static_CXX='-Bstatic'
12055         else
12056           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12057         fi
12058         ;;
12059       chorus*)
12060         case $cc_basename in
12061         cxch68*)
12062           # Green Hills C++ Compiler
12063           # _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"
12064           ;;
12065         esac
12066         ;;
12067        darwin*)
12068          # PIC is the default on this platform
12069          # Common symbols not allowed in MH_DYLIB files
12070          case $cc_basename in
12071            xlc*)
12072            lt_prog_compiler_pic_CXX='-qnocommon'
12073            lt_prog_compiler_wl_CXX='-Wl,'
12074            ;;
12075          esac
12076        ;;
12077       dgux*)
12078         case $cc_basename in
12079           ec++*)
12080             lt_prog_compiler_pic_CXX='-KPIC'
12081             ;;
12082           ghcx*)
12083             # Green Hills C++ Compiler
12084             lt_prog_compiler_pic_CXX='-pic'
12085             ;;
12086           *)
12087             ;;
12088         esac
12089         ;;
12090       freebsd* | kfreebsd*-gnu | dragonfly*)
12091         # FreeBSD uses GNU C++
12092         ;;
12093       hpux9* | hpux10* | hpux11*)
12094         case $cc_basename in
12095           CC*)
12096             lt_prog_compiler_wl_CXX='-Wl,'
12097             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12098             if test "$host_cpu" != ia64; then
12099               lt_prog_compiler_pic_CXX='+Z'
12100             fi
12101             ;;
12102           aCC*)
12103             lt_prog_compiler_wl_CXX='-Wl,'
12104             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12105             case $host_cpu in
12106             hppa*64*|ia64*)
12107               # +Z the default
12108               ;;
12109             *)
12110               lt_prog_compiler_pic_CXX='+Z'
12111               ;;
12112             esac
12113             ;;
12114           *)
12115             ;;
12116         esac
12117         ;;
12118       interix*)
12119         # This is c89, which is MS Visual C++ (no shared libs)
12120         # Anyone wants to do a port?
12121         ;;
12122       irix5* | irix6* | nonstopux*)
12123         case $cc_basename in
12124           CC*)
12125             lt_prog_compiler_wl_CXX='-Wl,'
12126             lt_prog_compiler_static_CXX='-non_shared'
12127             # CC pic flag -KPIC is the default.
12128             ;;
12129           *)
12130             ;;
12131         esac
12132         ;;
12133       linux*)
12134         case $cc_basename in
12135           KCC*)
12136             # KAI C++ Compiler
12137             lt_prog_compiler_wl_CXX='--backend -Wl,'
12138             lt_prog_compiler_pic_CXX='-fPIC'
12139             ;;
12140           icpc* | ecpc*)
12141             # Intel C++
12142             lt_prog_compiler_wl_CXX='-Wl,'
12143             lt_prog_compiler_pic_CXX='-KPIC'
12144             lt_prog_compiler_static_CXX='-static'
12145             ;;
12146           pgCC*)
12147             # Portland Group C++ compiler.
12148             lt_prog_compiler_wl_CXX='-Wl,'
12149             lt_prog_compiler_pic_CXX='-fpic'
12150             lt_prog_compiler_static_CXX='-Bstatic'
12151             ;;
12152           cxx*)
12153             # Compaq C++
12154             # Make sure the PIC flag is empty.  It appears that all Alpha
12155             # Linux and Compaq Tru64 Unix objects are PIC.
12156             lt_prog_compiler_pic_CXX=
12157             lt_prog_compiler_static_CXX='-non_shared'
12158             ;;
12159           *)
12160             ;;
12161         esac
12162         ;;
12163       lynxos*)
12164         ;;
12165       m88k*)
12166         ;;
12167       mvs*)
12168         case $cc_basename in
12169           cxx*)
12170             lt_prog_compiler_pic_CXX='-W c,exportall'
12171             ;;
12172           *)
12173             ;;
12174         esac
12175         ;;
12176       netbsd*)
12177         ;;
12178       osf3* | osf4* | osf5*)
12179         case $cc_basename in
12180           KCC*)
12181             lt_prog_compiler_wl_CXX='--backend -Wl,'
12182             ;;
12183           RCC*)
12184             # Rational C++ 2.4.1
12185             lt_prog_compiler_pic_CXX='-pic'
12186             ;;
12187           cxx*)
12188             # Digital/Compaq C++
12189             lt_prog_compiler_wl_CXX='-Wl,'
12190             # Make sure the PIC flag is empty.  It appears that all Alpha
12191             # Linux and Compaq Tru64 Unix objects are PIC.
12192             lt_prog_compiler_pic_CXX=
12193             lt_prog_compiler_static_CXX='-non_shared'
12194             ;;
12195           *)
12196             ;;
12197         esac
12198         ;;
12199       psos*)
12200         ;;
12201       solaris*)
12202         case $cc_basename in
12203           CC*)
12204             # Sun C++ 4.2, 5.x and Centerline C++
12205             lt_prog_compiler_pic_CXX='-KPIC'
12206             lt_prog_compiler_static_CXX='-Bstatic'
12207             lt_prog_compiler_wl_CXX='-Qoption ld '
12208             ;;
12209           gcx*)
12210             # Green Hills C++ Compiler
12211             lt_prog_compiler_pic_CXX='-PIC'
12212             ;;
12213           *)
12214             ;;
12215         esac
12216         ;;
12217       sunos4*)
12218         case $cc_basename in
12219           CC*)
12220             # Sun C++ 4.x
12221             lt_prog_compiler_pic_CXX='-pic'
12222             lt_prog_compiler_static_CXX='-Bstatic'
12223             ;;
12224           lcc*)
12225             # Lucid
12226             lt_prog_compiler_pic_CXX='-pic'
12227             ;;
12228           *)
12229             ;;
12230         esac
12231         ;;
12232       tandem*)
12233         case $cc_basename in
12234           NCC*)
12235             # NonStop-UX NCC 3.20
12236             lt_prog_compiler_pic_CXX='-KPIC'
12237             ;;
12238           *)
12239             ;;
12240         esac
12241         ;;
12242       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12243         case $cc_basename in
12244           CC*)
12245             lt_prog_compiler_wl_CXX='-Wl,'
12246             lt_prog_compiler_pic_CXX='-KPIC'
12247             lt_prog_compiler_static_CXX='-Bstatic'
12248             ;;
12249         esac
12250         ;;
12251       vxworks*)
12252         ;;
12253       *)
12254         lt_prog_compiler_can_build_shared_CXX=no
12255         ;;
12256     esac
12257   fi
12258
12259 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12260 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12261
12262 #
12263 # Check to make sure the PIC flag actually works.
12264 #
12265 if test -n "$lt_prog_compiler_pic_CXX"; then
12266
12267 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12268 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12269 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12270   $as_echo_n "(cached) " >&6
12271 else
12272   lt_prog_compiler_pic_works_CXX=no
12273   ac_outfile=conftest.$ac_objext
12274    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12275    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12276    # Insert the option either (1) after the last *FLAGS variable, or
12277    # (2) before a word containing "conftest.", or (3) at the end.
12278    # Note that $ac_compile itself does not contain backslashes and begins
12279    # with a dollar sign (not a hyphen), so the echo should work correctly.
12280    # The option is referenced via a variable to avoid confusing sed.
12281    lt_compile=`echo "$ac_compile" | $SED \
12282    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284    -e 's:$: $lt_compiler_flag:'`
12285    (eval echo "\"\$as_me:12285: $lt_compile\"" >&5)
12286    (eval "$lt_compile" 2>conftest.err)
12287    ac_status=$?
12288    cat conftest.err >&5
12289    echo "$as_me:12289: \$? = $ac_status" >&5
12290    if (exit $ac_status) && test -s "$ac_outfile"; then
12291      # The compiler can only warn and ignore the option if not recognized
12292      # So say no if there are warnings other than the usual output.
12293      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12294      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12295      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12296        lt_prog_compiler_pic_works_CXX=yes
12297      fi
12298    fi
12299    $rm conftest*
12300
12301 fi
12302 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12303 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12304
12305 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12306     case $lt_prog_compiler_pic_CXX in
12307      "" | " "*) ;;
12308      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12309      esac
12310 else
12311     lt_prog_compiler_pic_CXX=
12312      lt_prog_compiler_can_build_shared_CXX=no
12313 fi
12314
12315 fi
12316 case $host_os in
12317   # For platforms which do not support PIC, -DPIC is meaningless:
12318   *djgpp*)
12319     lt_prog_compiler_pic_CXX=
12320     ;;
12321   *)
12322     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12323     ;;
12324 esac
12325
12326 #
12327 # Check to make sure the static flag actually works.
12328 #
12329 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12330 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12332 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12333   $as_echo_n "(cached) " >&6
12334 else
12335   lt_prog_compiler_static_works_CXX=no
12336    save_LDFLAGS="$LDFLAGS"
12337    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12338    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12339    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12340      # The linker can only warn and ignore the option if not recognized
12341      # So say no if there are warnings
12342      if test -s conftest.err; then
12343        # Append any errors to the config.log.
12344        cat conftest.err 1>&5
12345        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12346        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12347        if diff conftest.exp conftest.er2 >/dev/null; then
12348          lt_prog_compiler_static_works_CXX=yes
12349        fi
12350      else
12351        lt_prog_compiler_static_works_CXX=yes
12352      fi
12353    fi
12354    $rm conftest*
12355    LDFLAGS="$save_LDFLAGS"
12356
12357 fi
12358 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12359 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12360
12361 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12362     :
12363 else
12364     lt_prog_compiler_static_CXX=
12365 fi
12366
12367
12368 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12370 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12371   $as_echo_n "(cached) " >&6
12372 else
12373   lt_cv_prog_compiler_c_o_CXX=no
12374    $rm -r conftest 2>/dev/null
12375    mkdir conftest
12376    cd conftest
12377    mkdir out
12378    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12379
12380    lt_compiler_flag="-o out/conftest2.$ac_objext"
12381    # Insert the option either (1) after the last *FLAGS variable, or
12382    # (2) before a word containing "conftest.", or (3) at the end.
12383    # Note that $ac_compile itself does not contain backslashes and begins
12384    # with a dollar sign (not a hyphen), so the echo should work correctly.
12385    lt_compile=`echo "$ac_compile" | $SED \
12386    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388    -e 's:$: $lt_compiler_flag:'`
12389    (eval echo "\"\$as_me:12389: $lt_compile\"" >&5)
12390    (eval "$lt_compile" 2>out/conftest.err)
12391    ac_status=$?
12392    cat out/conftest.err >&5
12393    echo "$as_me:12393: \$? = $ac_status" >&5
12394    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12395    then
12396      # The compiler can only warn and ignore the option if not recognized
12397      # So say no if there are warnings
12398      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12399      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12400      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12401        lt_cv_prog_compiler_c_o_CXX=yes
12402      fi
12403    fi
12404    chmod u+w . 2>&5
12405    $rm conftest*
12406    # SGI C++ compiler will create directory out/ii_files/ for
12407    # template instantiation
12408    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12409    $rm out/* && rmdir out
12410    cd ..
12411    rmdir conftest
12412    $rm conftest*
12413
12414 fi
12415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12416 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12417
12418
12419 hard_links="nottested"
12420 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12421   # do not overwrite the value of need_locks provided by the user
12422   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12423 $as_echo_n "checking if we can lock with hard links... " >&6; }
12424   hard_links=yes
12425   $rm conftest*
12426   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12427   touch conftest.a
12428   ln conftest.a conftest.b 2>&5 || hard_links=no
12429   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12430   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12431 $as_echo "$hard_links" >&6; }
12432   if test "$hard_links" = no; then
12433     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12434 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12435     need_locks=warn
12436   fi
12437 else
12438   need_locks=no
12439 fi
12440
12441 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12443
12444   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12445   case $host_os in
12446   aix4* | aix5*)
12447     # If we're using GNU nm, then we don't want the "-C" option.
12448     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12449     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12450       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'
12451     else
12452       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'
12453     fi
12454     ;;
12455   pw32*)
12456     export_symbols_cmds_CXX="$ltdll_cmds"
12457   ;;
12458   cygwin* | mingw*)
12459     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'
12460   ;;
12461   *)
12462     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12463   ;;
12464   esac
12465
12466 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12467 $as_echo "$ld_shlibs_CXX" >&6; }
12468 test "$ld_shlibs_CXX" = no && can_build_shared=no
12469
12470 #
12471 # Do we need to explicitly link libc?
12472 #
12473 case "x$archive_cmds_need_lc_CXX" in
12474 x|xyes)
12475   # Assume -lc should be added
12476   archive_cmds_need_lc_CXX=yes
12477
12478   if test "$enable_shared" = yes && test "$GCC" = yes; then
12479     case $archive_cmds_CXX in
12480     *'~'*)
12481       # FIXME: we may have to deal with multi-command sequences.
12482       ;;
12483     '$CC '*)
12484       # Test whether the compiler implicitly links with -lc since on some
12485       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12486       # to ld, don't add -lc before -lgcc.
12487       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12489       $rm conftest*
12490       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12491
12492       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493   (eval $ac_compile) 2>&5
12494   ac_status=$?
12495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } 2>conftest.err; then
12497         soname=conftest
12498         lib=conftest
12499         libobjs=conftest.$ac_objext
12500         deplibs=
12501         wl=$lt_prog_compiler_wl_CXX
12502         pic_flag=$lt_prog_compiler_pic_CXX
12503         compiler_flags=-v
12504         linker_flags=-v
12505         verstring=
12506         output_objdir=.
12507         libname=conftest
12508         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12509         allow_undefined_flag_CXX=
12510         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12511   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12512   ac_status=$?
12513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); }
12515         then
12516           archive_cmds_need_lc_CXX=no
12517         else
12518           archive_cmds_need_lc_CXX=yes
12519         fi
12520         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12521       else
12522         cat conftest.err 1>&5
12523       fi
12524       $rm conftest*
12525       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12526 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12527       ;;
12528     esac
12529   fi
12530   ;;
12531 esac
12532
12533 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12535 library_names_spec=
12536 libname_spec='lib$name'
12537 soname_spec=
12538 shrext_cmds=".so"
12539 postinstall_cmds=
12540 postuninstall_cmds=
12541 finish_cmds=
12542 finish_eval=
12543 shlibpath_var=
12544 shlibpath_overrides_runpath=unknown
12545 version_type=none
12546 dynamic_linker="$host_os ld.so"
12547 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12548 if test "$GCC" = yes; then
12549   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12550   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12551     # if the path contains ";" then we assume it to be the separator
12552     # otherwise default to the standard path separator (i.e. ":") - it is
12553     # assumed that no part of a normal pathname contains ";" but that should
12554     # okay in the real world where ";" in dirpaths is itself problematic.
12555     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12556   else
12557     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12558   fi
12559 else
12560   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12561 fi
12562 need_lib_prefix=unknown
12563 hardcode_into_libs=no
12564
12565 # when you set need_version to no, make sure it does not cause -set_version
12566 # flags to be left without arguments
12567 need_version=unknown
12568
12569 case $host_os in
12570 aix3*)
12571   version_type=linux
12572   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12573   shlibpath_var=LIBPATH
12574
12575   # AIX 3 has no versioning support, so we append a major version to the name.
12576   soname_spec='${libname}${release}${shared_ext}$major'
12577   ;;
12578
12579 aix4* | aix5*)
12580   version_type=linux
12581   need_lib_prefix=no
12582   need_version=no
12583   hardcode_into_libs=yes
12584   if test "$host_cpu" = ia64; then
12585     # AIX 5 supports IA64
12586     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12587     shlibpath_var=LD_LIBRARY_PATH
12588   else
12589     # With GCC up to 2.95.x, collect2 would create an import file
12590     # for dependence libraries.  The import file would start with
12591     # the line `#! .'.  This would cause the generated library to
12592     # depend on `.', always an invalid library.  This was fixed in
12593     # development snapshots of GCC prior to 3.0.
12594     case $host_os in
12595       aix4 | aix4.[01] | aix4.[01].*)
12596       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12597            echo ' yes '
12598            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12599         :
12600       else
12601         can_build_shared=no
12602       fi
12603       ;;
12604     esac
12605     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12606     # soname into executable. Probably we can add versioning support to
12607     # collect2, so additional links can be useful in future.
12608     if test "$aix_use_runtimelinking" = yes; then
12609       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12610       # instead of lib<name>.a to let people know that these are not
12611       # typical AIX shared libraries.
12612       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12613     else
12614       # We preserve .a as extension for shared libraries through AIX4.2
12615       # and later when we are not doing run time linking.
12616       library_names_spec='${libname}${release}.a $libname.a'
12617       soname_spec='${libname}${release}${shared_ext}$major'
12618     fi
12619     shlibpath_var=LIBPATH
12620   fi
12621   ;;
12622
12623 amigaos*)
12624   library_names_spec='$libname.ixlibrary $libname.a'
12625   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12626   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'
12627   ;;
12628
12629 beos*)
12630   library_names_spec='${libname}${shared_ext}'
12631   dynamic_linker="$host_os ld.so"
12632   shlibpath_var=LIBRARY_PATH
12633   ;;
12634
12635 bsdi[45]*)
12636   version_type=linux
12637   need_version=no
12638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639   soname_spec='${libname}${release}${shared_ext}$major'
12640   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12641   shlibpath_var=LD_LIBRARY_PATH
12642   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12643   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12644   # the default ld.so.conf also contains /usr/contrib/lib and
12645   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12646   # libtool to hard-code these into programs
12647   ;;
12648
12649 cygwin* | mingw* | pw32*)
12650   version_type=windows
12651   shrext_cmds=".dll"
12652   need_version=no
12653   need_lib_prefix=no
12654
12655   case $GCC,$host_os in
12656   yes,cygwin* | yes,mingw* | yes,pw32*)
12657     library_names_spec='$libname.dll.a'
12658     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12659     postinstall_cmds='base_file=`basename \${file}`~
12660       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12661       dldir=$destdir/`dirname \$dlpath`~
12662       test -d \$dldir || mkdir -p \$dldir~
12663       $install_prog $dir/$dlname \$dldir/$dlname~
12664       chmod a+x \$dldir/$dlname'
12665     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12666       dlpath=$dir/\$dldll~
12667        $rm \$dlpath'
12668     shlibpath_overrides_runpath=yes
12669
12670     case $host_os in
12671     cygwin*)
12672       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12673       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12674       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12675       ;;
12676     mingw*)
12677       # MinGW DLLs use traditional 'lib' prefix
12678       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12679       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12680       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12681         # It is most probably a Windows format PATH printed by
12682         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12683         # path with ; separators, and with drive letters. We can handle the
12684         # drive letters (cygwin fileutils understands them), so leave them,
12685         # especially as we might pass files found there to a mingw objdump,
12686         # which wouldn't understand a cygwinified path. Ahh.
12687         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12688       else
12689         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12690       fi
12691       ;;
12692     pw32*)
12693       # pw32 DLLs use 'pw' prefix rather than 'lib'
12694       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12695       ;;
12696     esac
12697     ;;
12698
12699   *)
12700     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12701     ;;
12702   esac
12703   dynamic_linker='Win32 ld.exe'
12704   # FIXME: first we should search . and the directory the executable is in
12705   shlibpath_var=PATH
12706   ;;
12707
12708 darwin* | rhapsody*)
12709   dynamic_linker="$host_os dyld"
12710   version_type=darwin
12711   need_lib_prefix=no
12712   need_version=no
12713   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12714   soname_spec='${libname}${release}${major}$shared_ext'
12715   shlibpath_overrides_runpath=yes
12716   shlibpath_var=DYLD_LIBRARY_PATH
12717   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12718   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12719   if test "$GCC" = yes; then
12720     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"`
12721   else
12722     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12723   fi
12724   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12725   ;;
12726
12727 dgux*)
12728   version_type=linux
12729   need_lib_prefix=no
12730   need_version=no
12731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12732   soname_spec='${libname}${release}${shared_ext}$major'
12733   shlibpath_var=LD_LIBRARY_PATH
12734   ;;
12735
12736 freebsd1*)
12737   dynamic_linker=no
12738   ;;
12739
12740 kfreebsd*-gnu)
12741   version_type=linux
12742   need_lib_prefix=no
12743   need_version=no
12744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12745   soname_spec='${libname}${release}${shared_ext}$major'
12746   shlibpath_var=LD_LIBRARY_PATH
12747   shlibpath_overrides_runpath=no
12748   hardcode_into_libs=yes
12749   dynamic_linker='GNU ld.so'
12750   ;;
12751
12752 freebsd* | dragonfly*)
12753   # DragonFly does not have aout.  When/if they implement a new
12754   # versioning mechanism, adjust this.
12755   if test -x /usr/bin/objformat; then
12756     objformat=`/usr/bin/objformat`
12757   else
12758     case $host_os in
12759     freebsd[123]*) objformat=aout ;;
12760     *) objformat=elf ;;
12761     esac
12762   fi
12763   version_type=freebsd-$objformat
12764   case $version_type in
12765     freebsd-elf*)
12766       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12767       need_version=no
12768       need_lib_prefix=no
12769       ;;
12770     freebsd-*)
12771       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12772       need_version=yes
12773       ;;
12774   esac
12775   shlibpath_var=LD_LIBRARY_PATH
12776   case $host_os in
12777   freebsd2*)
12778     shlibpath_overrides_runpath=yes
12779     ;;
12780   freebsd3.[01]* | freebsdelf3.[01]*)
12781     shlibpath_overrides_runpath=yes
12782     hardcode_into_libs=yes
12783     ;;
12784   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12785   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12786     shlibpath_overrides_runpath=no
12787     hardcode_into_libs=yes
12788     ;;
12789   freebsd*) # from 4.6 on
12790     shlibpath_overrides_runpath=yes
12791     hardcode_into_libs=yes
12792     ;;
12793   esac
12794   ;;
12795
12796 gnu*)
12797   version_type=linux
12798   need_lib_prefix=no
12799   need_version=no
12800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12801   soname_spec='${libname}${release}${shared_ext}$major'
12802   shlibpath_var=LD_LIBRARY_PATH
12803   hardcode_into_libs=yes
12804   ;;
12805
12806 hpux9* | hpux10* | hpux11*)
12807   # Give a soname corresponding to the major version so that dld.sl refuses to
12808   # link against other versions.
12809   version_type=sunos
12810   need_lib_prefix=no
12811   need_version=no
12812   case $host_cpu in
12813   ia64*)
12814     shrext_cmds='.so'
12815     hardcode_into_libs=yes
12816     dynamic_linker="$host_os dld.so"
12817     shlibpath_var=LD_LIBRARY_PATH
12818     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820     soname_spec='${libname}${release}${shared_ext}$major'
12821     if test "X$HPUX_IA64_MODE" = X32; then
12822       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12823     else
12824       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12825     fi
12826     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12827     ;;
12828    hppa*64*)
12829      shrext_cmds='.sl'
12830      hardcode_into_libs=yes
12831      dynamic_linker="$host_os dld.sl"
12832      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12833      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12834      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12835      soname_spec='${libname}${release}${shared_ext}$major'
12836      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12837      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12838      ;;
12839    *)
12840     shrext_cmds='.sl'
12841     dynamic_linker="$host_os dld.sl"
12842     shlibpath_var=SHLIB_PATH
12843     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845     soname_spec='${libname}${release}${shared_ext}$major'
12846     ;;
12847   esac
12848   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12849   postinstall_cmds='chmod 555 $lib'
12850   ;;
12851
12852 interix3*)
12853   version_type=linux
12854   need_lib_prefix=no
12855   need_version=no
12856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12857   soname_spec='${libname}${release}${shared_ext}$major'
12858   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12859   shlibpath_var=LD_LIBRARY_PATH
12860   shlibpath_overrides_runpath=no
12861   hardcode_into_libs=yes
12862   ;;
12863
12864 irix5* | irix6* | nonstopux*)
12865   case $host_os in
12866     nonstopux*) version_type=nonstopux ;;
12867     *)
12868         if test "$lt_cv_prog_gnu_ld" = yes; then
12869                 version_type=linux
12870         else
12871                 version_type=irix
12872         fi ;;
12873   esac
12874   need_lib_prefix=no
12875   need_version=no
12876   soname_spec='${libname}${release}${shared_ext}$major'
12877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12878   case $host_os in
12879   irix5* | nonstopux*)
12880     libsuff= shlibsuff=
12881     ;;
12882   *)
12883     case $LD in # libtool.m4 will add one of these switches to LD
12884     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12885       libsuff= shlibsuff= libmagic=32-bit;;
12886     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12887       libsuff=32 shlibsuff=N32 libmagic=N32;;
12888     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12889       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12890     *) libsuff= shlibsuff= libmagic=never-match;;
12891     esac
12892     ;;
12893   esac
12894   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12895   shlibpath_overrides_runpath=no
12896   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12897   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12898   hardcode_into_libs=yes
12899   ;;
12900
12901 # No shared lib support for Linux oldld, aout, or coff.
12902 linux*oldld* | linux*aout* | linux*coff*)
12903   dynamic_linker=no
12904   ;;
12905
12906 # This must be Linux ELF.
12907 linux*)
12908   version_type=linux
12909   need_lib_prefix=no
12910   need_version=no
12911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912   soname_spec='${libname}${release}${shared_ext}$major'
12913   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12914   shlibpath_var=LD_LIBRARY_PATH
12915   shlibpath_overrides_runpath=no
12916   # This implies no fast_install, which is unacceptable.
12917   # Some rework will be needed to allow for fast_install
12918   # before this can be enabled.
12919   hardcode_into_libs=yes
12920
12921   # find out which ABI we are using
12922   libsuff=
12923   case "$host_cpu" in
12924   x86_64*|s390x*|powerpc64*)
12925     echo '#line 12925 "configure"' > conftest.$ac_ext
12926     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927   (eval $ac_compile) 2>&5
12928   ac_status=$?
12929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; then
12931       case `/usr/bin/file conftest.$ac_objext` in
12932       *64-bit*)
12933         libsuff=64
12934         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12935         ;;
12936       esac
12937     fi
12938     rm -rf conftest*
12939     ;;
12940   esac
12941
12942   # Append ld.so.conf contents to the search path
12943   if test -f /etc/ld.so.conf; then
12944     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12945     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12946   fi
12947
12948   # We used to test for /lib/ld.so.1 and disable shared libraries on
12949   # powerpc, because MkLinux only supported shared libraries with the
12950   # GNU dynamic linker.  Since this was broken with cross compilers,
12951   # most powerpc-linux boxes support dynamic linking these days and
12952   # people can always --disable-shared, the test was removed, and we
12953   # assume the GNU/Linux dynamic linker is in use.
12954   dynamic_linker='GNU/Linux ld.so'
12955   ;;
12956
12957 knetbsd*-gnu)
12958   version_type=linux
12959   need_lib_prefix=no
12960   need_version=no
12961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12962   soname_spec='${libname}${release}${shared_ext}$major'
12963   shlibpath_var=LD_LIBRARY_PATH
12964   shlibpath_overrides_runpath=no
12965   hardcode_into_libs=yes
12966   dynamic_linker='GNU ld.so'
12967   ;;
12968
12969 netbsd*)
12970   version_type=sunos
12971   need_lib_prefix=no
12972   need_version=no
12973   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12975     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12976     dynamic_linker='NetBSD (a.out) ld.so'
12977   else
12978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12979     soname_spec='${libname}${release}${shared_ext}$major'
12980     dynamic_linker='NetBSD ld.elf_so'
12981   fi
12982   shlibpath_var=LD_LIBRARY_PATH
12983   shlibpath_overrides_runpath=yes
12984   hardcode_into_libs=yes
12985   ;;
12986
12987 newsos6)
12988   version_type=linux
12989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990   shlibpath_var=LD_LIBRARY_PATH
12991   shlibpath_overrides_runpath=yes
12992   ;;
12993
12994 nto-qnx*)
12995   version_type=linux
12996   need_lib_prefix=no
12997   need_version=no
12998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999   soname_spec='${libname}${release}${shared_ext}$major'
13000   shlibpath_var=LD_LIBRARY_PATH
13001   shlibpath_overrides_runpath=yes
13002   ;;
13003
13004 openbsd*)
13005   version_type=sunos
13006   sys_lib_dlsearch_path_spec="/usr/lib"
13007   need_lib_prefix=no
13008   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13009   case $host_os in
13010     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13011     *)                         need_version=no  ;;
13012   esac
13013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13014   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13015   shlibpath_var=LD_LIBRARY_PATH
13016   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13017     case $host_os in
13018       openbsd2.[89] | openbsd2.[89].*)
13019         shlibpath_overrides_runpath=no
13020         ;;
13021       *)
13022         shlibpath_overrides_runpath=yes
13023         ;;
13024       esac
13025   else
13026     shlibpath_overrides_runpath=yes
13027   fi
13028   ;;
13029
13030 os2*)
13031   libname_spec='$name'
13032   shrext_cmds=".dll"
13033   need_lib_prefix=no
13034   library_names_spec='$libname${shared_ext} $libname.a'
13035   dynamic_linker='OS/2 ld.exe'
13036   shlibpath_var=LIBPATH
13037   ;;
13038
13039 osf3* | osf4* | osf5*)
13040   version_type=osf
13041   need_lib_prefix=no
13042   need_version=no
13043   soname_spec='${libname}${release}${shared_ext}$major'
13044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045   shlibpath_var=LD_LIBRARY_PATH
13046   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13047   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13048   ;;
13049
13050 solaris*)
13051   version_type=linux
13052   need_lib_prefix=no
13053   need_version=no
13054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055   soname_spec='${libname}${release}${shared_ext}$major'
13056   shlibpath_var=LD_LIBRARY_PATH
13057   shlibpath_overrides_runpath=yes
13058   hardcode_into_libs=yes
13059   # ldd complains unless libraries are executable
13060   postinstall_cmds='chmod +x $lib'
13061   ;;
13062
13063 sunos4*)
13064   version_type=sunos
13065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13066   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13067   shlibpath_var=LD_LIBRARY_PATH
13068   shlibpath_overrides_runpath=yes
13069   if test "$with_gnu_ld" = yes; then
13070     need_lib_prefix=no
13071   fi
13072   need_version=yes
13073   ;;
13074
13075 sysv4 | sysv4.3*)
13076   version_type=linux
13077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078   soname_spec='${libname}${release}${shared_ext}$major'
13079   shlibpath_var=LD_LIBRARY_PATH
13080   case $host_vendor in
13081     sni)
13082       shlibpath_overrides_runpath=no
13083       need_lib_prefix=no
13084       export_dynamic_flag_spec='${wl}-Blargedynsym'
13085       runpath_var=LD_RUN_PATH
13086       ;;
13087     siemens)
13088       need_lib_prefix=no
13089       ;;
13090     motorola)
13091       need_lib_prefix=no
13092       need_version=no
13093       shlibpath_overrides_runpath=no
13094       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13095       ;;
13096   esac
13097   ;;
13098
13099 sysv4*MP*)
13100   if test -d /usr/nec ;then
13101     version_type=linux
13102     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13103     soname_spec='$libname${shared_ext}.$major'
13104     shlibpath_var=LD_LIBRARY_PATH
13105   fi
13106   ;;
13107
13108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13109   version_type=freebsd-elf
13110   need_lib_prefix=no
13111   need_version=no
13112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13113   soname_spec='${libname}${release}${shared_ext}$major'
13114   shlibpath_var=LD_LIBRARY_PATH
13115   hardcode_into_libs=yes
13116   if test "$with_gnu_ld" = yes; then
13117     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13118     shlibpath_overrides_runpath=no
13119   else
13120     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13121     shlibpath_overrides_runpath=yes
13122     case $host_os in
13123       sco3.2v5*)
13124         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13125         ;;
13126     esac
13127   fi
13128   sys_lib_dlsearch_path_spec='/usr/lib'
13129   ;;
13130
13131 uts4*)
13132   version_type=linux
13133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13134   soname_spec='${libname}${release}${shared_ext}$major'
13135   shlibpath_var=LD_LIBRARY_PATH
13136   ;;
13137
13138 *)
13139   dynamic_linker=no
13140   ;;
13141 esac
13142 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13143 $as_echo "$dynamic_linker" >&6; }
13144 test "$dynamic_linker" = no && can_build_shared=no
13145
13146 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13147 if test "$GCC" = yes; then
13148   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13149 fi
13150
13151 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13153 hardcode_action_CXX=
13154 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13155    test -n "$runpath_var_CXX" || \
13156    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13157
13158   # We can hardcode non-existant directories.
13159   if test "$hardcode_direct_CXX" != no &&
13160      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13161      # have to relink, otherwise we might link with an installed library
13162      # when we should be linking with a yet-to-be-installed one
13163      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13164      test "$hardcode_minus_L_CXX" != no; then
13165     # Linking always hardcodes the temporary library directory.
13166     hardcode_action_CXX=relink
13167   else
13168     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13169     hardcode_action_CXX=immediate
13170   fi
13171 else
13172   # We cannot hardcode anything, or else we can only hardcode existing
13173   # directories.
13174   hardcode_action_CXX=unsupported
13175 fi
13176 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13177 $as_echo "$hardcode_action_CXX" >&6; }
13178
13179 if test "$hardcode_action_CXX" = relink; then
13180   # Fast installation is not supported
13181   enable_fast_install=no
13182 elif test "$shlibpath_overrides_runpath" = yes ||
13183      test "$enable_shared" = no; then
13184   # Fast installation is not necessary
13185   enable_fast_install=needless
13186 fi
13187
13188
13189 # The else clause should only fire when bootstrapping the
13190 # libtool distribution, otherwise you forgot to ship ltmain.sh
13191 # with your package, and you will get complaints that there are
13192 # no rules to generate ltmain.sh.
13193 if test -f "$ltmain"; then
13194   # See if we are running on zsh, and set the options which allow our commands through
13195   # without removal of \ escapes.
13196   if test -n "${ZSH_VERSION+set}" ; then
13197     setopt NO_GLOB_SUBST
13198   fi
13199   # Now quote all the things that may contain metacharacters while being
13200   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13201   # variables and quote the copies for generation of the libtool script.
13202   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13203     SED SHELL STRIP \
13204     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13205     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13206     deplibs_check_method reload_flag reload_cmds need_locks \
13207     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13208     lt_cv_sys_global_symbol_to_c_name_address \
13209     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13210     old_postinstall_cmds old_postuninstall_cmds \
13211     compiler_CXX \
13212     CC_CXX \
13213     LD_CXX \
13214     lt_prog_compiler_wl_CXX \
13215     lt_prog_compiler_pic_CXX \
13216     lt_prog_compiler_static_CXX \
13217     lt_prog_compiler_no_builtin_flag_CXX \
13218     export_dynamic_flag_spec_CXX \
13219     thread_safe_flag_spec_CXX \
13220     whole_archive_flag_spec_CXX \
13221     enable_shared_with_static_runtimes_CXX \
13222     old_archive_cmds_CXX \
13223     old_archive_from_new_cmds_CXX \
13224     predep_objects_CXX \
13225     postdep_objects_CXX \
13226     predeps_CXX \
13227     postdeps_CXX \
13228     compiler_lib_search_path_CXX \
13229     archive_cmds_CXX \
13230     archive_expsym_cmds_CXX \
13231     postinstall_cmds_CXX \
13232     postuninstall_cmds_CXX \
13233     old_archive_from_expsyms_cmds_CXX \
13234     allow_undefined_flag_CXX \
13235     no_undefined_flag_CXX \
13236     export_symbols_cmds_CXX \
13237     hardcode_libdir_flag_spec_CXX \
13238     hardcode_libdir_flag_spec_ld_CXX \
13239     hardcode_libdir_separator_CXX \
13240     hardcode_automatic_CXX \
13241     module_cmds_CXX \
13242     module_expsym_cmds_CXX \
13243     lt_cv_prog_compiler_c_o_CXX \
13244     exclude_expsyms_CXX \
13245     include_expsyms_CXX; do
13246
13247     case $var in
13248     old_archive_cmds_CXX | \
13249     old_archive_from_new_cmds_CXX | \
13250     archive_cmds_CXX | \
13251     archive_expsym_cmds_CXX | \
13252     module_cmds_CXX | \
13253     module_expsym_cmds_CXX | \
13254     old_archive_from_expsyms_cmds_CXX | \
13255     export_symbols_cmds_CXX | \
13256     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13257     postinstall_cmds | postuninstall_cmds | \
13258     old_postinstall_cmds | old_postuninstall_cmds | \
13259     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13260       # Double-quote double-evaled strings.
13261       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13262       ;;
13263     *)
13264       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13265       ;;
13266     esac
13267   done
13268
13269   case $lt_echo in
13270   *'\$0 --fallback-echo"')
13271     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13272     ;;
13273   esac
13274
13275 cfgfile="$ofile"
13276
13277   cat <<__EOF__ >> "$cfgfile"
13278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13279
13280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13281
13282 # Shell to use when invoking shell scripts.
13283 SHELL=$lt_SHELL
13284
13285 # Whether or not to build shared libraries.
13286 build_libtool_libs=$enable_shared
13287
13288 # Whether or not to build static libraries.
13289 build_old_libs=$enable_static
13290
13291 # Whether or not to add -lc for building shared libraries.
13292 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13293
13294 # Whether or not to disallow shared libs when runtime libs are static
13295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13296
13297 # Whether or not to optimize for fast installation.
13298 fast_install=$enable_fast_install
13299
13300 # The host system.
13301 host_alias=$host_alias
13302 host=$host
13303 host_os=$host_os
13304
13305 # The build system.
13306 build_alias=$build_alias
13307 build=$build
13308 build_os=$build_os
13309
13310 # An echo program that does not interpret backslashes.
13311 echo=$lt_echo
13312
13313 # The archiver.
13314 AR=$lt_AR
13315 AR_FLAGS=$lt_AR_FLAGS
13316
13317 # A C compiler.
13318 LTCC=$lt_LTCC
13319
13320 # LTCC compiler flags.
13321 LTCFLAGS=$lt_LTCFLAGS
13322
13323 # A language-specific compiler.
13324 CC=$lt_compiler_CXX
13325
13326 # Is the compiler the GNU C compiler?
13327 with_gcc=$GCC_CXX
13328
13329 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13330 gcc_ver=\`gcc -dumpversion\`
13331
13332 # An ERE matcher.
13333 EGREP=$lt_EGREP
13334
13335 # The linker used to build libraries.
13336 LD=$lt_LD_CXX
13337
13338 # Whether we need hard or soft links.
13339 LN_S=$lt_LN_S
13340
13341 # A BSD-compatible nm program.
13342 NM=$lt_NM
13343
13344 # A symbol stripping program
13345 STRIP=$lt_STRIP
13346
13347 # Used to examine libraries when file_magic_cmd begins "file"
13348 MAGIC_CMD=$MAGIC_CMD
13349
13350 # Used on cygwin: DLL creation program.
13351 DLLTOOL="$DLLTOOL"
13352
13353 # Used on cygwin: object dumper.
13354 OBJDUMP="$OBJDUMP"
13355
13356 # Used on cygwin: assembler.
13357 AS="$AS"
13358
13359 # The name of the directory that contains temporary libtool files.
13360 objdir=$objdir
13361
13362 # How to create reloadable object files.
13363 reload_flag=$lt_reload_flag
13364 reload_cmds=$lt_reload_cmds
13365
13366 # How to pass a linker flag through the compiler.
13367 wl=$lt_lt_prog_compiler_wl_CXX
13368
13369 # Object file suffix (normally "o").
13370 objext="$ac_objext"
13371
13372 # Old archive suffix (normally "a").
13373 libext="$libext"
13374
13375 # Shared library suffix (normally ".so").
13376 shrext_cmds='$shrext_cmds'
13377
13378 # Executable file suffix (normally "").
13379 exeext="$exeext"
13380
13381 # Additional compiler flags for building library objects.
13382 pic_flag=$lt_lt_prog_compiler_pic_CXX
13383 pic_mode=$pic_mode
13384
13385 # What is the maximum length of a command?
13386 max_cmd_len=$lt_cv_sys_max_cmd_len
13387
13388 # Does compiler simultaneously support -c and -o options?
13389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13390
13391 # Must we lock files when doing compilation?
13392 need_locks=$lt_need_locks
13393
13394 # Do we need the lib prefix for modules?
13395 need_lib_prefix=$need_lib_prefix
13396
13397 # Do we need a version for libraries?
13398 need_version=$need_version
13399
13400 # Whether dlopen is supported.
13401 dlopen_support=$enable_dlopen
13402
13403 # Whether dlopen of programs is supported.
13404 dlopen_self=$enable_dlopen_self
13405
13406 # Whether dlopen of statically linked programs is supported.
13407 dlopen_self_static=$enable_dlopen_self_static
13408
13409 # Compiler flag to prevent dynamic linking.
13410 link_static_flag=$lt_lt_prog_compiler_static_CXX
13411
13412 # Compiler flag to turn off builtin functions.
13413 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13414
13415 # Compiler flag to allow reflexive dlopens.
13416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13417
13418 # Compiler flag to generate shared objects directly from archives.
13419 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13420
13421 # Compiler flag to generate thread-safe objects.
13422 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13423
13424 # Library versioning type.
13425 version_type=$version_type
13426
13427 # Format of library name prefix.
13428 libname_spec=$lt_libname_spec
13429
13430 # List of archive names.  First name is the real one, the rest are links.
13431 # The last name is the one that the linker finds with -lNAME.
13432 library_names_spec=$lt_library_names_spec
13433
13434 # The coded name of the library, if different from the real name.
13435 soname_spec=$lt_soname_spec
13436
13437 # Commands used to build and install an old-style archive.
13438 RANLIB=$lt_RANLIB
13439 old_archive_cmds=$lt_old_archive_cmds_CXX
13440 old_postinstall_cmds=$lt_old_postinstall_cmds
13441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13442
13443 # Create an old-style archive from a shared archive.
13444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13445
13446 # Create a temporary old-style archive to link instead of a shared archive.
13447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13448
13449 # Commands used to build and install a shared archive.
13450 archive_cmds=$lt_archive_cmds_CXX
13451 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13452 postinstall_cmds=$lt_postinstall_cmds
13453 postuninstall_cmds=$lt_postuninstall_cmds
13454
13455 # Commands used to build a loadable module (assumed same as above if empty)
13456 module_cmds=$lt_module_cmds_CXX
13457 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13458
13459 # Commands to strip libraries.
13460 old_striplib=$lt_old_striplib
13461 striplib=$lt_striplib
13462
13463 # Dependencies to place before the objects being linked to create a
13464 # shared library.
13465 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13466
13467 # Dependencies to place after the objects being linked to create a
13468 # shared library.
13469 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13470
13471 # Dependencies to place before the objects being linked to create a
13472 # shared library.
13473 predeps=$lt_predeps_CXX
13474
13475 # Dependencies to place after the objects being linked to create a
13476 # shared library.
13477 postdeps=$lt_postdeps_CXX
13478
13479 # The library search path used internally by the compiler when linking
13480 # a shared library.
13481 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"\`
13482
13483 # Method to check whether dependent libraries are shared objects.
13484 deplibs_check_method=$lt_deplibs_check_method
13485
13486 # Command to use when deplibs_check_method == file_magic.
13487 file_magic_cmd=$lt_file_magic_cmd
13488
13489 # Flag that allows shared libraries with undefined symbols to be built.
13490 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13491
13492 # Flag that forces no undefined symbols.
13493 no_undefined_flag=$lt_no_undefined_flag_CXX
13494
13495 # Commands used to finish a libtool library installation in a directory.
13496 finish_cmds=$lt_finish_cmds
13497
13498 # Same as above, but a single script fragment to be evaled but not shown.
13499 finish_eval=$lt_finish_eval
13500
13501 # Take the output of nm and produce a listing of raw symbols and C names.
13502 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13503
13504 # Transform the output of nm in a proper C declaration
13505 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13506
13507 # Transform the output of nm in a C name address pair
13508 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13509
13510 # This is the shared library runtime path variable.
13511 runpath_var=$runpath_var
13512
13513 # This is the shared library path variable.
13514 shlibpath_var=$shlibpath_var
13515
13516 # Is shlibpath searched before the hard-coded library search path?
13517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13518
13519 # How to hardcode a shared library path into an executable.
13520 hardcode_action=$hardcode_action_CXX
13521
13522 # Whether we should hardcode library paths into libraries.
13523 hardcode_into_libs=$hardcode_into_libs
13524
13525 # Flag to hardcode \$libdir into a binary during linking.
13526 # This must work even if \$libdir does not exist.
13527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13528
13529 # If ld is used when linking, flag to hardcode \$libdir into
13530 # a binary during linking. This must work even if \$libdir does
13531 # not exist.
13532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13533
13534 # Whether we need a single -rpath flag with a separated argument.
13535 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13536
13537 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13538 # resulting binary.
13539 hardcode_direct=$hardcode_direct_CXX
13540
13541 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13542 # resulting binary.
13543 hardcode_minus_L=$hardcode_minus_L_CXX
13544
13545 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13546 # the resulting binary.
13547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13548
13549 # Set to yes if building a shared library automatically hardcodes DIR into the library
13550 # and all subsequent libraries and executables linked against it.
13551 hardcode_automatic=$hardcode_automatic_CXX
13552
13553 # Variables whose values should be saved in libtool wrapper scripts and
13554 # restored at relink time.
13555 variables_saved_for_relink="$variables_saved_for_relink"
13556
13557 # Whether libtool must link a program against all its dependency libraries.
13558 link_all_deplibs=$link_all_deplibs_CXX
13559
13560 # Compile-time system search path for libraries
13561 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"\`
13562
13563 # Run-time system search path for libraries
13564 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13565
13566 # Fix the shell variable \$srcfile for the compiler.
13567 fix_srcfile_path="$fix_srcfile_path_CXX"
13568
13569 # Set to yes if exported symbols are required.
13570 always_export_symbols=$always_export_symbols_CXX
13571
13572 # The commands to list exported symbols.
13573 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13574
13575 # The commands to extract the exported symbol list from a shared archive.
13576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13577
13578 # Symbols that should not be listed in the preloaded symbols.
13579 exclude_expsyms=$lt_exclude_expsyms_CXX
13580
13581 # Symbols that must always be exported.
13582 include_expsyms=$lt_include_expsyms_CXX
13583
13584 # ### END LIBTOOL TAG CONFIG: $tagname
13585
13586 __EOF__
13587
13588
13589 else
13590   # If there is no Makefile yet, we rely on a make rule to execute
13591   # `config.status --recheck' to rerun these tests and create the
13592   # libtool script then.
13593   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13594   if test -f "$ltmain_in"; then
13595     test -f Makefile && make "$ltmain"
13596   fi
13597 fi
13598
13599
13600 ac_ext=c
13601 ac_cpp='$CPP $CPPFLAGS'
13602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13605
13606 CC=$lt_save_CC
13607 LDCXX=$LD
13608 LD=$lt_save_LD
13609 GCC=$lt_save_GCC
13610 with_gnu_ldcxx=$with_gnu_ld
13611 with_gnu_ld=$lt_save_with_gnu_ld
13612 lt_cv_path_LDCXX=$lt_cv_path_LD
13613 lt_cv_path_LD=$lt_save_path_LD
13614 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13615 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13616
13617         else
13618           tagname=""
13619         fi
13620         ;;
13621
13622       F77)
13623         if test -n "$F77" && test "X$F77" != "Xno"; then
13624
13625 ac_ext=f
13626 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13627 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13629
13630
13631 archive_cmds_need_lc_F77=no
13632 allow_undefined_flag_F77=
13633 always_export_symbols_F77=no
13634 archive_expsym_cmds_F77=
13635 export_dynamic_flag_spec_F77=
13636 hardcode_direct_F77=no
13637 hardcode_libdir_flag_spec_F77=
13638 hardcode_libdir_flag_spec_ld_F77=
13639 hardcode_libdir_separator_F77=
13640 hardcode_minus_L_F77=no
13641 hardcode_automatic_F77=no
13642 module_cmds_F77=
13643 module_expsym_cmds_F77=
13644 link_all_deplibs_F77=unknown
13645 old_archive_cmds_F77=$old_archive_cmds
13646 no_undefined_flag_F77=
13647 whole_archive_flag_spec_F77=
13648 enable_shared_with_static_runtimes_F77=no
13649
13650 # Source file extension for f77 test sources.
13651 ac_ext=f
13652
13653 # Object file extension for compiled f77 test sources.
13654 objext=o
13655 objext_F77=$objext
13656
13657 # Code to be used in simple compile tests
13658 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13659
13660 # Code to be used in simple link tests
13661 lt_simple_link_test_code="      program t\n      end\n"
13662
13663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13664
13665 # If no C compiler was specified, use CC.
13666 LTCC=${LTCC-"$CC"}
13667
13668 # If no C compiler flags were specified, use CFLAGS.
13669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13670
13671 # Allow CC to be a program name with arguments.
13672 compiler=$CC
13673
13674
13675 # save warnings/boilerplate of simple test code
13676 ac_outfile=conftest.$ac_objext
13677 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13679 _lt_compiler_boilerplate=`cat conftest.err`
13680 $rm conftest*
13681
13682 ac_outfile=conftest.$ac_objext
13683 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13685 _lt_linker_boilerplate=`cat conftest.err`
13686 $rm conftest*
13687
13688
13689 # Allow CC to be a program name with arguments.
13690 lt_save_CC="$CC"
13691 CC=${F77-"f77"}
13692 compiler=$CC
13693 compiler_F77=$CC
13694 for cc_temp in $compiler""; do
13695   case $cc_temp in
13696     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13697     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13698     \-*) ;;
13699     *) break;;
13700   esac
13701 done
13702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13703
13704
13705 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13706 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13707 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13708 $as_echo "$can_build_shared" >&6; }
13709
13710 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13711 $as_echo_n "checking whether to build shared libraries... " >&6; }
13712 test "$can_build_shared" = "no" && enable_shared=no
13713
13714 # On AIX, shared libraries and static libraries use the same namespace, and
13715 # are all built from PIC.
13716 case $host_os in
13717 aix3*)
13718   test "$enable_shared" = yes && enable_static=no
13719   if test -n "$RANLIB"; then
13720     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13721     postinstall_cmds='$RANLIB $lib'
13722   fi
13723   ;;
13724 aix4* | aix5*)
13725   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13726     test "$enable_shared" = yes && enable_static=no
13727   fi
13728   ;;
13729 esac
13730 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13731 $as_echo "$enable_shared" >&6; }
13732
13733 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13734 $as_echo_n "checking whether to build static libraries... " >&6; }
13735 # Make sure either enable_shared or enable_static is yes.
13736 test "$enable_shared" = yes || enable_static=yes
13737 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13738 $as_echo "$enable_static" >&6; }
13739
13740 GCC_F77="$G77"
13741 LD_F77="$LD"
13742
13743 lt_prog_compiler_wl_F77=
13744 lt_prog_compiler_pic_F77=
13745 lt_prog_compiler_static_F77=
13746
13747 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13748 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13749
13750   if test "$GCC" = yes; then
13751     lt_prog_compiler_wl_F77='-Wl,'
13752     lt_prog_compiler_static_F77='-static'
13753
13754     case $host_os in
13755       aix*)
13756       # All AIX code is PIC.
13757       if test "$host_cpu" = ia64; then
13758         # AIX 5 now supports IA64 processor
13759         lt_prog_compiler_static_F77='-Bstatic'
13760       fi
13761       ;;
13762
13763     amigaos*)
13764       # FIXME: we need at least 68020 code to build shared libraries, but
13765       # adding the `-m68020' flag to GCC prevents building anything better,
13766       # like `-m68040'.
13767       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13768       ;;
13769
13770     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13771       # PIC is the default for these OSes.
13772       ;;
13773
13774     mingw* | pw32* | os2*)
13775       # This hack is so that the source file can tell whether it is being
13776       # built for inclusion in a dll (and should export symbols for example).
13777       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13778       ;;
13779
13780     darwin* | rhapsody*)
13781       # PIC is the default on this platform
13782       # Common symbols not allowed in MH_DYLIB files
13783       lt_prog_compiler_pic_F77='-fno-common'
13784       ;;
13785
13786     interix3*)
13787       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13788       # Instead, we relocate shared libraries at runtime.
13789       ;;
13790
13791     msdosdjgpp*)
13792       # Just because we use GCC doesn't mean we suddenly get shared libraries
13793       # on systems that don't support them.
13794       lt_prog_compiler_can_build_shared_F77=no
13795       enable_shared=no
13796       ;;
13797
13798     sysv4*MP*)
13799       if test -d /usr/nec; then
13800         lt_prog_compiler_pic_F77=-Kconform_pic
13801       fi
13802       ;;
13803
13804     hpux*)
13805       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13806       # not for PA HP-UX.
13807       case $host_cpu in
13808       hppa*64*|ia64*)
13809         # +Z the default
13810         ;;
13811       *)
13812         lt_prog_compiler_pic_F77='-fPIC'
13813         ;;
13814       esac
13815       ;;
13816
13817     *)
13818       lt_prog_compiler_pic_F77='-fPIC'
13819       ;;
13820     esac
13821   else
13822     # PORTME Check for flag to pass linker flags through the system compiler.
13823     case $host_os in
13824     aix*)
13825       lt_prog_compiler_wl_F77='-Wl,'
13826       if test "$host_cpu" = ia64; then
13827         # AIX 5 now supports IA64 processor
13828         lt_prog_compiler_static_F77='-Bstatic'
13829       else
13830         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13831       fi
13832       ;;
13833       darwin*)
13834         # PIC is the default on this platform
13835         # Common symbols not allowed in MH_DYLIB files
13836        case $cc_basename in
13837          xlc*)
13838          lt_prog_compiler_pic_F77='-qnocommon'
13839          lt_prog_compiler_wl_F77='-Wl,'
13840          ;;
13841        esac
13842        ;;
13843
13844     mingw* | pw32* | os2*)
13845       # This hack is so that the source file can tell whether it is being
13846       # built for inclusion in a dll (and should export symbols for example).
13847       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13848       ;;
13849
13850     hpux9* | hpux10* | hpux11*)
13851       lt_prog_compiler_wl_F77='-Wl,'
13852       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13853       # not for PA HP-UX.
13854       case $host_cpu in
13855       hppa*64*|ia64*)
13856         # +Z the default
13857         ;;
13858       *)
13859         lt_prog_compiler_pic_F77='+Z'
13860         ;;
13861       esac
13862       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13863       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13864       ;;
13865
13866     irix5* | irix6* | nonstopux*)
13867       lt_prog_compiler_wl_F77='-Wl,'
13868       # PIC (with -KPIC) is the default.
13869       lt_prog_compiler_static_F77='-non_shared'
13870       ;;
13871
13872     newsos6)
13873       lt_prog_compiler_pic_F77='-KPIC'
13874       lt_prog_compiler_static_F77='-Bstatic'
13875       ;;
13876
13877     linux*)
13878       case $cc_basename in
13879       icc* | ecc*)
13880         lt_prog_compiler_wl_F77='-Wl,'
13881         lt_prog_compiler_pic_F77='-KPIC'
13882         lt_prog_compiler_static_F77='-static'
13883         ;;
13884       pgcc* | pgf77* | pgf90* | pgf95*)
13885         # Portland Group compilers (*not* the Pentium gcc compiler,
13886         # which looks to be a dead project)
13887         lt_prog_compiler_wl_F77='-Wl,'
13888         lt_prog_compiler_pic_F77='-fpic'
13889         lt_prog_compiler_static_F77='-Bstatic'
13890         ;;
13891       ccc*)
13892         lt_prog_compiler_wl_F77='-Wl,'
13893         # All Alpha code is PIC.
13894         lt_prog_compiler_static_F77='-non_shared'
13895         ;;
13896       esac
13897       ;;
13898
13899     osf3* | osf4* | osf5*)
13900       lt_prog_compiler_wl_F77='-Wl,'
13901       # All OSF/1 code is PIC.
13902       lt_prog_compiler_static_F77='-non_shared'
13903       ;;
13904
13905     solaris*)
13906       lt_prog_compiler_pic_F77='-KPIC'
13907       lt_prog_compiler_static_F77='-Bstatic'
13908       case $cc_basename in
13909       f77* | f90* | f95*)
13910         lt_prog_compiler_wl_F77='-Qoption ld ';;
13911       *)
13912         lt_prog_compiler_wl_F77='-Wl,';;
13913       esac
13914       ;;
13915
13916     sunos4*)
13917       lt_prog_compiler_wl_F77='-Qoption ld '
13918       lt_prog_compiler_pic_F77='-PIC'
13919       lt_prog_compiler_static_F77='-Bstatic'
13920       ;;
13921
13922     sysv4 | sysv4.2uw2* | sysv4.3*)
13923       lt_prog_compiler_wl_F77='-Wl,'
13924       lt_prog_compiler_pic_F77='-KPIC'
13925       lt_prog_compiler_static_F77='-Bstatic'
13926       ;;
13927
13928     sysv4*MP*)
13929       if test -d /usr/nec ;then
13930         lt_prog_compiler_pic_F77='-Kconform_pic'
13931         lt_prog_compiler_static_F77='-Bstatic'
13932       fi
13933       ;;
13934
13935     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13936       lt_prog_compiler_wl_F77='-Wl,'
13937       lt_prog_compiler_pic_F77='-KPIC'
13938       lt_prog_compiler_static_F77='-Bstatic'
13939       ;;
13940
13941     unicos*)
13942       lt_prog_compiler_wl_F77='-Wl,'
13943       lt_prog_compiler_can_build_shared_F77=no
13944       ;;
13945
13946     uts4*)
13947       lt_prog_compiler_pic_F77='-pic'
13948       lt_prog_compiler_static_F77='-Bstatic'
13949       ;;
13950
13951     *)
13952       lt_prog_compiler_can_build_shared_F77=no
13953       ;;
13954     esac
13955   fi
13956
13957 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13958 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13959
13960 #
13961 # Check to make sure the PIC flag actually works.
13962 #
13963 if test -n "$lt_prog_compiler_pic_F77"; then
13964
13965 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13967 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13968   $as_echo_n "(cached) " >&6
13969 else
13970   lt_prog_compiler_pic_works_F77=no
13971   ac_outfile=conftest.$ac_objext
13972    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13973    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13974    # Insert the option either (1) after the last *FLAGS variable, or
13975    # (2) before a word containing "conftest.", or (3) at the end.
13976    # Note that $ac_compile itself does not contain backslashes and begins
13977    # with a dollar sign (not a hyphen), so the echo should work correctly.
13978    # The option is referenced via a variable to avoid confusing sed.
13979    lt_compile=`echo "$ac_compile" | $SED \
13980    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13982    -e 's:$: $lt_compiler_flag:'`
13983    (eval echo "\"\$as_me:13983: $lt_compile\"" >&5)
13984    (eval "$lt_compile" 2>conftest.err)
13985    ac_status=$?
13986    cat conftest.err >&5
13987    echo "$as_me:13987: \$? = $ac_status" >&5
13988    if (exit $ac_status) && test -s "$ac_outfile"; then
13989      # The compiler can only warn and ignore the option if not recognized
13990      # So say no if there are warnings other than the usual output.
13991      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13992      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13993      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13994        lt_prog_compiler_pic_works_F77=yes
13995      fi
13996    fi
13997    $rm conftest*
13998
13999 fi
14000 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14001 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14002
14003 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14004     case $lt_prog_compiler_pic_F77 in
14005      "" | " "*) ;;
14006      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14007      esac
14008 else
14009     lt_prog_compiler_pic_F77=
14010      lt_prog_compiler_can_build_shared_F77=no
14011 fi
14012
14013 fi
14014 case $host_os in
14015   # For platforms which do not support PIC, -DPIC is meaningless:
14016   *djgpp*)
14017     lt_prog_compiler_pic_F77=
14018     ;;
14019   *)
14020     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14021     ;;
14022 esac
14023
14024 #
14025 # Check to make sure the static flag actually works.
14026 #
14027 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14028 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14029 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14030 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14031   $as_echo_n "(cached) " >&6
14032 else
14033   lt_prog_compiler_static_works_F77=no
14034    save_LDFLAGS="$LDFLAGS"
14035    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14036    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14037    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14038      # The linker can only warn and ignore the option if not recognized
14039      # So say no if there are warnings
14040      if test -s conftest.err; then
14041        # Append any errors to the config.log.
14042        cat conftest.err 1>&5
14043        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14044        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14045        if diff conftest.exp conftest.er2 >/dev/null; then
14046          lt_prog_compiler_static_works_F77=yes
14047        fi
14048      else
14049        lt_prog_compiler_static_works_F77=yes
14050      fi
14051    fi
14052    $rm conftest*
14053    LDFLAGS="$save_LDFLAGS"
14054
14055 fi
14056 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14057 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14058
14059 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14060     :
14061 else
14062     lt_prog_compiler_static_F77=
14063 fi
14064
14065
14066 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14068 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14069   $as_echo_n "(cached) " >&6
14070 else
14071   lt_cv_prog_compiler_c_o_F77=no
14072    $rm -r conftest 2>/dev/null
14073    mkdir conftest
14074    cd conftest
14075    mkdir out
14076    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14077
14078    lt_compiler_flag="-o out/conftest2.$ac_objext"
14079    # Insert the option either (1) after the last *FLAGS variable, or
14080    # (2) before a word containing "conftest.", or (3) at the end.
14081    # Note that $ac_compile itself does not contain backslashes and begins
14082    # with a dollar sign (not a hyphen), so the echo should work correctly.
14083    lt_compile=`echo "$ac_compile" | $SED \
14084    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14085    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14086    -e 's:$: $lt_compiler_flag:'`
14087    (eval echo "\"\$as_me:14087: $lt_compile\"" >&5)
14088    (eval "$lt_compile" 2>out/conftest.err)
14089    ac_status=$?
14090    cat out/conftest.err >&5
14091    echo "$as_me:14091: \$? = $ac_status" >&5
14092    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14093    then
14094      # The compiler can only warn and ignore the option if not recognized
14095      # So say no if there are warnings
14096      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14097      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14098      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14099        lt_cv_prog_compiler_c_o_F77=yes
14100      fi
14101    fi
14102    chmod u+w . 2>&5
14103    $rm conftest*
14104    # SGI C++ compiler will create directory out/ii_files/ for
14105    # template instantiation
14106    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14107    $rm out/* && rmdir out
14108    cd ..
14109    rmdir conftest
14110    $rm conftest*
14111
14112 fi
14113 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14114 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14115
14116
14117 hard_links="nottested"
14118 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14119   # do not overwrite the value of need_locks provided by the user
14120   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14121 $as_echo_n "checking if we can lock with hard links... " >&6; }
14122   hard_links=yes
14123   $rm conftest*
14124   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125   touch conftest.a
14126   ln conftest.a conftest.b 2>&5 || hard_links=no
14127   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14128   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14129 $as_echo "$hard_links" >&6; }
14130   if test "$hard_links" = no; then
14131     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14132 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14133     need_locks=warn
14134   fi
14135 else
14136   need_locks=no
14137 fi
14138
14139 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14141
14142   runpath_var=
14143   allow_undefined_flag_F77=
14144   enable_shared_with_static_runtimes_F77=no
14145   archive_cmds_F77=
14146   archive_expsym_cmds_F77=
14147   old_archive_From_new_cmds_F77=
14148   old_archive_from_expsyms_cmds_F77=
14149   export_dynamic_flag_spec_F77=
14150   whole_archive_flag_spec_F77=
14151   thread_safe_flag_spec_F77=
14152   hardcode_libdir_flag_spec_F77=
14153   hardcode_libdir_flag_spec_ld_F77=
14154   hardcode_libdir_separator_F77=
14155   hardcode_direct_F77=no
14156   hardcode_minus_L_F77=no
14157   hardcode_shlibpath_var_F77=unsupported
14158   link_all_deplibs_F77=unknown
14159   hardcode_automatic_F77=no
14160   module_cmds_F77=
14161   module_expsym_cmds_F77=
14162   always_export_symbols_F77=no
14163   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14164   # include_expsyms should be a list of space-separated symbols to be *always*
14165   # included in the symbol list
14166   include_expsyms_F77=
14167   # exclude_expsyms can be an extended regexp of symbols to exclude
14168   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14169   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14170   # as well as any symbol that contains `d'.
14171   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14172   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14173   # platforms (ab)use it in PIC code, but their linkers get confused if
14174   # the symbol is explicitly referenced.  Since portable code cannot
14175   # rely on this symbol name, it's probably fine to never include it in
14176   # preloaded symbol tables.
14177   extract_expsyms_cmds=
14178   # Just being paranoid about ensuring that cc_basename is set.
14179   for cc_temp in $compiler""; do
14180   case $cc_temp in
14181     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14182     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14183     \-*) ;;
14184     *) break;;
14185   esac
14186 done
14187 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14188
14189   case $host_os in
14190   cygwin* | mingw* | pw32*)
14191     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14192     # When not using gcc, we currently assume that we are using
14193     # Microsoft Visual C++.
14194     if test "$GCC" != yes; then
14195       with_gnu_ld=no
14196     fi
14197     ;;
14198   interix*)
14199     # we just hope/assume this is gcc and not c89 (= MSVC++)
14200     with_gnu_ld=yes
14201     ;;
14202   openbsd*)
14203     with_gnu_ld=no
14204     ;;
14205   esac
14206
14207   ld_shlibs_F77=yes
14208   if test "$with_gnu_ld" = yes; then
14209     # If archive_cmds runs LD, not CC, wlarc should be empty
14210     wlarc='${wl}'
14211
14212     # Set some defaults for GNU ld with shared library support. These
14213     # are reset later if shared libraries are not supported. Putting them
14214     # here allows them to be overridden if necessary.
14215     runpath_var=LD_RUN_PATH
14216     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14217     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14218     # ancient GNU ld didn't support --whole-archive et. al.
14219     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14220         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14221       else
14222         whole_archive_flag_spec_F77=
14223     fi
14224     supports_anon_versioning=no
14225     case `$LD -v 2>/dev/null` in
14226       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14227       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14228       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14229       *\ 2.11.*) ;; # other 2.11 versions
14230       *) supports_anon_versioning=yes ;;
14231     esac
14232
14233     # See if GNU ld supports shared libraries.
14234     case $host_os in
14235     aix3* | aix4* | aix5*)
14236       # On AIX/PPC, the GNU linker is very broken
14237       if test "$host_cpu" != ia64; then
14238         ld_shlibs_F77=no
14239         cat <<EOF 1>&2
14240
14241 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14242 *** to be unable to reliably create shared libraries on AIX.
14243 *** Therefore, libtool is disabling shared libraries support.  If you
14244 *** really care for shared libraries, you may want to modify your PATH
14245 *** so that a non-GNU linker is found, and then restart.
14246
14247 EOF
14248       fi
14249       ;;
14250
14251     amigaos*)
14252       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)'
14253       hardcode_libdir_flag_spec_F77='-L$libdir'
14254       hardcode_minus_L_F77=yes
14255
14256       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14257       # that the semantics of dynamic libraries on AmigaOS, at least up
14258       # to version 4, is to share data among multiple programs linked
14259       # with the same dynamic library.  Since this doesn't match the
14260       # behavior of shared libraries on other platforms, we can't use
14261       # them.
14262       ld_shlibs_F77=no
14263       ;;
14264
14265     beos*)
14266       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14267         allow_undefined_flag_F77=unsupported
14268         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14269         # support --undefined.  This deserves some investigation.  FIXME
14270         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14271       else
14272         ld_shlibs_F77=no
14273       fi
14274       ;;
14275
14276     cygwin* | mingw* | pw32*)
14277       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14278       # as there is no search path for DLLs.
14279       hardcode_libdir_flag_spec_F77='-L$libdir'
14280       allow_undefined_flag_F77=unsupported
14281       always_export_symbols_F77=no
14282       enable_shared_with_static_runtimes_F77=yes
14283       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14284
14285       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14286         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14287         # If the export-symbols file already is a .def file (1st line
14288         # is EXPORTS), use it as is; otherwise, prepend...
14289         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14290           cp $export_symbols $output_objdir/$soname.def;
14291         else
14292           echo EXPORTS > $output_objdir/$soname.def;
14293           cat $export_symbols >> $output_objdir/$soname.def;
14294         fi~
14295         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14296       else
14297         ld_shlibs_F77=no
14298       fi
14299       ;;
14300
14301     interix3*)
14302       hardcode_direct_F77=no
14303       hardcode_shlibpath_var_F77=no
14304       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14305       export_dynamic_flag_spec_F77='${wl}-E'
14306       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14307       # Instead, shared libraries are loaded at an image base (0x10000000 by
14308       # default) and relocated if they conflict, which is a slow very memory
14309       # consuming and fragmenting process.  To avoid this, we pick a random,
14310       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14311       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14312       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'
14313       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'
14314       ;;
14315
14316     linux*)
14317       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14318         tmp_addflag=
14319         case $cc_basename,$host_cpu in
14320         pgcc*)                          # Portland Group C compiler
14321           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'
14322           tmp_addflag=' $pic_flag'
14323           ;;
14324         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14325           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'
14326           tmp_addflag=' $pic_flag -Mnomain' ;;
14327         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14328           tmp_addflag=' -i_dynamic' ;;
14329         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14330           tmp_addflag=' -i_dynamic -nofor_main' ;;
14331         ifc* | ifort*)                  # Intel Fortran compiler
14332           tmp_addflag=' -nofor_main' ;;
14333         esac
14334         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335
14336         if test $supports_anon_versioning = yes; then
14337           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14338   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14339   $echo "local: *; };" >> $output_objdir/$libname.ver~
14340           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14341         fi
14342       else
14343         ld_shlibs_F77=no
14344       fi
14345       ;;
14346
14347     netbsd*)
14348       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14349         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14350         wlarc=
14351       else
14352         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14354       fi
14355       ;;
14356
14357     solaris*)
14358       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14359         ld_shlibs_F77=no
14360         cat <<EOF 1>&2
14361
14362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14363 *** create shared libraries on Solaris systems.  Therefore, libtool
14364 *** is disabling shared libraries support.  We urge you to upgrade GNU
14365 *** binutils to release 2.9.1 or newer.  Another option is to modify
14366 *** your PATH or compiler configuration so that the native linker is
14367 *** used, and then restart.
14368
14369 EOF
14370       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14371         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14372         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14373       else
14374         ld_shlibs_F77=no
14375       fi
14376       ;;
14377
14378     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14379       case `$LD -v 2>&1` in
14380         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14381         ld_shlibs_F77=no
14382         cat <<_LT_EOF 1>&2
14383
14384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14385 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14386 *** is disabling shared libraries support.  We urge you to upgrade GNU
14387 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14388 *** your PATH or compiler configuration so that the native linker is
14389 *** used, and then restart.
14390
14391 _LT_EOF
14392         ;;
14393         *)
14394           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14395             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14396             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14397             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14398           else
14399             ld_shlibs_F77=no
14400           fi
14401         ;;
14402       esac
14403       ;;
14404
14405     sunos4*)
14406       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14407       wlarc=
14408       hardcode_direct_F77=yes
14409       hardcode_shlibpath_var_F77=no
14410       ;;
14411
14412     *)
14413       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14414         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14416       else
14417         ld_shlibs_F77=no
14418       fi
14419       ;;
14420     esac
14421
14422     if test "$ld_shlibs_F77" = no; then
14423       runpath_var=
14424       hardcode_libdir_flag_spec_F77=
14425       export_dynamic_flag_spec_F77=
14426       whole_archive_flag_spec_F77=
14427     fi
14428   else
14429     # PORTME fill in a description of your system's linker (not GNU ld)
14430     case $host_os in
14431     aix3*)
14432       allow_undefined_flag_F77=unsupported
14433       always_export_symbols_F77=yes
14434       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'
14435       # Note: this linker hardcodes the directories in LIBPATH if there
14436       # are no directories specified by -L.
14437       hardcode_minus_L_F77=yes
14438       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14439         # Neither direct hardcoding nor static linking is supported with a
14440         # broken collect2.
14441         hardcode_direct_F77=unsupported
14442       fi
14443       ;;
14444
14445     aix4* | aix5*)
14446       if test "$host_cpu" = ia64; then
14447         # On IA64, the linker does run time linking by default, so we don't
14448         # have to do anything special.
14449         aix_use_runtimelinking=no
14450         exp_sym_flag='-Bexport'
14451         no_entry_flag=""
14452       else
14453         # If we're using GNU nm, then we don't want the "-C" option.
14454         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14455         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14456           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'
14457         else
14458           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'
14459         fi
14460         aix_use_runtimelinking=no
14461
14462         # Test if we are trying to use run time linking or normal
14463         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14464         # need to do runtime linking.
14465         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14466           for ld_flag in $LDFLAGS; do
14467           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14468             aix_use_runtimelinking=yes
14469             break
14470           fi
14471           done
14472           ;;
14473         esac
14474
14475         exp_sym_flag='-bexport'
14476         no_entry_flag='-bnoentry'
14477       fi
14478
14479       # When large executables or shared objects are built, AIX ld can
14480       # have problems creating the table of contents.  If linking a library
14481       # or program results in "error TOC overflow" add -mminimal-toc to
14482       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14483       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14484
14485       archive_cmds_F77=''
14486       hardcode_direct_F77=yes
14487       hardcode_libdir_separator_F77=':'
14488       link_all_deplibs_F77=yes
14489
14490       if test "$GCC" = yes; then
14491         case $host_os in aix4.[012]|aix4.[012].*)
14492         # We only want to do this on AIX 4.2 and lower, the check
14493         # below for broken collect2 doesn't work under 4.3+
14494           collect2name=`${CC} -print-prog-name=collect2`
14495           if test -f "$collect2name" && \
14496            strings "$collect2name" | grep resolve_lib_name >/dev/null
14497           then
14498           # We have reworked collect2
14499           hardcode_direct_F77=yes
14500           else
14501           # We have old collect2
14502           hardcode_direct_F77=unsupported
14503           # It fails to find uninstalled libraries when the uninstalled
14504           # path is not listed in the libpath.  Setting hardcode_minus_L
14505           # to unsupported forces relinking
14506           hardcode_minus_L_F77=yes
14507           hardcode_libdir_flag_spec_F77='-L$libdir'
14508           hardcode_libdir_separator_F77=
14509           fi
14510           ;;
14511         esac
14512         shared_flag='-shared'
14513         if test "$aix_use_runtimelinking" = yes; then
14514           shared_flag="$shared_flag "'${wl}-G'
14515         fi
14516       else
14517         # not using gcc
14518         if test "$host_cpu" = ia64; then
14519         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14520         # chokes on -Wl,-G. The following line is correct:
14521           shared_flag='-G'
14522         else
14523           if test "$aix_use_runtimelinking" = yes; then
14524             shared_flag='${wl}-G'
14525           else
14526             shared_flag='${wl}-bM:SRE'
14527           fi
14528         fi
14529       fi
14530
14531       # It seems that -bexpall does not export symbols beginning with
14532       # underscore (_), so it is better to generate a list of symbols to export.
14533       always_export_symbols_F77=yes
14534       if test "$aix_use_runtimelinking" = yes; then
14535         # Warning - without using the other runtime loading flags (-brtl),
14536         # -berok will link without error, but may produce a broken library.
14537         allow_undefined_flag_F77='-berok'
14538        # Determine the default libpath from the value encoded in an empty executable.
14539        cat >conftest.$ac_ext <<_ACEOF
14540       program main
14541
14542       end
14543 _ACEOF
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548   *) ac_try_echo=$ac_try;;
14549 esac
14550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14551 $as_echo "$ac_try_echo") >&5
14552   (eval "$ac_link") 2>conftest.er1
14553   ac_status=$?
14554   grep -v '^ *+' conftest.er1 >conftest.err
14555   rm -f conftest.er1
14556   cat conftest.err >&5
14557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); } && {
14559          test -z "$ac_f77_werror_flag" ||
14560          test ! -s conftest.err
14561        } && test -s conftest$ac_exeext && {
14562          test "$cross_compiling" = yes ||
14563          $as_test_x conftest$ac_exeext
14564        }; then
14565
14566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14567 }'`
14568 # Check for a 64-bit object if we didn't find anything.
14569 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; }
14570 }'`; fi
14571 else
14572   $as_echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575
14576 fi
14577
14578 rm -rf conftest.dSYM
14579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14580       conftest$ac_exeext conftest.$ac_ext
14581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14582
14583        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14584         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"
14585        else
14586         if test "$host_cpu" = ia64; then
14587           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14588           allow_undefined_flag_F77="-z nodefs"
14589           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"
14590         else
14591          # Determine the default libpath from the value encoded in an empty executable.
14592          cat >conftest.$ac_ext <<_ACEOF
14593       program main
14594
14595       end
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601   *) ac_try_echo=$ac_try;;
14602 esac
14603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14604 $as_echo "$ac_try_echo") >&5
14605   (eval "$ac_link") 2>conftest.er1
14606   ac_status=$?
14607   grep -v '^ *+' conftest.er1 >conftest.err
14608   rm -f conftest.er1
14609   cat conftest.err >&5
14610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } && {
14612          test -z "$ac_f77_werror_flag" ||
14613          test ! -s conftest.err
14614        } && test -s conftest$ac_exeext && {
14615          test "$cross_compiling" = yes ||
14616          $as_test_x conftest$ac_exeext
14617        }; then
14618
14619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14620 }'`
14621 # Check for a 64-bit object if we didn't find anything.
14622 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; }
14623 }'`; fi
14624 else
14625   $as_echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628
14629 fi
14630
14631 rm -rf conftest.dSYM
14632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14633       conftest$ac_exeext conftest.$ac_ext
14634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14635
14636          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14637           # Warning - without using the other run time loading flags,
14638           # -berok will link without error, but may produce a broken library.
14639           no_undefined_flag_F77=' ${wl}-bernotok'
14640           allow_undefined_flag_F77=' ${wl}-berok'
14641           # Exported symbols can be pulled into shared objects from archives
14642           whole_archive_flag_spec_F77='$convenience'
14643           archive_cmds_need_lc_F77=yes
14644           # This is similar to how AIX traditionally builds its shared libraries.
14645           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'
14646         fi
14647       fi
14648       ;;
14649
14650     amigaos*)
14651       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)'
14652       hardcode_libdir_flag_spec_F77='-L$libdir'
14653       hardcode_minus_L_F77=yes
14654       # see comment about different semantics on the GNU ld section
14655       ld_shlibs_F77=no
14656       ;;
14657
14658     bsdi[45]*)
14659       export_dynamic_flag_spec_F77=-rdynamic
14660       ;;
14661
14662     cygwin* | mingw* | pw32*)
14663       # When not using gcc, we currently assume that we are using
14664       # Microsoft Visual C++.
14665       # hardcode_libdir_flag_spec is actually meaningless, as there is
14666       # no search path for DLLs.
14667       hardcode_libdir_flag_spec_F77=' '
14668       allow_undefined_flag_F77=unsupported
14669       # Tell ltmain to make .lib files, not .a files.
14670       libext=lib
14671       # Tell ltmain to make .dll files, not .so files.
14672       shrext_cmds=".dll"
14673       # FIXME: Setting linknames here is a bad hack.
14674       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14675       # The linker will automatically build a .lib file if we build a DLL.
14676       old_archive_From_new_cmds_F77='true'
14677       # FIXME: Should let the user specify the lib program.
14678       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14679       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14680       enable_shared_with_static_runtimes_F77=yes
14681       ;;
14682
14683     darwin* | rhapsody*)
14684       case $host_os in
14685         rhapsody* | darwin1.[012])
14686          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14687          ;;
14688        *) # Darwin 1.3 on
14689          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14690            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14691          else
14692            case ${MACOSX_DEPLOYMENT_TARGET} in
14693              10.[012])
14694                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14695                ;;
14696              10.*)
14697                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14698                ;;
14699            esac
14700          fi
14701          ;;
14702       esac
14703       archive_cmds_need_lc_F77=no
14704       hardcode_direct_F77=no
14705       hardcode_automatic_F77=yes
14706       hardcode_shlibpath_var_F77=unsupported
14707       whole_archive_flag_spec_F77=''
14708       link_all_deplibs_F77=yes
14709     if test "$GCC" = yes ; then
14710         output_verbose_link_cmd='echo'
14711         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14712       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14713       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14714       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}'
14715       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}'
14716     else
14717       case $cc_basename in
14718         xlc*)
14719          output_verbose_link_cmd='echo'
14720          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14721          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14722           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14723          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}'
14724           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}'
14725           ;;
14726        *)
14727          ld_shlibs_F77=no
14728           ;;
14729       esac
14730     fi
14731       ;;
14732
14733     dgux*)
14734       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735       hardcode_libdir_flag_spec_F77='-L$libdir'
14736       hardcode_shlibpath_var_F77=no
14737       ;;
14738
14739     freebsd1*)
14740       ld_shlibs_F77=no
14741       ;;
14742
14743     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14744     # support.  Future versions do this automatically, but an explicit c++rt0.o
14745     # does not break anything, and helps significantly (at the cost of a little
14746     # extra space).
14747     freebsd2.2*)
14748       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14749       hardcode_libdir_flag_spec_F77='-R$libdir'
14750       hardcode_direct_F77=yes
14751       hardcode_shlibpath_var_F77=no
14752       ;;
14753
14754     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14755     freebsd2*)
14756       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14757       hardcode_direct_F77=yes
14758       hardcode_minus_L_F77=yes
14759       hardcode_shlibpath_var_F77=no
14760       ;;
14761
14762     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14763     freebsd* | kfreebsd*-gnu | dragonfly*)
14764       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14765       hardcode_libdir_flag_spec_F77='-R$libdir'
14766       hardcode_direct_F77=yes
14767       hardcode_shlibpath_var_F77=no
14768       ;;
14769
14770     hpux9*)
14771       if test "$GCC" = yes; then
14772         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'
14773       else
14774         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'
14775       fi
14776       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14777       hardcode_libdir_separator_F77=:
14778       hardcode_direct_F77=yes
14779
14780       # hardcode_minus_L: Not really in the search PATH,
14781       # but as the default location of the library.
14782       hardcode_minus_L_F77=yes
14783       export_dynamic_flag_spec_F77='${wl}-E'
14784       ;;
14785
14786     hpux10*)
14787       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14788         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14789       else
14790         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14791       fi
14792       if test "$with_gnu_ld" = no; then
14793         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14794         hardcode_libdir_separator_F77=:
14795
14796         hardcode_direct_F77=yes
14797         export_dynamic_flag_spec_F77='${wl}-E'
14798
14799         # hardcode_minus_L: Not really in the search PATH,
14800         # but as the default location of the library.
14801         hardcode_minus_L_F77=yes
14802       fi
14803       ;;
14804
14805     hpux11*)
14806       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14807         case $host_cpu in
14808         hppa*64*)
14809           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14810           ;;
14811         ia64*)
14812           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14813           ;;
14814         *)
14815           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14816           ;;
14817         esac
14818       else
14819         case $host_cpu in
14820         hppa*64*)
14821           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14822           ;;
14823         ia64*)
14824           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14825           ;;
14826         *)
14827           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14828           ;;
14829         esac
14830       fi
14831       if test "$with_gnu_ld" = no; then
14832         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14833         hardcode_libdir_separator_F77=:
14834
14835         case $host_cpu in
14836         hppa*64*|ia64*)
14837           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14838           hardcode_direct_F77=no
14839           hardcode_shlibpath_var_F77=no
14840           ;;
14841         *)
14842           hardcode_direct_F77=yes
14843           export_dynamic_flag_spec_F77='${wl}-E'
14844
14845           # hardcode_minus_L: Not really in the search PATH,
14846           # but as the default location of the library.
14847           hardcode_minus_L_F77=yes
14848           ;;
14849         esac
14850       fi
14851       ;;
14852
14853     irix5* | irix6* | nonstopux*)
14854       if test "$GCC" = yes; then
14855         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'
14856       else
14857         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'
14858         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14859       fi
14860       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14861       hardcode_libdir_separator_F77=:
14862       link_all_deplibs_F77=yes
14863       ;;
14864
14865     netbsd*)
14866       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14867         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14868       else
14869         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14870       fi
14871       hardcode_libdir_flag_spec_F77='-R$libdir'
14872       hardcode_direct_F77=yes
14873       hardcode_shlibpath_var_F77=no
14874       ;;
14875
14876     newsos6)
14877       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14878       hardcode_direct_F77=yes
14879       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14880       hardcode_libdir_separator_F77=:
14881       hardcode_shlibpath_var_F77=no
14882       ;;
14883
14884     openbsd*)
14885       hardcode_direct_F77=yes
14886       hardcode_shlibpath_var_F77=no
14887       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14888         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14889         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14890         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14891         export_dynamic_flag_spec_F77='${wl}-E'
14892       else
14893        case $host_os in
14894          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14895            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14896            hardcode_libdir_flag_spec_F77='-R$libdir'
14897            ;;
14898          *)
14899            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14900            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14901            ;;
14902        esac
14903       fi
14904       ;;
14905
14906     os2*)
14907       hardcode_libdir_flag_spec_F77='-L$libdir'
14908       hardcode_minus_L_F77=yes
14909       allow_undefined_flag_F77=unsupported
14910       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'
14911       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14912       ;;
14913
14914     osf3*)
14915       if test "$GCC" = yes; then
14916         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14917         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'
14918       else
14919         allow_undefined_flag_F77=' -expect_unresolved \*'
14920         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'
14921       fi
14922       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14923       hardcode_libdir_separator_F77=:
14924       ;;
14925
14926     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14927       if test "$GCC" = yes; then
14928         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14929         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'
14930         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14931       else
14932         allow_undefined_flag_F77=' -expect_unresolved \*'
14933         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'
14934         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~
14935         $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'
14936
14937         # Both c and cxx compiler support -rpath directly
14938         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14939       fi
14940       hardcode_libdir_separator_F77=:
14941       ;;
14942
14943     solaris*)
14944       no_undefined_flag_F77=' -z text'
14945       if test "$GCC" = yes; then
14946         wlarc='${wl}'
14947         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14949           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14950       else
14951         wlarc=''
14952         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14953         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14954         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14955       fi
14956       hardcode_libdir_flag_spec_F77='-R$libdir'
14957       hardcode_shlibpath_var_F77=no
14958       case $host_os in
14959       solaris2.[0-5] | solaris2.[0-5].*) ;;
14960       *)
14961         # The compiler driver will combine linker options so we
14962         # cannot just pass the convience library names through
14963         # without $wl, iff we do not link with $LD.
14964         # Luckily, gcc supports the same syntax we need for Sun Studio.
14965         # Supported since Solaris 2.6 (maybe 2.5.1?)
14966         case $wlarc in
14967         '')
14968           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14969         *)
14970           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' ;;
14971         esac ;;
14972       esac
14973       link_all_deplibs_F77=yes
14974       ;;
14975
14976     sunos4*)
14977       if test "x$host_vendor" = xsequent; then
14978         # Use $CC to link under sequent, because it throws in some extra .o
14979         # files that make .init and .fini sections work.
14980         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14981       else
14982         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14983       fi
14984       hardcode_libdir_flag_spec_F77='-L$libdir'
14985       hardcode_direct_F77=yes
14986       hardcode_minus_L_F77=yes
14987       hardcode_shlibpath_var_F77=no
14988       ;;
14989
14990     sysv4)
14991       case $host_vendor in
14992         sni)
14993           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14994           hardcode_direct_F77=yes # is this really true???
14995         ;;
14996         siemens)
14997           ## LD is ld it makes a PLAMLIB
14998           ## CC just makes a GrossModule.
14999           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15000           reload_cmds_F77='$CC -r -o $output$reload_objs'
15001           hardcode_direct_F77=no
15002         ;;
15003         motorola)
15004           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15006         ;;
15007       esac
15008       runpath_var='LD_RUN_PATH'
15009       hardcode_shlibpath_var_F77=no
15010       ;;
15011
15012     sysv4.3*)
15013       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014       hardcode_shlibpath_var_F77=no
15015       export_dynamic_flag_spec_F77='-Bexport'
15016       ;;
15017
15018     sysv4*MP*)
15019       if test -d /usr/nec; then
15020         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15021         hardcode_shlibpath_var_F77=no
15022         runpath_var=LD_RUN_PATH
15023         hardcode_runpath_var=yes
15024         ld_shlibs_F77=yes
15025       fi
15026       ;;
15027
15028     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15029       no_undefined_flag_F77='${wl}-z,text'
15030       archive_cmds_need_lc_F77=no
15031       hardcode_shlibpath_var_F77=no
15032       runpath_var='LD_RUN_PATH'
15033
15034       if test "$GCC" = yes; then
15035         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15037       else
15038         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15039         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15040       fi
15041       ;;
15042
15043     sysv5* | sco3.2v5* | sco5v6*)
15044       # Note: We can NOT use -z defs as we might desire, because we do not
15045       # link with -lc, and that would cause any symbols used from libc to
15046       # always be unresolved, which means just about no library would
15047       # ever link correctly.  If we're not using GNU ld we use -z text
15048       # though, which does catch some bad symbols but isn't as heavy-handed
15049       # as -z defs.
15050       no_undefined_flag_F77='${wl}-z,text'
15051       allow_undefined_flag_F77='${wl}-z,nodefs'
15052       archive_cmds_need_lc_F77=no
15053       hardcode_shlibpath_var_F77=no
15054       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15055       hardcode_libdir_separator_F77=':'
15056       link_all_deplibs_F77=yes
15057       export_dynamic_flag_spec_F77='${wl}-Bexport'
15058       runpath_var='LD_RUN_PATH'
15059
15060       if test "$GCC" = yes; then
15061         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15063       else
15064         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15065         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15066       fi
15067       ;;
15068
15069     uts4*)
15070       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15071       hardcode_libdir_flag_spec_F77='-L$libdir'
15072       hardcode_shlibpath_var_F77=no
15073       ;;
15074
15075     *)
15076       ld_shlibs_F77=no
15077       ;;
15078     esac
15079   fi
15080
15081 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15082 $as_echo "$ld_shlibs_F77" >&6; }
15083 test "$ld_shlibs_F77" = no && can_build_shared=no
15084
15085 #
15086 # Do we need to explicitly link libc?
15087 #
15088 case "x$archive_cmds_need_lc_F77" in
15089 x|xyes)
15090   # Assume -lc should be added
15091   archive_cmds_need_lc_F77=yes
15092
15093   if test "$enable_shared" = yes && test "$GCC" = yes; then
15094     case $archive_cmds_F77 in
15095     *'~'*)
15096       # FIXME: we may have to deal with multi-command sequences.
15097       ;;
15098     '$CC '*)
15099       # Test whether the compiler implicitly links with -lc since on some
15100       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15101       # to ld, don't add -lc before -lgcc.
15102       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15104       $rm conftest*
15105       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15106
15107       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108   (eval $ac_compile) 2>&5
15109   ac_status=$?
15110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } 2>conftest.err; then
15112         soname=conftest
15113         lib=conftest
15114         libobjs=conftest.$ac_objext
15115         deplibs=
15116         wl=$lt_prog_compiler_wl_F77
15117         pic_flag=$lt_prog_compiler_pic_F77
15118         compiler_flags=-v
15119         linker_flags=-v
15120         verstring=
15121         output_objdir=.
15122         libname=conftest
15123         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15124         allow_undefined_flag_F77=
15125         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15126   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15127   ac_status=$?
15128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); }
15130         then
15131           archive_cmds_need_lc_F77=no
15132         else
15133           archive_cmds_need_lc_F77=yes
15134         fi
15135         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15136       else
15137         cat conftest.err 1>&5
15138       fi
15139       $rm conftest*
15140       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15141 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15142       ;;
15143     esac
15144   fi
15145   ;;
15146 esac
15147
15148 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15150 library_names_spec=
15151 libname_spec='lib$name'
15152 soname_spec=
15153 shrext_cmds=".so"
15154 postinstall_cmds=
15155 postuninstall_cmds=
15156 finish_cmds=
15157 finish_eval=
15158 shlibpath_var=
15159 shlibpath_overrides_runpath=unknown
15160 version_type=none
15161 dynamic_linker="$host_os ld.so"
15162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15163 if test "$GCC" = yes; then
15164   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15165   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15166     # if the path contains ";" then we assume it to be the separator
15167     # otherwise default to the standard path separator (i.e. ":") - it is
15168     # assumed that no part of a normal pathname contains ";" but that should
15169     # okay in the real world where ";" in dirpaths is itself problematic.
15170     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15171   else
15172     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15173   fi
15174 else
15175   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15176 fi
15177 need_lib_prefix=unknown
15178 hardcode_into_libs=no
15179
15180 # when you set need_version to no, make sure it does not cause -set_version
15181 # flags to be left without arguments
15182 need_version=unknown
15183
15184 case $host_os in
15185 aix3*)
15186   version_type=linux
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15188   shlibpath_var=LIBPATH
15189
15190   # AIX 3 has no versioning support, so we append a major version to the name.
15191   soname_spec='${libname}${release}${shared_ext}$major'
15192   ;;
15193
15194 aix4* | aix5*)
15195   version_type=linux
15196   need_lib_prefix=no
15197   need_version=no
15198   hardcode_into_libs=yes
15199   if test "$host_cpu" = ia64; then
15200     # AIX 5 supports IA64
15201     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15202     shlibpath_var=LD_LIBRARY_PATH
15203   else
15204     # With GCC up to 2.95.x, collect2 would create an import file
15205     # for dependence libraries.  The import file would start with
15206     # the line `#! .'.  This would cause the generated library to
15207     # depend on `.', always an invalid library.  This was fixed in
15208     # development snapshots of GCC prior to 3.0.
15209     case $host_os in
15210       aix4 | aix4.[01] | aix4.[01].*)
15211       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15212            echo ' yes '
15213            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15214         :
15215       else
15216         can_build_shared=no
15217       fi
15218       ;;
15219     esac
15220     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15221     # soname into executable. Probably we can add versioning support to
15222     # collect2, so additional links can be useful in future.
15223     if test "$aix_use_runtimelinking" = yes; then
15224       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15225       # instead of lib<name>.a to let people know that these are not
15226       # typical AIX shared libraries.
15227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228     else
15229       # We preserve .a as extension for shared libraries through AIX4.2
15230       # and later when we are not doing run time linking.
15231       library_names_spec='${libname}${release}.a $libname.a'
15232       soname_spec='${libname}${release}${shared_ext}$major'
15233     fi
15234     shlibpath_var=LIBPATH
15235   fi
15236   ;;
15237
15238 amigaos*)
15239   library_names_spec='$libname.ixlibrary $libname.a'
15240   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15241   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'
15242   ;;
15243
15244 beos*)
15245   library_names_spec='${libname}${shared_ext}'
15246   dynamic_linker="$host_os ld.so"
15247   shlibpath_var=LIBRARY_PATH
15248   ;;
15249
15250 bsdi[45]*)
15251   version_type=linux
15252   need_version=no
15253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254   soname_spec='${libname}${release}${shared_ext}$major'
15255   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15256   shlibpath_var=LD_LIBRARY_PATH
15257   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15258   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15259   # the default ld.so.conf also contains /usr/contrib/lib and
15260   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15261   # libtool to hard-code these into programs
15262   ;;
15263
15264 cygwin* | mingw* | pw32*)
15265   version_type=windows
15266   shrext_cmds=".dll"
15267   need_version=no
15268   need_lib_prefix=no
15269
15270   case $GCC,$host_os in
15271   yes,cygwin* | yes,mingw* | yes,pw32*)
15272     library_names_spec='$libname.dll.a'
15273     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15274     postinstall_cmds='base_file=`basename \${file}`~
15275       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15276       dldir=$destdir/`dirname \$dlpath`~
15277       test -d \$dldir || mkdir -p \$dldir~
15278       $install_prog $dir/$dlname \$dldir/$dlname~
15279       chmod a+x \$dldir/$dlname'
15280     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15281       dlpath=$dir/\$dldll~
15282        $rm \$dlpath'
15283     shlibpath_overrides_runpath=yes
15284
15285     case $host_os in
15286     cygwin*)
15287       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15288       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15289       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15290       ;;
15291     mingw*)
15292       # MinGW DLLs use traditional 'lib' prefix
15293       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15294       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15295       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15296         # It is most probably a Windows format PATH printed by
15297         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15298         # path with ; separators, and with drive letters. We can handle the
15299         # drive letters (cygwin fileutils understands them), so leave them,
15300         # especially as we might pass files found there to a mingw objdump,
15301         # which wouldn't understand a cygwinified path. Ahh.
15302         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303       else
15304         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15305       fi
15306       ;;
15307     pw32*)
15308       # pw32 DLLs use 'pw' prefix rather than 'lib'
15309       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310       ;;
15311     esac
15312     ;;
15313
15314   *)
15315     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15316     ;;
15317   esac
15318   dynamic_linker='Win32 ld.exe'
15319   # FIXME: first we should search . and the directory the executable is in
15320   shlibpath_var=PATH
15321   ;;
15322
15323 darwin* | rhapsody*)
15324   dynamic_linker="$host_os dyld"
15325   version_type=darwin
15326   need_lib_prefix=no
15327   need_version=no
15328   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15329   soname_spec='${libname}${release}${major}$shared_ext'
15330   shlibpath_overrides_runpath=yes
15331   shlibpath_var=DYLD_LIBRARY_PATH
15332   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15333   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15334   if test "$GCC" = yes; then
15335     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"`
15336   else
15337     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15338   fi
15339   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15340   ;;
15341
15342 dgux*)
15343   version_type=linux
15344   need_lib_prefix=no
15345   need_version=no
15346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15347   soname_spec='${libname}${release}${shared_ext}$major'
15348   shlibpath_var=LD_LIBRARY_PATH
15349   ;;
15350
15351 freebsd1*)
15352   dynamic_linker=no
15353   ;;
15354
15355 kfreebsd*-gnu)
15356   version_type=linux
15357   need_lib_prefix=no
15358   need_version=no
15359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360   soname_spec='${libname}${release}${shared_ext}$major'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   shlibpath_overrides_runpath=no
15363   hardcode_into_libs=yes
15364   dynamic_linker='GNU ld.so'
15365   ;;
15366
15367 freebsd* | dragonfly*)
15368   # DragonFly does not have aout.  When/if they implement a new
15369   # versioning mechanism, adjust this.
15370   if test -x /usr/bin/objformat; then
15371     objformat=`/usr/bin/objformat`
15372   else
15373     case $host_os in
15374     freebsd[123]*) objformat=aout ;;
15375     *) objformat=elf ;;
15376     esac
15377   fi
15378   version_type=freebsd-$objformat
15379   case $version_type in
15380     freebsd-elf*)
15381       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15382       need_version=no
15383       need_lib_prefix=no
15384       ;;
15385     freebsd-*)
15386       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15387       need_version=yes
15388       ;;
15389   esac
15390   shlibpath_var=LD_LIBRARY_PATH
15391   case $host_os in
15392   freebsd2*)
15393     shlibpath_overrides_runpath=yes
15394     ;;
15395   freebsd3.[01]* | freebsdelf3.[01]*)
15396     shlibpath_overrides_runpath=yes
15397     hardcode_into_libs=yes
15398     ;;
15399   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15400   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15401     shlibpath_overrides_runpath=no
15402     hardcode_into_libs=yes
15403     ;;
15404   freebsd*) # from 4.6 on
15405     shlibpath_overrides_runpath=yes
15406     hardcode_into_libs=yes
15407     ;;
15408   esac
15409   ;;
15410
15411 gnu*)
15412   version_type=linux
15413   need_lib_prefix=no
15414   need_version=no
15415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416   soname_spec='${libname}${release}${shared_ext}$major'
15417   shlibpath_var=LD_LIBRARY_PATH
15418   hardcode_into_libs=yes
15419   ;;
15420
15421 hpux9* | hpux10* | hpux11*)
15422   # Give a soname corresponding to the major version so that dld.sl refuses to
15423   # link against other versions.
15424   version_type=sunos
15425   need_lib_prefix=no
15426   need_version=no
15427   case $host_cpu in
15428   ia64*)
15429     shrext_cmds='.so'
15430     hardcode_into_libs=yes
15431     dynamic_linker="$host_os dld.so"
15432     shlibpath_var=LD_LIBRARY_PATH
15433     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435     soname_spec='${libname}${release}${shared_ext}$major'
15436     if test "X$HPUX_IA64_MODE" = X32; then
15437       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15438     else
15439       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440     fi
15441     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15442     ;;
15443    hppa*64*)
15444      shrext_cmds='.sl'
15445      hardcode_into_libs=yes
15446      dynamic_linker="$host_os dld.sl"
15447      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15448      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15449      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450      soname_spec='${libname}${release}${shared_ext}$major'
15451      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453      ;;
15454    *)
15455     shrext_cmds='.sl'
15456     dynamic_linker="$host_os dld.sl"
15457     shlibpath_var=SHLIB_PATH
15458     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
15462   esac
15463   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464   postinstall_cmds='chmod 555 $lib'
15465   ;;
15466
15467 interix3*)
15468   version_type=linux
15469   need_lib_prefix=no
15470   need_version=no
15471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472   soname_spec='${libname}${release}${shared_ext}$major'
15473   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15474   shlibpath_var=LD_LIBRARY_PATH
15475   shlibpath_overrides_runpath=no
15476   hardcode_into_libs=yes
15477   ;;
15478
15479 irix5* | irix6* | nonstopux*)
15480   case $host_os in
15481     nonstopux*) version_type=nonstopux ;;
15482     *)
15483         if test "$lt_cv_prog_gnu_ld" = yes; then
15484                 version_type=linux
15485         else
15486                 version_type=irix
15487         fi ;;
15488   esac
15489   need_lib_prefix=no
15490   need_version=no
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15493   case $host_os in
15494   irix5* | nonstopux*)
15495     libsuff= shlibsuff=
15496     ;;
15497   *)
15498     case $LD in # libtool.m4 will add one of these switches to LD
15499     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15500       libsuff= shlibsuff= libmagic=32-bit;;
15501     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15502       libsuff=32 shlibsuff=N32 libmagic=N32;;
15503     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15504       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15505     *) libsuff= shlibsuff= libmagic=never-match;;
15506     esac
15507     ;;
15508   esac
15509   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15510   shlibpath_overrides_runpath=no
15511   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15513   hardcode_into_libs=yes
15514   ;;
15515
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux*oldld* | linux*aout* | linux*coff*)
15518   dynamic_linker=no
15519   ;;
15520
15521 # This must be Linux ELF.
15522 linux*)
15523   version_type=linux
15524   need_lib_prefix=no
15525   need_version=no
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527   soname_spec='${libname}${release}${shared_ext}$major'
15528   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529   shlibpath_var=LD_LIBRARY_PATH
15530   shlibpath_overrides_runpath=no
15531   # This implies no fast_install, which is unacceptable.
15532   # Some rework will be needed to allow for fast_install
15533   # before this can be enabled.
15534   hardcode_into_libs=yes
15535
15536   # find out which ABI we are using
15537   libsuff=
15538   case "$host_cpu" in
15539   x86_64*|s390x*|powerpc64*)
15540     echo '#line 15540 "configure"' > conftest.$ac_ext
15541     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542   (eval $ac_compile) 2>&5
15543   ac_status=$?
15544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); }; then
15546       case `/usr/bin/file conftest.$ac_objext` in
15547       *64-bit*)
15548         libsuff=64
15549         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15550         ;;
15551       esac
15552     fi
15553     rm -rf conftest*
15554     ;;
15555   esac
15556
15557   # Append ld.so.conf contents to the search path
15558   if test -f /etc/ld.so.conf; then
15559     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15560     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15561   fi
15562
15563   # We used to test for /lib/ld.so.1 and disable shared libraries on
15564   # powerpc, because MkLinux only supported shared libraries with the
15565   # GNU dynamic linker.  Since this was broken with cross compilers,
15566   # most powerpc-linux boxes support dynamic linking these days and
15567   # people can always --disable-shared, the test was removed, and we
15568   # assume the GNU/Linux dynamic linker is in use.
15569   dynamic_linker='GNU/Linux ld.so'
15570   ;;
15571
15572 knetbsd*-gnu)
15573   version_type=linux
15574   need_lib_prefix=no
15575   need_version=no
15576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15577   soname_spec='${libname}${release}${shared_ext}$major'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   shlibpath_overrides_runpath=no
15580   hardcode_into_libs=yes
15581   dynamic_linker='GNU ld.so'
15582   ;;
15583
15584 netbsd*)
15585   version_type=sunos
15586   need_lib_prefix=no
15587   need_version=no
15588   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15590     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15591     dynamic_linker='NetBSD (a.out) ld.so'
15592   else
15593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15594     soname_spec='${libname}${release}${shared_ext}$major'
15595     dynamic_linker='NetBSD ld.elf_so'
15596   fi
15597   shlibpath_var=LD_LIBRARY_PATH
15598   shlibpath_overrides_runpath=yes
15599   hardcode_into_libs=yes
15600   ;;
15601
15602 newsos6)
15603   version_type=linux
15604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   shlibpath_overrides_runpath=yes
15607   ;;
15608
15609 nto-qnx*)
15610   version_type=linux
15611   need_lib_prefix=no
15612   need_version=no
15613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614   soname_spec='${libname}${release}${shared_ext}$major'
15615   shlibpath_var=LD_LIBRARY_PATH
15616   shlibpath_overrides_runpath=yes
15617   ;;
15618
15619 openbsd*)
15620   version_type=sunos
15621   sys_lib_dlsearch_path_spec="/usr/lib"
15622   need_lib_prefix=no
15623   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15624   case $host_os in
15625     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15626     *)                         need_version=no  ;;
15627   esac
15628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15629   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15632     case $host_os in
15633       openbsd2.[89] | openbsd2.[89].*)
15634         shlibpath_overrides_runpath=no
15635         ;;
15636       *)
15637         shlibpath_overrides_runpath=yes
15638         ;;
15639       esac
15640   else
15641     shlibpath_overrides_runpath=yes
15642   fi
15643   ;;
15644
15645 os2*)
15646   libname_spec='$name'
15647   shrext_cmds=".dll"
15648   need_lib_prefix=no
15649   library_names_spec='$libname${shared_ext} $libname.a'
15650   dynamic_linker='OS/2 ld.exe'
15651   shlibpath_var=LIBPATH
15652   ;;
15653
15654 osf3* | osf4* | osf5*)
15655   version_type=osf
15656   need_lib_prefix=no
15657   need_version=no
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660   shlibpath_var=LD_LIBRARY_PATH
15661   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15662   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15663   ;;
15664
15665 solaris*)
15666   version_type=linux
15667   need_lib_prefix=no
15668   need_version=no
15669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670   soname_spec='${libname}${release}${shared_ext}$major'
15671   shlibpath_var=LD_LIBRARY_PATH
15672   shlibpath_overrides_runpath=yes
15673   hardcode_into_libs=yes
15674   # ldd complains unless libraries are executable
15675   postinstall_cmds='chmod +x $lib'
15676   ;;
15677
15678 sunos4*)
15679   version_type=sunos
15680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15681   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15682   shlibpath_var=LD_LIBRARY_PATH
15683   shlibpath_overrides_runpath=yes
15684   if test "$with_gnu_ld" = yes; then
15685     need_lib_prefix=no
15686   fi
15687   need_version=yes
15688   ;;
15689
15690 sysv4 | sysv4.3*)
15691   version_type=linux
15692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693   soname_spec='${libname}${release}${shared_ext}$major'
15694   shlibpath_var=LD_LIBRARY_PATH
15695   case $host_vendor in
15696     sni)
15697       shlibpath_overrides_runpath=no
15698       need_lib_prefix=no
15699       export_dynamic_flag_spec='${wl}-Blargedynsym'
15700       runpath_var=LD_RUN_PATH
15701       ;;
15702     siemens)
15703       need_lib_prefix=no
15704       ;;
15705     motorola)
15706       need_lib_prefix=no
15707       need_version=no
15708       shlibpath_overrides_runpath=no
15709       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15710       ;;
15711   esac
15712   ;;
15713
15714 sysv4*MP*)
15715   if test -d /usr/nec ;then
15716     version_type=linux
15717     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15718     soname_spec='$libname${shared_ext}.$major'
15719     shlibpath_var=LD_LIBRARY_PATH
15720   fi
15721   ;;
15722
15723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15724   version_type=freebsd-elf
15725   need_lib_prefix=no
15726   need_version=no
15727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15728   soname_spec='${libname}${release}${shared_ext}$major'
15729   shlibpath_var=LD_LIBRARY_PATH
15730   hardcode_into_libs=yes
15731   if test "$with_gnu_ld" = yes; then
15732     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15733     shlibpath_overrides_runpath=no
15734   else
15735     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15736     shlibpath_overrides_runpath=yes
15737     case $host_os in
15738       sco3.2v5*)
15739         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15740         ;;
15741     esac
15742   fi
15743   sys_lib_dlsearch_path_spec='/usr/lib'
15744   ;;
15745
15746 uts4*)
15747   version_type=linux
15748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749   soname_spec='${libname}${release}${shared_ext}$major'
15750   shlibpath_var=LD_LIBRARY_PATH
15751   ;;
15752
15753 *)
15754   dynamic_linker=no
15755   ;;
15756 esac
15757 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15758 $as_echo "$dynamic_linker" >&6; }
15759 test "$dynamic_linker" = no && can_build_shared=no
15760
15761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15762 if test "$GCC" = yes; then
15763   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15764 fi
15765
15766 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15767 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15768 hardcode_action_F77=
15769 if test -n "$hardcode_libdir_flag_spec_F77" || \
15770    test -n "$runpath_var_F77" || \
15771    test "X$hardcode_automatic_F77" = "Xyes" ; then
15772
15773   # We can hardcode non-existant directories.
15774   if test "$hardcode_direct_F77" != no &&
15775      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15776      # have to relink, otherwise we might link with an installed library
15777      # when we should be linking with a yet-to-be-installed one
15778      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15779      test "$hardcode_minus_L_F77" != no; then
15780     # Linking always hardcodes the temporary library directory.
15781     hardcode_action_F77=relink
15782   else
15783     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15784     hardcode_action_F77=immediate
15785   fi
15786 else
15787   # We cannot hardcode anything, or else we can only hardcode existing
15788   # directories.
15789   hardcode_action_F77=unsupported
15790 fi
15791 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15792 $as_echo "$hardcode_action_F77" >&6; }
15793
15794 if test "$hardcode_action_F77" = relink; then
15795   # Fast installation is not supported
15796   enable_fast_install=no
15797 elif test "$shlibpath_overrides_runpath" = yes ||
15798      test "$enable_shared" = no; then
15799   # Fast installation is not necessary
15800   enable_fast_install=needless
15801 fi
15802
15803
15804 # The else clause should only fire when bootstrapping the
15805 # libtool distribution, otherwise you forgot to ship ltmain.sh
15806 # with your package, and you will get complaints that there are
15807 # no rules to generate ltmain.sh.
15808 if test -f "$ltmain"; then
15809   # See if we are running on zsh, and set the options which allow our commands through
15810   # without removal of \ escapes.
15811   if test -n "${ZSH_VERSION+set}" ; then
15812     setopt NO_GLOB_SUBST
15813   fi
15814   # Now quote all the things that may contain metacharacters while being
15815   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15816   # variables and quote the copies for generation of the libtool script.
15817   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15818     SED SHELL STRIP \
15819     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15820     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15821     deplibs_check_method reload_flag reload_cmds need_locks \
15822     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15823     lt_cv_sys_global_symbol_to_c_name_address \
15824     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15825     old_postinstall_cmds old_postuninstall_cmds \
15826     compiler_F77 \
15827     CC_F77 \
15828     LD_F77 \
15829     lt_prog_compiler_wl_F77 \
15830     lt_prog_compiler_pic_F77 \
15831     lt_prog_compiler_static_F77 \
15832     lt_prog_compiler_no_builtin_flag_F77 \
15833     export_dynamic_flag_spec_F77 \
15834     thread_safe_flag_spec_F77 \
15835     whole_archive_flag_spec_F77 \
15836     enable_shared_with_static_runtimes_F77 \
15837     old_archive_cmds_F77 \
15838     old_archive_from_new_cmds_F77 \
15839     predep_objects_F77 \
15840     postdep_objects_F77 \
15841     predeps_F77 \
15842     postdeps_F77 \
15843     compiler_lib_search_path_F77 \
15844     archive_cmds_F77 \
15845     archive_expsym_cmds_F77 \
15846     postinstall_cmds_F77 \
15847     postuninstall_cmds_F77 \
15848     old_archive_from_expsyms_cmds_F77 \
15849     allow_undefined_flag_F77 \
15850     no_undefined_flag_F77 \
15851     export_symbols_cmds_F77 \
15852     hardcode_libdir_flag_spec_F77 \
15853     hardcode_libdir_flag_spec_ld_F77 \
15854     hardcode_libdir_separator_F77 \
15855     hardcode_automatic_F77 \
15856     module_cmds_F77 \
15857     module_expsym_cmds_F77 \
15858     lt_cv_prog_compiler_c_o_F77 \
15859     exclude_expsyms_F77 \
15860     include_expsyms_F77; do
15861
15862     case $var in
15863     old_archive_cmds_F77 | \
15864     old_archive_from_new_cmds_F77 | \
15865     archive_cmds_F77 | \
15866     archive_expsym_cmds_F77 | \
15867     module_cmds_F77 | \
15868     module_expsym_cmds_F77 | \
15869     old_archive_from_expsyms_cmds_F77 | \
15870     export_symbols_cmds_F77 | \
15871     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15872     postinstall_cmds | postuninstall_cmds | \
15873     old_postinstall_cmds | old_postuninstall_cmds | \
15874     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15875       # Double-quote double-evaled strings.
15876       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15877       ;;
15878     *)
15879       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15880       ;;
15881     esac
15882   done
15883
15884   case $lt_echo in
15885   *'\$0 --fallback-echo"')
15886     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15887     ;;
15888   esac
15889
15890 cfgfile="$ofile"
15891
15892   cat <<__EOF__ >> "$cfgfile"
15893 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15894
15895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15896
15897 # Shell to use when invoking shell scripts.
15898 SHELL=$lt_SHELL
15899
15900 # Whether or not to build shared libraries.
15901 build_libtool_libs=$enable_shared
15902
15903 # Whether or not to build static libraries.
15904 build_old_libs=$enable_static
15905
15906 # Whether or not to add -lc for building shared libraries.
15907 build_libtool_need_lc=$archive_cmds_need_lc_F77
15908
15909 # Whether or not to disallow shared libs when runtime libs are static
15910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15911
15912 # Whether or not to optimize for fast installation.
15913 fast_install=$enable_fast_install
15914
15915 # The host system.
15916 host_alias=$host_alias
15917 host=$host
15918 host_os=$host_os
15919
15920 # The build system.
15921 build_alias=$build_alias
15922 build=$build
15923 build_os=$build_os
15924
15925 # An echo program that does not interpret backslashes.
15926 echo=$lt_echo
15927
15928 # The archiver.
15929 AR=$lt_AR
15930 AR_FLAGS=$lt_AR_FLAGS
15931
15932 # A C compiler.
15933 LTCC=$lt_LTCC
15934
15935 # LTCC compiler flags.
15936 LTCFLAGS=$lt_LTCFLAGS
15937
15938 # A language-specific compiler.
15939 CC=$lt_compiler_F77
15940
15941 # Is the compiler the GNU C compiler?
15942 with_gcc=$GCC_F77
15943
15944 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15945 gcc_ver=\`gcc -dumpversion\`
15946
15947 # An ERE matcher.
15948 EGREP=$lt_EGREP
15949
15950 # The linker used to build libraries.
15951 LD=$lt_LD_F77
15952
15953 # Whether we need hard or soft links.
15954 LN_S=$lt_LN_S
15955
15956 # A BSD-compatible nm program.
15957 NM=$lt_NM
15958
15959 # A symbol stripping program
15960 STRIP=$lt_STRIP
15961
15962 # Used to examine libraries when file_magic_cmd begins "file"
15963 MAGIC_CMD=$MAGIC_CMD
15964
15965 # Used on cygwin: DLL creation program.
15966 DLLTOOL="$DLLTOOL"
15967
15968 # Used on cygwin: object dumper.
15969 OBJDUMP="$OBJDUMP"
15970
15971 # Used on cygwin: assembler.
15972 AS="$AS"
15973
15974 # The name of the directory that contains temporary libtool files.
15975 objdir=$objdir
15976
15977 # How to create reloadable object files.
15978 reload_flag=$lt_reload_flag
15979 reload_cmds=$lt_reload_cmds
15980
15981 # How to pass a linker flag through the compiler.
15982 wl=$lt_lt_prog_compiler_wl_F77
15983
15984 # Object file suffix (normally "o").
15985 objext="$ac_objext"
15986
15987 # Old archive suffix (normally "a").
15988 libext="$libext"
15989
15990 # Shared library suffix (normally ".so").
15991 shrext_cmds='$shrext_cmds'
15992
15993 # Executable file suffix (normally "").
15994 exeext="$exeext"
15995
15996 # Additional compiler flags for building library objects.
15997 pic_flag=$lt_lt_prog_compiler_pic_F77
15998 pic_mode=$pic_mode
15999
16000 # What is the maximum length of a command?
16001 max_cmd_len=$lt_cv_sys_max_cmd_len
16002
16003 # Does compiler simultaneously support -c and -o options?
16004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16005
16006 # Must we lock files when doing compilation?
16007 need_locks=$lt_need_locks
16008
16009 # Do we need the lib prefix for modules?
16010 need_lib_prefix=$need_lib_prefix
16011
16012 # Do we need a version for libraries?
16013 need_version=$need_version
16014
16015 # Whether dlopen is supported.
16016 dlopen_support=$enable_dlopen
16017
16018 # Whether dlopen of programs is supported.
16019 dlopen_self=$enable_dlopen_self
16020
16021 # Whether dlopen of statically linked programs is supported.
16022 dlopen_self_static=$enable_dlopen_self_static
16023
16024 # Compiler flag to prevent dynamic linking.
16025 link_static_flag=$lt_lt_prog_compiler_static_F77
16026
16027 # Compiler flag to turn off builtin functions.
16028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16029
16030 # Compiler flag to allow reflexive dlopens.
16031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16032
16033 # Compiler flag to generate shared objects directly from archives.
16034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16035
16036 # Compiler flag to generate thread-safe objects.
16037 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16038
16039 # Library versioning type.
16040 version_type=$version_type
16041
16042 # Format of library name prefix.
16043 libname_spec=$lt_libname_spec
16044
16045 # List of archive names.  First name is the real one, the rest are links.
16046 # The last name is the one that the linker finds with -lNAME.
16047 library_names_spec=$lt_library_names_spec
16048
16049 # The coded name of the library, if different from the real name.
16050 soname_spec=$lt_soname_spec
16051
16052 # Commands used to build and install an old-style archive.
16053 RANLIB=$lt_RANLIB
16054 old_archive_cmds=$lt_old_archive_cmds_F77
16055 old_postinstall_cmds=$lt_old_postinstall_cmds
16056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16057
16058 # Create an old-style archive from a shared archive.
16059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16060
16061 # Create a temporary old-style archive to link instead of a shared archive.
16062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16063
16064 # Commands used to build and install a shared archive.
16065 archive_cmds=$lt_archive_cmds_F77
16066 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16067 postinstall_cmds=$lt_postinstall_cmds
16068 postuninstall_cmds=$lt_postuninstall_cmds
16069
16070 # Commands used to build a loadable module (assumed same as above if empty)
16071 module_cmds=$lt_module_cmds_F77
16072 module_expsym_cmds=$lt_module_expsym_cmds_F77
16073
16074 # Commands to strip libraries.
16075 old_striplib=$lt_old_striplib
16076 striplib=$lt_striplib
16077
16078 # Dependencies to place before the objects being linked to create a
16079 # shared library.
16080 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16081
16082 # Dependencies to place after the objects being linked to create a
16083 # shared library.
16084 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16085
16086 # Dependencies to place before the objects being linked to create a
16087 # shared library.
16088 predeps=$lt_predeps_F77
16089
16090 # Dependencies to place after the objects being linked to create a
16091 # shared library.
16092 postdeps=$lt_postdeps_F77
16093
16094 # The library search path used internally by the compiler when linking
16095 # a shared library.
16096 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"\`
16097
16098 # Method to check whether dependent libraries are shared objects.
16099 deplibs_check_method=$lt_deplibs_check_method
16100
16101 # Command to use when deplibs_check_method == file_magic.
16102 file_magic_cmd=$lt_file_magic_cmd
16103
16104 # Flag that allows shared libraries with undefined symbols to be built.
16105 allow_undefined_flag=$lt_allow_undefined_flag_F77
16106
16107 # Flag that forces no undefined symbols.
16108 no_undefined_flag=$lt_no_undefined_flag_F77
16109
16110 # Commands used to finish a libtool library installation in a directory.
16111 finish_cmds=$lt_finish_cmds
16112
16113 # Same as above, but a single script fragment to be evaled but not shown.
16114 finish_eval=$lt_finish_eval
16115
16116 # Take the output of nm and produce a listing of raw symbols and C names.
16117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16118
16119 # Transform the output of nm in a proper C declaration
16120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16121
16122 # Transform the output of nm in a C name address pair
16123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16124
16125 # This is the shared library runtime path variable.
16126 runpath_var=$runpath_var
16127
16128 # This is the shared library path variable.
16129 shlibpath_var=$shlibpath_var
16130
16131 # Is shlibpath searched before the hard-coded library search path?
16132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16133
16134 # How to hardcode a shared library path into an executable.
16135 hardcode_action=$hardcode_action_F77
16136
16137 # Whether we should hardcode library paths into libraries.
16138 hardcode_into_libs=$hardcode_into_libs
16139
16140 # Flag to hardcode \$libdir into a binary during linking.
16141 # This must work even if \$libdir does not exist.
16142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16143
16144 # If ld is used when linking, flag to hardcode \$libdir into
16145 # a binary during linking. This must work even if \$libdir does
16146 # not exist.
16147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16148
16149 # Whether we need a single -rpath flag with a separated argument.
16150 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16151
16152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16153 # resulting binary.
16154 hardcode_direct=$hardcode_direct_F77
16155
16156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16157 # resulting binary.
16158 hardcode_minus_L=$hardcode_minus_L_F77
16159
16160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16161 # the resulting binary.
16162 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16163
16164 # Set to yes if building a shared library automatically hardcodes DIR into the library
16165 # and all subsequent libraries and executables linked against it.
16166 hardcode_automatic=$hardcode_automatic_F77
16167
16168 # Variables whose values should be saved in libtool wrapper scripts and
16169 # restored at relink time.
16170 variables_saved_for_relink="$variables_saved_for_relink"
16171
16172 # Whether libtool must link a program against all its dependency libraries.
16173 link_all_deplibs=$link_all_deplibs_F77
16174
16175 # Compile-time system search path for libraries
16176 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"\`
16177
16178 # Run-time system search path for libraries
16179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16180
16181 # Fix the shell variable \$srcfile for the compiler.
16182 fix_srcfile_path="$fix_srcfile_path_F77"
16183
16184 # Set to yes if exported symbols are required.
16185 always_export_symbols=$always_export_symbols_F77
16186
16187 # The commands to list exported symbols.
16188 export_symbols_cmds=$lt_export_symbols_cmds_F77
16189
16190 # The commands to extract the exported symbol list from a shared archive.
16191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16192
16193 # Symbols that should not be listed in the preloaded symbols.
16194 exclude_expsyms=$lt_exclude_expsyms_F77
16195
16196 # Symbols that must always be exported.
16197 include_expsyms=$lt_include_expsyms_F77
16198
16199 # ### END LIBTOOL TAG CONFIG: $tagname
16200
16201 __EOF__
16202
16203
16204 else
16205   # If there is no Makefile yet, we rely on a make rule to execute
16206   # `config.status --recheck' to rerun these tests and create the
16207   # libtool script then.
16208   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16209   if test -f "$ltmain_in"; then
16210     test -f Makefile && make "$ltmain"
16211   fi
16212 fi
16213
16214
16215 ac_ext=c
16216 ac_cpp='$CPP $CPPFLAGS'
16217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16220
16221 CC="$lt_save_CC"
16222
16223         else
16224           tagname=""
16225         fi
16226         ;;
16227
16228       GCJ)
16229         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16230
16231
16232 # Source file extension for Java test sources.
16233 ac_ext=java
16234
16235 # Object file extension for compiled Java test sources.
16236 objext=o
16237 objext_GCJ=$objext
16238
16239 # Code to be used in simple compile tests
16240 lt_simple_compile_test_code="class foo {}\n"
16241
16242 # Code to be used in simple link tests
16243 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16244
16245 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16246
16247 # If no C compiler was specified, use CC.
16248 LTCC=${LTCC-"$CC"}
16249
16250 # If no C compiler flags were specified, use CFLAGS.
16251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16252
16253 # Allow CC to be a program name with arguments.
16254 compiler=$CC
16255
16256
16257 # save warnings/boilerplate of simple test code
16258 ac_outfile=conftest.$ac_objext
16259 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16260 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16261 _lt_compiler_boilerplate=`cat conftest.err`
16262 $rm conftest*
16263
16264 ac_outfile=conftest.$ac_objext
16265 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16266 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16267 _lt_linker_boilerplate=`cat conftest.err`
16268 $rm conftest*
16269
16270
16271 # Allow CC to be a program name with arguments.
16272 lt_save_CC="$CC"
16273 CC=${GCJ-"gcj"}
16274 compiler=$CC
16275 compiler_GCJ=$CC
16276 for cc_temp in $compiler""; do
16277   case $cc_temp in
16278     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16279     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16280     \-*) ;;
16281     *) break;;
16282   esac
16283 done
16284 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16285
16286
16287 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16288 archive_cmds_need_lc_GCJ=no
16289
16290 old_archive_cmds_GCJ=$old_archive_cmds
16291
16292
16293 lt_prog_compiler_no_builtin_flag_GCJ=
16294
16295 if test "$GCC" = yes; then
16296   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16297
16298
16299 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16300 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16301 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16302   $as_echo_n "(cached) " >&6
16303 else
16304   lt_cv_prog_compiler_rtti_exceptions=no
16305   ac_outfile=conftest.$ac_objext
16306    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16307    lt_compiler_flag="-fno-rtti -fno-exceptions"
16308    # Insert the option either (1) after the last *FLAGS variable, or
16309    # (2) before a word containing "conftest.", or (3) at the end.
16310    # Note that $ac_compile itself does not contain backslashes and begins
16311    # with a dollar sign (not a hyphen), so the echo should work correctly.
16312    # The option is referenced via a variable to avoid confusing sed.
16313    lt_compile=`echo "$ac_compile" | $SED \
16314    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16316    -e 's:$: $lt_compiler_flag:'`
16317    (eval echo "\"\$as_me:16317: $lt_compile\"" >&5)
16318    (eval "$lt_compile" 2>conftest.err)
16319    ac_status=$?
16320    cat conftest.err >&5
16321    echo "$as_me:16321: \$? = $ac_status" >&5
16322    if (exit $ac_status) && test -s "$ac_outfile"; then
16323      # The compiler can only warn and ignore the option if not recognized
16324      # So say no if there are warnings other than the usual output.
16325      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16326      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16327      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16328        lt_cv_prog_compiler_rtti_exceptions=yes
16329      fi
16330    fi
16331    $rm conftest*
16332
16333 fi
16334 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16335 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16336
16337 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16338     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16339 else
16340     :
16341 fi
16342
16343 fi
16344
16345 lt_prog_compiler_wl_GCJ=
16346 lt_prog_compiler_pic_GCJ=
16347 lt_prog_compiler_static_GCJ=
16348
16349 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16351
16352   if test "$GCC" = yes; then
16353     lt_prog_compiler_wl_GCJ='-Wl,'
16354     lt_prog_compiler_static_GCJ='-static'
16355
16356     case $host_os in
16357       aix*)
16358       # All AIX code is PIC.
16359       if test "$host_cpu" = ia64; then
16360         # AIX 5 now supports IA64 processor
16361         lt_prog_compiler_static_GCJ='-Bstatic'
16362       fi
16363       ;;
16364
16365     amigaos*)
16366       # FIXME: we need at least 68020 code to build shared libraries, but
16367       # adding the `-m68020' flag to GCC prevents building anything better,
16368       # like `-m68040'.
16369       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16370       ;;
16371
16372     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16373       # PIC is the default for these OSes.
16374       ;;
16375
16376     mingw* | pw32* | os2*)
16377       # This hack is so that the source file can tell whether it is being
16378       # built for inclusion in a dll (and should export symbols for example).
16379       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16380       ;;
16381
16382     darwin* | rhapsody*)
16383       # PIC is the default on this platform
16384       # Common symbols not allowed in MH_DYLIB files
16385       lt_prog_compiler_pic_GCJ='-fno-common'
16386       ;;
16387
16388     interix3*)
16389       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16390       # Instead, we relocate shared libraries at runtime.
16391       ;;
16392
16393     msdosdjgpp*)
16394       # Just because we use GCC doesn't mean we suddenly get shared libraries
16395       # on systems that don't support them.
16396       lt_prog_compiler_can_build_shared_GCJ=no
16397       enable_shared=no
16398       ;;
16399
16400     sysv4*MP*)
16401       if test -d /usr/nec; then
16402         lt_prog_compiler_pic_GCJ=-Kconform_pic
16403       fi
16404       ;;
16405
16406     hpux*)
16407       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16408       # not for PA HP-UX.
16409       case $host_cpu in
16410       hppa*64*|ia64*)
16411         # +Z the default
16412         ;;
16413       *)
16414         lt_prog_compiler_pic_GCJ='-fPIC'
16415         ;;
16416       esac
16417       ;;
16418
16419     *)
16420       lt_prog_compiler_pic_GCJ='-fPIC'
16421       ;;
16422     esac
16423   else
16424     # PORTME Check for flag to pass linker flags through the system compiler.
16425     case $host_os in
16426     aix*)
16427       lt_prog_compiler_wl_GCJ='-Wl,'
16428       if test "$host_cpu" = ia64; then
16429         # AIX 5 now supports IA64 processor
16430         lt_prog_compiler_static_GCJ='-Bstatic'
16431       else
16432         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16433       fi
16434       ;;
16435       darwin*)
16436         # PIC is the default on this platform
16437         # Common symbols not allowed in MH_DYLIB files
16438        case $cc_basename in
16439          xlc*)
16440          lt_prog_compiler_pic_GCJ='-qnocommon'
16441          lt_prog_compiler_wl_GCJ='-Wl,'
16442          ;;
16443        esac
16444        ;;
16445
16446     mingw* | pw32* | os2*)
16447       # This hack is so that the source file can tell whether it is being
16448       # built for inclusion in a dll (and should export symbols for example).
16449       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16450       ;;
16451
16452     hpux9* | hpux10* | hpux11*)
16453       lt_prog_compiler_wl_GCJ='-Wl,'
16454       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16455       # not for PA HP-UX.
16456       case $host_cpu in
16457       hppa*64*|ia64*)
16458         # +Z the default
16459         ;;
16460       *)
16461         lt_prog_compiler_pic_GCJ='+Z'
16462         ;;
16463       esac
16464       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16465       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16466       ;;
16467
16468     irix5* | irix6* | nonstopux*)
16469       lt_prog_compiler_wl_GCJ='-Wl,'
16470       # PIC (with -KPIC) is the default.
16471       lt_prog_compiler_static_GCJ='-non_shared'
16472       ;;
16473
16474     newsos6)
16475       lt_prog_compiler_pic_GCJ='-KPIC'
16476       lt_prog_compiler_static_GCJ='-Bstatic'
16477       ;;
16478
16479     linux*)
16480       case $cc_basename in
16481       icc* | ecc*)
16482         lt_prog_compiler_wl_GCJ='-Wl,'
16483         lt_prog_compiler_pic_GCJ='-KPIC'
16484         lt_prog_compiler_static_GCJ='-static'
16485         ;;
16486       pgcc* | pgf77* | pgf90* | pgf95*)
16487         # Portland Group compilers (*not* the Pentium gcc compiler,
16488         # which looks to be a dead project)
16489         lt_prog_compiler_wl_GCJ='-Wl,'
16490         lt_prog_compiler_pic_GCJ='-fpic'
16491         lt_prog_compiler_static_GCJ='-Bstatic'
16492         ;;
16493       ccc*)
16494         lt_prog_compiler_wl_GCJ='-Wl,'
16495         # All Alpha code is PIC.
16496         lt_prog_compiler_static_GCJ='-non_shared'
16497         ;;
16498       esac
16499       ;;
16500
16501     osf3* | osf4* | osf5*)
16502       lt_prog_compiler_wl_GCJ='-Wl,'
16503       # All OSF/1 code is PIC.
16504       lt_prog_compiler_static_GCJ='-non_shared'
16505       ;;
16506
16507     solaris*)
16508       lt_prog_compiler_pic_GCJ='-KPIC'
16509       lt_prog_compiler_static_GCJ='-Bstatic'
16510       case $cc_basename in
16511       f77* | f90* | f95*)
16512         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16513       *)
16514         lt_prog_compiler_wl_GCJ='-Wl,';;
16515       esac
16516       ;;
16517
16518     sunos4*)
16519       lt_prog_compiler_wl_GCJ='-Qoption ld '
16520       lt_prog_compiler_pic_GCJ='-PIC'
16521       lt_prog_compiler_static_GCJ='-Bstatic'
16522       ;;
16523
16524     sysv4 | sysv4.2uw2* | sysv4.3*)
16525       lt_prog_compiler_wl_GCJ='-Wl,'
16526       lt_prog_compiler_pic_GCJ='-KPIC'
16527       lt_prog_compiler_static_GCJ='-Bstatic'
16528       ;;
16529
16530     sysv4*MP*)
16531       if test -d /usr/nec ;then
16532         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16533         lt_prog_compiler_static_GCJ='-Bstatic'
16534       fi
16535       ;;
16536
16537     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16538       lt_prog_compiler_wl_GCJ='-Wl,'
16539       lt_prog_compiler_pic_GCJ='-KPIC'
16540       lt_prog_compiler_static_GCJ='-Bstatic'
16541       ;;
16542
16543     unicos*)
16544       lt_prog_compiler_wl_GCJ='-Wl,'
16545       lt_prog_compiler_can_build_shared_GCJ=no
16546       ;;
16547
16548     uts4*)
16549       lt_prog_compiler_pic_GCJ='-pic'
16550       lt_prog_compiler_static_GCJ='-Bstatic'
16551       ;;
16552
16553     *)
16554       lt_prog_compiler_can_build_shared_GCJ=no
16555       ;;
16556     esac
16557   fi
16558
16559 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16560 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16561
16562 #
16563 # Check to make sure the PIC flag actually works.
16564 #
16565 if test -n "$lt_prog_compiler_pic_GCJ"; then
16566
16567 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16569 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16570   $as_echo_n "(cached) " >&6
16571 else
16572   lt_prog_compiler_pic_works_GCJ=no
16573   ac_outfile=conftest.$ac_objext
16574    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16575    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16576    # Insert the option either (1) after the last *FLAGS variable, or
16577    # (2) before a word containing "conftest.", or (3) at the end.
16578    # Note that $ac_compile itself does not contain backslashes and begins
16579    # with a dollar sign (not a hyphen), so the echo should work correctly.
16580    # The option is referenced via a variable to avoid confusing sed.
16581    lt_compile=`echo "$ac_compile" | $SED \
16582    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16583    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16584    -e 's:$: $lt_compiler_flag:'`
16585    (eval echo "\"\$as_me:16585: $lt_compile\"" >&5)
16586    (eval "$lt_compile" 2>conftest.err)
16587    ac_status=$?
16588    cat conftest.err >&5
16589    echo "$as_me:16589: \$? = $ac_status" >&5
16590    if (exit $ac_status) && test -s "$ac_outfile"; then
16591      # The compiler can only warn and ignore the option if not recognized
16592      # So say no if there are warnings other than the usual output.
16593      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16594      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16595      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16596        lt_prog_compiler_pic_works_GCJ=yes
16597      fi
16598    fi
16599    $rm conftest*
16600
16601 fi
16602 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16603 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16604
16605 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16606     case $lt_prog_compiler_pic_GCJ in
16607      "" | " "*) ;;
16608      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16609      esac
16610 else
16611     lt_prog_compiler_pic_GCJ=
16612      lt_prog_compiler_can_build_shared_GCJ=no
16613 fi
16614
16615 fi
16616 case $host_os in
16617   # For platforms which do not support PIC, -DPIC is meaningless:
16618   *djgpp*)
16619     lt_prog_compiler_pic_GCJ=
16620     ;;
16621   *)
16622     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16623     ;;
16624 esac
16625
16626 #
16627 # Check to make sure the static flag actually works.
16628 #
16629 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16630 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16632 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16633   $as_echo_n "(cached) " >&6
16634 else
16635   lt_prog_compiler_static_works_GCJ=no
16636    save_LDFLAGS="$LDFLAGS"
16637    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16638    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16639    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16640      # The linker can only warn and ignore the option if not recognized
16641      # So say no if there are warnings
16642      if test -s conftest.err; then
16643        # Append any errors to the config.log.
16644        cat conftest.err 1>&5
16645        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16646        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16647        if diff conftest.exp conftest.er2 >/dev/null; then
16648          lt_prog_compiler_static_works_GCJ=yes
16649        fi
16650      else
16651        lt_prog_compiler_static_works_GCJ=yes
16652      fi
16653    fi
16654    $rm conftest*
16655    LDFLAGS="$save_LDFLAGS"
16656
16657 fi
16658 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16659 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16660
16661 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16662     :
16663 else
16664     lt_prog_compiler_static_GCJ=
16665 fi
16666
16667
16668 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16670 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16671   $as_echo_n "(cached) " >&6
16672 else
16673   lt_cv_prog_compiler_c_o_GCJ=no
16674    $rm -r conftest 2>/dev/null
16675    mkdir conftest
16676    cd conftest
16677    mkdir out
16678    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16679
16680    lt_compiler_flag="-o out/conftest2.$ac_objext"
16681    # Insert the option either (1) after the last *FLAGS variable, or
16682    # (2) before a word containing "conftest.", or (3) at the end.
16683    # Note that $ac_compile itself does not contain backslashes and begins
16684    # with a dollar sign (not a hyphen), so the echo should work correctly.
16685    lt_compile=`echo "$ac_compile" | $SED \
16686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16688    -e 's:$: $lt_compiler_flag:'`
16689    (eval echo "\"\$as_me:16689: $lt_compile\"" >&5)
16690    (eval "$lt_compile" 2>out/conftest.err)
16691    ac_status=$?
16692    cat out/conftest.err >&5
16693    echo "$as_me:16693: \$? = $ac_status" >&5
16694    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16695    then
16696      # The compiler can only warn and ignore the option if not recognized
16697      # So say no if there are warnings
16698      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16699      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16700      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16701        lt_cv_prog_compiler_c_o_GCJ=yes
16702      fi
16703    fi
16704    chmod u+w . 2>&5
16705    $rm conftest*
16706    # SGI C++ compiler will create directory out/ii_files/ for
16707    # template instantiation
16708    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16709    $rm out/* && rmdir out
16710    cd ..
16711    rmdir conftest
16712    $rm conftest*
16713
16714 fi
16715 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16716 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16717
16718
16719 hard_links="nottested"
16720 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16721   # do not overwrite the value of need_locks provided by the user
16722   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16723 $as_echo_n "checking if we can lock with hard links... " >&6; }
16724   hard_links=yes
16725   $rm conftest*
16726   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16727   touch conftest.a
16728   ln conftest.a conftest.b 2>&5 || hard_links=no
16729   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16730   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16731 $as_echo "$hard_links" >&6; }
16732   if test "$hard_links" = no; then
16733     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16734 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16735     need_locks=warn
16736   fi
16737 else
16738   need_locks=no
16739 fi
16740
16741 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16743
16744   runpath_var=
16745   allow_undefined_flag_GCJ=
16746   enable_shared_with_static_runtimes_GCJ=no
16747   archive_cmds_GCJ=
16748   archive_expsym_cmds_GCJ=
16749   old_archive_From_new_cmds_GCJ=
16750   old_archive_from_expsyms_cmds_GCJ=
16751   export_dynamic_flag_spec_GCJ=
16752   whole_archive_flag_spec_GCJ=
16753   thread_safe_flag_spec_GCJ=
16754   hardcode_libdir_flag_spec_GCJ=
16755   hardcode_libdir_flag_spec_ld_GCJ=
16756   hardcode_libdir_separator_GCJ=
16757   hardcode_direct_GCJ=no
16758   hardcode_minus_L_GCJ=no
16759   hardcode_shlibpath_var_GCJ=unsupported
16760   link_all_deplibs_GCJ=unknown
16761   hardcode_automatic_GCJ=no
16762   module_cmds_GCJ=
16763   module_expsym_cmds_GCJ=
16764   always_export_symbols_GCJ=no
16765   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16766   # include_expsyms should be a list of space-separated symbols to be *always*
16767   # included in the symbol list
16768   include_expsyms_GCJ=
16769   # exclude_expsyms can be an extended regexp of symbols to exclude
16770   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16771   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16772   # as well as any symbol that contains `d'.
16773   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16774   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16775   # platforms (ab)use it in PIC code, but their linkers get confused if
16776   # the symbol is explicitly referenced.  Since portable code cannot
16777   # rely on this symbol name, it's probably fine to never include it in
16778   # preloaded symbol tables.
16779   extract_expsyms_cmds=
16780   # Just being paranoid about ensuring that cc_basename is set.
16781   for cc_temp in $compiler""; do
16782   case $cc_temp in
16783     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16784     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16785     \-*) ;;
16786     *) break;;
16787   esac
16788 done
16789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16790
16791   case $host_os in
16792   cygwin* | mingw* | pw32*)
16793     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16794     # When not using gcc, we currently assume that we are using
16795     # Microsoft Visual C++.
16796     if test "$GCC" != yes; then
16797       with_gnu_ld=no
16798     fi
16799     ;;
16800   interix*)
16801     # we just hope/assume this is gcc and not c89 (= MSVC++)
16802     with_gnu_ld=yes
16803     ;;
16804   openbsd*)
16805     with_gnu_ld=no
16806     ;;
16807   esac
16808
16809   ld_shlibs_GCJ=yes
16810   if test "$with_gnu_ld" = yes; then
16811     # If archive_cmds runs LD, not CC, wlarc should be empty
16812     wlarc='${wl}'
16813
16814     # Set some defaults for GNU ld with shared library support. These
16815     # are reset later if shared libraries are not supported. Putting them
16816     # here allows them to be overridden if necessary.
16817     runpath_var=LD_RUN_PATH
16818     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16819     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16820     # ancient GNU ld didn't support --whole-archive et. al.
16821     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16822         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16823       else
16824         whole_archive_flag_spec_GCJ=
16825     fi
16826     supports_anon_versioning=no
16827     case `$LD -v 2>/dev/null` in
16828       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16829       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16830       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16831       *\ 2.11.*) ;; # other 2.11 versions
16832       *) supports_anon_versioning=yes ;;
16833     esac
16834
16835     # See if GNU ld supports shared libraries.
16836     case $host_os in
16837     aix3* | aix4* | aix5*)
16838       # On AIX/PPC, the GNU linker is very broken
16839       if test "$host_cpu" != ia64; then
16840         ld_shlibs_GCJ=no
16841         cat <<EOF 1>&2
16842
16843 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16844 *** to be unable to reliably create shared libraries on AIX.
16845 *** Therefore, libtool is disabling shared libraries support.  If you
16846 *** really care for shared libraries, you may want to modify your PATH
16847 *** so that a non-GNU linker is found, and then restart.
16848
16849 EOF
16850       fi
16851       ;;
16852
16853     amigaos*)
16854       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)'
16855       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16856       hardcode_minus_L_GCJ=yes
16857
16858       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16859       # that the semantics of dynamic libraries on AmigaOS, at least up
16860       # to version 4, is to share data among multiple programs linked
16861       # with the same dynamic library.  Since this doesn't match the
16862       # behavior of shared libraries on other platforms, we can't use
16863       # them.
16864       ld_shlibs_GCJ=no
16865       ;;
16866
16867     beos*)
16868       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16869         allow_undefined_flag_GCJ=unsupported
16870         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16871         # support --undefined.  This deserves some investigation.  FIXME
16872         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16873       else
16874         ld_shlibs_GCJ=no
16875       fi
16876       ;;
16877
16878     cygwin* | mingw* | pw32*)
16879       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16880       # as there is no search path for DLLs.
16881       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882       allow_undefined_flag_GCJ=unsupported
16883       always_export_symbols_GCJ=no
16884       enable_shared_with_static_runtimes_GCJ=yes
16885       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16886
16887       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16888         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16889         # If the export-symbols file already is a .def file (1st line
16890         # is EXPORTS), use it as is; otherwise, prepend...
16891         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16892           cp $export_symbols $output_objdir/$soname.def;
16893         else
16894           echo EXPORTS > $output_objdir/$soname.def;
16895           cat $export_symbols >> $output_objdir/$soname.def;
16896         fi~
16897         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16898       else
16899         ld_shlibs_GCJ=no
16900       fi
16901       ;;
16902
16903     interix3*)
16904       hardcode_direct_GCJ=no
16905       hardcode_shlibpath_var_GCJ=no
16906       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16907       export_dynamic_flag_spec_GCJ='${wl}-E'
16908       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16909       # Instead, shared libraries are loaded at an image base (0x10000000 by
16910       # default) and relocated if they conflict, which is a slow very memory
16911       # consuming and fragmenting process.  To avoid this, we pick a random,
16912       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16913       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16914       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'
16915       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'
16916       ;;
16917
16918     linux*)
16919       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16920         tmp_addflag=
16921         case $cc_basename,$host_cpu in
16922         pgcc*)                          # Portland Group C compiler
16923           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'
16924           tmp_addflag=' $pic_flag'
16925           ;;
16926         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16927           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'
16928           tmp_addflag=' $pic_flag -Mnomain' ;;
16929         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16930           tmp_addflag=' -i_dynamic' ;;
16931         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16932           tmp_addflag=' -i_dynamic -nofor_main' ;;
16933         ifc* | ifort*)                  # Intel Fortran compiler
16934           tmp_addflag=' -nofor_main' ;;
16935         esac
16936         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16937
16938         if test $supports_anon_versioning = yes; then
16939           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16940   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16941   $echo "local: *; };" >> $output_objdir/$libname.ver~
16942           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16943         fi
16944       else
16945         ld_shlibs_GCJ=no
16946       fi
16947       ;;
16948
16949     netbsd*)
16950       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16951         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16952         wlarc=
16953       else
16954         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16956       fi
16957       ;;
16958
16959     solaris*)
16960       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16961         ld_shlibs_GCJ=no
16962         cat <<EOF 1>&2
16963
16964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16965 *** create shared libraries on Solaris systems.  Therefore, libtool
16966 *** is disabling shared libraries support.  We urge you to upgrade GNU
16967 *** binutils to release 2.9.1 or newer.  Another option is to modify
16968 *** your PATH or compiler configuration so that the native linker is
16969 *** used, and then restart.
16970
16971 EOF
16972       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16973         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16974         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16975       else
16976         ld_shlibs_GCJ=no
16977       fi
16978       ;;
16979
16980     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16981       case `$LD -v 2>&1` in
16982         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16983         ld_shlibs_GCJ=no
16984         cat <<_LT_EOF 1>&2
16985
16986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16987 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16988 *** is disabling shared libraries support.  We urge you to upgrade GNU
16989 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16990 *** your PATH or compiler configuration so that the native linker is
16991 *** used, and then restart.
16992
16993 _LT_EOF
16994         ;;
16995         *)
16996           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16997             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16998             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16999             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17000           else
17001             ld_shlibs_GCJ=no
17002           fi
17003         ;;
17004       esac
17005       ;;
17006
17007     sunos4*)
17008       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17009       wlarc=
17010       hardcode_direct_GCJ=yes
17011       hardcode_shlibpath_var_GCJ=no
17012       ;;
17013
17014     *)
17015       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17016         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17017         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17018       else
17019         ld_shlibs_GCJ=no
17020       fi
17021       ;;
17022     esac
17023
17024     if test "$ld_shlibs_GCJ" = no; then
17025       runpath_var=
17026       hardcode_libdir_flag_spec_GCJ=
17027       export_dynamic_flag_spec_GCJ=
17028       whole_archive_flag_spec_GCJ=
17029     fi
17030   else
17031     # PORTME fill in a description of your system's linker (not GNU ld)
17032     case $host_os in
17033     aix3*)
17034       allow_undefined_flag_GCJ=unsupported
17035       always_export_symbols_GCJ=yes
17036       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'
17037       # Note: this linker hardcodes the directories in LIBPATH if there
17038       # are no directories specified by -L.
17039       hardcode_minus_L_GCJ=yes
17040       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17041         # Neither direct hardcoding nor static linking is supported with a
17042         # broken collect2.
17043         hardcode_direct_GCJ=unsupported
17044       fi
17045       ;;
17046
17047     aix4* | aix5*)
17048       if test "$host_cpu" = ia64; then
17049         # On IA64, the linker does run time linking by default, so we don't
17050         # have to do anything special.
17051         aix_use_runtimelinking=no
17052         exp_sym_flag='-Bexport'
17053         no_entry_flag=""
17054       else
17055         # If we're using GNU nm, then we don't want the "-C" option.
17056         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17057         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17058           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'
17059         else
17060           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'
17061         fi
17062         aix_use_runtimelinking=no
17063
17064         # Test if we are trying to use run time linking or normal
17065         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17066         # need to do runtime linking.
17067         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17068           for ld_flag in $LDFLAGS; do
17069           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17070             aix_use_runtimelinking=yes
17071             break
17072           fi
17073           done
17074           ;;
17075         esac
17076
17077         exp_sym_flag='-bexport'
17078         no_entry_flag='-bnoentry'
17079       fi
17080
17081       # When large executables or shared objects are built, AIX ld can
17082       # have problems creating the table of contents.  If linking a library
17083       # or program results in "error TOC overflow" add -mminimal-toc to
17084       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17085       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17086
17087       archive_cmds_GCJ=''
17088       hardcode_direct_GCJ=yes
17089       hardcode_libdir_separator_GCJ=':'
17090       link_all_deplibs_GCJ=yes
17091
17092       if test "$GCC" = yes; then
17093         case $host_os in aix4.[012]|aix4.[012].*)
17094         # We only want to do this on AIX 4.2 and lower, the check
17095         # below for broken collect2 doesn't work under 4.3+
17096           collect2name=`${CC} -print-prog-name=collect2`
17097           if test -f "$collect2name" && \
17098            strings "$collect2name" | grep resolve_lib_name >/dev/null
17099           then
17100           # We have reworked collect2
17101           hardcode_direct_GCJ=yes
17102           else
17103           # We have old collect2
17104           hardcode_direct_GCJ=unsupported
17105           # It fails to find uninstalled libraries when the uninstalled
17106           # path is not listed in the libpath.  Setting hardcode_minus_L
17107           # to unsupported forces relinking
17108           hardcode_minus_L_GCJ=yes
17109           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17110           hardcode_libdir_separator_GCJ=
17111           fi
17112           ;;
17113         esac
17114         shared_flag='-shared'
17115         if test "$aix_use_runtimelinking" = yes; then
17116           shared_flag="$shared_flag "'${wl}-G'
17117         fi
17118       else
17119         # not using gcc
17120         if test "$host_cpu" = ia64; then
17121         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17122         # chokes on -Wl,-G. The following line is correct:
17123           shared_flag='-G'
17124         else
17125           if test "$aix_use_runtimelinking" = yes; then
17126             shared_flag='${wl}-G'
17127           else
17128             shared_flag='${wl}-bM:SRE'
17129           fi
17130         fi
17131       fi
17132
17133       # It seems that -bexpall does not export symbols beginning with
17134       # underscore (_), so it is better to generate a list of symbols to export.
17135       always_export_symbols_GCJ=yes
17136       if test "$aix_use_runtimelinking" = yes; then
17137         # Warning - without using the other runtime loading flags (-brtl),
17138         # -berok will link without error, but may produce a broken library.
17139         allow_undefined_flag_GCJ='-berok'
17140        # Determine the default libpath from the value encoded in an empty executable.
17141        cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147
17148 int
17149 main ()
17150 {
17151
17152   ;
17153   return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (ac_try="$ac_link"
17158 case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17163 $as_echo "$ac_try_echo") >&5
17164   (eval "$ac_link") 2>conftest.er1
17165   ac_status=$?
17166   grep -v '^ *+' conftest.er1 >conftest.err
17167   rm -f conftest.er1
17168   cat conftest.err >&5
17169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); } && {
17171          test -z "$ac_c_werror_flag" ||
17172          test ! -s conftest.err
17173        } && test -s conftest$ac_exeext && {
17174          test "$cross_compiling" = yes ||
17175          $as_test_x conftest$ac_exeext
17176        }; then
17177
17178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17179 }'`
17180 # Check for a 64-bit object if we didn't find anything.
17181 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; }
17182 }'`; fi
17183 else
17184   $as_echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187
17188 fi
17189
17190 rm -rf conftest.dSYM
17191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17192       conftest$ac_exeext conftest.$ac_ext
17193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17194
17195        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17196         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"
17197        else
17198         if test "$host_cpu" = ia64; then
17199           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17200           allow_undefined_flag_GCJ="-z nodefs"
17201           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"
17202         else
17203          # Determine the default libpath from the value encoded in an empty executable.
17204          cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h.  */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h.  */
17210
17211 int
17212 main ()
17213 {
17214
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223   *) ac_try_echo=$ac_try;;
17224 esac
17225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17226 $as_echo "$ac_try_echo") >&5
17227   (eval "$ac_link") 2>conftest.er1
17228   ac_status=$?
17229   grep -v '^ *+' conftest.er1 >conftest.err
17230   rm -f conftest.er1
17231   cat conftest.err >&5
17232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } && {
17234          test -z "$ac_c_werror_flag" ||
17235          test ! -s conftest.err
17236        } && test -s conftest$ac_exeext && {
17237          test "$cross_compiling" = yes ||
17238          $as_test_x conftest$ac_exeext
17239        }; then
17240
17241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17242 }'`
17243 # Check for a 64-bit object if we didn't find anything.
17244 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; }
17245 }'`; fi
17246 else
17247   $as_echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250
17251 fi
17252
17253 rm -rf conftest.dSYM
17254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17255       conftest$ac_exeext conftest.$ac_ext
17256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17257
17258          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17259           # Warning - without using the other run time loading flags,
17260           # -berok will link without error, but may produce a broken library.
17261           no_undefined_flag_GCJ=' ${wl}-bernotok'
17262           allow_undefined_flag_GCJ=' ${wl}-berok'
17263           # Exported symbols can be pulled into shared objects from archives
17264           whole_archive_flag_spec_GCJ='$convenience'
17265           archive_cmds_need_lc_GCJ=yes
17266           # This is similar to how AIX traditionally builds its shared libraries.
17267           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'
17268         fi
17269       fi
17270       ;;
17271
17272     amigaos*)
17273       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)'
17274       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17275       hardcode_minus_L_GCJ=yes
17276       # see comment about different semantics on the GNU ld section
17277       ld_shlibs_GCJ=no
17278       ;;
17279
17280     bsdi[45]*)
17281       export_dynamic_flag_spec_GCJ=-rdynamic
17282       ;;
17283
17284     cygwin* | mingw* | pw32*)
17285       # When not using gcc, we currently assume that we are using
17286       # Microsoft Visual C++.
17287       # hardcode_libdir_flag_spec is actually meaningless, as there is
17288       # no search path for DLLs.
17289       hardcode_libdir_flag_spec_GCJ=' '
17290       allow_undefined_flag_GCJ=unsupported
17291       # Tell ltmain to make .lib files, not .a files.
17292       libext=lib
17293       # Tell ltmain to make .dll files, not .so files.
17294       shrext_cmds=".dll"
17295       # FIXME: Setting linknames here is a bad hack.
17296       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17297       # The linker will automatically build a .lib file if we build a DLL.
17298       old_archive_From_new_cmds_GCJ='true'
17299       # FIXME: Should let the user specify the lib program.
17300       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17301       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17302       enable_shared_with_static_runtimes_GCJ=yes
17303       ;;
17304
17305     darwin* | rhapsody*)
17306       case $host_os in
17307         rhapsody* | darwin1.[012])
17308          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17309          ;;
17310        *) # Darwin 1.3 on
17311          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17312            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17313          else
17314            case ${MACOSX_DEPLOYMENT_TARGET} in
17315              10.[012])
17316                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17317                ;;
17318              10.*)
17319                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17320                ;;
17321            esac
17322          fi
17323          ;;
17324       esac
17325       archive_cmds_need_lc_GCJ=no
17326       hardcode_direct_GCJ=no
17327       hardcode_automatic_GCJ=yes
17328       hardcode_shlibpath_var_GCJ=unsupported
17329       whole_archive_flag_spec_GCJ=''
17330       link_all_deplibs_GCJ=yes
17331     if test "$GCC" = yes ; then
17332         output_verbose_link_cmd='echo'
17333         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17334       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17335       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17336       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}'
17337       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}'
17338     else
17339       case $cc_basename in
17340         xlc*)
17341          output_verbose_link_cmd='echo'
17342          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17343          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17344           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17345          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}'
17346           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}'
17347           ;;
17348        *)
17349          ld_shlibs_GCJ=no
17350           ;;
17351       esac
17352     fi
17353       ;;
17354
17355     dgux*)
17356       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17357       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17358       hardcode_shlibpath_var_GCJ=no
17359       ;;
17360
17361     freebsd1*)
17362       ld_shlibs_GCJ=no
17363       ;;
17364
17365     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17366     # support.  Future versions do this automatically, but an explicit c++rt0.o
17367     # does not break anything, and helps significantly (at the cost of a little
17368     # extra space).
17369     freebsd2.2*)
17370       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17371       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17372       hardcode_direct_GCJ=yes
17373       hardcode_shlibpath_var_GCJ=no
17374       ;;
17375
17376     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17377     freebsd2*)
17378       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17379       hardcode_direct_GCJ=yes
17380       hardcode_minus_L_GCJ=yes
17381       hardcode_shlibpath_var_GCJ=no
17382       ;;
17383
17384     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17385     freebsd* | kfreebsd*-gnu | dragonfly*)
17386       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17387       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17388       hardcode_direct_GCJ=yes
17389       hardcode_shlibpath_var_GCJ=no
17390       ;;
17391
17392     hpux9*)
17393       if test "$GCC" = yes; then
17394         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'
17395       else
17396         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'
17397       fi
17398       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17399       hardcode_libdir_separator_GCJ=:
17400       hardcode_direct_GCJ=yes
17401
17402       # hardcode_minus_L: Not really in the search PATH,
17403       # but as the default location of the library.
17404       hardcode_minus_L_GCJ=yes
17405       export_dynamic_flag_spec_GCJ='${wl}-E'
17406       ;;
17407
17408     hpux10*)
17409       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17410         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17411       else
17412         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17413       fi
17414       if test "$with_gnu_ld" = no; then
17415         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17416         hardcode_libdir_separator_GCJ=:
17417
17418         hardcode_direct_GCJ=yes
17419         export_dynamic_flag_spec_GCJ='${wl}-E'
17420
17421         # hardcode_minus_L: Not really in the search PATH,
17422         # but as the default location of the library.
17423         hardcode_minus_L_GCJ=yes
17424       fi
17425       ;;
17426
17427     hpux11*)
17428       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17429         case $host_cpu in
17430         hppa*64*)
17431           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17432           ;;
17433         ia64*)
17434           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17435           ;;
17436         *)
17437           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17438           ;;
17439         esac
17440       else
17441         case $host_cpu in
17442         hppa*64*)
17443           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17444           ;;
17445         ia64*)
17446           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17447           ;;
17448         *)
17449           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17450           ;;
17451         esac
17452       fi
17453       if test "$with_gnu_ld" = no; then
17454         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17455         hardcode_libdir_separator_GCJ=:
17456
17457         case $host_cpu in
17458         hppa*64*|ia64*)
17459           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17460           hardcode_direct_GCJ=no
17461           hardcode_shlibpath_var_GCJ=no
17462           ;;
17463         *)
17464           hardcode_direct_GCJ=yes
17465           export_dynamic_flag_spec_GCJ='${wl}-E'
17466
17467           # hardcode_minus_L: Not really in the search PATH,
17468           # but as the default location of the library.
17469           hardcode_minus_L_GCJ=yes
17470           ;;
17471         esac
17472       fi
17473       ;;
17474
17475     irix5* | irix6* | nonstopux*)
17476       if test "$GCC" = yes; then
17477         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'
17478       else
17479         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'
17480         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17481       fi
17482       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17483       hardcode_libdir_separator_GCJ=:
17484       link_all_deplibs_GCJ=yes
17485       ;;
17486
17487     netbsd*)
17488       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17489         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17490       else
17491         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17492       fi
17493       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17494       hardcode_direct_GCJ=yes
17495       hardcode_shlibpath_var_GCJ=no
17496       ;;
17497
17498     newsos6)
17499       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500       hardcode_direct_GCJ=yes
17501       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17502       hardcode_libdir_separator_GCJ=:
17503       hardcode_shlibpath_var_GCJ=no
17504       ;;
17505
17506     openbsd*)
17507       hardcode_direct_GCJ=yes
17508       hardcode_shlibpath_var_GCJ=no
17509       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17510         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17511         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17512         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17513         export_dynamic_flag_spec_GCJ='${wl}-E'
17514       else
17515        case $host_os in
17516          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17517            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17518            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17519            ;;
17520          *)
17521            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17522            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17523            ;;
17524        esac
17525       fi
17526       ;;
17527
17528     os2*)
17529       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17530       hardcode_minus_L_GCJ=yes
17531       allow_undefined_flag_GCJ=unsupported
17532       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'
17533       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17534       ;;
17535
17536     osf3*)
17537       if test "$GCC" = yes; then
17538         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17539         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'
17540       else
17541         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17542         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'
17543       fi
17544       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17545       hardcode_libdir_separator_GCJ=:
17546       ;;
17547
17548     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17549       if test "$GCC" = yes; then
17550         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17551         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'
17552         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17553       else
17554         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17555         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'
17556         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~
17557         $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'
17558
17559         # Both c and cxx compiler support -rpath directly
17560         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17561       fi
17562       hardcode_libdir_separator_GCJ=:
17563       ;;
17564
17565     solaris*)
17566       no_undefined_flag_GCJ=' -z text'
17567       if test "$GCC" = yes; then
17568         wlarc='${wl}'
17569         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17570         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17571           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17572       else
17573         wlarc=''
17574         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17575         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17576         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17577       fi
17578       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17579       hardcode_shlibpath_var_GCJ=no
17580       case $host_os in
17581       solaris2.[0-5] | solaris2.[0-5].*) ;;
17582       *)
17583         # The compiler driver will combine linker options so we
17584         # cannot just pass the convience library names through
17585         # without $wl, iff we do not link with $LD.
17586         # Luckily, gcc supports the same syntax we need for Sun Studio.
17587         # Supported since Solaris 2.6 (maybe 2.5.1?)
17588         case $wlarc in
17589         '')
17590           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17591         *)
17592           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' ;;
17593         esac ;;
17594       esac
17595       link_all_deplibs_GCJ=yes
17596       ;;
17597
17598     sunos4*)
17599       if test "x$host_vendor" = xsequent; then
17600         # Use $CC to link under sequent, because it throws in some extra .o
17601         # files that make .init and .fini sections work.
17602         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17603       else
17604         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17605       fi
17606       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17607       hardcode_direct_GCJ=yes
17608       hardcode_minus_L_GCJ=yes
17609       hardcode_shlibpath_var_GCJ=no
17610       ;;
17611
17612     sysv4)
17613       case $host_vendor in
17614         sni)
17615           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17616           hardcode_direct_GCJ=yes # is this really true???
17617         ;;
17618         siemens)
17619           ## LD is ld it makes a PLAMLIB
17620           ## CC just makes a GrossModule.
17621           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17622           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17623           hardcode_direct_GCJ=no
17624         ;;
17625         motorola)
17626           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17627           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17628         ;;
17629       esac
17630       runpath_var='LD_RUN_PATH'
17631       hardcode_shlibpath_var_GCJ=no
17632       ;;
17633
17634     sysv4.3*)
17635       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17636       hardcode_shlibpath_var_GCJ=no
17637       export_dynamic_flag_spec_GCJ='-Bexport'
17638       ;;
17639
17640     sysv4*MP*)
17641       if test -d /usr/nec; then
17642         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643         hardcode_shlibpath_var_GCJ=no
17644         runpath_var=LD_RUN_PATH
17645         hardcode_runpath_var=yes
17646         ld_shlibs_GCJ=yes
17647       fi
17648       ;;
17649
17650     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17651       no_undefined_flag_GCJ='${wl}-z,text'
17652       archive_cmds_need_lc_GCJ=no
17653       hardcode_shlibpath_var_GCJ=no
17654       runpath_var='LD_RUN_PATH'
17655
17656       if test "$GCC" = yes; then
17657         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17659       else
17660         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17661         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17662       fi
17663       ;;
17664
17665     sysv5* | sco3.2v5* | sco5v6*)
17666       # Note: We can NOT use -z defs as we might desire, because we do not
17667       # link with -lc, and that would cause any symbols used from libc to
17668       # always be unresolved, which means just about no library would
17669       # ever link correctly.  If we're not using GNU ld we use -z text
17670       # though, which does catch some bad symbols but isn't as heavy-handed
17671       # as -z defs.
17672       no_undefined_flag_GCJ='${wl}-z,text'
17673       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17674       archive_cmds_need_lc_GCJ=no
17675       hardcode_shlibpath_var_GCJ=no
17676       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17677       hardcode_libdir_separator_GCJ=':'
17678       link_all_deplibs_GCJ=yes
17679       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17680       runpath_var='LD_RUN_PATH'
17681
17682       if test "$GCC" = yes; then
17683         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17685       else
17686         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17687         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17688       fi
17689       ;;
17690
17691     uts4*)
17692       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17693       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17694       hardcode_shlibpath_var_GCJ=no
17695       ;;
17696
17697     *)
17698       ld_shlibs_GCJ=no
17699       ;;
17700     esac
17701   fi
17702
17703 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17704 $as_echo "$ld_shlibs_GCJ" >&6; }
17705 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17706
17707 #
17708 # Do we need to explicitly link libc?
17709 #
17710 case "x$archive_cmds_need_lc_GCJ" in
17711 x|xyes)
17712   # Assume -lc should be added
17713   archive_cmds_need_lc_GCJ=yes
17714
17715   if test "$enable_shared" = yes && test "$GCC" = yes; then
17716     case $archive_cmds_GCJ in
17717     *'~'*)
17718       # FIXME: we may have to deal with multi-command sequences.
17719       ;;
17720     '$CC '*)
17721       # Test whether the compiler implicitly links with -lc since on some
17722       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17723       # to ld, don't add -lc before -lgcc.
17724       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17725 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17726       $rm conftest*
17727       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17728
17729       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730   (eval $ac_compile) 2>&5
17731   ac_status=$?
17732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); } 2>conftest.err; then
17734         soname=conftest
17735         lib=conftest
17736         libobjs=conftest.$ac_objext
17737         deplibs=
17738         wl=$lt_prog_compiler_wl_GCJ
17739         pic_flag=$lt_prog_compiler_pic_GCJ
17740         compiler_flags=-v
17741         linker_flags=-v
17742         verstring=
17743         output_objdir=.
17744         libname=conftest
17745         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17746         allow_undefined_flag_GCJ=
17747         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17748   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17749   ac_status=$?
17750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }
17752         then
17753           archive_cmds_need_lc_GCJ=no
17754         else
17755           archive_cmds_need_lc_GCJ=yes
17756         fi
17757         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17758       else
17759         cat conftest.err 1>&5
17760       fi
17761       $rm conftest*
17762       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17763 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17764       ;;
17765     esac
17766   fi
17767   ;;
17768 esac
17769
17770 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17771 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17772 library_names_spec=
17773 libname_spec='lib$name'
17774 soname_spec=
17775 shrext_cmds=".so"
17776 postinstall_cmds=
17777 postuninstall_cmds=
17778 finish_cmds=
17779 finish_eval=
17780 shlibpath_var=
17781 shlibpath_overrides_runpath=unknown
17782 version_type=none
17783 dynamic_linker="$host_os ld.so"
17784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17785 if test "$GCC" = yes; then
17786   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17787   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17788     # if the path contains ";" then we assume it to be the separator
17789     # otherwise default to the standard path separator (i.e. ":") - it is
17790     # assumed that no part of a normal pathname contains ";" but that should
17791     # okay in the real world where ";" in dirpaths is itself problematic.
17792     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17793   else
17794     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17795   fi
17796 else
17797   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17798 fi
17799 need_lib_prefix=unknown
17800 hardcode_into_libs=no
17801
17802 # when you set need_version to no, make sure it does not cause -set_version
17803 # flags to be left without arguments
17804 need_version=unknown
17805
17806 case $host_os in
17807 aix3*)
17808   version_type=linux
17809   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17810   shlibpath_var=LIBPATH
17811
17812   # AIX 3 has no versioning support, so we append a major version to the name.
17813   soname_spec='${libname}${release}${shared_ext}$major'
17814   ;;
17815
17816 aix4* | aix5*)
17817   version_type=linux
17818   need_lib_prefix=no
17819   need_version=no
17820   hardcode_into_libs=yes
17821   if test "$host_cpu" = ia64; then
17822     # AIX 5 supports IA64
17823     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17824     shlibpath_var=LD_LIBRARY_PATH
17825   else
17826     # With GCC up to 2.95.x, collect2 would create an import file
17827     # for dependence libraries.  The import file would start with
17828     # the line `#! .'.  This would cause the generated library to
17829     # depend on `.', always an invalid library.  This was fixed in
17830     # development snapshots of GCC prior to 3.0.
17831     case $host_os in
17832       aix4 | aix4.[01] | aix4.[01].*)
17833       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17834            echo ' yes '
17835            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17836         :
17837       else
17838         can_build_shared=no
17839       fi
17840       ;;
17841     esac
17842     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17843     # soname into executable. Probably we can add versioning support to
17844     # collect2, so additional links can be useful in future.
17845     if test "$aix_use_runtimelinking" = yes; then
17846       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17847       # instead of lib<name>.a to let people know that these are not
17848       # typical AIX shared libraries.
17849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850     else
17851       # We preserve .a as extension for shared libraries through AIX4.2
17852       # and later when we are not doing run time linking.
17853       library_names_spec='${libname}${release}.a $libname.a'
17854       soname_spec='${libname}${release}${shared_ext}$major'
17855     fi
17856     shlibpath_var=LIBPATH
17857   fi
17858   ;;
17859
17860 amigaos*)
17861   library_names_spec='$libname.ixlibrary $libname.a'
17862   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17863   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'
17864   ;;
17865
17866 beos*)
17867   library_names_spec='${libname}${shared_ext}'
17868   dynamic_linker="$host_os ld.so"
17869   shlibpath_var=LIBRARY_PATH
17870   ;;
17871
17872 bsdi[45]*)
17873   version_type=linux
17874   need_version=no
17875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876   soname_spec='${libname}${release}${shared_ext}$major'
17877   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17878   shlibpath_var=LD_LIBRARY_PATH
17879   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17880   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17881   # the default ld.so.conf also contains /usr/contrib/lib and
17882   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17883   # libtool to hard-code these into programs
17884   ;;
17885
17886 cygwin* | mingw* | pw32*)
17887   version_type=windows
17888   shrext_cmds=".dll"
17889   need_version=no
17890   need_lib_prefix=no
17891
17892   case $GCC,$host_os in
17893   yes,cygwin* | yes,mingw* | yes,pw32*)
17894     library_names_spec='$libname.dll.a'
17895     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17896     postinstall_cmds='base_file=`basename \${file}`~
17897       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17898       dldir=$destdir/`dirname \$dlpath`~
17899       test -d \$dldir || mkdir -p \$dldir~
17900       $install_prog $dir/$dlname \$dldir/$dlname~
17901       chmod a+x \$dldir/$dlname'
17902     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17903       dlpath=$dir/\$dldll~
17904        $rm \$dlpath'
17905     shlibpath_overrides_runpath=yes
17906
17907     case $host_os in
17908     cygwin*)
17909       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17910       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17911       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17912       ;;
17913     mingw*)
17914       # MinGW DLLs use traditional 'lib' prefix
17915       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17916       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17917       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17918         # It is most probably a Windows format PATH printed by
17919         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17920         # path with ; separators, and with drive letters. We can handle the
17921         # drive letters (cygwin fileutils understands them), so leave them,
17922         # especially as we might pass files found there to a mingw objdump,
17923         # which wouldn't understand a cygwinified path. Ahh.
17924         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17925       else
17926         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17927       fi
17928       ;;
17929     pw32*)
17930       # pw32 DLLs use 'pw' prefix rather than 'lib'
17931       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17932       ;;
17933     esac
17934     ;;
17935
17936   *)
17937     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17938     ;;
17939   esac
17940   dynamic_linker='Win32 ld.exe'
17941   # FIXME: first we should search . and the directory the executable is in
17942   shlibpath_var=PATH
17943   ;;
17944
17945 darwin* | rhapsody*)
17946   dynamic_linker="$host_os dyld"
17947   version_type=darwin
17948   need_lib_prefix=no
17949   need_version=no
17950   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17951   soname_spec='${libname}${release}${major}$shared_ext'
17952   shlibpath_overrides_runpath=yes
17953   shlibpath_var=DYLD_LIBRARY_PATH
17954   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17955   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17956   if test "$GCC" = yes; then
17957     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"`
17958   else
17959     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17960   fi
17961   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17962   ;;
17963
17964 dgux*)
17965   version_type=linux
17966   need_lib_prefix=no
17967   need_version=no
17968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17969   soname_spec='${libname}${release}${shared_ext}$major'
17970   shlibpath_var=LD_LIBRARY_PATH
17971   ;;
17972
17973 freebsd1*)
17974   dynamic_linker=no
17975   ;;
17976
17977 kfreebsd*-gnu)
17978   version_type=linux
17979   need_lib_prefix=no
17980   need_version=no
17981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982   soname_spec='${libname}${release}${shared_ext}$major'
17983   shlibpath_var=LD_LIBRARY_PATH
17984   shlibpath_overrides_runpath=no
17985   hardcode_into_libs=yes
17986   dynamic_linker='GNU ld.so'
17987   ;;
17988
17989 freebsd* | dragonfly*)
17990   # DragonFly does not have aout.  When/if they implement a new
17991   # versioning mechanism, adjust this.
17992   if test -x /usr/bin/objformat; then
17993     objformat=`/usr/bin/objformat`
17994   else
17995     case $host_os in
17996     freebsd[123]*) objformat=aout ;;
17997     *) objformat=elf ;;
17998     esac
17999   fi
18000   version_type=freebsd-$objformat
18001   case $version_type in
18002     freebsd-elf*)
18003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18004       need_version=no
18005       need_lib_prefix=no
18006       ;;
18007     freebsd-*)
18008       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18009       need_version=yes
18010       ;;
18011   esac
18012   shlibpath_var=LD_LIBRARY_PATH
18013   case $host_os in
18014   freebsd2*)
18015     shlibpath_overrides_runpath=yes
18016     ;;
18017   freebsd3.[01]* | freebsdelf3.[01]*)
18018     shlibpath_overrides_runpath=yes
18019     hardcode_into_libs=yes
18020     ;;
18021   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18022   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18023     shlibpath_overrides_runpath=no
18024     hardcode_into_libs=yes
18025     ;;
18026   freebsd*) # from 4.6 on
18027     shlibpath_overrides_runpath=yes
18028     hardcode_into_libs=yes
18029     ;;
18030   esac
18031   ;;
18032
18033 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   hardcode_into_libs=yes
18041   ;;
18042
18043 hpux9* | hpux10* | hpux11*)
18044   # Give a soname corresponding to the major version so that dld.sl refuses to
18045   # link against other versions.
18046   version_type=sunos
18047   need_lib_prefix=no
18048   need_version=no
18049   case $host_cpu in
18050   ia64*)
18051     shrext_cmds='.so'
18052     hardcode_into_libs=yes
18053     dynamic_linker="$host_os dld.so"
18054     shlibpath_var=LD_LIBRARY_PATH
18055     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057     soname_spec='${libname}${release}${shared_ext}$major'
18058     if test "X$HPUX_IA64_MODE" = X32; then
18059       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18060     else
18061       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18062     fi
18063     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18064     ;;
18065    hppa*64*)
18066      shrext_cmds='.sl'
18067      hardcode_into_libs=yes
18068      dynamic_linker="$host_os dld.sl"
18069      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18070      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18071      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072      soname_spec='${libname}${release}${shared_ext}$major'
18073      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18074      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18075      ;;
18076    *)
18077     shrext_cmds='.sl'
18078     dynamic_linker="$host_os dld.sl"
18079     shlibpath_var=SHLIB_PATH
18080     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082     soname_spec='${libname}${release}${shared_ext}$major'
18083     ;;
18084   esac
18085   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18086   postinstall_cmds='chmod 555 $lib'
18087   ;;
18088
18089 interix3*)
18090   version_type=linux
18091   need_lib_prefix=no
18092   need_version=no
18093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18094   soname_spec='${libname}${release}${shared_ext}$major'
18095   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18096   shlibpath_var=LD_LIBRARY_PATH
18097   shlibpath_overrides_runpath=no
18098   hardcode_into_libs=yes
18099   ;;
18100
18101 irix5* | irix6* | nonstopux*)
18102   case $host_os in
18103     nonstopux*) version_type=nonstopux ;;
18104     *)
18105         if test "$lt_cv_prog_gnu_ld" = yes; then
18106                 version_type=linux
18107         else
18108                 version_type=irix
18109         fi ;;
18110   esac
18111   need_lib_prefix=no
18112   need_version=no
18113   soname_spec='${libname}${release}${shared_ext}$major'
18114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18115   case $host_os in
18116   irix5* | nonstopux*)
18117     libsuff= shlibsuff=
18118     ;;
18119   *)
18120     case $LD in # libtool.m4 will add one of these switches to LD
18121     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18122       libsuff= shlibsuff= libmagic=32-bit;;
18123     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18124       libsuff=32 shlibsuff=N32 libmagic=N32;;
18125     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18126       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18127     *) libsuff= shlibsuff= libmagic=never-match;;
18128     esac
18129     ;;
18130   esac
18131   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18132   shlibpath_overrides_runpath=no
18133   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18134   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18135   hardcode_into_libs=yes
18136   ;;
18137
18138 # No shared lib support for Linux oldld, aout, or coff.
18139 linux*oldld* | linux*aout* | linux*coff*)
18140   dynamic_linker=no
18141   ;;
18142
18143 # This must be Linux ELF.
18144 linux*)
18145   version_type=linux
18146   need_lib_prefix=no
18147   need_version=no
18148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149   soname_spec='${libname}${release}${shared_ext}$major'
18150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18151   shlibpath_var=LD_LIBRARY_PATH
18152   shlibpath_overrides_runpath=no
18153   # This implies no fast_install, which is unacceptable.
18154   # Some rework will be needed to allow for fast_install
18155   # before this can be enabled.
18156   hardcode_into_libs=yes
18157
18158   # find out which ABI we are using
18159   libsuff=
18160   case "$host_cpu" in
18161   x86_64*|s390x*|powerpc64*)
18162     echo '#line 18162 "configure"' > conftest.$ac_ext
18163     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164   (eval $ac_compile) 2>&5
18165   ac_status=$?
18166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167   (exit $ac_status); }; then
18168       case `/usr/bin/file conftest.$ac_objext` in
18169       *64-bit*)
18170         libsuff=64
18171         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18172         ;;
18173       esac
18174     fi
18175     rm -rf conftest*
18176     ;;
18177   esac
18178
18179   # Append ld.so.conf contents to the search path
18180   if test -f /etc/ld.so.conf; then
18181     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18182     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18183   fi
18184
18185   # We used to test for /lib/ld.so.1 and disable shared libraries on
18186   # powerpc, because MkLinux only supported shared libraries with the
18187   # GNU dynamic linker.  Since this was broken with cross compilers,
18188   # most powerpc-linux boxes support dynamic linking these days and
18189   # people can always --disable-shared, the test was removed, and we
18190   # assume the GNU/Linux dynamic linker is in use.
18191   dynamic_linker='GNU/Linux ld.so'
18192   ;;
18193
18194 knetbsd*-gnu)
18195   version_type=linux
18196   need_lib_prefix=no
18197   need_version=no
18198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18199   soname_spec='${libname}${release}${shared_ext}$major'
18200   shlibpath_var=LD_LIBRARY_PATH
18201   shlibpath_overrides_runpath=no
18202   hardcode_into_libs=yes
18203   dynamic_linker='GNU ld.so'
18204   ;;
18205
18206 netbsd*)
18207   version_type=sunos
18208   need_lib_prefix=no
18209   need_version=no
18210   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18212     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18213     dynamic_linker='NetBSD (a.out) ld.so'
18214   else
18215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18216     soname_spec='${libname}${release}${shared_ext}$major'
18217     dynamic_linker='NetBSD ld.elf_so'
18218   fi
18219   shlibpath_var=LD_LIBRARY_PATH
18220   shlibpath_overrides_runpath=yes
18221   hardcode_into_libs=yes
18222   ;;
18223
18224 newsos6)
18225   version_type=linux
18226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227   shlibpath_var=LD_LIBRARY_PATH
18228   shlibpath_overrides_runpath=yes
18229   ;;
18230
18231 nto-qnx*)
18232   version_type=linux
18233   need_lib_prefix=no
18234   need_version=no
18235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18236   soname_spec='${libname}${release}${shared_ext}$major'
18237   shlibpath_var=LD_LIBRARY_PATH
18238   shlibpath_overrides_runpath=yes
18239   ;;
18240
18241 openbsd*)
18242   version_type=sunos
18243   sys_lib_dlsearch_path_spec="/usr/lib"
18244   need_lib_prefix=no
18245   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18246   case $host_os in
18247     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18248     *)                         need_version=no  ;;
18249   esac
18250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18252   shlibpath_var=LD_LIBRARY_PATH
18253   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18254     case $host_os in
18255       openbsd2.[89] | openbsd2.[89].*)
18256         shlibpath_overrides_runpath=no
18257         ;;
18258       *)
18259         shlibpath_overrides_runpath=yes
18260         ;;
18261       esac
18262   else
18263     shlibpath_overrides_runpath=yes
18264   fi
18265   ;;
18266
18267 os2*)
18268   libname_spec='$name'
18269   shrext_cmds=".dll"
18270   need_lib_prefix=no
18271   library_names_spec='$libname${shared_ext} $libname.a'
18272   dynamic_linker='OS/2 ld.exe'
18273   shlibpath_var=LIBPATH
18274   ;;
18275
18276 osf3* | osf4* | osf5*)
18277   version_type=osf
18278   need_lib_prefix=no
18279   need_version=no
18280   soname_spec='${libname}${release}${shared_ext}$major'
18281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282   shlibpath_var=LD_LIBRARY_PATH
18283   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18284   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18285   ;;
18286
18287 solaris*)
18288   version_type=linux
18289   need_lib_prefix=no
18290   need_version=no
18291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292   soname_spec='${libname}${release}${shared_ext}$major'
18293   shlibpath_var=LD_LIBRARY_PATH
18294   shlibpath_overrides_runpath=yes
18295   hardcode_into_libs=yes
18296   # ldd complains unless libraries are executable
18297   postinstall_cmds='chmod +x $lib'
18298   ;;
18299
18300 sunos4*)
18301   version_type=sunos
18302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18303   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18304   shlibpath_var=LD_LIBRARY_PATH
18305   shlibpath_overrides_runpath=yes
18306   if test "$with_gnu_ld" = yes; then
18307     need_lib_prefix=no
18308   fi
18309   need_version=yes
18310   ;;
18311
18312 sysv4 | sysv4.3*)
18313   version_type=linux
18314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315   soname_spec='${libname}${release}${shared_ext}$major'
18316   shlibpath_var=LD_LIBRARY_PATH
18317   case $host_vendor in
18318     sni)
18319       shlibpath_overrides_runpath=no
18320       need_lib_prefix=no
18321       export_dynamic_flag_spec='${wl}-Blargedynsym'
18322       runpath_var=LD_RUN_PATH
18323       ;;
18324     siemens)
18325       need_lib_prefix=no
18326       ;;
18327     motorola)
18328       need_lib_prefix=no
18329       need_version=no
18330       shlibpath_overrides_runpath=no
18331       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18332       ;;
18333   esac
18334   ;;
18335
18336 sysv4*MP*)
18337   if test -d /usr/nec ;then
18338     version_type=linux
18339     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18340     soname_spec='$libname${shared_ext}.$major'
18341     shlibpath_var=LD_LIBRARY_PATH
18342   fi
18343   ;;
18344
18345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18346   version_type=freebsd-elf
18347   need_lib_prefix=no
18348   need_version=no
18349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18350   soname_spec='${libname}${release}${shared_ext}$major'
18351   shlibpath_var=LD_LIBRARY_PATH
18352   hardcode_into_libs=yes
18353   if test "$with_gnu_ld" = yes; then
18354     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18355     shlibpath_overrides_runpath=no
18356   else
18357     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18358     shlibpath_overrides_runpath=yes
18359     case $host_os in
18360       sco3.2v5*)
18361         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18362         ;;
18363     esac
18364   fi
18365   sys_lib_dlsearch_path_spec='/usr/lib'
18366   ;;
18367
18368 uts4*)
18369   version_type=linux
18370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371   soname_spec='${libname}${release}${shared_ext}$major'
18372   shlibpath_var=LD_LIBRARY_PATH
18373   ;;
18374
18375 *)
18376   dynamic_linker=no
18377   ;;
18378 esac
18379 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18380 $as_echo "$dynamic_linker" >&6; }
18381 test "$dynamic_linker" = no && can_build_shared=no
18382
18383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18384 if test "$GCC" = yes; then
18385   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18386 fi
18387
18388 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18390 hardcode_action_GCJ=
18391 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18392    test -n "$runpath_var_GCJ" || \
18393    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18394
18395   # We can hardcode non-existant directories.
18396   if test "$hardcode_direct_GCJ" != no &&
18397      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18398      # have to relink, otherwise we might link with an installed library
18399      # when we should be linking with a yet-to-be-installed one
18400      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18401      test "$hardcode_minus_L_GCJ" != no; then
18402     # Linking always hardcodes the temporary library directory.
18403     hardcode_action_GCJ=relink
18404   else
18405     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18406     hardcode_action_GCJ=immediate
18407   fi
18408 else
18409   # We cannot hardcode anything, or else we can only hardcode existing
18410   # directories.
18411   hardcode_action_GCJ=unsupported
18412 fi
18413 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18414 $as_echo "$hardcode_action_GCJ" >&6; }
18415
18416 if test "$hardcode_action_GCJ" = relink; then
18417   # Fast installation is not supported
18418   enable_fast_install=no
18419 elif test "$shlibpath_overrides_runpath" = yes ||
18420      test "$enable_shared" = no; then
18421   # Fast installation is not necessary
18422   enable_fast_install=needless
18423 fi
18424
18425
18426 # The else clause should only fire when bootstrapping the
18427 # libtool distribution, otherwise you forgot to ship ltmain.sh
18428 # with your package, and you will get complaints that there are
18429 # no rules to generate ltmain.sh.
18430 if test -f "$ltmain"; then
18431   # See if we are running on zsh, and set the options which allow our commands through
18432   # without removal of \ escapes.
18433   if test -n "${ZSH_VERSION+set}" ; then
18434     setopt NO_GLOB_SUBST
18435   fi
18436   # Now quote all the things that may contain metacharacters while being
18437   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18438   # variables and quote the copies for generation of the libtool script.
18439   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18440     SED SHELL STRIP \
18441     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18442     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18443     deplibs_check_method reload_flag reload_cmds need_locks \
18444     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18445     lt_cv_sys_global_symbol_to_c_name_address \
18446     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18447     old_postinstall_cmds old_postuninstall_cmds \
18448     compiler_GCJ \
18449     CC_GCJ \
18450     LD_GCJ \
18451     lt_prog_compiler_wl_GCJ \
18452     lt_prog_compiler_pic_GCJ \
18453     lt_prog_compiler_static_GCJ \
18454     lt_prog_compiler_no_builtin_flag_GCJ \
18455     export_dynamic_flag_spec_GCJ \
18456     thread_safe_flag_spec_GCJ \
18457     whole_archive_flag_spec_GCJ \
18458     enable_shared_with_static_runtimes_GCJ \
18459     old_archive_cmds_GCJ \
18460     old_archive_from_new_cmds_GCJ \
18461     predep_objects_GCJ \
18462     postdep_objects_GCJ \
18463     predeps_GCJ \
18464     postdeps_GCJ \
18465     compiler_lib_search_path_GCJ \
18466     archive_cmds_GCJ \
18467     archive_expsym_cmds_GCJ \
18468     postinstall_cmds_GCJ \
18469     postuninstall_cmds_GCJ \
18470     old_archive_from_expsyms_cmds_GCJ \
18471     allow_undefined_flag_GCJ \
18472     no_undefined_flag_GCJ \
18473     export_symbols_cmds_GCJ \
18474     hardcode_libdir_flag_spec_GCJ \
18475     hardcode_libdir_flag_spec_ld_GCJ \
18476     hardcode_libdir_separator_GCJ \
18477     hardcode_automatic_GCJ \
18478     module_cmds_GCJ \
18479     module_expsym_cmds_GCJ \
18480     lt_cv_prog_compiler_c_o_GCJ \
18481     exclude_expsyms_GCJ \
18482     include_expsyms_GCJ; do
18483
18484     case $var in
18485     old_archive_cmds_GCJ | \
18486     old_archive_from_new_cmds_GCJ | \
18487     archive_cmds_GCJ | \
18488     archive_expsym_cmds_GCJ | \
18489     module_cmds_GCJ | \
18490     module_expsym_cmds_GCJ | \
18491     old_archive_from_expsyms_cmds_GCJ | \
18492     export_symbols_cmds_GCJ | \
18493     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18494     postinstall_cmds | postuninstall_cmds | \
18495     old_postinstall_cmds | old_postuninstall_cmds | \
18496     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18497       # Double-quote double-evaled strings.
18498       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18499       ;;
18500     *)
18501       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18502       ;;
18503     esac
18504   done
18505
18506   case $lt_echo in
18507   *'\$0 --fallback-echo"')
18508     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18509     ;;
18510   esac
18511
18512 cfgfile="$ofile"
18513
18514   cat <<__EOF__ >> "$cfgfile"
18515 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18516
18517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18518
18519 # Shell to use when invoking shell scripts.
18520 SHELL=$lt_SHELL
18521
18522 # Whether or not to build shared libraries.
18523 build_libtool_libs=$enable_shared
18524
18525 # Whether or not to build static libraries.
18526 build_old_libs=$enable_static
18527
18528 # Whether or not to add -lc for building shared libraries.
18529 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18530
18531 # Whether or not to disallow shared libs when runtime libs are static
18532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18533
18534 # Whether or not to optimize for fast installation.
18535 fast_install=$enable_fast_install
18536
18537 # The host system.
18538 host_alias=$host_alias
18539 host=$host
18540 host_os=$host_os
18541
18542 # The build system.
18543 build_alias=$build_alias
18544 build=$build
18545 build_os=$build_os
18546
18547 # An echo program that does not interpret backslashes.
18548 echo=$lt_echo
18549
18550 # The archiver.
18551 AR=$lt_AR
18552 AR_FLAGS=$lt_AR_FLAGS
18553
18554 # A C compiler.
18555 LTCC=$lt_LTCC
18556
18557 # LTCC compiler flags.
18558 LTCFLAGS=$lt_LTCFLAGS
18559
18560 # A language-specific compiler.
18561 CC=$lt_compiler_GCJ
18562
18563 # Is the compiler the GNU C compiler?
18564 with_gcc=$GCC_GCJ
18565
18566 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18567 gcc_ver=\`gcc -dumpversion\`
18568
18569 # An ERE matcher.
18570 EGREP=$lt_EGREP
18571
18572 # The linker used to build libraries.
18573 LD=$lt_LD_GCJ
18574
18575 # Whether we need hard or soft links.
18576 LN_S=$lt_LN_S
18577
18578 # A BSD-compatible nm program.
18579 NM=$lt_NM
18580
18581 # A symbol stripping program
18582 STRIP=$lt_STRIP
18583
18584 # Used to examine libraries when file_magic_cmd begins "file"
18585 MAGIC_CMD=$MAGIC_CMD
18586
18587 # Used on cygwin: DLL creation program.
18588 DLLTOOL="$DLLTOOL"
18589
18590 # Used on cygwin: object dumper.
18591 OBJDUMP="$OBJDUMP"
18592
18593 # Used on cygwin: assembler.
18594 AS="$AS"
18595
18596 # The name of the directory that contains temporary libtool files.
18597 objdir=$objdir
18598
18599 # How to create reloadable object files.
18600 reload_flag=$lt_reload_flag
18601 reload_cmds=$lt_reload_cmds
18602
18603 # How to pass a linker flag through the compiler.
18604 wl=$lt_lt_prog_compiler_wl_GCJ
18605
18606 # Object file suffix (normally "o").
18607 objext="$ac_objext"
18608
18609 # Old archive suffix (normally "a").
18610 libext="$libext"
18611
18612 # Shared library suffix (normally ".so").
18613 shrext_cmds='$shrext_cmds'
18614
18615 # Executable file suffix (normally "").
18616 exeext="$exeext"
18617
18618 # Additional compiler flags for building library objects.
18619 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18620 pic_mode=$pic_mode
18621
18622 # What is the maximum length of a command?
18623 max_cmd_len=$lt_cv_sys_max_cmd_len
18624
18625 # Does compiler simultaneously support -c and -o options?
18626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18627
18628 # Must we lock files when doing compilation?
18629 need_locks=$lt_need_locks
18630
18631 # Do we need the lib prefix for modules?
18632 need_lib_prefix=$need_lib_prefix
18633
18634 # Do we need a version for libraries?
18635 need_version=$need_version
18636
18637 # Whether dlopen is supported.
18638 dlopen_support=$enable_dlopen
18639
18640 # Whether dlopen of programs is supported.
18641 dlopen_self=$enable_dlopen_self
18642
18643 # Whether dlopen of statically linked programs is supported.
18644 dlopen_self_static=$enable_dlopen_self_static
18645
18646 # Compiler flag to prevent dynamic linking.
18647 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18648
18649 # Compiler flag to turn off builtin functions.
18650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18651
18652 # Compiler flag to allow reflexive dlopens.
18653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18654
18655 # Compiler flag to generate shared objects directly from archives.
18656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18657
18658 # Compiler flag to generate thread-safe objects.
18659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18660
18661 # Library versioning type.
18662 version_type=$version_type
18663
18664 # Format of library name prefix.
18665 libname_spec=$lt_libname_spec
18666
18667 # List of archive names.  First name is the real one, the rest are links.
18668 # The last name is the one that the linker finds with -lNAME.
18669 library_names_spec=$lt_library_names_spec
18670
18671 # The coded name of the library, if different from the real name.
18672 soname_spec=$lt_soname_spec
18673
18674 # Commands used to build and install an old-style archive.
18675 RANLIB=$lt_RANLIB
18676 old_archive_cmds=$lt_old_archive_cmds_GCJ
18677 old_postinstall_cmds=$lt_old_postinstall_cmds
18678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18679
18680 # Create an old-style archive from a shared archive.
18681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18682
18683 # Create a temporary old-style archive to link instead of a shared archive.
18684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18685
18686 # Commands used to build and install a shared archive.
18687 archive_cmds=$lt_archive_cmds_GCJ
18688 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18689 postinstall_cmds=$lt_postinstall_cmds
18690 postuninstall_cmds=$lt_postuninstall_cmds
18691
18692 # Commands used to build a loadable module (assumed same as above if empty)
18693 module_cmds=$lt_module_cmds_GCJ
18694 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18695
18696 # Commands to strip libraries.
18697 old_striplib=$lt_old_striplib
18698 striplib=$lt_striplib
18699
18700 # Dependencies to place before the objects being linked to create a
18701 # shared library.
18702 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18703
18704 # Dependencies to place after the objects being linked to create a
18705 # shared library.
18706 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18707
18708 # Dependencies to place before the objects being linked to create a
18709 # shared library.
18710 predeps=$lt_predeps_GCJ
18711
18712 # Dependencies to place after the objects being linked to create a
18713 # shared library.
18714 postdeps=$lt_postdeps_GCJ
18715
18716 # The library search path used internally by the compiler when linking
18717 # a shared library.
18718 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"\`
18719
18720 # Method to check whether dependent libraries are shared objects.
18721 deplibs_check_method=$lt_deplibs_check_method
18722
18723 # Command to use when deplibs_check_method == file_magic.
18724 file_magic_cmd=$lt_file_magic_cmd
18725
18726 # Flag that allows shared libraries with undefined symbols to be built.
18727 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18728
18729 # Flag that forces no undefined symbols.
18730 no_undefined_flag=$lt_no_undefined_flag_GCJ
18731
18732 # Commands used to finish a libtool library installation in a directory.
18733 finish_cmds=$lt_finish_cmds
18734
18735 # Same as above, but a single script fragment to be evaled but not shown.
18736 finish_eval=$lt_finish_eval
18737
18738 # Take the output of nm and produce a listing of raw symbols and C names.
18739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18740
18741 # Transform the output of nm in a proper C declaration
18742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18743
18744 # Transform the output of nm in a C name address pair
18745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18746
18747 # This is the shared library runtime path variable.
18748 runpath_var=$runpath_var
18749
18750 # This is the shared library path variable.
18751 shlibpath_var=$shlibpath_var
18752
18753 # Is shlibpath searched before the hard-coded library search path?
18754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18755
18756 # How to hardcode a shared library path into an executable.
18757 hardcode_action=$hardcode_action_GCJ
18758
18759 # Whether we should hardcode library paths into libraries.
18760 hardcode_into_libs=$hardcode_into_libs
18761
18762 # Flag to hardcode \$libdir into a binary during linking.
18763 # This must work even if \$libdir does not exist.
18764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18765
18766 # If ld is used when linking, flag to hardcode \$libdir into
18767 # a binary during linking. This must work even if \$libdir does
18768 # not exist.
18769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18770
18771 # Whether we need a single -rpath flag with a separated argument.
18772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18773
18774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18775 # resulting binary.
18776 hardcode_direct=$hardcode_direct_GCJ
18777
18778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18779 # resulting binary.
18780 hardcode_minus_L=$hardcode_minus_L_GCJ
18781
18782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18783 # the resulting binary.
18784 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18785
18786 # Set to yes if building a shared library automatically hardcodes DIR into the library
18787 # and all subsequent libraries and executables linked against it.
18788 hardcode_automatic=$hardcode_automatic_GCJ
18789
18790 # Variables whose values should be saved in libtool wrapper scripts and
18791 # restored at relink time.
18792 variables_saved_for_relink="$variables_saved_for_relink"
18793
18794 # Whether libtool must link a program against all its dependency libraries.
18795 link_all_deplibs=$link_all_deplibs_GCJ
18796
18797 # Compile-time system search path for libraries
18798 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"\`
18799
18800 # Run-time system search path for libraries
18801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18802
18803 # Fix the shell variable \$srcfile for the compiler.
18804 fix_srcfile_path="$fix_srcfile_path_GCJ"
18805
18806 # Set to yes if exported symbols are required.
18807 always_export_symbols=$always_export_symbols_GCJ
18808
18809 # The commands to list exported symbols.
18810 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18811
18812 # The commands to extract the exported symbol list from a shared archive.
18813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18814
18815 # Symbols that should not be listed in the preloaded symbols.
18816 exclude_expsyms=$lt_exclude_expsyms_GCJ
18817
18818 # Symbols that must always be exported.
18819 include_expsyms=$lt_include_expsyms_GCJ
18820
18821 # ### END LIBTOOL TAG CONFIG: $tagname
18822
18823 __EOF__
18824
18825
18826 else
18827   # If there is no Makefile yet, we rely on a make rule to execute
18828   # `config.status --recheck' to rerun these tests and create the
18829   # libtool script then.
18830   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18831   if test -f "$ltmain_in"; then
18832     test -f Makefile && make "$ltmain"
18833   fi
18834 fi
18835
18836
18837 ac_ext=c
18838 ac_cpp='$CPP $CPPFLAGS'
18839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18842
18843 CC="$lt_save_CC"
18844
18845         else
18846           tagname=""
18847         fi
18848         ;;
18849
18850       RC)
18851
18852
18853 # Source file extension for RC test sources.
18854 ac_ext=rc
18855
18856 # Object file extension for compiled RC test sources.
18857 objext=o
18858 objext_RC=$objext
18859
18860 # Code to be used in simple compile tests
18861 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18862
18863 # Code to be used in simple link tests
18864 lt_simple_link_test_code="$lt_simple_compile_test_code"
18865
18866 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18867
18868 # If no C compiler was specified, use CC.
18869 LTCC=${LTCC-"$CC"}
18870
18871 # If no C compiler flags were specified, use CFLAGS.
18872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18873
18874 # Allow CC to be a program name with arguments.
18875 compiler=$CC
18876
18877
18878 # save warnings/boilerplate of simple test code
18879 ac_outfile=conftest.$ac_objext
18880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18882 _lt_compiler_boilerplate=`cat conftest.err`
18883 $rm conftest*
18884
18885 ac_outfile=conftest.$ac_objext
18886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18888 _lt_linker_boilerplate=`cat conftest.err`
18889 $rm conftest*
18890
18891
18892 # Allow CC to be a program name with arguments.
18893 lt_save_CC="$CC"
18894 CC=${RC-"windres"}
18895 compiler=$CC
18896 compiler_RC=$CC
18897 for cc_temp in $compiler""; do
18898   case $cc_temp in
18899     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18900     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18901     \-*) ;;
18902     *) break;;
18903   esac
18904 done
18905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18906
18907 lt_cv_prog_compiler_c_o_RC=yes
18908
18909 # The else clause should only fire when bootstrapping the
18910 # libtool distribution, otherwise you forgot to ship ltmain.sh
18911 # with your package, and you will get complaints that there are
18912 # no rules to generate ltmain.sh.
18913 if test -f "$ltmain"; then
18914   # See if we are running on zsh, and set the options which allow our commands through
18915   # without removal of \ escapes.
18916   if test -n "${ZSH_VERSION+set}" ; then
18917     setopt NO_GLOB_SUBST
18918   fi
18919   # Now quote all the things that may contain metacharacters while being
18920   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18921   # variables and quote the copies for generation of the libtool script.
18922   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18923     SED SHELL STRIP \
18924     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18925     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18926     deplibs_check_method reload_flag reload_cmds need_locks \
18927     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18928     lt_cv_sys_global_symbol_to_c_name_address \
18929     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18930     old_postinstall_cmds old_postuninstall_cmds \
18931     compiler_RC \
18932     CC_RC \
18933     LD_RC \
18934     lt_prog_compiler_wl_RC \
18935     lt_prog_compiler_pic_RC \
18936     lt_prog_compiler_static_RC \
18937     lt_prog_compiler_no_builtin_flag_RC \
18938     export_dynamic_flag_spec_RC \
18939     thread_safe_flag_spec_RC \
18940     whole_archive_flag_spec_RC \
18941     enable_shared_with_static_runtimes_RC \
18942     old_archive_cmds_RC \
18943     old_archive_from_new_cmds_RC \
18944     predep_objects_RC \
18945     postdep_objects_RC \
18946     predeps_RC \
18947     postdeps_RC \
18948     compiler_lib_search_path_RC \
18949     archive_cmds_RC \
18950     archive_expsym_cmds_RC \
18951     postinstall_cmds_RC \
18952     postuninstall_cmds_RC \
18953     old_archive_from_expsyms_cmds_RC \
18954     allow_undefined_flag_RC \
18955     no_undefined_flag_RC \
18956     export_symbols_cmds_RC \
18957     hardcode_libdir_flag_spec_RC \
18958     hardcode_libdir_flag_spec_ld_RC \
18959     hardcode_libdir_separator_RC \
18960     hardcode_automatic_RC \
18961     module_cmds_RC \
18962     module_expsym_cmds_RC \
18963     lt_cv_prog_compiler_c_o_RC \
18964     exclude_expsyms_RC \
18965     include_expsyms_RC; do
18966
18967     case $var in
18968     old_archive_cmds_RC | \
18969     old_archive_from_new_cmds_RC | \
18970     archive_cmds_RC | \
18971     archive_expsym_cmds_RC | \
18972     module_cmds_RC | \
18973     module_expsym_cmds_RC | \
18974     old_archive_from_expsyms_cmds_RC | \
18975     export_symbols_cmds_RC | \
18976     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18977     postinstall_cmds | postuninstall_cmds | \
18978     old_postinstall_cmds | old_postuninstall_cmds | \
18979     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18980       # Double-quote double-evaled strings.
18981       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18982       ;;
18983     *)
18984       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18985       ;;
18986     esac
18987   done
18988
18989   case $lt_echo in
18990   *'\$0 --fallback-echo"')
18991     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18992     ;;
18993   esac
18994
18995 cfgfile="$ofile"
18996
18997   cat <<__EOF__ >> "$cfgfile"
18998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18999
19000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19001
19002 # Shell to use when invoking shell scripts.
19003 SHELL=$lt_SHELL
19004
19005 # Whether or not to build shared libraries.
19006 build_libtool_libs=$enable_shared
19007
19008 # Whether or not to build static libraries.
19009 build_old_libs=$enable_static
19010
19011 # Whether or not to add -lc for building shared libraries.
19012 build_libtool_need_lc=$archive_cmds_need_lc_RC
19013
19014 # Whether or not to disallow shared libs when runtime libs are static
19015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19016
19017 # Whether or not to optimize for fast installation.
19018 fast_install=$enable_fast_install
19019
19020 # The host system.
19021 host_alias=$host_alias
19022 host=$host
19023 host_os=$host_os
19024
19025 # The build system.
19026 build_alias=$build_alias
19027 build=$build
19028 build_os=$build_os
19029
19030 # An echo program that does not interpret backslashes.
19031 echo=$lt_echo
19032
19033 # The archiver.
19034 AR=$lt_AR
19035 AR_FLAGS=$lt_AR_FLAGS
19036
19037 # A C compiler.
19038 LTCC=$lt_LTCC
19039
19040 # LTCC compiler flags.
19041 LTCFLAGS=$lt_LTCFLAGS
19042
19043 # A language-specific compiler.
19044 CC=$lt_compiler_RC
19045
19046 # Is the compiler the GNU C compiler?
19047 with_gcc=$GCC_RC
19048
19049 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19050 gcc_ver=\`gcc -dumpversion\`
19051
19052 # An ERE matcher.
19053 EGREP=$lt_EGREP
19054
19055 # The linker used to build libraries.
19056 LD=$lt_LD_RC
19057
19058 # Whether we need hard or soft links.
19059 LN_S=$lt_LN_S
19060
19061 # A BSD-compatible nm program.
19062 NM=$lt_NM
19063
19064 # A symbol stripping program
19065 STRIP=$lt_STRIP
19066
19067 # Used to examine libraries when file_magic_cmd begins "file"
19068 MAGIC_CMD=$MAGIC_CMD
19069
19070 # Used on cygwin: DLL creation program.
19071 DLLTOOL="$DLLTOOL"
19072
19073 # Used on cygwin: object dumper.
19074 OBJDUMP="$OBJDUMP"
19075
19076 # Used on cygwin: assembler.
19077 AS="$AS"
19078
19079 # The name of the directory that contains temporary libtool files.
19080 objdir=$objdir
19081
19082 # How to create reloadable object files.
19083 reload_flag=$lt_reload_flag
19084 reload_cmds=$lt_reload_cmds
19085
19086 # How to pass a linker flag through the compiler.
19087 wl=$lt_lt_prog_compiler_wl_RC
19088
19089 # Object file suffix (normally "o").
19090 objext="$ac_objext"
19091
19092 # Old archive suffix (normally "a").
19093 libext="$libext"
19094
19095 # Shared library suffix (normally ".so").
19096 shrext_cmds='$shrext_cmds'
19097
19098 # Executable file suffix (normally "").
19099 exeext="$exeext"
19100
19101 # Additional compiler flags for building library objects.
19102 pic_flag=$lt_lt_prog_compiler_pic_RC
19103 pic_mode=$pic_mode
19104
19105 # What is the maximum length of a command?
19106 max_cmd_len=$lt_cv_sys_max_cmd_len
19107
19108 # Does compiler simultaneously support -c and -o options?
19109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19110
19111 # Must we lock files when doing compilation?
19112 need_locks=$lt_need_locks
19113
19114 # Do we need the lib prefix for modules?
19115 need_lib_prefix=$need_lib_prefix
19116
19117 # Do we need a version for libraries?
19118 need_version=$need_version
19119
19120 # Whether dlopen is supported.
19121 dlopen_support=$enable_dlopen
19122
19123 # Whether dlopen of programs is supported.
19124 dlopen_self=$enable_dlopen_self
19125
19126 # Whether dlopen of statically linked programs is supported.
19127 dlopen_self_static=$enable_dlopen_self_static
19128
19129 # Compiler flag to prevent dynamic linking.
19130 link_static_flag=$lt_lt_prog_compiler_static_RC
19131
19132 # Compiler flag to turn off builtin functions.
19133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19134
19135 # Compiler flag to allow reflexive dlopens.
19136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19137
19138 # Compiler flag to generate shared objects directly from archives.
19139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19140
19141 # Compiler flag to generate thread-safe objects.
19142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19143
19144 # Library versioning type.
19145 version_type=$version_type
19146
19147 # Format of library name prefix.
19148 libname_spec=$lt_libname_spec
19149
19150 # List of archive names.  First name is the real one, the rest are links.
19151 # The last name is the one that the linker finds with -lNAME.
19152 library_names_spec=$lt_library_names_spec
19153
19154 # The coded name of the library, if different from the real name.
19155 soname_spec=$lt_soname_spec
19156
19157 # Commands used to build and install an old-style archive.
19158 RANLIB=$lt_RANLIB
19159 old_archive_cmds=$lt_old_archive_cmds_RC
19160 old_postinstall_cmds=$lt_old_postinstall_cmds
19161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19162
19163 # Create an old-style archive from a shared archive.
19164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19165
19166 # Create a temporary old-style archive to link instead of a shared archive.
19167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19168
19169 # Commands used to build and install a shared archive.
19170 archive_cmds=$lt_archive_cmds_RC
19171 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19172 postinstall_cmds=$lt_postinstall_cmds
19173 postuninstall_cmds=$lt_postuninstall_cmds
19174
19175 # Commands used to build a loadable module (assumed same as above if empty)
19176 module_cmds=$lt_module_cmds_RC
19177 module_expsym_cmds=$lt_module_expsym_cmds_RC
19178
19179 # Commands to strip libraries.
19180 old_striplib=$lt_old_striplib
19181 striplib=$lt_striplib
19182
19183 # Dependencies to place before the objects being linked to create a
19184 # shared library.
19185 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19186
19187 # Dependencies to place after the objects being linked to create a
19188 # shared library.
19189 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19190
19191 # Dependencies to place before the objects being linked to create a
19192 # shared library.
19193 predeps=$lt_predeps_RC
19194
19195 # Dependencies to place after the objects being linked to create a
19196 # shared library.
19197 postdeps=$lt_postdeps_RC
19198
19199 # The library search path used internally by the compiler when linking
19200 # a shared library.
19201 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"\`
19202
19203 # Method to check whether dependent libraries are shared objects.
19204 deplibs_check_method=$lt_deplibs_check_method
19205
19206 # Command to use when deplibs_check_method == file_magic.
19207 file_magic_cmd=$lt_file_magic_cmd
19208
19209 # Flag that allows shared libraries with undefined symbols to be built.
19210 allow_undefined_flag=$lt_allow_undefined_flag_RC
19211
19212 # Flag that forces no undefined symbols.
19213 no_undefined_flag=$lt_no_undefined_flag_RC
19214
19215 # Commands used to finish a libtool library installation in a directory.
19216 finish_cmds=$lt_finish_cmds
19217
19218 # Same as above, but a single script fragment to be evaled but not shown.
19219 finish_eval=$lt_finish_eval
19220
19221 # Take the output of nm and produce a listing of raw symbols and C names.
19222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19223
19224 # Transform the output of nm in a proper C declaration
19225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19226
19227 # Transform the output of nm in a C name address pair
19228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19229
19230 # This is the shared library runtime path variable.
19231 runpath_var=$runpath_var
19232
19233 # This is the shared library path variable.
19234 shlibpath_var=$shlibpath_var
19235
19236 # Is shlibpath searched before the hard-coded library search path?
19237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19238
19239 # How to hardcode a shared library path into an executable.
19240 hardcode_action=$hardcode_action_RC
19241
19242 # Whether we should hardcode library paths into libraries.
19243 hardcode_into_libs=$hardcode_into_libs
19244
19245 # Flag to hardcode \$libdir into a binary during linking.
19246 # This must work even if \$libdir does not exist.
19247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19248
19249 # If ld is used when linking, flag to hardcode \$libdir into
19250 # a binary during linking. This must work even if \$libdir does
19251 # not exist.
19252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19253
19254 # Whether we need a single -rpath flag with a separated argument.
19255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19256
19257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19258 # resulting binary.
19259 hardcode_direct=$hardcode_direct_RC
19260
19261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19262 # resulting binary.
19263 hardcode_minus_L=$hardcode_minus_L_RC
19264
19265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19266 # the resulting binary.
19267 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19268
19269 # Set to yes if building a shared library automatically hardcodes DIR into the library
19270 # and all subsequent libraries and executables linked against it.
19271 hardcode_automatic=$hardcode_automatic_RC
19272
19273 # Variables whose values should be saved in libtool wrapper scripts and
19274 # restored at relink time.
19275 variables_saved_for_relink="$variables_saved_for_relink"
19276
19277 # Whether libtool must link a program against all its dependency libraries.
19278 link_all_deplibs=$link_all_deplibs_RC
19279
19280 # Compile-time system search path for libraries
19281 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"\`
19282
19283 # Run-time system search path for libraries
19284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19285
19286 # Fix the shell variable \$srcfile for the compiler.
19287 fix_srcfile_path="$fix_srcfile_path_RC"
19288
19289 # Set to yes if exported symbols are required.
19290 always_export_symbols=$always_export_symbols_RC
19291
19292 # The commands to list exported symbols.
19293 export_symbols_cmds=$lt_export_symbols_cmds_RC
19294
19295 # The commands to extract the exported symbol list from a shared archive.
19296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19297
19298 # Symbols that should not be listed in the preloaded symbols.
19299 exclude_expsyms=$lt_exclude_expsyms_RC
19300
19301 # Symbols that must always be exported.
19302 include_expsyms=$lt_include_expsyms_RC
19303
19304 # ### END LIBTOOL TAG CONFIG: $tagname
19305
19306 __EOF__
19307
19308
19309 else
19310   # If there is no Makefile yet, we rely on a make rule to execute
19311   # `config.status --recheck' to rerun these tests and create the
19312   # libtool script then.
19313   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19314   if test -f "$ltmain_in"; then
19315     test -f Makefile && make "$ltmain"
19316   fi
19317 fi
19318
19319
19320 ac_ext=c
19321 ac_cpp='$CPP $CPPFLAGS'
19322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19325
19326 CC="$lt_save_CC"
19327
19328         ;;
19329
19330       *)
19331         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19332 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19333    { (exit 1); exit 1; }; }
19334         ;;
19335       esac
19336
19337       # Append the new tag name to the list of available tags.
19338       if test -n "$tagname" ; then
19339       available_tags="$available_tags $tagname"
19340     fi
19341     fi
19342   done
19343   IFS="$lt_save_ifs"
19344
19345   # Now substitute the updated list of available tags.
19346   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19347     mv "${ofile}T" "$ofile"
19348     chmod +x "$ofile"
19349   else
19350     rm -f "${ofile}T"
19351     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19352 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19353    { (exit 1); exit 1; }; }
19354   fi
19355 fi
19356
19357
19358
19359 # This can be used to rebuild libtool when needed
19360 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19361
19362 # Always use our own libtool.
19363 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19364
19365 # Prevent multiple expansion
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387 # Make sure we can run config.sub.
19388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
19389   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
19390 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
19391    { (exit 1); exit 1; }; }
19392
19393 { $as_echo "$as_me:$LINENO: checking build system type" >&5
19394 $as_echo_n "checking build system type... " >&6; }
19395 if test "${ac_cv_build+set}" = set; then
19396   $as_echo_n "(cached) " >&6
19397 else
19398   ac_build_alias=$build_alias
19399 test "x$ac_build_alias" = x &&
19400   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
19401 test "x$ac_build_alias" = x &&
19402   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
19403 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
19404    { (exit 1); exit 1; }; }
19405 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
19406   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
19407 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
19408    { (exit 1); exit 1; }; }
19409
19410 fi
19411 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
19412 $as_echo "$ac_cv_build" >&6; }
19413 case $ac_cv_build in
19414 *-*-*) ;;
19415 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
19416 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
19417    { (exit 1); exit 1; }; };;
19418 esac
19419 build=$ac_cv_build
19420 ac_save_IFS=$IFS; IFS='-'
19421 set x $ac_cv_build
19422 shift
19423 build_cpu=$1
19424 build_vendor=$2
19425 shift; shift
19426 # Remember, the first character of IFS is used to create $*,
19427 # except with old shells:
19428 build_os=$*
19429 IFS=$ac_save_IFS
19430 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
19431
19432
19433 { $as_echo "$as_me:$LINENO: checking host system type" >&5
19434 $as_echo_n "checking host system type... " >&6; }
19435 if test "${ac_cv_host+set}" = set; then
19436   $as_echo_n "(cached) " >&6
19437 else
19438   if test "x$host_alias" = x; then
19439   ac_cv_host=$ac_cv_build
19440 else
19441   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19442     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19443 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19444    { (exit 1); exit 1; }; }
19445 fi
19446
19447 fi
19448 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19449 $as_echo "$ac_cv_host" >&6; }
19450 case $ac_cv_host in
19451 *-*-*) ;;
19452 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19453 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
19454    { (exit 1); exit 1; }; };;
19455 esac
19456 host=$ac_cv_host
19457 ac_save_IFS=$IFS; IFS='-'
19458 set x $ac_cv_host
19459 shift
19460 host_cpu=$1
19461 host_vendor=$2
19462 shift; shift
19463 # Remember, the first character of IFS is used to create $*,
19464 # except with old shells:
19465 host_os=$*
19466 IFS=$ac_save_IFS
19467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19468
19469
19470
19471 OBJECT_MODE=
19472 # Checks for programs.
19473 { $as_echo "$as_me:$LINENO: checking compiler flags required for compiling ANTLR with $CC C compiler on host $host" >&5
19474 $as_echo_n "checking compiler flags required for compiling ANTLR with $CC C compiler on host $host... " >&6; }
19475 WARNFLAGS=
19476 case $CC in
19477 xlc*)
19478  CPPCMNTFLAGS="-qcpluscmt"
19479  if test x"$enable_64bit" = xyes; then
19480   CCFLAGS64="-q64 -Wl,-b64"
19481   OBJECT_MODE="64"
19482  else
19483   OBJECT_MODE="32"
19484  fi
19485  OPTIMFLAGS="-O2"
19486  if test x"$enable_debuginfo" = xyes; then
19487   DEBUGFLAGS="-g"
19488  fi
19489  ;;
19490
19491 aCC*)
19492  CPPCMNTFLAGS=
19493  if test x"$enable_64bit" = xyes; then
19494   CCFLAGS64="+DD64"
19495  fi
19496  OPTIMFLAGS="-O"
19497  if test $DEBUGINF = 1; then
19498   DEBUGFLAGS="-g"
19499  fi
19500  ;;
19501
19502 gcc*)
19503  CPPCMNTFLAGS=
19504  if test x"$enable_64bit" = xyes; then
19505   GCCABIFLAGS="-m64"
19506  else
19507   GCCABIFLAGS="-m32"
19508  fi
19509  if test x"$enable_abiflags" = xyes; then
19510   CCFLAGS64=$GCCABIFLAGS
19511  fi
19512  OPTIMFLAGS="-O2"
19513  if test x"$enable_debuginfo" = xyes; then
19514   DEBUGFLAGS="-g"
19515  fi
19516  WARNFLAGS=-Wall
19517  ;;
19518
19519 *)
19520
19521 case $host in
19522 sparc*-*solaris*)
19523  CPPCMNTFLAGS=
19524  if test x"$enable_64bit" = xyes; then
19525   CCFLAGS64="-fast -xtarget=ultra4 -m64 -xarch=sparcvis"
19526  fi
19527  OPTIMFLAGS="-O"
19528  if test x"$enable_debuginfo" = xyes; then
19529   DEBUGFLAGS='-g'
19530  fi
19531  ;;
19532
19533 *)
19534  CPPCMNTFLAGS=
19535  CCFLAGS64=
19536  OPTIMFLAGS="-O"
19537  if test x"$enable_debuginfo" = xyes; then
19538   DEBUGFLAGS='-g'
19539  fi
19540  ;;
19541 esac
19542
19543  ;;
19544 esac
19545
19546 CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
19547 { $as_echo "$as_me:$LINENO: result: $CFLAGS" >&5
19548 $as_echo "$CFLAGS" >&6; }
19549
19550
19551 if test "x$enable_antlrdebug" = xno; then
19552
19553 cat >>confdefs.h <<\_ACEOF
19554 #define ANTLR3_NODEBUGGER 1
19555 _ACEOF
19556
19557 fi
19558
19559 if test x"$enable_64bit" = xyes; then
19560
19561 cat >>confdefs.h <<\_ACEOF
19562 #define ANTLR3_USE_64BIT 1
19563 _ACEOF
19564
19565 fi
19566
19567
19568 # Find a good install program.  We prefer a C program (faster),
19569 # so one script is as good as another.  But avoid the broken or
19570 # incompatible versions:
19571 # SysV /etc/install, /usr/sbin/install
19572 # SunOS /usr/etc/install
19573 # IRIX /sbin/install
19574 # AIX /bin/install
19575 # AmigaOS /C/install, which installs bootblocks on floppy discs
19576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19579 # OS/2's system install, which has a completely different semantic
19580 # ./install, which can be erroneously created by make from ./install.sh.
19581 # Reject install programs that cannot install multiple files.
19582 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19584 if test -z "$INSTALL"; then
19585 if test "${ac_cv_path_install+set}" = set; then
19586   $as_echo_n "(cached) " >&6
19587 else
19588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19589 for as_dir in $PATH
19590 do
19591   IFS=$as_save_IFS
19592   test -z "$as_dir" && as_dir=.
19593   # Account for people who put trailing slashes in PATH elements.
19594 case $as_dir/ in
19595   ./ | .// | /cC/* | \
19596   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19597   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19598   /usr/ucb/* ) ;;
19599   *)
19600     # OSF1 and SCO ODT 3.0 have their own names for install.
19601     # Don't use installbsd from OSF since it installs stuff as root
19602     # by default.
19603     for ac_prog in ginstall scoinst install; do
19604       for ac_exec_ext in '' $ac_executable_extensions; do
19605         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19606           if test $ac_prog = install &&
19607             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19608             # AIX install.  It has an incompatible calling convention.
19609             :
19610           elif test $ac_prog = install &&
19611             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19612             # program-specific install script used by HP pwplus--don't use.
19613             :
19614           else
19615             rm -rf conftest.one conftest.two conftest.dir
19616             echo one > conftest.one
19617             echo two > conftest.two
19618             mkdir conftest.dir
19619             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19620               test -s conftest.one && test -s conftest.two &&
19621               test -s conftest.dir/conftest.one &&
19622               test -s conftest.dir/conftest.two
19623             then
19624               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19625               break 3
19626             fi
19627           fi
19628         fi
19629       done
19630     done
19631     ;;
19632 esac
19633
19634 done
19635 IFS=$as_save_IFS
19636
19637 rm -rf conftest.one conftest.two conftest.dir
19638
19639 fi
19640   if test "${ac_cv_path_install+set}" = set; then
19641     INSTALL=$ac_cv_path_install
19642   else
19643     # As a last resort, use the slow shell script.  Don't cache a
19644     # value for INSTALL within a source directory, because that will
19645     # break other packages using the cache if that directory is
19646     # removed, or if the value is a relative name.
19647     INSTALL=$ac_install_sh
19648   fi
19649 fi
19650 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
19651 $as_echo "$INSTALL" >&6; }
19652
19653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19654 # It thinks the first close brace ends the variable substitution.
19655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19656
19657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19658
19659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19660
19661 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
19662 $as_echo_n "checking whether ln -s works... " >&6; }
19663 LN_S=$as_ln_s
19664 if test "$LN_S" = "ln -s"; then
19665   { $as_echo "$as_me:$LINENO: result: yes" >&5
19666 $as_echo "yes" >&6; }
19667 else
19668   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19669 $as_echo "no, using $LN_S" >&6; }
19670 fi
19671
19672 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19673 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19674 set x ${MAKE-make}
19675 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19676 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19677   $as_echo_n "(cached) " >&6
19678 else
19679   cat >conftest.make <<\_ACEOF
19680 SHELL = /bin/sh
19681 all:
19682         @echo '@@@%%%=$(MAKE)=@@@%%%'
19683 _ACEOF
19684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19685 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19686   *@@@%%%=?*=@@@%%%*)
19687     eval ac_cv_prog_make_${ac_make}_set=yes;;
19688   *)
19689     eval ac_cv_prog_make_${ac_make}_set=no;;
19690 esac
19691 rm -f conftest.make
19692 fi
19693 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19694   { $as_echo "$as_me:$LINENO: result: yes" >&5
19695 $as_echo "yes" >&6; }
19696   SET_MAKE=
19697 else
19698   { $as_echo "$as_me:$LINENO: result: no" >&5
19699 $as_echo "no" >&6; }
19700   SET_MAKE="MAKE=${MAKE-make}"
19701 fi
19702
19703
19704 # Checks for libraries.
19705
19706 # Checks for header files.
19707 $ac_includes_default
19708
19709
19710
19711
19712
19713 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
19714 do
19715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19716 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 $as_echo_n "checking for $ac_header... " >&6; }
19718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19719   $as_echo_n "(cached) " >&6
19720 else
19721   cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727 #ifdef HAVE_SYS_TYPES_H
19728 #  include <sys/types.h>
19729 #endif
19730 #ifdef HAVE_NETINET_IN_H
19731 #  include <netinet/in.h>   /* inet_ functions / structs */
19732 #endif
19733 #ifdef HAVE_ARPA_NAMESER_H
19734 #  include <arpa/nameser.h> /* DNS HEADER struct */
19735 #endif
19736 #ifdef HAVE_NETDB_H
19737 #  include <netdb.h>
19738 #endif
19739
19740 #include <$ac_header>
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19749 $as_echo "$ac_try_echo") >&5
19750   (eval "$ac_compile") 2>conftest.er1
19751   ac_status=$?
19752   grep -v '^ *+' conftest.er1 >conftest.err
19753   rm -f conftest.er1
19754   cat conftest.err >&5
19755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); } && {
19757          test -z "$ac_c_werror_flag" ||
19758          test ! -s conftest.err
19759        } && test -s conftest.$ac_objext; then
19760   eval "$as_ac_Header=yes"
19761 else
19762   $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765         eval "$as_ac_Header=no"
19766 fi
19767
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19769 fi
19770 ac_res=`eval 'as_val=${'$as_ac_Header'}
19771                  $as_echo "$as_val"'`
19772                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19773 $as_echo "$ac_res" >&6; }
19774 as_val=`eval 'as_val=${'$as_ac_Header'}
19775                  $as_echo "$as_val"'`
19776    if test "x$as_val" = x""yes; then
19777   cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19779 _ACEOF
19780
19781 fi
19782
19783 done
19784
19785
19786
19787
19788 for ac_header in sys/malloc.h malloc.h
19789 do
19790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19792 $as_echo_n "checking for $ac_header... " >&6; }
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794   $as_echo_n "(cached) " >&6
19795 else
19796   cat >conftest.$ac_ext <<_ACEOF
19797 /* confdefs.h.  */
19798 _ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h.  */
19802 #ifdef HAVE_SYS_MALLOC_H
19803 #include <sys/malloc.h>
19804 #endif
19805 #ifdef HAVE_MALLOC_H
19806 #include <malloc.h>
19807 #endif
19808
19809
19810 #include <$ac_header>
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820   (eval "$ac_compile") 2>conftest.er1
19821   ac_status=$?
19822   grep -v '^ *+' conftest.er1 >conftest.err
19823   rm -f conftest.er1
19824   cat conftest.err >&5
19825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); } && {
19827          test -z "$ac_c_werror_flag" ||
19828          test ! -s conftest.err
19829        } && test -s conftest.$ac_objext; then
19830   eval "$as_ac_Header=yes"
19831 else
19832   $as_echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835         eval "$as_ac_Header=no"
19836 fi
19837
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 fi
19840 ac_res=`eval 'as_val=${'$as_ac_Header'}
19841                  $as_echo "$as_val"'`
19842                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19843 $as_echo "$ac_res" >&6; }
19844 as_val=`eval 'as_val=${'$as_ac_Header'}
19845                  $as_echo "$as_val"'`
19846    if test "x$as_val" = x""yes; then
19847   cat >>confdefs.h <<_ACEOF
19848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849 _ACEOF
19850
19851 fi
19852
19853 done
19854
19855
19856 for ac_header in stdarg.h
19857 do
19858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 $as_echo_n "checking for $ac_header... " >&6; }
19861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862   $as_echo_n "(cached) " >&6
19863 else
19864   cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h.  */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h.  */
19870 #ifdef HAVE_STDARG_H
19871 #include <stdarg.h>
19872 #endif
19873
19874
19875 #include <$ac_header>
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19884 $as_echo "$ac_try_echo") >&5
19885   (eval "$ac_compile") 2>conftest.er1
19886   ac_status=$?
19887   grep -v '^ *+' conftest.er1 >conftest.err
19888   rm -f conftest.er1
19889   cat conftest.err >&5
19890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); } && {
19892          test -z "$ac_c_werror_flag" ||
19893          test ! -s conftest.err
19894        } && test -s conftest.$ac_objext; then
19895   eval "$as_ac_Header=yes"
19896 else
19897   $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900         eval "$as_ac_Header=no"
19901 fi
19902
19903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19904 fi
19905 ac_res=`eval 'as_val=${'$as_ac_Header'}
19906                  $as_echo "$as_val"'`
19907                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19908 $as_echo "$ac_res" >&6; }
19909 as_val=`eval 'as_val=${'$as_ac_Header'}
19910                  $as_echo "$as_val"'`
19911    if test "x$as_val" = x""yes; then
19912   cat >>confdefs.h <<_ACEOF
19913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19914 _ACEOF
19915
19916 fi
19917
19918 done
19919
19920
19921
19922 for ac_header in sys/stat.h
19923 do
19924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19926 $as_echo_n "checking for $ac_header... " >&6; }
19927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928   $as_echo_n "(cached) " >&6
19929 else
19930   cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h.  */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h.  */
19936 #ifdef HAVE_SYS_STAT_H
19937 #include <sys/stat.h>
19938 #endif
19939
19940
19941 #include <$ac_header>
19942 _ACEOF
19943 rm -f conftest.$ac_objext
19944 if { (ac_try="$ac_compile"
19945 case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951   (eval "$ac_compile") 2>conftest.er1
19952   ac_status=$?
19953   grep -v '^ *+' conftest.er1 >conftest.err
19954   rm -f conftest.er1
19955   cat conftest.err >&5
19956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); } && {
19958          test -z "$ac_c_werror_flag" ||
19959          test ! -s conftest.err
19960        } && test -s conftest.$ac_objext; then
19961   eval "$as_ac_Header=yes"
19962 else
19963   $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19965
19966         eval "$as_ac_Header=no"
19967 fi
19968
19969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19970 fi
19971 ac_res=`eval 'as_val=${'$as_ac_Header'}
19972                  $as_echo "$as_val"'`
19973                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19974 $as_echo "$ac_res" >&6; }
19975 as_val=`eval 'as_val=${'$as_ac_Header'}
19976                  $as_echo "$as_val"'`
19977    if test "x$as_val" = x""yes; then
19978   cat >>confdefs.h <<_ACEOF
19979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980 _ACEOF
19981
19982 fi
19983
19984 done
19985
19986
19987
19988 for ac_header in ctype.h
19989 do
19990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19992 $as_echo_n "checking for $ac_header... " >&6; }
19993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19994   $as_echo_n "(cached) " >&6
19995 else
19996   cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h.  */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h.  */
20002 #ifdef HAVE_CTYPE_H
20003 #include <ctype.h>
20004 #endif
20005
20006
20007 #include <$ac_header>
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013   *) ac_try_echo=$ac_try;;
20014 esac
20015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20016 $as_echo "$ac_try_echo") >&5
20017   (eval "$ac_compile") 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } && {
20024          test -z "$ac_c_werror_flag" ||
20025          test ! -s conftest.err
20026        } && test -s conftest.$ac_objext; then
20027   eval "$as_ac_Header=yes"
20028 else
20029   $as_echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032         eval "$as_ac_Header=no"
20033 fi
20034
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036 fi
20037 ac_res=`eval 'as_val=${'$as_ac_Header'}
20038                  $as_echo "$as_val"'`
20039                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20040 $as_echo "$ac_res" >&6; }
20041 as_val=`eval 'as_val=${'$as_ac_Header'}
20042                  $as_echo "$as_val"'`
20043    if test "x$as_val" = x""yes; then
20044   cat >>confdefs.h <<_ACEOF
20045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20046 _ACEOF
20047
20048 fi
20049
20050 done
20051
20052
20053
20054 for ac_header in netinet/tcp.h
20055 do
20056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20058 $as_echo_n "checking for $ac_header... " >&6; }
20059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20060   $as_echo_n "(cached) " >&6
20061 else
20062   cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 #ifdef HAVE_NETINET_TCP_H
20069 #include <netinet/tcp.h>
20070 #endif
20071
20072
20073 #include <$ac_header>
20074 _ACEOF
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079   *) ac_try_echo=$ac_try;;
20080 esac
20081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20082 $as_echo "$ac_try_echo") >&5
20083   (eval "$ac_compile") 2>conftest.er1
20084   ac_status=$?
20085   grep -v '^ *+' conftest.er1 >conftest.err
20086   rm -f conftest.er1
20087   cat conftest.err >&5
20088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); } && {
20090          test -z "$ac_c_werror_flag" ||
20091          test ! -s conftest.err
20092        } && test -s conftest.$ac_objext; then
20093   eval "$as_ac_Header=yes"
20094 else
20095   $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098         eval "$as_ac_Header=no"
20099 fi
20100
20101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 fi
20103 ac_res=`eval 'as_val=${'$as_ac_Header'}
20104                  $as_echo "$as_val"'`
20105                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20106 $as_echo "$ac_res" >&6; }
20107 as_val=`eval 'as_val=${'$as_ac_Header'}
20108                  $as_echo "$as_val"'`
20109    if test "x$as_val" = x""yes; then
20110   cat >>confdefs.h <<_ACEOF
20111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20112 _ACEOF
20113
20114 fi
20115
20116 done
20117
20118
20119
20120
20121 for ac_header in sys/socket.h socket.h
20122 do
20123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20124 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20125 $as_echo_n "checking for $ac_header... " >&6; }
20126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20127   $as_echo_n "(cached) " >&6
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 #ifdef HAVE_SYS_SOCKET_H
20136 #include <sys/socket.h>
20137 #endif
20138 #ifdef HAVE_SOCKET_H
20139 #include <socket.h>
20140 #endif
20141
20142
20143 #include <$ac_header>
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20152 $as_echo "$ac_try_echo") >&5
20153   (eval "$ac_compile") 2>conftest.er1
20154   ac_status=$?
20155   grep -v '^ *+' conftest.er1 >conftest.err
20156   rm -f conftest.er1
20157   cat conftest.err >&5
20158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } && {
20160          test -z "$ac_c_werror_flag" ||
20161          test ! -s conftest.err
20162        } && test -s conftest.$ac_objext; then
20163   eval "$as_ac_Header=yes"
20164 else
20165   $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168         eval "$as_ac_Header=no"
20169 fi
20170
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 fi
20173 ac_res=`eval 'as_val=${'$as_ac_Header'}
20174                  $as_echo "$as_val"'`
20175                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20176 $as_echo "$ac_res" >&6; }
20177 as_val=`eval 'as_val=${'$as_ac_Header'}
20178                  $as_echo "$as_val"'`
20179    if test "x$as_val" = x""yes; then
20180   cat >>confdefs.h <<_ACEOF
20181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20182 _ACEOF
20183
20184 fi
20185
20186 done
20187
20188
20189 # Checks for typedefs, structures, and compiler characteristics.
20190 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20191 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20192 if test "${ac_cv_c_const+set}" = set; then
20193   $as_echo_n "(cached) " >&6
20194 else
20195   cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201
20202 int
20203 main ()
20204 {
20205 /* FIXME: Include the comments suggested by Paul. */
20206 #ifndef __cplusplus
20207   /* Ultrix mips cc rejects this.  */
20208   typedef int charset[2];
20209   const charset cs;
20210   /* SunOS 4.1.1 cc rejects this.  */
20211   char const *const *pcpcc;
20212   char **ppc;
20213   /* NEC SVR4.0.2 mips cc rejects this.  */
20214   struct point {int x, y;};
20215   static struct point const zero = {0,0};
20216   /* AIX XL C 1.02.0.0 rejects this.
20217      It does not let you subtract one const X* pointer from another in
20218      an arm of an if-expression whose if-part is not a constant
20219      expression */
20220   const char *g = "string";
20221   pcpcc = &g + (g ? g-g : 0);
20222   /* HPUX 7.0 cc rejects these. */
20223   ++pcpcc;
20224   ppc = (char**) pcpcc;
20225   pcpcc = (char const *const *) ppc;
20226   { /* SCO 3.2v4 cc rejects this.  */
20227     char *t;
20228     char const *s = 0 ? (char *) 0 : (char const *) 0;
20229
20230     *t++ = 0;
20231     if (s) return 0;
20232   }
20233   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20234     int x[] = {25, 17};
20235     const int *foo = &x[0];
20236     ++foo;
20237   }
20238   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20239     typedef const int *iptr;
20240     iptr p = 0;
20241     ++p;
20242   }
20243   { /* AIX XL C 1.02.0.0 rejects this saying
20244        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20245     struct s { int j; const int *ap[3]; };
20246     struct s *b; b->j = 5;
20247   }
20248   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20249     const int foo = 10;
20250     if (!foo) return 0;
20251   }
20252   return !cs[0] && !zero.x;
20253 #endif
20254
20255   ;
20256   return 0;
20257 }
20258 _ACEOF
20259 rm -f conftest.$ac_objext
20260 if { (ac_try="$ac_compile"
20261 case "(($ac_try" in
20262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263   *) ac_try_echo=$ac_try;;
20264 esac
20265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20266 $as_echo "$ac_try_echo") >&5
20267   (eval "$ac_compile") 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } && {
20274          test -z "$ac_c_werror_flag" ||
20275          test ! -s conftest.err
20276        } && test -s conftest.$ac_objext; then
20277   ac_cv_c_const=yes
20278 else
20279   $as_echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282         ac_cv_c_const=no
20283 fi
20284
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 fi
20287 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20288 $as_echo "$ac_cv_c_const" >&6; }
20289 if test $ac_cv_c_const = no; then
20290
20291 cat >>confdefs.h <<\_ACEOF
20292 #define const /**/
20293 _ACEOF
20294
20295 fi
20296
20297 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20298 $as_echo_n "checking for size_t... " >&6; }
20299 if test "${ac_cv_type_size_t+set}" = set; then
20300   $as_echo_n "(cached) " >&6
20301 else
20302   ac_cv_type_size_t=no
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309 $ac_includes_default
20310 int
20311 main ()
20312 {
20313 if (sizeof (size_t))
20314        return 0;
20315   ;
20316   return 0;
20317 }
20318 _ACEOF
20319 rm -f conftest.$ac_objext
20320 if { (ac_try="$ac_compile"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327   (eval "$ac_compile") 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } && {
20334          test -z "$ac_c_werror_flag" ||
20335          test ! -s conftest.err
20336        } && test -s conftest.$ac_objext; then
20337   cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h.  */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h.  */
20343 $ac_includes_default
20344 int
20345 main ()
20346 {
20347 if (sizeof ((size_t)))
20348           return 0;
20349   ;
20350   return 0;
20351 }
20352 _ACEOF
20353 rm -f conftest.$ac_objext
20354 if { (ac_try="$ac_compile"
20355 case "(($ac_try" in
20356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357   *) ac_try_echo=$ac_try;;
20358 esac
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361   (eval "$ac_compile") 2>conftest.er1
20362   ac_status=$?
20363   grep -v '^ *+' conftest.er1 >conftest.err
20364   rm -f conftest.er1
20365   cat conftest.err >&5
20366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); } && {
20368          test -z "$ac_c_werror_flag" ||
20369          test ! -s conftest.err
20370        } && test -s conftest.$ac_objext; then
20371   :
20372 else
20373   $as_echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376         ac_cv_type_size_t=yes
20377 fi
20378
20379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380 else
20381   $as_echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384
20385 fi
20386
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388 fi
20389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20390 $as_echo "$ac_cv_type_size_t" >&6; }
20391 if test "x$ac_cv_type_size_t" = x""yes; then
20392   :
20393 else
20394
20395 cat >>confdefs.h <<_ACEOF
20396 #define size_t unsigned int
20397 _ACEOF
20398
20399 fi
20400
20401
20402   { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
20403 $as_echo_n "checking for int8_t... " >&6; }
20404 if test "${ac_cv_c_int8_t+set}" = set; then
20405   $as_echo_n "(cached) " >&6
20406 else
20407   ac_cv_c_int8_t=no
20408      for ac_type in 'int8_t' 'int' 'long int' \
20409          'long long int' 'short int' 'signed char'; do
20410        cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 $ac_includes_default
20417 int
20418 main ()
20419 {
20420 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
20421 test_array [0] = 0
20422
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431   *) ac_try_echo=$ac_try;;
20432 esac
20433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20434 $as_echo "$ac_try_echo") >&5
20435   (eval "$ac_compile") 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } && {
20442          test -z "$ac_c_werror_flag" ||
20443          test ! -s conftest.err
20444        } && test -s conftest.$ac_objext; then
20445   cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451 $ac_includes_default
20452 int
20453 main ()
20454 {
20455 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
20456                  < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
20457 test_array [0] = 0
20458
20459   ;
20460   return 0;
20461 }
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467   *) ac_try_echo=$ac_try;;
20468 esac
20469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20470 $as_echo "$ac_try_echo") >&5
20471   (eval "$ac_compile") 2>conftest.er1
20472   ac_status=$?
20473   grep -v '^ *+' conftest.er1 >conftest.err
20474   rm -f conftest.er1
20475   cat conftest.err >&5
20476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); } && {
20478          test -z "$ac_c_werror_flag" ||
20479          test ! -s conftest.err
20480        } && test -s conftest.$ac_objext; then
20481   :
20482 else
20483   $as_echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20485
20486         case $ac_type in
20487   int8_t) ac_cv_c_int8_t=yes ;;
20488   *) ac_cv_c_int8_t=$ac_type ;;
20489 esac
20490
20491 fi
20492
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 else
20495   $as_echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498
20499 fi
20500
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502        test "$ac_cv_c_int8_t" != no && break
20503      done
20504 fi
20505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
20506 $as_echo "$ac_cv_c_int8_t" >&6; }
20507   case $ac_cv_c_int8_t in #(
20508   no|yes) ;; #(
20509   *)
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define int8_t $ac_cv_c_int8_t
20513 _ACEOF
20514 ;;
20515   esac
20516
20517
20518   { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
20519 $as_echo_n "checking for int16_t... " >&6; }
20520 if test "${ac_cv_c_int16_t+set}" = set; then
20521   $as_echo_n "(cached) " >&6
20522 else
20523   ac_cv_c_int16_t=no
20524      for ac_type in 'int16_t' 'int' 'long int' \
20525          'long long int' 'short int' 'signed char'; do
20526        cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532 $ac_includes_default
20533 int
20534 main ()
20535 {
20536 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
20537 test_array [0] = 0
20538
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20550 $as_echo "$ac_try_echo") >&5
20551   (eval "$ac_compile") 2>conftest.er1
20552   ac_status=$?
20553   grep -v '^ *+' conftest.er1 >conftest.err
20554   rm -f conftest.er1
20555   cat conftest.err >&5
20556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); } && {
20558          test -z "$ac_c_werror_flag" ||
20559          test ! -s conftest.err
20560        } && test -s conftest.$ac_objext; then
20561   cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h.  */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h.  */
20567 $ac_includes_default
20568 int
20569 main ()
20570 {
20571 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
20572                  < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
20573 test_array [0] = 0
20574
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 rm -f conftest.$ac_objext
20580 if { (ac_try="$ac_compile"
20581 case "(($ac_try" in
20582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583   *) ac_try_echo=$ac_try;;
20584 esac
20585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20586 $as_echo "$ac_try_echo") >&5
20587   (eval "$ac_compile") 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } && {
20594          test -z "$ac_c_werror_flag" ||
20595          test ! -s conftest.err
20596        } && test -s conftest.$ac_objext; then
20597   :
20598 else
20599   $as_echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602         case $ac_type in
20603   int16_t) ac_cv_c_int16_t=yes ;;
20604   *) ac_cv_c_int16_t=$ac_type ;;
20605 esac
20606
20607 fi
20608
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 else
20611   $as_echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614
20615 fi
20616
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618        test "$ac_cv_c_int16_t" != no && break
20619      done
20620 fi
20621 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
20622 $as_echo "$ac_cv_c_int16_t" >&6; }
20623   case $ac_cv_c_int16_t in #(
20624   no|yes) ;; #(
20625   *)
20626
20627 cat >>confdefs.h <<_ACEOF
20628 #define int16_t $ac_cv_c_int16_t
20629 _ACEOF
20630 ;;
20631   esac
20632
20633
20634   { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
20635 $as_echo_n "checking for int32_t... " >&6; }
20636 if test "${ac_cv_c_int32_t+set}" = set; then
20637   $as_echo_n "(cached) " >&6
20638 else
20639   ac_cv_c_int32_t=no
20640      for ac_type in 'int32_t' 'int' 'long int' \
20641          'long long int' 'short int' 'signed char'; do
20642        cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 $ac_includes_default
20649 int
20650 main ()
20651 {
20652 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
20653 test_array [0] = 0
20654
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (ac_try="$ac_compile"
20661 case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20666 $as_echo "$ac_try_echo") >&5
20667   (eval "$ac_compile") 2>conftest.er1
20668   ac_status=$?
20669   grep -v '^ *+' conftest.er1 >conftest.err
20670   rm -f conftest.er1
20671   cat conftest.err >&5
20672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); } && {
20674          test -z "$ac_c_werror_flag" ||
20675          test ! -s conftest.err
20676        } && test -s conftest.$ac_objext; then
20677   cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 $ac_includes_default
20684 int
20685 main ()
20686 {
20687 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
20688                  < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
20689 test_array [0] = 0
20690
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20702 $as_echo "$ac_try_echo") >&5
20703   (eval "$ac_compile") 2>conftest.er1
20704   ac_status=$?
20705   grep -v '^ *+' conftest.er1 >conftest.err
20706   rm -f conftest.er1
20707   cat conftest.err >&5
20708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } && {
20710          test -z "$ac_c_werror_flag" ||
20711          test ! -s conftest.err
20712        } && test -s conftest.$ac_objext; then
20713   :
20714 else
20715   $as_echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718         case $ac_type in
20719   int32_t) ac_cv_c_int32_t=yes ;;
20720   *) ac_cv_c_int32_t=$ac_type ;;
20721 esac
20722
20723 fi
20724
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 else
20727   $as_echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20729
20730
20731 fi
20732
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734        test "$ac_cv_c_int32_t" != no && break
20735      done
20736 fi
20737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
20738 $as_echo "$ac_cv_c_int32_t" >&6; }
20739   case $ac_cv_c_int32_t in #(
20740   no|yes) ;; #(
20741   *)
20742
20743 cat >>confdefs.h <<_ACEOF
20744 #define int32_t $ac_cv_c_int32_t
20745 _ACEOF
20746 ;;
20747   esac
20748
20749
20750   { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
20751 $as_echo_n "checking for int64_t... " >&6; }
20752 if test "${ac_cv_c_int64_t+set}" = set; then
20753   $as_echo_n "(cached) " >&6
20754 else
20755   ac_cv_c_int64_t=no
20756      for ac_type in 'int64_t' 'int' 'long int' \
20757          'long long int' 'short int' 'signed char'; do
20758        cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764 $ac_includes_default
20765 int
20766 main ()
20767 {
20768 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
20769 test_array [0] = 0
20770
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783   (eval "$ac_compile") 2>conftest.er1
20784   ac_status=$?
20785   grep -v '^ *+' conftest.er1 >conftest.err
20786   rm -f conftest.er1
20787   cat conftest.err >&5
20788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); } && {
20790          test -z "$ac_c_werror_flag" ||
20791          test ! -s conftest.err
20792        } && test -s conftest.$ac_objext; then
20793   cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799 $ac_includes_default
20800 int
20801 main ()
20802 {
20803 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
20804                  < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
20805 test_array [0] = 0
20806
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20818 $as_echo "$ac_try_echo") >&5
20819   (eval "$ac_compile") 2>conftest.er1
20820   ac_status=$?
20821   grep -v '^ *+' conftest.er1 >conftest.err
20822   rm -f conftest.er1
20823   cat conftest.err >&5
20824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } && {
20826          test -z "$ac_c_werror_flag" ||
20827          test ! -s conftest.err
20828        } && test -s conftest.$ac_objext; then
20829   :
20830 else
20831   $as_echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834         case $ac_type in
20835   int64_t) ac_cv_c_int64_t=yes ;;
20836   *) ac_cv_c_int64_t=$ac_type ;;
20837 esac
20838
20839 fi
20840
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 else
20843   $as_echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846
20847 fi
20848
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850        test "$ac_cv_c_int64_t" != no && break
20851      done
20852 fi
20853 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
20854 $as_echo "$ac_cv_c_int64_t" >&6; }
20855   case $ac_cv_c_int64_t in #(
20856   no|yes) ;; #(
20857   *)
20858
20859 cat >>confdefs.h <<_ACEOF
20860 #define int64_t $ac_cv_c_int64_t
20861 _ACEOF
20862 ;;
20863   esac
20864
20865
20866   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
20867 $as_echo_n "checking for intptr_t... " >&6; }
20868 if test "${ac_cv_type_intptr_t+set}" = set; then
20869   $as_echo_n "(cached) " >&6
20870 else
20871   ac_cv_type_intptr_t=no
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h.  */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h.  */
20878 $ac_includes_default
20879 int
20880 main ()
20881 {
20882 if (sizeof (intptr_t))
20883        return 0;
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20895 $as_echo "$ac_try_echo") >&5
20896   (eval "$ac_compile") 2>conftest.er1
20897   ac_status=$?
20898   grep -v '^ *+' conftest.er1 >conftest.err
20899   rm -f conftest.er1
20900   cat conftest.err >&5
20901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); } && {
20903          test -z "$ac_c_werror_flag" ||
20904          test ! -s conftest.err
20905        } && test -s conftest.$ac_objext; then
20906   cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h.  */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h.  */
20912 $ac_includes_default
20913 int
20914 main ()
20915 {
20916 if (sizeof ((intptr_t)))
20917           return 0;
20918   ;
20919   return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926   *) ac_try_echo=$ac_try;;
20927 esac
20928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20929 $as_echo "$ac_try_echo") >&5
20930   (eval "$ac_compile") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } && {
20937          test -z "$ac_c_werror_flag" ||
20938          test ! -s conftest.err
20939        } && test -s conftest.$ac_objext; then
20940   :
20941 else
20942   $as_echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945         ac_cv_type_intptr_t=yes
20946 fi
20947
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 else
20950   $as_echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20952
20953
20954 fi
20955
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 fi
20958 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
20959 $as_echo "$ac_cv_type_intptr_t" >&6; }
20960 if test "x$ac_cv_type_intptr_t" = x""yes; then
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_INTPTR_T 1
20964 _ACEOF
20965
20966 else
20967   for ac_type in 'int' 'long int' 'long long int'; do
20968        cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 $ac_includes_default
20975 int
20976 main ()
20977 {
20978 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20979 test_array [0] = 0
20980
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20992 $as_echo "$ac_try_echo") >&5
20993   (eval "$ac_compile") 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } && {
21000          test -z "$ac_c_werror_flag" ||
21001          test ! -s conftest.err
21002        } && test -s conftest.$ac_objext; then
21003
21004 cat >>confdefs.h <<_ACEOF
21005 #define intptr_t $ac_type
21006 _ACEOF
21007
21008           ac_type=
21009 else
21010   $as_echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013
21014 fi
21015
21016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017        test -z "$ac_type" && break
21018      done
21019 fi
21020
21021
21022
21023   { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
21024 $as_echo_n "checking for uint8_t... " >&6; }
21025 if test "${ac_cv_c_uint8_t+set}" = set; then
21026   $as_echo_n "(cached) " >&6
21027 else
21028   ac_cv_c_uint8_t=no
21029      for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21030          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21031        cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h.  */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h.  */
21037 $ac_includes_default
21038 int
21039 main ()
21040 {
21041 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21042 test_array [0] = 0
21043
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052   *) ac_try_echo=$ac_try;;
21053 esac
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056   (eval "$ac_compile") 2>conftest.er1
21057   ac_status=$?
21058   grep -v '^ *+' conftest.er1 >conftest.err
21059   rm -f conftest.er1
21060   cat conftest.err >&5
21061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); } && {
21063          test -z "$ac_c_werror_flag" ||
21064          test ! -s conftest.err
21065        } && test -s conftest.$ac_objext; then
21066   case $ac_type in
21067   uint8_t) ac_cv_c_uint8_t=yes ;;
21068   *) ac_cv_c_uint8_t=$ac_type ;;
21069 esac
21070
21071 else
21072   $as_echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075
21076 fi
21077
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079        test "$ac_cv_c_uint8_t" != no && break
21080      done
21081 fi
21082 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21083 $as_echo "$ac_cv_c_uint8_t" >&6; }
21084   case $ac_cv_c_uint8_t in #(
21085   no|yes) ;; #(
21086   *)
21087
21088 cat >>confdefs.h <<\_ACEOF
21089 #define _UINT8_T 1
21090 _ACEOF
21091
21092
21093 cat >>confdefs.h <<_ACEOF
21094 #define uint8_t $ac_cv_c_uint8_t
21095 _ACEOF
21096 ;;
21097   esac
21098
21099
21100   { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
21101 $as_echo_n "checking for uint16_t... " >&6; }
21102 if test "${ac_cv_c_uint16_t+set}" = set; then
21103   $as_echo_n "(cached) " >&6
21104 else
21105   ac_cv_c_uint16_t=no
21106      for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21107          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21108        cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 $ac_includes_default
21115 int
21116 main ()
21117 {
21118 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21119 test_array [0] = 0
21120
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest.$ac_objext
21126 if { (ac_try="$ac_compile"
21127 case "(($ac_try" in
21128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129   *) ac_try_echo=$ac_try;;
21130 esac
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133   (eval "$ac_compile") 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } && {
21140          test -z "$ac_c_werror_flag" ||
21141          test ! -s conftest.err
21142        } && test -s conftest.$ac_objext; then
21143   case $ac_type in
21144   uint16_t) ac_cv_c_uint16_t=yes ;;
21145   *) ac_cv_c_uint16_t=$ac_type ;;
21146 esac
21147
21148 else
21149   $as_echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21151
21152
21153 fi
21154
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21156        test "$ac_cv_c_uint16_t" != no && break
21157      done
21158 fi
21159 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21160 $as_echo "$ac_cv_c_uint16_t" >&6; }
21161   case $ac_cv_c_uint16_t in #(
21162   no|yes) ;; #(
21163   *)
21164
21165
21166 cat >>confdefs.h <<_ACEOF
21167 #define uint16_t $ac_cv_c_uint16_t
21168 _ACEOF
21169 ;;
21170   esac
21171
21172
21173   { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
21174 $as_echo_n "checking for uint32_t... " >&6; }
21175 if test "${ac_cv_c_uint32_t+set}" = set; then
21176   $as_echo_n "(cached) " >&6
21177 else
21178   ac_cv_c_uint32_t=no
21179      for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
21180          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21181        cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187 $ac_includes_default
21188 int
21189 main ()
21190 {
21191 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
21192 test_array [0] = 0
21193
21194   ;
21195   return 0;
21196 }
21197 _ACEOF
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202   *) ac_try_echo=$ac_try;;
21203 esac
21204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206   (eval "$ac_compile") 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } && {
21213          test -z "$ac_c_werror_flag" ||
21214          test ! -s conftest.err
21215        } && test -s conftest.$ac_objext; then
21216   case $ac_type in
21217   uint32_t) ac_cv_c_uint32_t=yes ;;
21218   *) ac_cv_c_uint32_t=$ac_type ;;
21219 esac
21220
21221 else
21222   $as_echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21224
21225
21226 fi
21227
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229        test "$ac_cv_c_uint32_t" != no && break
21230      done
21231 fi
21232 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
21233 $as_echo "$ac_cv_c_uint32_t" >&6; }
21234   case $ac_cv_c_uint32_t in #(
21235   no|yes) ;; #(
21236   *)
21237
21238 cat >>confdefs.h <<\_ACEOF
21239 #define _UINT32_T 1
21240 _ACEOF
21241
21242
21243 cat >>confdefs.h <<_ACEOF
21244 #define uint32_t $ac_cv_c_uint32_t
21245 _ACEOF
21246 ;;
21247   esac
21248
21249
21250   { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
21251 $as_echo_n "checking for uint64_t... " >&6; }
21252 if test "${ac_cv_c_uint64_t+set}" = set; then
21253   $as_echo_n "(cached) " >&6
21254 else
21255   ac_cv_c_uint64_t=no
21256      for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
21257          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21258        cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 $ac_includes_default
21265 int
21266 main ()
21267 {
21268 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
21269 test_array [0] = 0
21270
21271   ;
21272   return 0;
21273 }
21274 _ACEOF
21275 rm -f conftest.$ac_objext
21276 if { (ac_try="$ac_compile"
21277 case "(($ac_try" in
21278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279   *) ac_try_echo=$ac_try;;
21280 esac
21281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282 $as_echo "$ac_try_echo") >&5
21283   (eval "$ac_compile") 2>conftest.er1
21284   ac_status=$?
21285   grep -v '^ *+' conftest.er1 >conftest.err
21286   rm -f conftest.er1
21287   cat conftest.err >&5
21288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); } && {
21290          test -z "$ac_c_werror_flag" ||
21291          test ! -s conftest.err
21292        } && test -s conftest.$ac_objext; then
21293   case $ac_type in
21294   uint64_t) ac_cv_c_uint64_t=yes ;;
21295   *) ac_cv_c_uint64_t=$ac_type ;;
21296 esac
21297
21298 else
21299   $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306        test "$ac_cv_c_uint64_t" != no && break
21307      done
21308 fi
21309 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
21310 $as_echo "$ac_cv_c_uint64_t" >&6; }
21311   case $ac_cv_c_uint64_t in #(
21312   no|yes) ;; #(
21313   *)
21314
21315 cat >>confdefs.h <<\_ACEOF
21316 #define _UINT64_T 1
21317 _ACEOF
21318
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define uint64_t $ac_cv_c_uint64_t
21322 _ACEOF
21323 ;;
21324   esac
21325
21326
21327   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
21328 $as_echo_n "checking for uintptr_t... " >&6; }
21329 if test "${ac_cv_type_uintptr_t+set}" = set; then
21330   $as_echo_n "(cached) " >&6
21331 else
21332   ac_cv_type_uintptr_t=no
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 $ac_includes_default
21340 int
21341 main ()
21342 {
21343 if (sizeof (uintptr_t))
21344        return 0;
21345   ;
21346   return 0;
21347 }
21348 _ACEOF
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357   (eval "$ac_compile") 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } && {
21364          test -z "$ac_c_werror_flag" ||
21365          test ! -s conftest.err
21366        } && test -s conftest.$ac_objext; then
21367   cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h.  */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h.  */
21373 $ac_includes_default
21374 int
21375 main ()
21376 {
21377 if (sizeof ((uintptr_t)))
21378           return 0;
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391   (eval "$ac_compile") 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } && {
21398          test -z "$ac_c_werror_flag" ||
21399          test ! -s conftest.err
21400        } && test -s conftest.$ac_objext; then
21401   :
21402 else
21403   $as_echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406         ac_cv_type_uintptr_t=yes
21407 fi
21408
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 else
21411   $as_echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414
21415 fi
21416
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 fi
21419 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21420 $as_echo "$ac_cv_type_uintptr_t" >&6; }
21421 if test "x$ac_cv_type_uintptr_t" = x""yes; then
21422
21423 cat >>confdefs.h <<\_ACEOF
21424 #define HAVE_UINTPTR_T 1
21425 _ACEOF
21426
21427 else
21428   for ac_type in 'unsigned int' 'unsigned long int' \
21429         'unsigned long long int'; do
21430        cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436 $ac_includes_default
21437 int
21438 main ()
21439 {
21440 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21441 test_array [0] = 0
21442
21443   ;
21444   return 0;
21445 }
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451   *) ac_try_echo=$ac_try;;
21452 esac
21453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21454 $as_echo "$ac_try_echo") >&5
21455   (eval "$ac_compile") 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } && {
21462          test -z "$ac_c_werror_flag" ||
21463          test ! -s conftest.err
21464        } && test -s conftest.$ac_objext; then
21465
21466 cat >>confdefs.h <<_ACEOF
21467 #define uintptr_t $ac_type
21468 _ACEOF
21469
21470           ac_type=
21471 else
21472   $as_echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475
21476 fi
21477
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479        test -z "$ac_type" && break
21480      done
21481 fi
21482
21483
21484 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21485 $as_echo_n "checking for inline... " >&6; }
21486 if test "${ac_cv_c_inline+set}" = set; then
21487   $as_echo_n "(cached) " >&6
21488 else
21489   ac_cv_c_inline=no
21490 for ac_kw in inline __inline__ __inline; do
21491   cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 #ifndef __cplusplus
21498 typedef int foo_t;
21499 static $ac_kw foo_t static_foo () {return 0; }
21500 $ac_kw foo_t foo () {return 0; }
21501 #endif
21502
21503 _ACEOF
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21511 $as_echo "$ac_try_echo") >&5
21512   (eval "$ac_compile") 2>conftest.er1
21513   ac_status=$?
21514   grep -v '^ *+' conftest.er1 >conftest.err
21515   rm -f conftest.er1
21516   cat conftest.err >&5
21517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); } && {
21519          test -z "$ac_c_werror_flag" ||
21520          test ! -s conftest.err
21521        } && test -s conftest.$ac_objext; then
21522   ac_cv_c_inline=$ac_kw
21523 else
21524   $as_echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21526
21527
21528 fi
21529
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531   test "$ac_cv_c_inline" != no && break
21532 done
21533
21534 fi
21535 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21536 $as_echo "$ac_cv_c_inline" >&6; }
21537
21538
21539 case $ac_cv_c_inline in
21540   inline | yes) ;;
21541   *)
21542     case $ac_cv_c_inline in
21543       no) ac_val=;;
21544       *) ac_val=$ac_cv_c_inline;;
21545     esac
21546     cat >>confdefs.h <<_ACEOF
21547 #ifndef __cplusplus
21548 #define inline $ac_val
21549 #endif
21550 _ACEOF
21551     ;;
21552 esac
21553
21554
21555
21556 # Checks for library functions.
21557
21558
21559
21560
21561 for ac_func in memmove memset strdup accept
21562 do
21563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21565 $as_echo_n "checking for $ac_func... " >&6; }
21566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21567   $as_echo_n "(cached) " >&6
21568 else
21569   cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21577 #define $ac_func innocuous_$ac_func
21578
21579 /* System header to define __stub macros and hopefully few prototypes,
21580     which can conflict with char $ac_func (); below.
21581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21582     <limits.h> exists even on freestanding compilers.  */
21583
21584 #ifdef __STDC__
21585 # include <limits.h>
21586 #else
21587 # include <assert.h>
21588 #endif
21589
21590 #undef $ac_func
21591
21592 /* Override any GCC internal prototype to avoid an error.
21593    Use char because int might match the return type of a GCC
21594    builtin and then its argument prototype would still apply.  */
21595 #ifdef __cplusplus
21596 extern "C"
21597 #endif
21598 char $ac_func ();
21599 /* The GNU C library defines this for functions which it implements
21600     to always fail with ENOSYS.  Some functions are actually named
21601     something starting with __ and the normal name is an alias.  */
21602 #if defined __stub_$ac_func || defined __stub___$ac_func
21603 choke me
21604 #endif
21605
21606 int
21607 main ()
21608 {
21609 return $ac_func ();
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21621 $as_echo "$ac_try_echo") >&5
21622   (eval "$ac_link") 2>conftest.er1
21623   ac_status=$?
21624   grep -v '^ *+' conftest.er1 >conftest.err
21625   rm -f conftest.er1
21626   cat conftest.err >&5
21627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); } && {
21629          test -z "$ac_c_werror_flag" ||
21630          test ! -s conftest.err
21631        } && test -s conftest$ac_exeext && {
21632          test "$cross_compiling" = yes ||
21633          $as_test_x conftest$ac_exeext
21634        }; then
21635   eval "$as_ac_var=yes"
21636 else
21637   $as_echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21639
21640         eval "$as_ac_var=no"
21641 fi
21642
21643 rm -rf conftest.dSYM
21644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21645       conftest$ac_exeext conftest.$ac_ext
21646 fi
21647 ac_res=`eval 'as_val=${'$as_ac_var'}
21648                  $as_echo "$as_val"'`
21649                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21650 $as_echo "$ac_res" >&6; }
21651 as_val=`eval 'as_val=${'$as_ac_var'}
21652                  $as_echo "$as_val"'`
21653    if test "x$as_val" = x""yes; then
21654   cat >>confdefs.h <<_ACEOF
21655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21656 _ACEOF
21657
21658 fi
21659 done
21660
21661
21662
21663
21664 ac_config_headers="$ac_config_headers antlr3config.h"
21665
21666 ac_config_files="$ac_config_files Makefile"
21667
21668 cat >confcache <<\_ACEOF
21669 # This file is a shell script that caches the results of configure
21670 # tests run on this system so they can be shared between configure
21671 # scripts and configure runs, see configure's option --config-cache.
21672 # It is not useful on other systems.  If it contains results you don't
21673 # want to keep, you may remove or edit it.
21674 #
21675 # config.status only pays attention to the cache file if you give it
21676 # the --recheck option to rerun configure.
21677 #
21678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21680 # following values.
21681
21682 _ACEOF
21683
21684 # The following way of writing the cache mishandles newlines in values,
21685 # but we know of no workaround that is simple, portable, and efficient.
21686 # So, we kill variables containing newlines.
21687 # Ultrix sh set writes to stderr and can't be redirected directly,
21688 # and sets the high bit in the cache file unless we assign to the vars.
21689 (
21690   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21691     eval ac_val=\$$ac_var
21692     case $ac_val in #(
21693     *${as_nl}*)
21694       case $ac_var in #(
21695       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21697       esac
21698       case $ac_var in #(
21699       _ | IFS | as_nl) ;; #(
21700       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21701       *) $as_unset $ac_var ;;
21702       esac ;;
21703     esac
21704   done
21705
21706   (set) 2>&1 |
21707     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21708     *${as_nl}ac_space=\ *)
21709       # `set' does not quote correctly, so add quotes (double-quote
21710       # substitution turns \\\\ into \\, and sed turns \\ into \).
21711       sed -n \
21712         "s/'/'\\\\''/g;
21713           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21714       ;; #(
21715     *)
21716       # `set' quotes correctly as required by POSIX, so do not add quotes.
21717       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21718       ;;
21719     esac |
21720     sort
21721 ) |
21722   sed '
21723      /^ac_cv_env_/b end
21724      t clear
21725      :clear
21726      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21727      t end
21728      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21729      :end' >>confcache
21730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21731   if test -w "$cache_file"; then
21732     test "x$cache_file" != "x/dev/null" &&
21733       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21734 $as_echo "$as_me: updating cache $cache_file" >&6;}
21735     cat confcache >$cache_file
21736   else
21737     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21739   fi
21740 fi
21741 rm -f confcache
21742
21743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21744 # Let make expand exec_prefix.
21745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21746
21747 DEFS=-DHAVE_CONFIG_H
21748
21749 ac_libobjs=
21750 ac_ltlibobjs=
21751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21752   # 1. Remove the extension, and $U if already installed.
21753   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21754   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21755   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21756   #    will be set to the directory where LIBOBJS objects are built.
21757   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21758   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21759 done
21760 LIBOBJS=$ac_libobjs
21761
21762 LTLIBOBJS=$ac_ltlibobjs
21763
21764
21765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21766   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21767 Usually this means the macro was only invoked conditionally." >&5
21768 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21769 Usually this means the macro was only invoked conditionally." >&2;}
21770    { (exit 1); exit 1; }; }
21771 fi
21772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21773   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21774 Usually this means the macro was only invoked conditionally." >&5
21775 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21776 Usually this means the macro was only invoked conditionally." >&2;}
21777    { (exit 1); exit 1; }; }
21778 fi
21779 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21780   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21781 Usually this means the macro was only invoked conditionally." >&5
21782 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21783 Usually this means the macro was only invoked conditionally." >&2;}
21784    { (exit 1); exit 1; }; }
21785 fi
21786 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21787   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21788 Usually this means the macro was only invoked conditionally." >&5
21789 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21790 Usually this means the macro was only invoked conditionally." >&2;}
21791    { (exit 1); exit 1; }; }
21792 fi
21793
21794 : ${CONFIG_STATUS=./config.status}
21795 ac_write_fail=0
21796 ac_clean_files_save=$ac_clean_files
21797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21798 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21799 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21800 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21801 #! $SHELL
21802 # Generated by $as_me.
21803 # Run this file to recreate the current configuration.
21804 # Compiler output produced by configure, useful for debugging
21805 # configure, is in config.log if it exists.
21806
21807 debug=false
21808 ac_cs_recheck=false
21809 ac_cs_silent=false
21810 SHELL=\${CONFIG_SHELL-$SHELL}
21811 _ACEOF
21812
21813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21814 ## --------------------- ##
21815 ## M4sh Initialization.  ##
21816 ## --------------------- ##
21817
21818 # Be more Bourne compatible
21819 DUALCASE=1; export DUALCASE # for MKS sh
21820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21821   emulate sh
21822   NULLCMD=:
21823   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21824   # is contrary to our usage.  Disable this feature.
21825   alias -g '${1+"$@"}'='"$@"'
21826   setopt NO_GLOB_SUBST
21827 else
21828   case `(set -o) 2>/dev/null` in
21829   *posix*) set -o posix ;;
21830 esac
21831
21832 fi
21833
21834
21835
21836
21837 # PATH needs CR
21838 # Avoid depending upon Character Ranges.
21839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21842 as_cr_digits='0123456789'
21843 as_cr_alnum=$as_cr_Letters$as_cr_digits
21844
21845 as_nl='
21846 '
21847 export as_nl
21848 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21849 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21852 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21853   as_echo='printf %s\n'
21854   as_echo_n='printf %s'
21855 else
21856   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21857     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21858     as_echo_n='/usr/ucb/echo -n'
21859   else
21860     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21861     as_echo_n_body='eval
21862       arg=$1;
21863       case $arg in
21864       *"$as_nl"*)
21865         expr "X$arg" : "X\\(.*\\)$as_nl";
21866         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21867       esac;
21868       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21869     '
21870     export as_echo_n_body
21871     as_echo_n='sh -c $as_echo_n_body as_echo'
21872   fi
21873   export as_echo_body
21874   as_echo='sh -c $as_echo_body as_echo'
21875 fi
21876
21877 # The user is always right.
21878 if test "${PATH_SEPARATOR+set}" != set; then
21879   PATH_SEPARATOR=:
21880   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21881     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21882       PATH_SEPARATOR=';'
21883   }
21884 fi
21885
21886 # Support unset when possible.
21887 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21888   as_unset=unset
21889 else
21890   as_unset=false
21891 fi
21892
21893
21894 # IFS
21895 # We need space, tab and new line, in precisely that order.  Quoting is
21896 # there to prevent editors from complaining about space-tab.
21897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21898 # splitting by setting IFS to empty value.)
21899 IFS=" ""        $as_nl"
21900
21901 # Find who we are.  Look in the path if we contain no directory separator.
21902 case $0 in
21903   *[\\/]* ) as_myself=$0 ;;
21904   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21905 for as_dir in $PATH
21906 do
21907   IFS=$as_save_IFS
21908   test -z "$as_dir" && as_dir=.
21909   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21910 done
21911 IFS=$as_save_IFS
21912
21913      ;;
21914 esac
21915 # We did not find ourselves, most probably we were run as `sh COMMAND'
21916 # in which case we are not to be found in the path.
21917 if test "x$as_myself" = x; then
21918   as_myself=$0
21919 fi
21920 if test ! -f "$as_myself"; then
21921   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21922   { (exit 1); exit 1; }
21923 fi
21924
21925 # Work around bugs in pre-3.0 UWIN ksh.
21926 for as_var in ENV MAIL MAILPATH
21927 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21928 done
21929 PS1='$ '
21930 PS2='> '
21931 PS4='+ '
21932
21933 # NLS nuisances.
21934 LC_ALL=C
21935 export LC_ALL
21936 LANGUAGE=C
21937 export LANGUAGE
21938
21939 # Required to use basename.
21940 if expr a : '\(a\)' >/dev/null 2>&1 &&
21941    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21942   as_expr=expr
21943 else
21944   as_expr=false
21945 fi
21946
21947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21948   as_basename=basename
21949 else
21950   as_basename=false
21951 fi
21952
21953
21954 # Name of the executable.
21955 as_me=`$as_basename -- "$0" ||
21956 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21957          X"$0" : 'X\(//\)$' \| \
21958          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21959 $as_echo X/"$0" |
21960     sed '/^.*\/\([^/][^/]*\)\/*$/{
21961             s//\1/
21962             q
21963           }
21964           /^X\/\(\/\/\)$/{
21965             s//\1/
21966             q
21967           }
21968           /^X\/\(\/\).*/{
21969             s//\1/
21970             q
21971           }
21972           s/.*/./; q'`
21973
21974 # CDPATH.
21975 $as_unset CDPATH
21976
21977
21978
21979   as_lineno_1=$LINENO
21980   as_lineno_2=$LINENO
21981   test "x$as_lineno_1" != "x$as_lineno_2" &&
21982   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21983
21984   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21985   # uniformly replaced by the line number.  The first 'sed' inserts a
21986   # line-number line after each line using $LINENO; the second 'sed'
21987   # does the real work.  The second script uses 'N' to pair each
21988   # line-number line with the line containing $LINENO, and appends
21989   # trailing '-' during substitution so that $LINENO is not a special
21990   # case at line end.
21991   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21992   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21993   # E. McMahon (1931-1989) for sed's syntax.  :-)
21994   sed -n '
21995     p
21996     /[$]LINENO/=
21997   ' <$as_myself |
21998     sed '
21999       s/[$]LINENO.*/&-/
22000       t lineno
22001       b
22002       :lineno
22003       N
22004       :loop
22005       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22006       t loop
22007       s/-\n.*//
22008     ' >$as_me.lineno &&
22009   chmod +x "$as_me.lineno" ||
22010     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22011    { (exit 1); exit 1; }; }
22012
22013   # Don't try to exec as it changes $[0], causing all sort of problems
22014   # (the dirname of $[0] is not the place where we might find the
22015   # original and so on.  Autoconf is especially sensitive to this).
22016   . "./$as_me.lineno"
22017   # Exit status is that of the last command.
22018   exit
22019 }
22020
22021
22022 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22023   as_dirname=dirname
22024 else
22025   as_dirname=false
22026 fi
22027
22028 ECHO_C= ECHO_N= ECHO_T=
22029 case `echo -n x` in
22030 -n*)
22031   case `echo 'x\c'` in
22032   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22033   *)   ECHO_C='\c';;
22034   esac;;
22035 *)
22036   ECHO_N='-n';;
22037 esac
22038 if expr a : '\(a\)' >/dev/null 2>&1 &&
22039    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22040   as_expr=expr
22041 else
22042   as_expr=false
22043 fi
22044
22045 rm -f conf$$ conf$$.exe conf$$.file
22046 if test -d conf$$.dir; then
22047   rm -f conf$$.dir/conf$$.file
22048 else
22049   rm -f conf$$.dir
22050   mkdir conf$$.dir 2>/dev/null
22051 fi
22052 if (echo >conf$$.file) 2>/dev/null; then
22053   if ln -s conf$$.file conf$$ 2>/dev/null; then
22054     as_ln_s='ln -s'
22055     # ... but there are two gotchas:
22056     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22057     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22058     # In both cases, we have to default to `cp -p'.
22059     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22060       as_ln_s='cp -p'
22061   elif ln conf$$.file conf$$ 2>/dev/null; then
22062     as_ln_s=ln
22063   else
22064     as_ln_s='cp -p'
22065   fi
22066 else
22067   as_ln_s='cp -p'
22068 fi
22069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22070 rmdir conf$$.dir 2>/dev/null
22071
22072 if mkdir -p . 2>/dev/null; then
22073   as_mkdir_p=:
22074 else
22075   test -d ./-p && rmdir ./-p
22076   as_mkdir_p=false
22077 fi
22078
22079 if test -x / >/dev/null 2>&1; then
22080   as_test_x='test -x'
22081 else
22082   if ls -dL / >/dev/null 2>&1; then
22083     as_ls_L_option=L
22084   else
22085     as_ls_L_option=
22086   fi
22087   as_test_x='
22088     eval sh -c '\''
22089       if test -d "$1"; then
22090         test -d "$1/.";
22091       else
22092         case $1 in
22093         -*)set "./$1";;
22094         esac;
22095         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22096         ???[sx]*):;;*)false;;esac;fi
22097     '\'' sh
22098   '
22099 fi
22100 as_executable_p=$as_test_x
22101
22102 # Sed expression to map a string onto a valid CPP name.
22103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22104
22105 # Sed expression to map a string onto a valid variable name.
22106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22107
22108
22109 exec 6>&1
22110
22111 # Save the log message, to keep $[0] and so on meaningful, and to
22112 # report actual input values of CONFIG_FILES etc. instead of their
22113 # values after options handling.
22114 ac_log="
22115 This file was extended by libantlr3c $as_me 3.2, which was
22116 generated by GNU Autoconf 2.63.  Invocation command line was
22117
22118   CONFIG_FILES    = $CONFIG_FILES
22119   CONFIG_HEADERS  = $CONFIG_HEADERS
22120   CONFIG_LINKS    = $CONFIG_LINKS
22121   CONFIG_COMMANDS = $CONFIG_COMMANDS
22122   $ $0 $@
22123
22124 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22125 "
22126
22127 _ACEOF
22128
22129 case $ac_config_files in *"
22130 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22131 esac
22132
22133 case $ac_config_headers in *"
22134 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22135 esac
22136
22137
22138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22139 # Files that config.status was made for.
22140 config_files="$ac_config_files"
22141 config_headers="$ac_config_headers"
22142 config_commands="$ac_config_commands"
22143
22144 _ACEOF
22145
22146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22147 ac_cs_usage="\
22148 \`$as_me' instantiates files from templates according to the
22149 current configuration.
22150
22151 Usage: $0 [OPTION]... [FILE]...
22152
22153   -h, --help       print this help, then exit
22154   -V, --version    print version number and configuration settings, then exit
22155   -q, --quiet, --silent
22156                    do not print progress messages
22157   -d, --debug      don't remove temporary files
22158       --recheck    update $as_me by reconfiguring in the same conditions
22159       --file=FILE[:TEMPLATE]
22160                    instantiate the configuration file FILE
22161       --header=FILE[:TEMPLATE]
22162                    instantiate the configuration header FILE
22163
22164 Configuration files:
22165 $config_files
22166
22167 Configuration headers:
22168 $config_headers
22169
22170 Configuration commands:
22171 $config_commands
22172
22173 Report bugs to <bug-autoconf@gnu.org>."
22174
22175 _ACEOF
22176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22177 ac_cs_version="\\
22178 libantlr3c config.status 3.2
22179 configured by $0, generated by GNU Autoconf 2.63,
22180   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22181
22182 Copyright (C) 2008 Free Software Foundation, Inc.
22183 This config.status script is free software; the Free Software Foundation
22184 gives unlimited permission to copy, distribute and modify it."
22185
22186 ac_pwd='$ac_pwd'
22187 srcdir='$srcdir'
22188 INSTALL='$INSTALL'
22189 AWK='$AWK'
22190 test -n "\$AWK" || AWK=awk
22191 _ACEOF
22192
22193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22194 # The default lists apply if the user does not specify any file.
22195 ac_need_defaults=:
22196 while test $# != 0
22197 do
22198   case $1 in
22199   --*=*)
22200     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22201     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22202     ac_shift=:
22203     ;;
22204   *)
22205     ac_option=$1
22206     ac_optarg=$2
22207     ac_shift=shift
22208     ;;
22209   esac
22210
22211   case $ac_option in
22212   # Handling of the options.
22213   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22214     ac_cs_recheck=: ;;
22215   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22216     $as_echo "$ac_cs_version"; exit ;;
22217   --debug | --debu | --deb | --de | --d | -d )
22218     debug=: ;;
22219   --file | --fil | --fi | --f )
22220     $ac_shift
22221     case $ac_optarg in
22222     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22223     esac
22224     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22225     ac_need_defaults=false;;
22226   --header | --heade | --head | --hea )
22227     $ac_shift
22228     case $ac_optarg in
22229     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22230     esac
22231     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22232     ac_need_defaults=false;;
22233   --he | --h)
22234     # Conflict between --help and --header
22235     { $as_echo "$as_me: error: ambiguous option: $1
22236 Try \`$0 --help' for more information." >&2
22237    { (exit 1); exit 1; }; };;
22238   --help | --hel | -h )
22239     $as_echo "$ac_cs_usage"; exit ;;
22240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22241   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22242     ac_cs_silent=: ;;
22243
22244   # This is an error.
22245   -*) { $as_echo "$as_me: error: unrecognized option: $1
22246 Try \`$0 --help' for more information." >&2
22247    { (exit 1); exit 1; }; } ;;
22248
22249   *) ac_config_targets="$ac_config_targets $1"
22250      ac_need_defaults=false ;;
22251
22252   esac
22253   shift
22254 done
22255
22256 ac_configure_extra_args=
22257
22258 if $ac_cs_silent; then
22259   exec 6>/dev/null
22260   ac_configure_extra_args="$ac_configure_extra_args --silent"
22261 fi
22262
22263 _ACEOF
22264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22265 if \$ac_cs_recheck; then
22266   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22267   shift
22268   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22269   CONFIG_SHELL='$SHELL'
22270   export CONFIG_SHELL
22271   exec "\$@"
22272 fi
22273
22274 _ACEOF
22275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22276 exec 5>>config.log
22277 {
22278   echo
22279   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22280 ## Running $as_me. ##
22281 _ASBOX
22282   $as_echo "$ac_log"
22283 } >&5
22284
22285 _ACEOF
22286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22287 #
22288 # INIT-COMMANDS
22289 #
22290 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22291
22292 _ACEOF
22293
22294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22295
22296 # Handling of arguments.
22297 for ac_config_target in $ac_config_targets
22298 do
22299   case $ac_config_target in
22300     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22301     "antlr3config.h") CONFIG_HEADERS="$CONFIG_HEADERS antlr3config.h" ;;
22302     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22303
22304   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22305 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22306    { (exit 1); exit 1; }; };;
22307   esac
22308 done
22309
22310
22311 # If the user did not use the arguments to specify the items to instantiate,
22312 # then the envvar interface is used.  Set only those that are not.
22313 # We use the long form for the default assignment because of an extremely
22314 # bizarre bug on SunOS 4.1.3.
22315 if $ac_need_defaults; then
22316   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22317   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22318   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22319 fi
22320
22321 # Have a temporary directory for convenience.  Make it in the build tree
22322 # simply because there is no reason against having it here, and in addition,
22323 # creating and moving files from /tmp can sometimes cause problems.
22324 # Hook for its removal unless debugging.
22325 # Note that there is a small window in which the directory will not be cleaned:
22326 # after its creation but before its name has been assigned to `$tmp'.
22327 $debug ||
22328 {
22329   tmp=
22330   trap 'exit_status=$?
22331   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22332 ' 0
22333   trap '{ (exit 1); exit 1; }' 1 2 13 15
22334 }
22335 # Create a (secure) tmp directory for tmp files.
22336
22337 {
22338   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22339   test -n "$tmp" && test -d "$tmp"
22340 }  ||
22341 {
22342   tmp=./conf$$-$RANDOM
22343   (umask 077 && mkdir "$tmp")
22344 } ||
22345 {
22346    $as_echo "$as_me: cannot create a temporary directory in ." >&2
22347    { (exit 1); exit 1; }
22348 }
22349
22350 # Set up the scripts for CONFIG_FILES section.
22351 # No need to generate them if there are no CONFIG_FILES.
22352 # This happens for instance with `./config.status config.h'.
22353 if test -n "$CONFIG_FILES"; then
22354
22355
22356 ac_cr='
22357 '
22358 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22359 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22360   ac_cs_awk_cr='\\r'
22361 else
22362   ac_cs_awk_cr=$ac_cr
22363 fi
22364
22365 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22366 _ACEOF
22367
22368
22369 {
22370   echo "cat >conf$$subs.awk <<_ACEOF" &&
22371   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22372   echo "_ACEOF"
22373 } >conf$$subs.sh ||
22374   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22375 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22376    { (exit 1); exit 1; }; }
22377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22378 ac_delim='%!_!# '
22379 for ac_last_try in false false false false false :; do
22380   . ./conf$$subs.sh ||
22381     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22382 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22383    { (exit 1); exit 1; }; }
22384
22385   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22386   if test $ac_delim_n = $ac_delim_num; then
22387     break
22388   elif $ac_last_try; then
22389     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22390 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22391    { (exit 1); exit 1; }; }
22392   else
22393     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22394   fi
22395 done
22396 rm -f conf$$subs.sh
22397
22398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22399 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22400 _ACEOF
22401 sed -n '
22402 h
22403 s/^/S["/; s/!.*/"]=/
22404 p
22405 g
22406 s/^[^!]*!//
22407 :repl
22408 t repl
22409 s/'"$ac_delim"'$//
22410 t delim
22411 :nl
22412 h
22413 s/\(.\{148\}\).*/\1/
22414 t more1
22415 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22416 p
22417 n
22418 b repl
22419 :more1
22420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22421 p
22422 g
22423 s/.\{148\}//
22424 t nl
22425 :delim
22426 h
22427 s/\(.\{148\}\).*/\1/
22428 t more2
22429 s/["\\]/\\&/g; s/^/"/; s/$/"/
22430 p
22431 b
22432 :more2
22433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22434 p
22435 g
22436 s/.\{148\}//
22437 t delim
22438 ' <conf$$subs.awk | sed '
22439 /^[^""]/{
22440   N
22441   s/\n//
22442 }
22443 ' >>$CONFIG_STATUS || ac_write_fail=1
22444 rm -f conf$$subs.awk
22445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22446 _ACAWK
22447 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22448   for (key in S) S_is_set[key] = 1
22449   FS = "\a"
22450
22451 }
22452 {
22453   line = $ 0
22454   nfields = split(line, field, "@")
22455   substed = 0
22456   len = length(field[1])
22457   for (i = 2; i < nfields; i++) {
22458     key = field[i]
22459     keylen = length(key)
22460     if (S_is_set[key]) {
22461       value = S[key]
22462       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22463       len += length(value) + length(field[++i])
22464       substed = 1
22465     } else
22466       len += 1 + keylen
22467   }
22468
22469   print line
22470 }
22471
22472 _ACAWK
22473 _ACEOF
22474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22475 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22476   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22477 else
22478   cat
22479 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22480   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22481 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22482    { (exit 1); exit 1; }; }
22483 _ACEOF
22484
22485 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22486 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22487 # trailing colons and then remove the whole line if VPATH becomes empty
22488 # (actually we leave an empty line to preserve line numbers).
22489 if test "x$srcdir" = x.; then
22490   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22491 s/:*\$(srcdir):*/:/
22492 s/:*\${srcdir}:*/:/
22493 s/:*@srcdir@:*/:/
22494 s/^\([^=]*=[     ]*\):*/\1/
22495 s/:*$//
22496 s/^[^=]*=[       ]*$//
22497 }'
22498 fi
22499
22500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22501 fi # test -n "$CONFIG_FILES"
22502
22503 # Set up the scripts for CONFIG_HEADERS section.
22504 # No need to generate them if there are no CONFIG_HEADERS.
22505 # This happens for instance with `./config.status Makefile'.
22506 if test -n "$CONFIG_HEADERS"; then
22507 cat >"$tmp/defines.awk" <<\_ACAWK ||
22508 BEGIN {
22509 _ACEOF
22510
22511 # Transform confdefs.h into an awk script `defines.awk', embedded as
22512 # here-document in config.status, that substitutes the proper values into
22513 # config.h.in to produce config.h.
22514
22515 # Create a delimiter string that does not exist in confdefs.h, to ease
22516 # handling of long lines.
22517 ac_delim='%!_!# '
22518 for ac_last_try in false false :; do
22519   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22520   if test -z "$ac_t"; then
22521     break
22522   elif $ac_last_try; then
22523     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22524 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22525    { (exit 1); exit 1; }; }
22526   else
22527     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22528   fi
22529 done
22530
22531 # For the awk script, D is an array of macro values keyed by name,
22532 # likewise P contains macro parameters if any.  Preserve backslash
22533 # newline sequences.
22534
22535 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22536 sed -n '
22537 s/.\{148\}/&'"$ac_delim"'/g
22538 t rset
22539 :rset
22540 s/^[     ]*#[    ]*define[       ][      ]*/ /
22541 t def
22542 d
22543 :def
22544 s/\\$//
22545 t bsnl
22546 s/["\\]/\\&/g
22547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22548 D["\1"]=" \3"/p
22549 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22550 d
22551 :bsnl
22552 s/["\\]/\\&/g
22553 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22554 D["\1"]=" \3\\\\\\n"\\/p
22555 t cont
22556 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22557 t cont
22558 d
22559 :cont
22560 n
22561 s/.\{148\}/&'"$ac_delim"'/g
22562 t clear
22563 :clear
22564 s/\\$//
22565 t bsnlc
22566 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22567 d
22568 :bsnlc
22569 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22570 b cont
22571 ' <confdefs.h | sed '
22572 s/'"$ac_delim"'/"\\\
22573 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22574
22575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22576   for (key in D) D_is_set[key] = 1
22577   FS = "\a"
22578 }
22579 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22580   line = \$ 0
22581   split(line, arg, " ")
22582   if (arg[1] == "#") {
22583     defundef = arg[2]
22584     mac1 = arg[3]
22585   } else {
22586     defundef = substr(arg[1], 2)
22587     mac1 = arg[2]
22588   }
22589   split(mac1, mac2, "(") #)
22590   macro = mac2[1]
22591   prefix = substr(line, 1, index(line, defundef) - 1)
22592   if (D_is_set[macro]) {
22593     # Preserve the white space surrounding the "#".
22594     print prefix "define", macro P[macro] D[macro]
22595     next
22596   } else {
22597     # Replace #undef with comments.  This is necessary, for example,
22598     # in the case of _POSIX_SOURCE, which is predefined and required
22599     # on some systems where configure will not decide to define it.
22600     if (defundef == "undef") {
22601       print "/*", prefix defundef, macro, "*/"
22602       next
22603     }
22604   }
22605 }
22606 { print }
22607 _ACAWK
22608 _ACEOF
22609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22610   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22611 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22612    { (exit 1); exit 1; }; }
22613 fi # test -n "$CONFIG_HEADERS"
22614
22615
22616 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22617 shift
22618 for ac_tag
22619 do
22620   case $ac_tag in
22621   :[FHLC]) ac_mode=$ac_tag; continue;;
22622   esac
22623   case $ac_mode$ac_tag in
22624   :[FHL]*:*);;
22625   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22626 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22627    { (exit 1); exit 1; }; };;
22628   :[FH]-) ac_tag=-:-;;
22629   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22630   esac
22631   ac_save_IFS=$IFS
22632   IFS=:
22633   set x $ac_tag
22634   IFS=$ac_save_IFS
22635   shift
22636   ac_file=$1
22637   shift
22638
22639   case $ac_mode in
22640   :L) ac_source=$1;;
22641   :[FH])
22642     ac_file_inputs=
22643     for ac_f
22644     do
22645       case $ac_f in
22646       -) ac_f="$tmp/stdin";;
22647       *) # Look for the file first in the build tree, then in the source tree
22648          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22649          # because $ac_f cannot contain `:'.
22650          test -f "$ac_f" ||
22651            case $ac_f in
22652            [\\/$]*) false;;
22653            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22654            esac ||
22655            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22656 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22657    { (exit 1); exit 1; }; };;
22658       esac
22659       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22660       ac_file_inputs="$ac_file_inputs '$ac_f'"
22661     done
22662
22663     # Let's still pretend it is `configure' which instantiates (i.e., don't
22664     # use $as_me), people would be surprised to read:
22665     #    /* config.h.  Generated by config.status.  */
22666     configure_input='Generated from '`
22667           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22668         `' by configure.'
22669     if test x"$ac_file" != x-; then
22670       configure_input="$ac_file.  $configure_input"
22671       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22672 $as_echo "$as_me: creating $ac_file" >&6;}
22673     fi
22674     # Neutralize special characters interpreted by sed in replacement strings.
22675     case $configure_input in #(
22676     *\&* | *\|* | *\\* )
22677        ac_sed_conf_input=`$as_echo "$configure_input" |
22678        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22679     *) ac_sed_conf_input=$configure_input;;
22680     esac
22681
22682     case $ac_tag in
22683     *:-:* | *:-) cat >"$tmp/stdin" \
22684       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22685 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22686    { (exit 1); exit 1; }; } ;;
22687     esac
22688     ;;
22689   esac
22690
22691   ac_dir=`$as_dirname -- "$ac_file" ||
22692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22693          X"$ac_file" : 'X\(//\)[^/]' \| \
22694          X"$ac_file" : 'X\(//\)$' \| \
22695          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22696 $as_echo X"$ac_file" |
22697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22698             s//\1/
22699             q
22700           }
22701           /^X\(\/\/\)[^/].*/{
22702             s//\1/
22703             q
22704           }
22705           /^X\(\/\/\)$/{
22706             s//\1/
22707             q
22708           }
22709           /^X\(\/\).*/{
22710             s//\1/
22711             q
22712           }
22713           s/.*/./; q'`
22714   { as_dir="$ac_dir"
22715   case $as_dir in #(
22716   -*) as_dir=./$as_dir;;
22717   esac
22718   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22719     as_dirs=
22720     while :; do
22721       case $as_dir in #(
22722       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22723       *) as_qdir=$as_dir;;
22724       esac
22725       as_dirs="'$as_qdir' $as_dirs"
22726       as_dir=`$as_dirname -- "$as_dir" ||
22727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22728          X"$as_dir" : 'X\(//\)[^/]' \| \
22729          X"$as_dir" : 'X\(//\)$' \| \
22730          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22731 $as_echo X"$as_dir" |
22732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22733             s//\1/
22734             q
22735           }
22736           /^X\(\/\/\)[^/].*/{
22737             s//\1/
22738             q
22739           }
22740           /^X\(\/\/\)$/{
22741             s//\1/
22742             q
22743           }
22744           /^X\(\/\).*/{
22745             s//\1/
22746             q
22747           }
22748           s/.*/./; q'`
22749       test -d "$as_dir" && break
22750     done
22751     test -z "$as_dirs" || eval "mkdir $as_dirs"
22752   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22753 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22754    { (exit 1); exit 1; }; }; }
22755   ac_builddir=.
22756
22757 case "$ac_dir" in
22758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22759 *)
22760   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22761   # A ".." for each directory in $ac_dir_suffix.
22762   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22763   case $ac_top_builddir_sub in
22764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22766   esac ;;
22767 esac
22768 ac_abs_top_builddir=$ac_pwd
22769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22770 # for backward compatibility:
22771 ac_top_builddir=$ac_top_build_prefix
22772
22773 case $srcdir in
22774   .)  # We are building in place.
22775     ac_srcdir=.
22776     ac_top_srcdir=$ac_top_builddir_sub
22777     ac_abs_top_srcdir=$ac_pwd ;;
22778   [\\/]* | ?:[\\/]* )  # Absolute name.
22779     ac_srcdir=$srcdir$ac_dir_suffix;
22780     ac_top_srcdir=$srcdir
22781     ac_abs_top_srcdir=$srcdir ;;
22782   *) # Relative name.
22783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22784     ac_top_srcdir=$ac_top_build_prefix$srcdir
22785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22786 esac
22787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22788
22789
22790   case $ac_mode in
22791   :F)
22792   #
22793   # CONFIG_FILE
22794   #
22795
22796   case $INSTALL in
22797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22798   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22799   esac
22800 _ACEOF
22801
22802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22803 # If the template does not know about datarootdir, expand it.
22804 # FIXME: This hack should be removed a few years after 2.60.
22805 ac_datarootdir_hack=; ac_datarootdir_seen=
22806
22807 ac_sed_dataroot='
22808 /datarootdir/ {
22809   p
22810   q
22811 }
22812 /@datadir@/p
22813 /@docdir@/p
22814 /@infodir@/p
22815 /@localedir@/p
22816 /@mandir@/p
22817 '
22818 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22819 *datarootdir*) ac_datarootdir_seen=yes;;
22820 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22821   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22822 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22823 _ACEOF
22824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22825   ac_datarootdir_hack='
22826   s&@datadir@&$datadir&g
22827   s&@docdir@&$docdir&g
22828   s&@infodir@&$infodir&g
22829   s&@localedir@&$localedir&g
22830   s&@mandir@&$mandir&g
22831     s&\\\${datarootdir}&$datarootdir&g' ;;
22832 esac
22833 _ACEOF
22834
22835 # Neutralize VPATH when `$srcdir' = `.'.
22836 # Shell code in configure.ac might set extrasub.
22837 # FIXME: do we really want to maintain this feature?
22838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22839 ac_sed_extra="$ac_vpsub
22840 $extrasub
22841 _ACEOF
22842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22843 :t
22844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22845 s|@configure_input@|$ac_sed_conf_input|;t t
22846 s&@top_builddir@&$ac_top_builddir_sub&;t t
22847 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22848 s&@srcdir@&$ac_srcdir&;t t
22849 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22850 s&@top_srcdir@&$ac_top_srcdir&;t t
22851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22852 s&@builddir@&$ac_builddir&;t t
22853 s&@abs_builddir@&$ac_abs_builddir&;t t
22854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22855 s&@INSTALL@&$ac_INSTALL&;t t
22856 $ac_datarootdir_hack
22857 "
22858 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22859   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22860 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22861    { (exit 1); exit 1; }; }
22862
22863 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22864   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22865   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22866   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22867 which seems to be undefined.  Please make sure it is defined." >&5
22868 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22869 which seems to be undefined.  Please make sure it is defined." >&2;}
22870
22871   rm -f "$tmp/stdin"
22872   case $ac_file in
22873   -) cat "$tmp/out" && rm -f "$tmp/out";;
22874   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22875   esac \
22876   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22877 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22878    { (exit 1); exit 1; }; }
22879  ;;
22880   :H)
22881   #
22882   # CONFIG_HEADER
22883   #
22884   if test x"$ac_file" != x-; then
22885     {
22886       $as_echo "/* $configure_input  */" \
22887       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22888     } >"$tmp/config.h" \
22889       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22890 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22891    { (exit 1); exit 1; }; }
22892     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22893       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22894 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22895     else
22896       rm -f "$ac_file"
22897       mv "$tmp/config.h" "$ac_file" \
22898         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22899 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22900    { (exit 1); exit 1; }; }
22901     fi
22902   else
22903     $as_echo "/* $configure_input  */" \
22904       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22905       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22906 $as_echo "$as_me: error: could not create -" >&2;}
22907    { (exit 1); exit 1; }; }
22908   fi
22909 # Compute "$ac_file"'s index in $config_headers.
22910 _am_stamp_count=1
22911 for _am_header in $config_headers :; do
22912   case $_am_header in
22913     "$ac_file" | "$ac_file":* )
22914       break ;;
22915     * )
22916       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22917   esac
22918 done
22919 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
22920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22921          X"$ac_file" : 'X\(//\)[^/]' \| \
22922          X"$ac_file" : 'X\(//\)$' \| \
22923          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22924 $as_echo X"$ac_file" |
22925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22926             s//\1/
22927             q
22928           }
22929           /^X\(\/\/\)[^/].*/{
22930             s//\1/
22931             q
22932           }
22933           /^X\(\/\/\)$/{
22934             s//\1/
22935             q
22936           }
22937           /^X\(\/\).*/{
22938             s//\1/
22939             q
22940           }
22941           s/.*/./; q'`/stamp-h$_am_stamp_count
22942  ;;
22943
22944   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22945 $as_echo "$as_me: executing $ac_file commands" >&6;}
22946  ;;
22947   esac
22948
22949
22950   case $ac_file$ac_mode in
22951     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22952   # Strip MF so we end up with the name of the file.
22953   mf=`echo "$mf" | sed -e 's/:.*$//'`
22954   # Check whether this is an Automake generated Makefile or not.
22955   # We used to match only the files named `Makefile.in', but
22956   # some people rename them; so instead we look at the file content.
22957   # Grep'ing the first line is not enough: some people post-process
22958   # each Makefile.in and add a new line on top of each file to say so.
22959   # So let's grep whole file.
22960   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22961     dirpart=`$as_dirname -- "$mf" ||
22962 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22963          X"$mf" : 'X\(//\)[^/]' \| \
22964          X"$mf" : 'X\(//\)$' \| \
22965          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22966 $as_echo X"$mf" |
22967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22968             s//\1/
22969             q
22970           }
22971           /^X\(\/\/\)[^/].*/{
22972             s//\1/
22973             q
22974           }
22975           /^X\(\/\/\)$/{
22976             s//\1/
22977             q
22978           }
22979           /^X\(\/\).*/{
22980             s//\1/
22981             q
22982           }
22983           s/.*/./; q'`
22984   else
22985     continue
22986   fi
22987   # Extract the definition of DEPDIR, am__include, and am__quote
22988   # from the Makefile without running `make'.
22989   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22990   test -z "$DEPDIR" && continue
22991   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22992   test -z "am__include" && continue
22993   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22994   # When using ansi2knr, U may be empty or an underscore; expand it
22995   U=`sed -n 's/^U = //p' < "$mf"`
22996   # Find all dependency output files, they are included files with
22997   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22998   # simplest approach to changing $(DEPDIR) to its actual value in the
22999   # expansion.
23000   for file in `sed -n "
23001     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23002        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23003     # Make sure the directory exists.
23004     test -f "$dirpart/$file" && continue
23005     fdir=`$as_dirname -- "$file" ||
23006 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23007          X"$file" : 'X\(//\)[^/]' \| \
23008          X"$file" : 'X\(//\)$' \| \
23009          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23010 $as_echo X"$file" |
23011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23012             s//\1/
23013             q
23014           }
23015           /^X\(\/\/\)[^/].*/{
23016             s//\1/
23017             q
23018           }
23019           /^X\(\/\/\)$/{
23020             s//\1/
23021             q
23022           }
23023           /^X\(\/\).*/{
23024             s//\1/
23025             q
23026           }
23027           s/.*/./; q'`
23028     { as_dir=$dirpart/$fdir
23029   case $as_dir in #(
23030   -*) as_dir=./$as_dir;;
23031   esac
23032   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23033     as_dirs=
23034     while :; do
23035       case $as_dir in #(
23036       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23037       *) as_qdir=$as_dir;;
23038       esac
23039       as_dirs="'$as_qdir' $as_dirs"
23040       as_dir=`$as_dirname -- "$as_dir" ||
23041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23042          X"$as_dir" : 'X\(//\)[^/]' \| \
23043          X"$as_dir" : 'X\(//\)$' \| \
23044          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23045 $as_echo X"$as_dir" |
23046     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23047             s//\1/
23048             q
23049           }
23050           /^X\(\/\/\)[^/].*/{
23051             s//\1/
23052             q
23053           }
23054           /^X\(\/\/\)$/{
23055             s//\1/
23056             q
23057           }
23058           /^X\(\/\).*/{
23059             s//\1/
23060             q
23061           }
23062           s/.*/./; q'`
23063       test -d "$as_dir" && break
23064     done
23065     test -z "$as_dirs" || eval "mkdir $as_dirs"
23066   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23067 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23068    { (exit 1); exit 1; }; }; }
23069     # echo "creating $dirpart/$file"
23070     echo '# dummy' > "$dirpart/$file"
23071   done
23072 done
23073  ;;
23074
23075   esac
23076 done # for ac_tag
23077
23078
23079 { (exit 0); exit 0; }
23080 _ACEOF
23081 chmod +x $CONFIG_STATUS
23082 ac_clean_files=$ac_clean_files_save
23083
23084 test $ac_write_fail = 0 ||
23085   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23086 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23087    { (exit 1); exit 1; }; }
23088
23089
23090 # configure is writing to config.log, and then calls config.status.
23091 # config.status does its own redirection, appending to config.log.
23092 # Unfortunately, on DOS this fails, as config.log is still kept open
23093 # by configure, so config.status won't be able to write to it; its
23094 # output is simply discarded.  So we exec the FD to /dev/null,
23095 # effectively closing config.log, so it can be properly (re)opened and
23096 # appended to by config.status.  When coming back to configure, we
23097 # need to make the FD available again.
23098 if test "$no_create" != yes; then
23099   ac_cs_success=:
23100   ac_config_status_args=
23101   test "$silent" = yes &&
23102     ac_config_status_args="$ac_config_status_args --quiet"
23103   exec 5>/dev/null
23104   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23105   exec 5>>config.log
23106   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23107   # would make configure fail if this is the last instruction.
23108   $ac_cs_success || { (exit 1); exit 1; }
23109 fi
23110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23111   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23113 fi
23114