Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $echo works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<EOF
567 $*
568 EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582        echo_test_string=`eval $cmd` &&
583        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584     then
585       break
586     fi
587   done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592    test "X$echo_testing_string" = "X$echo_test_string"; then
593   :
594 else
595   # The Solaris, AIX, and Digital Unix default echo programs unquote
596   # backslashes.  This makes it impossible to quote backslashes using
597   #   echo "$something" | sed 's/\\/\\\\/g'
598   #
599   # So, first we look for a working echo in the user's PATH.
600
601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602   for dir in $PATH /usr/ucb; do
603     IFS="$lt_save_ifs"
604     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607        test "X$echo_testing_string" = "X$echo_test_string"; then
608       echo="$dir/echo"
609       break
610     fi
611   done
612   IFS="$lt_save_ifs"
613
614   if test "X$echo" = Xecho; then
615     # We didn't find a better echo, so look for alternatives.
616     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618        test "X$echo_testing_string" = "X$echo_test_string"; then
619       # This shell has a builtin print -r that does the trick.
620       echo='print -r'
621     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622          test "X$CONFIG_SHELL" != X/bin/ksh; then
623       # If we have ksh, try running configure again with it.
624       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625       export ORIGINAL_CONFIG_SHELL
626       CONFIG_SHELL=/bin/ksh
627       export CONFIG_SHELL
628       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629     else
630       # Try using printf.
631       echo='printf %s\n'
632       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # Cool, printf works
636         :
637       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638            test "X$echo_testing_string" = 'X\t' &&
639            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640            test "X$echo_testing_string" = "X$echo_test_string"; then
641         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642         export CONFIG_SHELL
643         SHELL="$CONFIG_SHELL"
644         export SHELL
645         echo="$CONFIG_SHELL $0 --fallback-echo"
646       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647            test "X$echo_testing_string" = 'X\t' &&
648            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649            test "X$echo_testing_string" = "X$echo_test_string"; then
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       else
652         # maybe with a smaller string...
653         prev=:
654
655         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657           then
658             break
659           fi
660           prev="$cmd"
661         done
662
663         if test "$prev" != 'sed 50q "$0"'; then
664           echo_test_string=`eval $prev`
665           export echo_test_string
666           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667         else
668           # Oops.  We lost completely, so just stick with echo.
669           echo=echo
670         fi
671       fi
672     fi
673   fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="src/"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 #  include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 #  include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 build
793 build_cpu
794 build_vendor
795 build_os
796 host
797 host_cpu
798 host_vendor
799 host_os
800 SHARED
801 CC
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
805 ac_ct_CC
806 EXEEXT
807 OBJEXT
808 CXX
809 CXXFLAGS
810 ac_ct_CXX
811 CPP
812 RANLIB
813 SET_MAKE
814 INSTALL_PROGRAM
815 INSTALL_SCRIPT
816 INSTALL_DATA
817 LN_S
818 GREP
819 EGREP
820 ECHO
821 AR
822 STRIP
823 CXXCPP
824 F77
825 FFLAGS
826 ac_ct_F77
827 LIBTOOL
828 UNCOMPRESS
829 AREXT
830 SLEXT
831 CXXLIBS
832 target
833 target_cpu
834 target_vendor
835 target_os
836 WORDS_BIGENDIAN
837 SYSTEM_BACKTICKS
838 PACKAGE
839 VERSION
840 HAVE_UNISTD_H
841 FREETYPE_CONFIG
842 lame_objects
843 AVIFILE_CONFIG
844 VIDEO_LIBS
845 VIDEO_CFLAGS
846 USE_GZIP
847 PYTHON_LIB
848 PYTHON_INCLUDES
849 PDF2SWF
850 LIBPDF
851 JPEG2SWF
852 GIF2SWF
853 PNG2SWF
854 LIBOBJS
855 LTLIBOBJS'
856 ac_subst_files=''
857       ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 CC
861 CFLAGS
862 LDFLAGS
863 CPPFLAGS
864 CXX
865 CXXFLAGS
866 CCC
867 CPP
868 CXXCPP
869 F77
870 FFLAGS'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
878 cache_file=/dev/null
879 exec_prefix=NONE
880 no_create=
881 no_recursion=
882 prefix=NONE
883 program_prefix=NONE
884 program_suffix=NONE
885 program_transform_name=s,x,x,
886 silent=
887 site=
888 srcdir=
889 verbose=
890 x_includes=NONE
891 x_libraries=NONE
892
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923   # If the previous option needs an argument, assign it.
924   if test -n "$ac_prev"; then
925     eval $ac_prev=\$ac_option
926     ac_prev=
927     continue
928   fi
929
930   case $ac_option in
931   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932   *)    ac_optarg=yes ;;
933   esac
934
935   # Accept the important Cygnus configure options, so we can diagnose typos.
936
937   case $ac_dashdash$ac_option in
938   --)
939     ac_dashdash=yes ;;
940
941   -bindir | --bindir | --bindi | --bind | --bin | --bi)
942     ac_prev=bindir ;;
943   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944     bindir=$ac_optarg ;;
945
946   -build | --build | --buil | --bui | --bu)
947     ac_prev=build_alias ;;
948   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949     build_alias=$ac_optarg ;;
950
951   -cache-file | --cache-file | --cache-fil | --cache-fi \
952   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953     ac_prev=cache_file ;;
954   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956     cache_file=$ac_optarg ;;
957
958   --config-cache | -C)
959     cache_file=config.cache ;;
960
961   -datadir | --datadir | --datadi | --datad)
962     ac_prev=datadir ;;
963   -datadir=* | --datadir=* | --datadi=* | --datad=*)
964     datadir=$ac_optarg ;;
965
966   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967   | --dataroo | --dataro | --datar)
968     ac_prev=datarootdir ;;
969   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971     datarootdir=$ac_optarg ;;
972
973   -disable-* | --disable-*)
974     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978    { (exit 1); exit 1; }; }
979     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980     eval enable_$ac_feature=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
996       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997    { (exit 1); exit 1; }; }
998     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
999     eval enable_$ac_feature=\$ac_optarg ;;
1000
1001   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003   | --exec | --exe | --ex)
1004     ac_prev=exec_prefix ;;
1005   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007   | --exec=* | --exe=* | --ex=*)
1008     exec_prefix=$ac_optarg ;;
1009
1010   -gas | --gas | --ga | --g)
1011     # Obsolete; use --with-gas.
1012     with_gas=yes ;;
1013
1014   -help | --help | --hel | --he | -h)
1015     ac_init_help=long ;;
1016   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017     ac_init_help=recursive ;;
1018   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019     ac_init_help=short ;;
1020
1021   -host | --host | --hos | --ho)
1022     ac_prev=host_alias ;;
1023   -host=* | --host=* | --hos=* | --ho=*)
1024     host_alias=$ac_optarg ;;
1025
1026   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027     ac_prev=htmldir ;;
1028   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029   | --ht=*)
1030     htmldir=$ac_optarg ;;
1031
1032   -includedir | --includedir | --includedi | --included | --include \
1033   | --includ | --inclu | --incl | --inc)
1034     ac_prev=includedir ;;
1035   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036   | --includ=* | --inclu=* | --incl=* | --inc=*)
1037     includedir=$ac_optarg ;;
1038
1039   -infodir | --infodir | --infodi | --infod | --info | --inf)
1040     ac_prev=infodir ;;
1041   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042     infodir=$ac_optarg ;;
1043
1044   -libdir | --libdir | --libdi | --libd)
1045     ac_prev=libdir ;;
1046   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047     libdir=$ac_optarg ;;
1048
1049   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050   | --libexe | --libex | --libe)
1051     ac_prev=libexecdir ;;
1052   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053   | --libexe=* | --libex=* | --libe=*)
1054     libexecdir=$ac_optarg ;;
1055
1056   -localedir | --localedir | --localedi | --localed | --locale)
1057     ac_prev=localedir ;;
1058   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059     localedir=$ac_optarg ;;
1060
1061   -localstatedir | --localstatedir | --localstatedi | --localstated \
1062   | --localstate | --localstat | --localsta | --localst | --locals)
1063     ac_prev=localstatedir ;;
1064   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066     localstatedir=$ac_optarg ;;
1067
1068   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069     ac_prev=mandir ;;
1070   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071     mandir=$ac_optarg ;;
1072
1073   -nfp | --nfp | --nf)
1074     # Obsolete; use --without-fp.
1075     with_fp=no ;;
1076
1077   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078   | --no-cr | --no-c | -n)
1079     no_create=yes ;;
1080
1081   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083     no_recursion=yes ;;
1084
1085   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087   | --oldin | --oldi | --old | --ol | --o)
1088     ac_prev=oldincludedir ;;
1089   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092     oldincludedir=$ac_optarg ;;
1093
1094   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095     ac_prev=prefix ;;
1096   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097     prefix=$ac_optarg ;;
1098
1099   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100   | --program-pre | --program-pr | --program-p)
1101     ac_prev=program_prefix ;;
1102   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104     program_prefix=$ac_optarg ;;
1105
1106   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107   | --program-suf | --program-su | --program-s)
1108     ac_prev=program_suffix ;;
1109   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111     program_suffix=$ac_optarg ;;
1112
1113   -program-transform-name | --program-transform-name \
1114   | --program-transform-nam | --program-transform-na \
1115   | --program-transform-n | --program-transform- \
1116   | --program-transform | --program-transfor \
1117   | --program-transfo | --program-transf \
1118   | --program-trans | --program-tran \
1119   | --progr-tra | --program-tr | --program-t)
1120     ac_prev=program_transform_name ;;
1121   -program-transform-name=* | --program-transform-name=* \
1122   | --program-transform-nam=* | --program-transform-na=* \
1123   | --program-transform-n=* | --program-transform-=* \
1124   | --program-transform=* | --program-transfor=* \
1125   | --program-transfo=* | --program-transf=* \
1126   | --program-trans=* | --program-tran=* \
1127   | --progr-tra=* | --program-tr=* | --program-t=*)
1128     program_transform_name=$ac_optarg ;;
1129
1130   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131     ac_prev=pdfdir ;;
1132   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133     pdfdir=$ac_optarg ;;
1134
1135   -psdir | --psdir | --psdi | --psd | --ps)
1136     ac_prev=psdir ;;
1137   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138     psdir=$ac_optarg ;;
1139
1140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141   | -silent | --silent | --silen | --sile | --sil)
1142     silent=yes ;;
1143
1144   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145     ac_prev=sbindir ;;
1146   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147   | --sbi=* | --sb=*)
1148     sbindir=$ac_optarg ;;
1149
1150   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152   | --sharedst | --shareds | --shared | --share | --shar \
1153   | --sha | --sh)
1154     ac_prev=sharedstatedir ;;
1155   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158   | --sha=* | --sh=*)
1159     sharedstatedir=$ac_optarg ;;
1160
1161   -site | --site | --sit)
1162     ac_prev=site ;;
1163   -site=* | --site=* | --sit=*)
1164     site=$ac_optarg ;;
1165
1166   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167     ac_prev=srcdir ;;
1168   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169     srcdir=$ac_optarg ;;
1170
1171   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172   | --syscon | --sysco | --sysc | --sys | --sy)
1173     ac_prev=sysconfdir ;;
1174   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176     sysconfdir=$ac_optarg ;;
1177
1178   -target | --target | --targe | --targ | --tar | --ta | --t)
1179     ac_prev=target_alias ;;
1180   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181     target_alias=$ac_optarg ;;
1182
1183   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184     verbose=yes ;;
1185
1186   -version | --version | --versio | --versi | --vers | -V)
1187     ac_init_version=: ;;
1188
1189   -with-* | --with-*)
1190     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1193       { echo "$as_me: error: invalid package name: $ac_package" >&2
1194    { (exit 1); exit 1; }; }
1195     ac_package=`echo $ac_package| sed 's/-/_/g'`
1196     eval with_$ac_package=\$ac_optarg ;;
1197
1198   -without-* | --without-*)
1199     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1202       { echo "$as_me: error: invalid package name: $ac_package" >&2
1203    { (exit 1); exit 1; }; }
1204     ac_package=`echo $ac_package | sed 's/-/_/g'`
1205     eval with_$ac_package=no ;;
1206
1207   --x)
1208     # Obsolete; use --with-x.
1209     with_x=yes ;;
1210
1211   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212   | --x-incl | --x-inc | --x-in | --x-i)
1213     ac_prev=x_includes ;;
1214   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216     x_includes=$ac_optarg ;;
1217
1218   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220     ac_prev=x_libraries ;;
1221   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223     x_libraries=$ac_optarg ;;
1224
1225   -*) { echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227    { (exit 1); exit 1; }; }
1228     ;;
1229
1230   *=*)
1231     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1234       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235    { (exit 1); exit 1; }; }
1236     eval $ac_envvar=\$ac_optarg
1237     export $ac_envvar ;;
1238
1239   *)
1240     # FIXME: should be removed in autoconf 3.0.
1241     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245     ;;
1246
1247   esac
1248 done
1249
1250 if test -n "$ac_prev"; then
1251   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252   { echo "$as_me: error: missing argument to $ac_option" >&2
1253    { (exit 1); exit 1; }; }
1254 fi
1255
1256 # Be sure to have absolute directory names.
1257 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258                 datadir sysconfdir sharedstatedir localstatedir includedir \
1259                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260                 libdir localedir mandir
1261 do
1262   eval ac_val=\$$ac_var
1263   case $ac_val in
1264     [\\/$]* | ?:[\\/]* )  continue;;
1265     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266   esac
1267   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1268    { (exit 1); exit 1; }; }
1269 done
1270
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280   if test "x$build_alias" = x; then
1281     cross_compiling=maybe
1282     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283     If a cross compiler is detected then cross compile mode will be used." >&2
1284   elif test "x$build_alias" != "x$host_alias"; then
1285     cross_compiling=yes
1286   fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298   { echo "$as_me: error: Working directory cannot be determined" >&2
1299    { (exit 1); exit 1; }; }
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301   { echo "$as_me: error: pwd does not report name of working directory" >&2
1302    { (exit 1); exit 1; }; }
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307   ac_srcdir_defaulted=yes
1308   # Try the directory containing this script, then the parent directory.
1309   ac_confdir=`$as_dirname -- "$0" ||
1310 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311          X"$0" : 'X\(//\)[^/]' \| \
1312          X"$0" : 'X\(//\)$' \| \
1313          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1314 echo X"$0" |
1315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\/\)[^/].*/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\).*/{
1328             s//\1/
1329             q
1330           }
1331           s/.*/./; q'`
1332   srcdir=$ac_confdir
1333   if test ! -r "$srcdir/$ac_unique_file"; then
1334     srcdir=..
1335   fi
1336 else
1337   ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1342    { (exit 1); exit 1; }; }
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1347    { (exit 1); exit 1; }; }
1348         pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351   srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_env_${ac_var}_value=\$${ac_var}
1362   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370   # Omit some internal or obsolete options to make the list less imposing.
1371   # This message is too long to be a string in the A/UX 3.1 sh.
1372   cat <<_ACEOF
1373 \`configure' configures this package to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE.  See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383   -h, --help              display this help and exit
1384       --help=short        display options specific to this package
1385       --help=recursive    display the short help of all the included packages
1386   -V, --version           display version information and exit
1387   -q, --quiet, --silent   do not print \`checking...' messages
1388       --cache-file=FILE   cache test results in FILE [disabled]
1389   -C, --config-cache      alias for \`--cache-file=config.cache'
1390   -n, --no-create         do not create output files
1391       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394   --prefix=PREFIX         install architecture-independent files in PREFIX
1395                           [$ac_default_prefix]
1396   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1397                           [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407   --bindir=DIR           user executables [EPREFIX/bin]
1408   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1409   --libexecdir=DIR       program executables [EPREFIX/libexec]
1410   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1411   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1412   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1413   --libdir=DIR           object code libraries [EPREFIX/lib]
1414   --includedir=DIR       C header files [PREFIX/include]
1415   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1416   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1417   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1418   --infodir=DIR          info documentation [DATAROOTDIR/info]
1419   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1420   --mandir=DIR           man documentation [DATAROOTDIR/man]
1421   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1422   --htmldir=DIR          html documentation [DOCDIR]
1423   --dvidir=DIR           dvi documentation [DOCDIR]
1424   --pdfdir=DIR           pdf documentation [DOCDIR]
1425   --psdir=DIR            ps documentation [DOCDIR]
1426 _ACEOF
1427
1428   cat <<\_ACEOF
1429
1430 Program names:
1431   --program-prefix=PREFIX            prepend PREFIX to installed program names
1432   --program-suffix=SUFFIX            append SUFFIX to installed program names
1433   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1434
1435 System types:
1436   --build=BUILD     configure for building on BUILD [guessed]
1437   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1438   --target=TARGET   configure for building compilers for TARGET [HOST]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443
1444   cat <<\_ACEOF
1445
1446 Optional Features:
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --enable-checkmem       turn on ccmalloc debugging
1450   --enable-debug          turn on debugging
1451   --enable-profiling      turn on profiling
1452   --enable-warnings        turn on compiler warnings
1453   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1454   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1455   --enable-shared[=PKGS]  build shared libraries [default=yes]
1456   --enable-static[=PKGS]  build static libraries [default=yes]
1457   --enable-fast-install[=PKGS]
1458                           optimize for fast installation [default=yes]
1459   --disable-libtool-lock  avoid locking (might break parallel builds)
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465   --with-pic              try to use only PIC/non-PIC objects [default=use
1466                           both]
1467   --with-tags[=TAGS]      include additional configurations [automatic]
1468
1469 Some influential environment variables:
1470   CC          C compiler command
1471   CFLAGS      C compiler flags
1472   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1473               nonstandard directory <lib dir>
1474   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475               you have headers in a nonstandard directory <include dir>
1476   CXX         C++ compiler command
1477   CXXFLAGS    C++ compiler flags
1478   CPP         C preprocessor
1479   CXXCPP      C++ preprocessor
1480   F77         Fortran 77 compiler command
1481   FFLAGS      Fortran 77 compiler flags
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 _ACEOF
1487 ac_status=$?
1488 fi
1489
1490 if test "$ac_init_help" = "recursive"; then
1491   # If there are subdirs, report their specific --help.
1492   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493     test -d "$ac_dir" || continue
1494     ac_builddir=.
1495
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *)
1499   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1500   # A ".." for each directory in $ac_dir_suffix.
1501   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1502   case $ac_top_builddir_sub in
1503   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505   esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1511
1512 case $srcdir in
1513   .)  # We are building in place.
1514     ac_srcdir=.
1515     ac_top_srcdir=$ac_top_builddir_sub
1516     ac_abs_top_srcdir=$ac_pwd ;;
1517   [\\/]* | ?:[\\/]* )  # Absolute name.
1518     ac_srcdir=$srcdir$ac_dir_suffix;
1519     ac_top_srcdir=$srcdir
1520     ac_abs_top_srcdir=$srcdir ;;
1521   *) # Relative name.
1522     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523     ac_top_srcdir=$ac_top_build_prefix$srcdir
1524     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528     cd "$ac_dir" || { ac_status=$?; continue; }
1529     # Check for guested configure.
1530     if test -f "$ac_srcdir/configure.gnu"; then
1531       echo &&
1532       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533     elif test -f "$ac_srcdir/configure"; then
1534       echo &&
1535       $SHELL "$ac_srcdir/configure" --help=recursive
1536     else
1537       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538     fi || ac_status=$?
1539     cd "$ac_pwd" || { ac_status=$?; break; }
1540   done
1541 fi
1542
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545   cat <<\_ACEOF
1546 configure
1547 generated by GNU Autoconf 2.60
1548
1549 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554   exit
1555 fi
1556 cat >config.log <<_ACEOF
1557 This file contains any messages produced by compilers while
1558 running configure, to aid debugging if configure makes a mistake.
1559
1560 It was created by $as_me, which was
1561 generated by GNU Autoconf 2.60.  Invocation command line was
1562
1563   $ $0 $@
1564
1565 _ACEOF
1566 exec 5>>config.log
1567 {
1568 cat <<_ASUNAME
1569 ## --------- ##
1570 ## Platform. ##
1571 ## --------- ##
1572
1573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1578
1579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1581
1582 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1583 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1585 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1586 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1587 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1588 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1589
1590 _ASUNAME
1591
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595   IFS=$as_save_IFS
1596   test -z "$as_dir" && as_dir=.
1597   echo "PATH: $as_dir"
1598 done
1599 IFS=$as_save_IFS
1600
1601 } >&5
1602
1603 cat >&5 <<_ACEOF
1604
1605
1606 ## ----------- ##
1607 ## Core tests. ##
1608 ## ----------- ##
1609
1610 _ACEOF
1611
1612
1613 # Keep a trace of the command line.
1614 # Strip out --no-create and --no-recursion so they do not pile up.
1615 # Strip out --silent because we don't want to record it for future runs.
1616 # Also quote any args containing shell meta-characters.
1617 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_configure_args=
1619 ac_configure_args0=
1620 ac_configure_args1=
1621 ac_must_keep_next=false
1622 for ac_pass in 1 2
1623 do
1624   for ac_arg
1625   do
1626     case $ac_arg in
1627     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629     | -silent | --silent | --silen | --sile | --sil)
1630       continue ;;
1631     *\'*)
1632       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633     esac
1634     case $ac_pass in
1635     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1636     2)
1637       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1638       if test $ac_must_keep_next = true; then
1639         ac_must_keep_next=false # Got value, back to normal.
1640       else
1641         case $ac_arg in
1642           *=* | --config-cache | -C | -disable-* | --disable-* \
1643           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645           | -with-* | --with-* | -without-* | --without-* | --x)
1646             case "$ac_configure_args0 " in
1647               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648             esac
1649             ;;
1650           -* ) ac_must_keep_next=true ;;
1651         esac
1652       fi
1653       ac_configure_args="$ac_configure_args '$ac_arg'"
1654       ;;
1655     esac
1656   done
1657 done
1658 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1660
1661 # When interrupted or exit'd, cleanup temporary files, and complete
1662 # config.log.  We remove comments because anyway the quotes in there
1663 # would cause problems or look ugly.
1664 # WARNING: Use '\'' to represent an apostrophe within the trap.
1665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1666 trap 'exit_status=$?
1667   # Save into config.log some information that might help in debugging.
1668   {
1669     echo
1670
1671     cat <<\_ASBOX
1672 ## ---------------- ##
1673 ## Cache variables. ##
1674 ## ---------------- ##
1675 _ASBOX
1676     echo
1677     # The following way of writing the cache mishandles newlines in values,
1678 (
1679   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680     eval ac_val=\$$ac_var
1681     case $ac_val in #(
1682     *${as_nl}*)
1683       case $ac_var in #(
1684       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1686       esac
1687       case $ac_var in #(
1688       _ | IFS | as_nl) ;; #(
1689       *) $as_unset $ac_var ;;
1690       esac ;;
1691     esac
1692   done
1693   (set) 2>&1 |
1694     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1695     *${as_nl}ac_space=\ *)
1696       sed -n \
1697         "s/'\''/'\''\\\\'\'''\''/g;
1698           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699       ;; #(
1700     *)
1701       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702       ;;
1703     esac |
1704     sort
1705 )
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ----------------- ##
1710 ## Output variables. ##
1711 ## ----------------- ##
1712 _ASBOX
1713     echo
1714     for ac_var in $ac_subst_vars
1715     do
1716       eval ac_val=\$$ac_var
1717       case $ac_val in
1718       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1719       esac
1720       echo "$ac_var='\''$ac_val'\''"
1721     done | sort
1722     echo
1723
1724     if test -n "$ac_subst_files"; then
1725       cat <<\_ASBOX
1726 ## ------------------- ##
1727 ## File substitutions. ##
1728 ## ------------------- ##
1729 _ASBOX
1730       echo
1731       for ac_var in $ac_subst_files
1732       do
1733         eval ac_val=\$$ac_var
1734         case $ac_val in
1735         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736         esac
1737         echo "$ac_var='\''$ac_val'\''"
1738       done | sort
1739       echo
1740     fi
1741
1742     if test -s confdefs.h; then
1743       cat <<\_ASBOX
1744 ## ----------- ##
1745 ## confdefs.h. ##
1746 ## ----------- ##
1747 _ASBOX
1748       echo
1749       cat confdefs.h
1750       echo
1751     fi
1752     test "$ac_signal" != 0 &&
1753       echo "$as_me: caught signal $ac_signal"
1754     echo "$as_me: exit $exit_status"
1755   } >&5
1756   rm -f core *.core core.conftest.* &&
1757     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1758     exit $exit_status
1759 ' 0
1760 for ac_signal in 1 2 13 15; do
1761   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 done
1763 ac_signal=0
1764
1765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1766 rm -f -r conftest* confdefs.h
1767
1768 # Predefined preprocessor variables.
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 _ACEOF
1793
1794
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer explicitly selected file to automatically selected ones.
1797 if test -n "$CONFIG_SITE"; then
1798   set x "$CONFIG_SITE"
1799 elif test "x$prefix" != xNONE; then
1800   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1801 else
1802   set x "$ac_default_prefix/share/config.site" \
1803         "$ac_default_prefix/etc/config.site"
1804 fi
1805 shift
1806 for ac_site_file
1807 do
1808   if test -r "$ac_site_file"; then
1809     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 echo "$as_me: loading site script $ac_site_file" >&6;}
1811     sed 's/^/| /' "$ac_site_file" >&5
1812     . "$ac_site_file"
1813   fi
1814 done
1815
1816 if test -r "$cache_file"; then
1817   # Some versions of bash will fail to source /dev/null (special
1818   # files actually), so we avoid doing that.
1819   if test -f "$cache_file"; then
1820     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 echo "$as_me: loading cache $cache_file" >&6;}
1822     case $cache_file in
1823       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824       *)                      . "./$cache_file";;
1825     esac
1826   fi
1827 else
1828   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 echo "$as_me: creating cache $cache_file" >&6;}
1830   >$cache_file
1831 fi
1832
1833 # Check that the precious variables saved in the cache have kept the same
1834 # value.
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838   eval ac_new_set=\$ac_env_${ac_var}_set
1839   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840   eval ac_new_val=\$ac_env_${ac_var}_value
1841   case $ac_old_set,$ac_new_set in
1842     set,)
1843       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845       ac_cache_corrupted=: ;;
1846     ,set)
1847       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849       ac_cache_corrupted=: ;;
1850     ,);;
1851     *)
1852       if test "x$ac_old_val" != "x$ac_new_val"; then
1853         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1856 echo "$as_me:   former value:  $ac_old_val" >&2;}
1857         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1858 echo "$as_me:   current value: $ac_new_val" >&2;}
1859         ac_cache_corrupted=:
1860       fi;;
1861   esac
1862   # Pass precious variables to config.status.
1863   if test "$ac_new_set" = set; then
1864     case $ac_new_val in
1865     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1866     *) ac_arg=$ac_var=$ac_new_val ;;
1867     esac
1868     case " $ac_configure_args " in
1869       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1870       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1871     esac
1872   fi
1873 done
1874 if $ac_cache_corrupted; then
1875   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879    { (exit 1); exit 1; }; }
1880 fi
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906
1907 # Check whether --enable-checkmem was given.
1908 if test "${enable_checkmem+set}" = set; then
1909   enableval=$enable_checkmem; CHECKMEM=true
1910 fi
1911
1912 # Check whether --enable-debug was given.
1913 if test "${enable_debug+set}" = set; then
1914   enableval=$enable_debug; DEBUG=true
1915 fi
1916
1917 # Check whether --enable-profiling was given.
1918 if test "${enable_profiling+set}" = set; then
1919   enableval=$enable_profiling; PROFILING=true
1920 fi
1921
1922 # Check whether --enable-warnings was given.
1923 if test "${enable_warnings+set}" = set; then
1924   enableval=$enable_warnings; ENABLE_WARNINGS=true
1925 fi
1926
1927 # Check whether --enable-optimizations was given.
1928 if test "${enable_optimizations+set}" = set; then
1929   enableval=$enable_optimizations; OPTIMIZE=true
1930 fi
1931
1932 # Check whether --enable-lame was given.
1933 if test "${enable_lame+set}" = set; then
1934   enableval=$enable_lame; DISABLE_LAME=true
1935 fi
1936
1937
1938 PACKAGE=swftools
1939 VERSION=2006-11-05-2341
1940
1941
1942 # ------------------------------------------------------------------
1943
1944 if test "x${srcdir}" != "x."; then
1945     echo "--srcdir is not supported"
1946     exit 1
1947 fi
1948
1949 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1950 if test "x$ENABLE_WARNINGS" '!=' "x";then
1951     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1952 fi
1953
1954 if test "x$CHECKMEM" '!=' "x";then
1955     DEBUG=yes
1956 fi
1957 if test "x$PROFILING" '!=' "x";then
1958     DEBUG=yes
1959 fi
1960 if test "x$DEBUG" '!=' "x";then
1961     if test "x$PROFILING" = "x";then
1962         CFLAGS="$WARNINGS -O2 -g -D_FORTIFY_SOURCE=2 $CFLAGS"
1963         CXXFLAGS="$WARNINGS -O2 -g -D_FORTIFY_SOURCE=2 $CXXFLAGS"
1964     else
1965         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1966         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1967         LDFLAGS="-g -pg $LIBS"
1968     fi
1969 else if test "x$OPTIMIZE" '!=' "x"; then
1970     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1971     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1972 else
1973     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1974     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1975 fi
1976 fi
1977 #OLDGCC=1
1978 #if test "x$OLDGCC" '!=' "x";then
1979 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1980 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1981 #     CFLAGS="$CFLAGS -ansi -pendantic"
1982 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1983 #fi
1984
1985 export PACKAGE VERSION CFLAGS CXXFLAGS
1986
1987
1988 ac_aux_dir=
1989 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1990   if test -f "$ac_dir/install-sh"; then
1991     ac_aux_dir=$ac_dir
1992     ac_install_sh="$ac_aux_dir/install-sh -c"
1993     break
1994   elif test -f "$ac_dir/install.sh"; then
1995     ac_aux_dir=$ac_dir
1996     ac_install_sh="$ac_aux_dir/install.sh -c"
1997     break
1998   elif test -f "$ac_dir/shtool"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/shtool install -c"
2001     break
2002   fi
2003 done
2004 if test -z "$ac_aux_dir"; then
2005   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2006 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2007    { (exit 1); exit 1; }; }
2008 fi
2009
2010 # These three variables are undocumented and unsupported,
2011 # and are intended to be withdrawn in a future Autoconf release.
2012 # They can cause serious problems if a builder's source tree is in a directory
2013 # whose full name contains unusual characters.
2014 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2015 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2016 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2017
2018
2019 # Make sure we can run config.sub.
2020 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2021   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023    { (exit 1); exit 1; }; }
2024
2025 { echo "$as_me:$LINENO: checking build system type" >&5
2026 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_build+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   ac_build_alias=$build_alias
2031 test "x$ac_build_alias" = x &&
2032   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033 test "x$ac_build_alias" = x &&
2034   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036    { (exit 1); exit 1; }; }
2037 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2038   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040    { (exit 1); exit 1; }; }
2041
2042 fi
2043 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044 echo "${ECHO_T}$ac_cv_build" >&6; }
2045 case $ac_cv_build in
2046 *-*-*) ;;
2047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048 echo "$as_me: error: invalid value of canonical build" >&2;}
2049    { (exit 1); exit 1; }; };;
2050 esac
2051 build=$ac_cv_build
2052 ac_save_IFS=$IFS; IFS='-'
2053 set x $ac_cv_build
2054 shift
2055 build_cpu=$1
2056 build_vendor=$2
2057 shift; shift
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2060 build_os=$*
2061 IFS=$ac_save_IFS
2062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063
2064
2065 { echo "$as_me:$LINENO: checking host system type" >&5
2066 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067 if test "${ac_cv_host+set}" = set; then
2068   echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070   if test "x$host_alias" = x; then
2071   ac_cv_host=$ac_cv_build
2072 else
2073   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076    { (exit 1); exit 1; }; }
2077 fi
2078
2079 fi
2080 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 echo "${ECHO_T}$ac_cv_host" >&6; }
2082 case $ac_cv_host in
2083 *-*-*) ;;
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085 echo "$as_me: error: invalid value of canonical host" >&2;}
2086    { (exit 1); exit 1; }; };;
2087 esac
2088 host=$ac_cv_host
2089 ac_save_IFS=$IFS; IFS='-'
2090 set x $ac_cv_host
2091 shift
2092 host_cpu=$1
2093 host_vendor=$2
2094 shift; shift
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2097 host_os=$*
2098 IFS=$ac_save_IFS
2099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100
2101
2102
2103 SHARED="-shared"
2104 MACOSX=
2105 case $host_os in
2106     *darwin* )
2107         MACOSX=yes
2108         CFLAGS="$CFLAGS"
2109         CXXFLAGS="$CXXFLAGS -fno-rtti"
2110         SHARED="-bundle"
2111         # Use fink packages if available.
2112         #if test -d /sw/include && test -d /sw/lib; then
2113         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2114         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2115         #fi
2116         ;;
2117 esac
2118
2119
2120
2121  ac_ext=c
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126 if test -n "$ac_tool_prefix"; then
2127   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$CC"; then
2135   ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2144     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150 IFS=$as_save_IFS
2151
2152 fi
2153 fi
2154 CC=$ac_cv_prog_CC
2155 if test -n "$CC"; then
2156   { echo "$as_me:$LINENO: result: $CC" >&5
2157 echo "${ECHO_T}$CC" >&6; }
2158 else
2159   { echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6; }
2161 fi
2162
2163
2164 fi
2165 if test -z "$ac_cv_prog_CC"; then
2166   ac_ct_CC=$CC
2167   # Extract the first word of "gcc", so it can be a program name with args.
2168 set dummy gcc; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$ac_ct_CC"; then
2175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     ac_cv_prog_ac_ct_CC="gcc"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193 fi
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6; }
2198 else
2199   { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 fi
2202
2203   if test "x$ac_ct_CC" = x; then
2204     CC=""
2205   else
2206     case $cross_compiling:$ac_tool_warned in
2207 yes:)
2208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2209 whose name does not start with the host triplet.  If you think this
2210 configuration is useful to you, please write to autoconf@gnu.org." >&5
2211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2212 whose name does not start with the host triplet.  If you think this
2213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2214 ac_tool_warned=yes ;;
2215 esac
2216     CC=$ac_ct_CC
2217   fi
2218 else
2219   CC="$ac_cv_prog_CC"
2220 fi
2221
2222 if test -z "$CC"; then
2223           if test -n "$ac_tool_prefix"; then
2224     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}cc; ac_word=$2
2226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$CC"; then
2232   ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2241     ac_cv_prog_CC="${ac_tool_prefix}cc"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253   { echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6; }
2255 else
2256   { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2258 fi
2259
2260
2261   fi
2262 fi
2263 if test -z "$CC"; then
2264   # Extract the first word of "cc", so it can be a program name with args.
2265 set dummy cc; ac_word=$2
2266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2268 if test "${ac_cv_prog_CC+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   if test -n "$CC"; then
2272   ac_cv_prog_CC="$CC" # Let the user override the test.
2273 else
2274   ac_prog_rejected=no
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280   for ac_exec_ext in '' $ac_executable_extensions; do
2281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2282     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2283        ac_prog_rejected=yes
2284        continue
2285      fi
2286     ac_cv_prog_CC="cc"
2287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291 done
2292 IFS=$as_save_IFS
2293
2294 if test $ac_prog_rejected = yes; then
2295   # We found a bogon in the path, so make sure we never use it.
2296   set dummy $ac_cv_prog_CC
2297   shift
2298   if test $# != 0; then
2299     # We chose a different compiler from the bogus one.
2300     # However, it has the same basename, so the bogon will be chosen
2301     # first if we set CC to just the basename; use the full file name.
2302     shift
2303     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2304   fi
2305 fi
2306 fi
2307 fi
2308 CC=$ac_cv_prog_CC
2309 if test -n "$CC"; then
2310   { echo "$as_me:$LINENO: result: $CC" >&5
2311 echo "${ECHO_T}$CC" >&6; }
2312 else
2313   { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2315 fi
2316
2317
2318 fi
2319 if test -z "$CC"; then
2320   if test -n "$ac_tool_prefix"; then
2321   for ac_prog in cl.exe
2322   do
2323     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$CC"; then
2331   ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 CC=$ac_cv_prog_CC
2351 if test -n "$CC"; then
2352   { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360     test -n "$CC" && break
2361   done
2362 fi
2363 if test -z "$CC"; then
2364   ac_ct_CC=$CC
2365   for ac_prog in cl.exe
2366 do
2367   # Extract the first word of "$ac_prog", so it can be a program name with args.
2368 set dummy $ac_prog; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2372   echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374   if test -n "$ac_ct_CC"; then
2375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2379 do
2380   IFS=$as_save_IFS
2381   test -z "$as_dir" && as_dir=.
2382   for ac_exec_ext in '' $ac_executable_extensions; do
2383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2384     ac_cv_prog_ac_ct_CC="$ac_prog"
2385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386     break 2
2387   fi
2388 done
2389 done
2390 IFS=$as_save_IFS
2391
2392 fi
2393 fi
2394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2395 if test -n "$ac_ct_CC"; then
2396   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2397 echo "${ECHO_T}$ac_ct_CC" >&6; }
2398 else
2399   { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2401 fi
2402
2403
2404   test -n "$ac_ct_CC" && break
2405 done
2406
2407   if test "x$ac_ct_CC" = x; then
2408     CC=""
2409   else
2410     case $cross_compiling:$ac_tool_warned in
2411 yes:)
2412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet.  If you think this
2414 configuration is useful to you, please write to autoconf@gnu.org." >&5
2415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet.  If you think this
2417 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2418 ac_tool_warned=yes ;;
2419 esac
2420     CC=$ac_ct_CC
2421   fi
2422 fi
2423
2424 fi
2425
2426
2427 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: no acceptable C compiler found in \$PATH
2430 See \`config.log' for more details." >&2;}
2431    { (exit 1); exit 1; }; }
2432
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO: checking for C compiler version" >&5
2435 ac_compiler=`set X $ac_compile; echo $2`
2436 { (ac_try="$ac_compiler --version >&5"
2437 case "(($ac_try" in
2438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439   *) ac_try_echo=$ac_try;;
2440 esac
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442   (eval "$ac_compiler --version >&5") 2>&5
2443   ac_status=$?
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); }
2446 { (ac_try="$ac_compiler -v >&5"
2447 case "(($ac_try" in
2448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449   *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452   (eval "$ac_compiler -v >&5") 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }
2456 { (ac_try="$ac_compiler -V >&5"
2457 case "(($ac_try" in
2458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459   *) ac_try_echo=$ac_try;;
2460 esac
2461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462   (eval "$ac_compiler -V >&5") 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }
2466
2467 cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2473
2474 int
2475 main ()
2476 {
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 ac_clean_files_save=$ac_clean_files
2483 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2484 # Try to create an executable without -o first, disregard a.out.
2485 # It will help us diagnose broken compilers, and finding out an intuition
2486 # of exeext.
2487 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2488 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2489 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2490 #
2491 # List of possible output files, starting from the most likely.
2492 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2493 # only as a last resort.  b.out is created by i960 compilers.
2494 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2495 #
2496 # The IRIX 6 linker writes into existing files which may not be
2497 # executable, retaining their permissions.  Remove them first so a
2498 # subsequent execution test works.
2499 ac_rmfiles=
2500 for ac_file in $ac_files
2501 do
2502   case $ac_file in
2503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2504     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2505   esac
2506 done
2507 rm -f $ac_rmfiles
2508
2509 if { (ac_try="$ac_link_default"
2510 case "(($ac_try" in
2511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512   *) ac_try_echo=$ac_try;;
2513 esac
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515   (eval "$ac_link_default") 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; then
2519   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2520 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2521 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2522 # so that the user can short-circuit this test for compilers unknown to
2523 # Autoconf.
2524 for ac_file in $ac_files
2525 do
2526   test -f "$ac_file" || continue
2527   case $ac_file in
2528     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2529         ;;
2530     [ab].out )
2531         # We found the default executable, but exeext='' is most
2532         # certainly right.
2533         break;;
2534     *.* )
2535         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2536         then :; else
2537            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2538         fi
2539         # We set ac_cv_exeext here because the later test for it is not
2540         # safe: cross compilers may not add the suffix if given an `-o'
2541         # argument, so we may need to know it at that point already.
2542         # Even if this section looks crufty: it has the advantage of
2543         # actually working.
2544         break;;
2545     * )
2546         break;;
2547   esac
2548 done
2549 test "$ac_cv_exeext" = no && ac_cv_exeext=
2550
2551 else
2552   echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: C compiler cannot create executables
2558 See \`config.log' for more details." >&2;}
2559    { (exit 77); exit 77; }; }
2560 fi
2561
2562 ac_exeext=$ac_cv_exeext
2563 { echo "$as_me:$LINENO: result: $ac_file" >&5
2564 echo "${ECHO_T}$ac_file" >&6; }
2565
2566 # Check that the compiler produces executables we can run.  If not, either
2567 # the compiler is broken, or we cross compile.
2568 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2569 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2570 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2571 # If not cross compiling, check that we can run a simple program.
2572 if test "$cross_compiling" != yes; then
2573   if { ac_try='./$ac_file'
2574   { (case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_try") 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583     cross_compiling=no
2584   else
2585     if test "$cross_compiling" = maybe; then
2586         cross_compiling=yes
2587     else
2588         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&2;}
2594    { (exit 1); exit 1; }; }
2595     fi
2596   fi
2597 fi
2598 { echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6; }
2600
2601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2602 ac_clean_files=$ac_clean_files_save
2603 # Check that the compiler produces executables we can run.  If not, either
2604 # the compiler is broken, or we cross compile.
2605 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2607 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2608 echo "${ECHO_T}$cross_compiling" >&6; }
2609
2610 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2612 if { (ac_try="$ac_link"
2613 case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_link") 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; then
2622   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2623 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2624 # work properly (i.e., refer to `conftest.exe'), while it won't with
2625 # `rm'.
2626 for ac_file in conftest.exe conftest conftest.*; do
2627   test -f "$ac_file" || continue
2628   case $ac_file in
2629     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2630     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631           break;;
2632     * ) break;;
2633   esac
2634 done
2635 else
2636   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2639 See \`config.log' for more details." >&2;}
2640    { (exit 1); exit 1; }; }
2641 fi
2642
2643 rm -f conftest$ac_cv_exeext
2644 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2645 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2646
2647 rm -f conftest.$ac_ext
2648 EXEEXT=$ac_cv_exeext
2649 ac_exeext=$EXEEXT
2650 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2651 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2652 if test "${ac_cv_objext+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.o conftest.obj
2671 if { (ac_try="$ac_compile"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_compile") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; then
2681   for ac_file in conftest.o conftest.obj conftest.*; do
2682   test -f "$ac_file" || continue;
2683   case $ac_file in
2684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2685     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2686        break;;
2687   esac
2688 done
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2696 See \`config.log' for more details." >&2;}
2697    { (exit 1); exit 1; }; }
2698 fi
2699
2700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2701 fi
2702 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2703 echo "${ECHO_T}$ac_cv_objext" >&6; }
2704 OBJEXT=$ac_cv_objext
2705 ac_objext=$OBJEXT
2706 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721 #ifndef __GNUC__
2722        choke me
2723 #endif
2724
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733   *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736   (eval "$ac_compile") 2>conftest.er1
2737   ac_status=$?
2738   grep -v '^ *+' conftest.er1 >conftest.err
2739   rm -f conftest.er1
2740   cat conftest.err >&5
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744   { (case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_try") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_try") 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; }; then
2763   ac_compiler_gnu=yes
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768         ac_compiler_gnu=no
2769 fi
2770
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773
2774 fi
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   ac_save_c_werror_flag=$ac_c_werror_flag
2786    ac_c_werror_flag=yes
2787    ac_cv_prog_cc_g=no
2788    CFLAGS="-g"
2789    cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795
2796 int
2797 main ()
2798 {
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_compile") 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } &&
2818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2819   { (case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_try") 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; } &&
2828          { ac_try='test -s conftest.$ac_objext'
2829   { (case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_try") 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; }; then
2838   ac_cv_prog_cc_g=yes
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843         CFLAGS=""
2844       cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850
2851 int
2852 main ()
2853 {
2854
2855   ;
2856   return 0;
2857 }
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (ac_try="$ac_compile"
2861 case "(($ac_try" in
2862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863   *) ac_try_echo=$ac_try;;
2864 esac
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866   (eval "$ac_compile") 2>conftest.er1
2867   ac_status=$?
2868   grep -v '^ *+' conftest.er1 >conftest.err
2869   rm -f conftest.er1
2870   cat conftest.err >&5
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); } &&
2873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2874   { (case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_try") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; } &&
2883          { ac_try='test -s conftest.$ac_objext'
2884   { (case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_try") 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; }; then
2893   :
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898         ac_c_werror_flag=$ac_save_c_werror_flag
2899          CFLAGS="-g"
2900          cat >conftest.$ac_ext <<_ACEOF
2901 /* confdefs.h.  */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h.  */
2906
2907 int
2908 main ()
2909 {
2910
2911   ;
2912   return 0;
2913 }
2914 _ACEOF
2915 rm -f conftest.$ac_objext
2916 if { (ac_try="$ac_compile"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compile") 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2930   { (case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_try") 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; } &&
2939          { ac_try='test -s conftest.$ac_objext'
2940   { (case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_try") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; }; then
2949   ac_cv_prog_cc_g=yes
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954
2955 fi
2956
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 fi
2959
2960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 fi
2962
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964    ac_c_werror_flag=$ac_save_c_werror_flag
2965 fi
2966 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2968 if test "$ac_test_CFLAGS" = set; then
2969   CFLAGS=$ac_save_CFLAGS
2970 elif test $ac_cv_prog_cc_g = yes; then
2971   if test "$GCC" = yes; then
2972     CFLAGS="-g -O2"
2973   else
2974     CFLAGS="-g"
2975   fi
2976 else
2977   if test "$GCC" = yes; then
2978     CFLAGS="-O2"
2979   else
2980     CFLAGS=
2981   fi
2982 fi
2983 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2984 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_cc_c89+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   ac_cv_prog_cc_c89=no
2989 ac_save_CC=$CC
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996 #include <stdarg.h>
2997 #include <stdio.h>
2998 #include <sys/types.h>
2999 #include <sys/stat.h>
3000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3001 struct buf { int x; };
3002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3003 static char *e (p, i)
3004      char **p;
3005      int i;
3006 {
3007   return p[i];
3008 }
3009 static char *f (char * (*g) (char **, int), char **p, ...)
3010 {
3011   char *s;
3012   va_list v;
3013   va_start (v,p);
3014   s = g (p, va_arg (v,int));
3015   va_end (v);
3016   return s;
3017 }
3018
3019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3020    function prototypes and stuff, but not '\xHH' hex character constants.
3021    These don't provoke an error unfortunately, instead are silently treated
3022    as 'x'.  The following induces an error, until -std is added to get
3023    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3024    array size at least.  It's necessary to write '\x00'==0 to get something
3025    that's true only with -std.  */
3026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3027
3028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3029    inside strings and character constants.  */
3030 #define FOO(x) 'x'
3031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3032
3033 int test (int i, double x);
3034 struct s1 {int (*f) (int a);};
3035 struct s2 {int (*f) (double a);};
3036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3037 int argc;
3038 char **argv;
3039 int
3040 main ()
3041 {
3042 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3048         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3049 do
3050   CC="$ac_save_CC $ac_arg"
3051   rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_compile") 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } &&
3065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3066   { (case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_try") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }; } &&
3075          { ac_try='test -s conftest.$ac_objext'
3076   { (case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_try") 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   ac_cv_prog_cc_c89=$ac_arg
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090
3091 fi
3092
3093 rm -f core conftest.err conftest.$ac_objext
3094   test "x$ac_cv_prog_cc_c89" != "xno" && break
3095 done
3096 rm -f conftest.$ac_ext
3097 CC=$ac_save_CC
3098
3099 fi
3100 # AC_CACHE_VAL
3101 case "x$ac_cv_prog_cc_c89" in
3102   x)
3103     { echo "$as_me:$LINENO: result: none needed" >&5
3104 echo "${ECHO_T}none needed" >&6; } ;;
3105   xno)
3106     { echo "$as_me:$LINENO: result: unsupported" >&5
3107 echo "${ECHO_T}unsupported" >&6; } ;;
3108   *)
3109     CC="$CC $ac_cv_prog_cc_c89"
3110     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3112 esac
3113
3114
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120
3121  ac_ext=cpp
3122 ac_cpp='$CXXCPP $CPPFLAGS'
3123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3126 if test -z "$CXX"; then
3127   if test -n "$CCC"; then
3128     CXX=$CCC
3129   else
3130     if test -n "$ac_tool_prefix"; then
3131   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3132   do
3133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_CXX+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   if test -n "$CXX"; then
3141   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CXX=$ac_cv_prog_CXX
3161 if test -n "$CXX"; then
3162   { echo "$as_me:$LINENO: result: $CXX" >&5
3163 echo "${ECHO_T}$CXX" >&6; }
3164 else
3165   { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3167 fi
3168
3169
3170     test -n "$CXX" && break
3171   done
3172 fi
3173 if test -z "$CXX"; then
3174   ac_ct_CXX=$CXX
3175   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3176 do
3177   # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_CXX"; then
3185   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3194     ac_cv_prog_ac_ct_CXX="$ac_prog"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3205 if test -n "$ac_ct_CXX"; then
3206   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3207 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3208 else
3209   { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3211 fi
3212
3213
3214   test -n "$ac_ct_CXX" && break
3215 done
3216
3217   if test "x$ac_ct_CXX" = x; then
3218     CXX="g++"
3219   else
3220     case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet.  If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&5
3225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3226 whose name does not start with the host triplet.  If you think this
3227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230     CXX=$ac_ct_CXX
3231   fi
3232 fi
3233
3234   fi
3235 fi
3236 # Provide some information about the compiler.
3237 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3238 ac_compiler=`set X $ac_compile; echo $2`
3239 { (ac_try="$ac_compiler --version >&5"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245   (eval "$ac_compiler --version >&5") 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }
3249 { (ac_try="$ac_compiler -v >&5"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_compiler -v >&5") 2>&5
3256   ac_status=$?
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); }
3259 { (ac_try="$ac_compiler -V >&5"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265   (eval "$ac_compiler -V >&5") 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }
3269
3270 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3271 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3272 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281
3282 int
3283 main ()
3284 {
3285 #ifndef __GNUC__
3286        choke me
3287 #endif
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300   (eval "$ac_compile") 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } &&
3307          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3308   { (case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313   (eval "$ac_try") 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }; } &&
3317          { ac_try='test -s conftest.$ac_objext'
3318   { (case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_try") 2>&5
3324   ac_status=$?
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); }; }; then
3327   ac_compiler_gnu=yes
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332         ac_compiler_gnu=no
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3337
3338 fi
3339 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3340 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3341 GXX=`test $ac_compiler_gnu = yes && echo yes`
3342 ac_test_CXXFLAGS=${CXXFLAGS+set}
3343 ac_save_CXXFLAGS=$CXXFLAGS
3344 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3345 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3346 if test "${ac_cv_prog_cxx_g+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3350    ac_cxx_werror_flag=yes
3351    ac_cv_prog_cxx_g=no
3352    CXXFLAGS="-g"
3353    cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h.  */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h.  */
3359
3360 int
3361 main ()
3362 {
3363
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_compile") 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } &&
3382          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3383   { (case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_try") 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; } &&
3392          { ac_try='test -s conftest.$ac_objext'
3393   { (case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_try") 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; }; then
3402   ac_cv_prog_cxx_g=yes
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407         CXXFLAGS=""
3408       cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414
3415 int
3416 main ()
3417 {
3418
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427   *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430   (eval "$ac_compile") 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } &&
3437          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3438   { (case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_try") 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; } &&
3447          { ac_try='test -s conftest.$ac_objext'
3448   { (case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453   (eval "$ac_try") 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; }; then
3457   :
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3463          CXXFLAGS="-g"
3464          cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470
3471 int
3472 main ()
3473 {
3474
3475   ;
3476   return 0;
3477 }
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486   (eval "$ac_compile") 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } &&
3493          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3494   { (case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499   (eval "$ac_try") 2>&5
3500   ac_status=$?
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); }; } &&
3503          { ac_try='test -s conftest.$ac_objext'
3504   { (case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509   (eval "$ac_try") 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); }; }; then
3513   ac_cv_prog_cxx_g=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518
3519 fi
3520
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 fi
3523
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 fi
3526
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3529 fi
3530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3531 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3532 if test "$ac_test_CXXFLAGS" = set; then
3533   CXXFLAGS=$ac_save_CXXFLAGS
3534 elif test $ac_cv_prog_cxx_g = yes; then
3535   if test "$GXX" = yes; then
3536     CXXFLAGS="-g -O2"
3537   else
3538     CXXFLAGS="-g"
3539   fi
3540 else
3541   if test "$GXX" = yes; then
3542     CXXFLAGS="-O2"
3543   else
3544     CXXFLAGS=
3545   fi
3546 fi
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554
3555
3556 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3557 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3558
3559 cat > conftest.c << EOF
3560 #include <stdlib.h>
3561 #include <stdio.h>
3562
3563 int main (int argc, char*argv)
3564 {
3565     int a,b;
3566     b=3;
3567     int c;
3568     c=4;
3569     return 0;
3570 }
3571 EOF
3572
3573 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3574 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575   { echo "$as_me:$LINENO: result: yes" >&5
3576 echo "${ECHO_T}yes" >&6; }
3577   GCC_IS_OK=true
3578   export GCC_IS_OK
3579 else
3580   echo "configure: failed program was:" >&5
3581   cat conftest.c >&5
3582   { echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6; }
3584 fi
3585 rm -f conftest*
3586
3587
3588 if test "x$GCC_IS_OK" '=' "x";then
3589     echo "***************************************************"
3590     echo "* Your gcc is too old to compile this!"
3591     echo "* "
3592     echo "* The last version compilable by this compiler is "
3593     echo "* swftools 0.7.0, which you can download from "
3594     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3595     echo "* ."
3596     echo "* Newer versions require at least gcc 3.0.0 "
3597     echo "***************************************************"
3598     exit 1
3599 fi
3600
3601 if test "x$CHECKMEM" '!=' "x";then
3602     CC="ccmalloc $CC"
3603     CXX="ccmalloc $CXX"
3604     #echo running again
3605     #unset ac_cv_prog_CC
3606     #unset ac_cv_prog_CXX
3607     #AC_PROG_CC
3608     #AC_PROG_CXX
3609 fi
3610  ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3616 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3617 # On Suns, sometimes $CPP names a directory.
3618 if test -n "$CPP" && test -d "$CPP"; then
3619   CPP=
3620 fi
3621 if test -z "$CPP"; then
3622   if test "${ac_cv_prog_CPP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625       # Double quotes because CPP needs to be expanded
3626     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3627     do
3628       ac_preproc_ok=false
3629 for ac_c_preproc_warn_flag in '' yes
3630 do
3631   # Use a header file that comes with gcc, so configuring glibc
3632   # with a fresh cross-compiler works.
3633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634   # <limits.h> exists even on freestanding compilers.
3635   # On the NeXT, cc -E runs the code through the compiler's parser,
3636   # not just through cpp. "Syntax error" is here to catch this case.
3637   cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h.  */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h.  */
3643 #ifdef __STDC__
3644 # include <limits.h>
3645 #else
3646 # include <assert.h>
3647 #endif
3648                      Syntax error
3649 _ACEOF
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3657   ac_status=$?
3658   grep -v '^ *+' conftest.er1 >conftest.err
3659   rm -f conftest.er1
3660   cat conftest.err >&5
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } >/dev/null; then
3663   if test -s conftest.err; then
3664     ac_cpp_err=$ac_c_preproc_warn_flag
3665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3666   else
3667     ac_cpp_err=
3668   fi
3669 else
3670   ac_cpp_err=yes
3671 fi
3672 if test -z "$ac_cpp_err"; then
3673   :
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678   # Broken: fails on valid input.
3679 continue
3680 fi
3681
3682 rm -f conftest.err conftest.$ac_ext
3683
3684   # OK, works on sane cases.  Now check whether nonexistent headers
3685   # can be detected and how.
3686   cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692 #include <ac_nonexistent.h>
3693 _ACEOF
3694 if { (ac_try="$ac_cpp conftest.$ac_ext"
3695 case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } >/dev/null; then
3707   if test -s conftest.err; then
3708     ac_cpp_err=$ac_c_preproc_warn_flag
3709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710   else
3711     ac_cpp_err=
3712   fi
3713 else
3714   ac_cpp_err=yes
3715 fi
3716 if test -z "$ac_cpp_err"; then
3717   # Broken: success on invalid input.
3718 continue
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723   # Passes both tests.
3724 ac_preproc_ok=:
3725 break
3726 fi
3727
3728 rm -f conftest.err conftest.$ac_ext
3729
3730 done
3731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732 rm -f conftest.err conftest.$ac_ext
3733 if $ac_preproc_ok; then
3734   break
3735 fi
3736
3737     done
3738     ac_cv_prog_CPP=$CPP
3739
3740 fi
3741   CPP=$ac_cv_prog_CPP
3742 else
3743   ac_cv_prog_CPP=$CPP
3744 fi
3745 { echo "$as_me:$LINENO: result: $CPP" >&5
3746 echo "${ECHO_T}$CPP" >&6; }
3747 ac_preproc_ok=false
3748 for ac_c_preproc_warn_flag in '' yes
3749 do
3750   # Use a header file that comes with gcc, so configuring glibc
3751   # with a fresh cross-compiler works.
3752   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753   # <limits.h> exists even on freestanding compilers.
3754   # On the NeXT, cc -E runs the code through the compiler's parser,
3755   # not just through cpp. "Syntax error" is here to catch this case.
3756   cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762 #ifdef __STDC__
3763 # include <limits.h>
3764 #else
3765 # include <assert.h>
3766 #endif
3767                      Syntax error
3768 _ACEOF
3769 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 case "(($ac_try" in
3771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772   *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776   ac_status=$?
3777   grep -v '^ *+' conftest.er1 >conftest.err
3778   rm -f conftest.er1
3779   cat conftest.err >&5
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } >/dev/null; then
3782   if test -s conftest.err; then
3783     ac_cpp_err=$ac_c_preproc_warn_flag
3784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3785   else
3786     ac_cpp_err=
3787   fi
3788 else
3789   ac_cpp_err=yes
3790 fi
3791 if test -z "$ac_cpp_err"; then
3792   :
3793 else
3794   echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797   # Broken: fails on valid input.
3798 continue
3799 fi
3800
3801 rm -f conftest.err conftest.$ac_ext
3802
3803   # OK, works on sane cases.  Now check whether nonexistent headers
3804   # can be detected and how.
3805   cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h.  */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h.  */
3811 #include <ac_nonexistent.h>
3812 _ACEOF
3813 if { (ac_try="$ac_cpp conftest.$ac_ext"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3820   ac_status=$?
3821   grep -v '^ *+' conftest.er1 >conftest.err
3822   rm -f conftest.er1
3823   cat conftest.err >&5
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); } >/dev/null; then
3826   if test -s conftest.err; then
3827     ac_cpp_err=$ac_c_preproc_warn_flag
3828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3829   else
3830     ac_cpp_err=
3831   fi
3832 else
3833   ac_cpp_err=yes
3834 fi
3835 if test -z "$ac_cpp_err"; then
3836   # Broken: success on invalid input.
3837 continue
3838 else
3839   echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842   # Passes both tests.
3843 ac_preproc_ok=:
3844 break
3845 fi
3846
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 done
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3853   :
3854 else
3855   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&2;}
3859    { (exit 1); exit 1; }; }
3860 fi
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868
3869  if test -n "$ac_tool_prefix"; then
3870   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3874 if test "${ac_cv_prog_RANLIB+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   if test -n "$RANLIB"; then
3878   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883   IFS=$as_save_IFS
3884   test -z "$as_dir" && as_dir=.
3885   for ac_exec_ext in '' $ac_executable_extensions; do
3886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3887     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889     break 2
3890   fi
3891 done
3892 done
3893 IFS=$as_save_IFS
3894
3895 fi
3896 fi
3897 RANLIB=$ac_cv_prog_RANLIB
3898 if test -n "$RANLIB"; then
3899   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3900 echo "${ECHO_T}$RANLIB" >&6; }
3901 else
3902   { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3904 fi
3905
3906
3907 fi
3908 if test -z "$ac_cv_prog_RANLIB"; then
3909   ac_ct_RANLIB=$RANLIB
3910   # Extract the first word of "ranlib", so it can be a program name with args.
3911 set dummy ranlib; ac_word=$2
3912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3914 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   if test -n "$ac_ct_RANLIB"; then
3918   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925   for ac_exec_ext in '' $ac_executable_extensions; do
3926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3927     ac_cv_prog_ac_ct_RANLIB="ranlib"
3928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932 done
3933 IFS=$as_save_IFS
3934
3935 fi
3936 fi
3937 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3938 if test -n "$ac_ct_RANLIB"; then
3939   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3940 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3941 else
3942   { echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6; }
3944 fi
3945
3946   if test "x$ac_ct_RANLIB" = x; then
3947     RANLIB=":"
3948   else
3949     case $cross_compiling:$ac_tool_warned in
3950 yes:)
3951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3952 whose name does not start with the host triplet.  If you think this
3953 configuration is useful to you, please write to autoconf@gnu.org." >&5
3954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3955 whose name does not start with the host triplet.  If you think this
3956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959     RANLIB=$ac_ct_RANLIB
3960   fi
3961 else
3962   RANLIB="$ac_cv_prog_RANLIB"
3963 fi
3964
3965  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3966 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3967 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3968 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   cat >conftest.make <<\_ACEOF
3972 SHELL = /bin/sh
3973 all:
3974         @echo '@@@%%%=$(MAKE)=@@@%%%'
3975 _ACEOF
3976 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3977 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3978   *@@@%%%=?*=@@@%%%*)
3979     eval ac_cv_prog_make_${ac_make}_set=yes;;
3980   *)
3981     eval ac_cv_prog_make_${ac_make}_set=no;;
3982 esac
3983 rm -f conftest.make
3984 fi
3985 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3986   { echo "$as_me:$LINENO: result: yes" >&5
3987 echo "${ECHO_T}yes" >&6; }
3988   SET_MAKE=
3989 else
3990   { echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6; }
3992   SET_MAKE="MAKE=${MAKE-make}"
3993 fi
3994
3995  # Find a good install program.  We prefer a C program (faster),
3996 # so one script is as good as another.  But avoid the broken or
3997 # incompatible versions:
3998 # SysV /etc/install, /usr/sbin/install
3999 # SunOS /usr/etc/install
4000 # IRIX /sbin/install
4001 # AIX /bin/install
4002 # AmigaOS /C/install, which installs bootblocks on floppy discs
4003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4006 # OS/2's system install, which has a completely different semantic
4007 # ./install, which can be erroneously created by make from ./install.sh.
4008 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4009 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4010 if test -z "$INSTALL"; then
4011 if test "${ac_cv_path_install+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019   # Account for people who put trailing slashes in PATH elements.
4020 case $as_dir/ in
4021   ./ | .// | /cC/* | \
4022   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4023   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4024   /usr/ucb/* ) ;;
4025   *)
4026     # OSF1 and SCO ODT 3.0 have their own names for install.
4027     # Don't use installbsd from OSF since it installs stuff as root
4028     # by default.
4029     for ac_prog in ginstall scoinst install; do
4030       for ac_exec_ext in '' $ac_executable_extensions; do
4031         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4032           if test $ac_prog = install &&
4033             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4034             # AIX install.  It has an incompatible calling convention.
4035             :
4036           elif test $ac_prog = install &&
4037             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4038             # program-specific install script used by HP pwplus--don't use.
4039             :
4040           else
4041             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4042             break 3
4043           fi
4044         fi
4045       done
4046     done
4047     ;;
4048 esac
4049 done
4050 IFS=$as_save_IFS
4051
4052
4053 fi
4054   if test "${ac_cv_path_install+set}" = set; then
4055     INSTALL=$ac_cv_path_install
4056   else
4057     # As a last resort, use the slow shell script.  Don't cache a
4058     # value for INSTALL within a source directory, because that will
4059     # break other packages using the cache if that directory is
4060     # removed, or if the value is a relative name.
4061     INSTALL=$ac_install_sh
4062   fi
4063 fi
4064 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4065 echo "${ECHO_T}$INSTALL" >&6; }
4066
4067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4068 # It thinks the first close brace ends the variable substitution.
4069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4070
4071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4072
4073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4074
4075  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4077 LN_S=$as_ln_s
4078 if test "$LN_S" = "ln -s"; then
4079   { echo "$as_me:$LINENO: result: yes" >&5
4080 echo "${ECHO_T}yes" >&6; }
4081 else
4082   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4083 echo "${ECHO_T}no, using $LN_S" >&6; }
4084 fi
4085
4086  # Check whether --enable-shared was given.
4087 if test "${enable_shared+set}" = set; then
4088   enableval=$enable_shared; p=${PACKAGE-default}
4089     case $enableval in
4090     yes) enable_shared=yes ;;
4091     no) enable_shared=no ;;
4092     *)
4093       enable_shared=no
4094       # Look at the argument we got.  We use all the common list separators.
4095       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4096       for pkg in $enableval; do
4097         IFS="$lt_save_ifs"
4098         if test "X$pkg" = "X$p"; then
4099           enable_shared=yes
4100         fi
4101       done
4102       IFS="$lt_save_ifs"
4103       ;;
4104     esac
4105 else
4106   enable_shared=yes
4107 fi
4108
4109
4110 # Check whether --enable-static was given.
4111 if test "${enable_static+set}" = set; then
4112   enableval=$enable_static; p=${PACKAGE-default}
4113     case $enableval in
4114     yes) enable_static=yes ;;
4115     no) enable_static=no ;;
4116     *)
4117      enable_static=no
4118       # Look at the argument we got.  We use all the common list separators.
4119       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4120       for pkg in $enableval; do
4121         IFS="$lt_save_ifs"
4122         if test "X$pkg" = "X$p"; then
4123           enable_static=yes
4124         fi
4125       done
4126       IFS="$lt_save_ifs"
4127       ;;
4128     esac
4129 else
4130   enable_static=yes
4131 fi
4132
4133
4134 # Check whether --enable-fast-install was given.
4135 if test "${enable_fast_install+set}" = set; then
4136   enableval=$enable_fast_install; p=${PACKAGE-default}
4137     case $enableval in
4138     yes) enable_fast_install=yes ;;
4139     no) enable_fast_install=no ;;
4140     *)
4141       enable_fast_install=no
4142       # Look at the argument we got.  We use all the common list separators.
4143       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4144       for pkg in $enableval; do
4145         IFS="$lt_save_ifs"
4146         if test "X$pkg" = "X$p"; then
4147           enable_fast_install=yes
4148         fi
4149       done
4150       IFS="$lt_save_ifs"
4151       ;;
4152     esac
4153 else
4154   enable_fast_install=yes
4155 fi
4156
4157
4158 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4159 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4160 if test "${lt_cv_path_SED+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   # Loop through the user's path and test for sed and gsed.
4164 # Then use that list of sed's as ones to test for truncation.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for lt_ac_prog in sed gsed; do
4171     for ac_exec_ext in '' $ac_executable_extensions; do
4172       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4173         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4174       fi
4175     done
4176   done
4177 done
4178 lt_ac_max=0
4179 lt_ac_count=0
4180 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4181 # along with /bin/sed that truncates output.
4182 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4183   test ! -f $lt_ac_sed && continue
4184   cat /dev/null > conftest.in
4185   lt_ac_count=0
4186   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4187   # Check for GNU sed and select it if it is found.
4188   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4189     lt_cv_path_SED=$lt_ac_sed
4190     break
4191   fi
4192   while true; do
4193     cat conftest.in conftest.in >conftest.tmp
4194     mv conftest.tmp conftest.in
4195     cp conftest.in conftest.nl
4196     echo >>conftest.nl
4197     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4198     cmp -s conftest.out conftest.nl || break
4199     # 10000 chars as input seems more than enough
4200     test $lt_ac_count -gt 10 && break
4201     lt_ac_count=`expr $lt_ac_count + 1`
4202     if test $lt_ac_count -gt $lt_ac_max; then
4203       lt_ac_max=$lt_ac_count
4204       lt_cv_path_SED=$lt_ac_sed
4205     fi
4206   done
4207 done
4208
4209 fi
4210
4211 SED=$lt_cv_path_SED
4212 { echo "$as_me:$LINENO: result: $SED" >&5
4213 echo "${ECHO_T}$SED" >&6; }
4214
4215 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4216 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4217 if test "${ac_cv_path_GREP+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   # Extract the first word of "grep ggrep" to use in msg output
4221 if test -z "$GREP"; then
4222 set dummy grep ggrep; ac_prog_name=$2
4223 if test "${ac_cv_path_GREP+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   ac_path_GREP_found=false
4227 # Loop through the user's path and test for each of PROGNAME-LIST
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_prog in grep ggrep; do
4234   for ac_exec_ext in '' $ac_executable_extensions; do
4235     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4236     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4237     # Check for GNU ac_path_GREP and select it if it is found.
4238   # Check for GNU $ac_path_GREP
4239 case `"$ac_path_GREP" --version 2>&1` in
4240 *GNU*)
4241   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4242 *)
4243   ac_count=0
4244   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4245   while :
4246   do
4247     cat "conftest.in" "conftest.in" >"conftest.tmp"
4248     mv "conftest.tmp" "conftest.in"
4249     cp "conftest.in" "conftest.nl"
4250     echo 'GREP' >> "conftest.nl"
4251     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253     ac_count=`expr $ac_count + 1`
4254     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4255       # Best one so far, save it but keep looking for a better one
4256       ac_cv_path_GREP="$ac_path_GREP"
4257       ac_path_GREP_max=$ac_count
4258     fi
4259     # 10*(2^10) chars as input seems more than enough
4260     test $ac_count -gt 10 && break
4261   done
4262   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263 esac
4264
4265
4266     $ac_path_GREP_found && break 3
4267   done
4268 done
4269
4270 done
4271 IFS=$as_save_IFS
4272
4273
4274 fi
4275
4276 GREP="$ac_cv_path_GREP"
4277 if test -z "$GREP"; then
4278   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4279 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4280    { (exit 1); exit 1; }; }
4281 fi
4282
4283 else
4284   ac_cv_path_GREP=$GREP
4285 fi
4286
4287
4288 fi
4289 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4291  GREP="$ac_cv_path_GREP"
4292
4293
4294 { echo "$as_me:$LINENO: checking for egrep" >&5
4295 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300    then ac_cv_path_EGREP="$GREP -E"
4301    else
4302      # Extract the first word of "egrep" to use in msg output
4303 if test -z "$EGREP"; then
4304 set dummy egrep; ac_prog_name=$2
4305 if test "${ac_cv_path_EGREP+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   ac_path_EGREP_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315   for ac_prog in egrep; do
4316   for ac_exec_ext in '' $ac_executable_extensions; do
4317     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4318     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4319     # Check for GNU ac_path_EGREP and select it if it is found.
4320   # Check for GNU $ac_path_EGREP
4321 case `"$ac_path_EGREP" --version 2>&1` in
4322 *GNU*)
4323   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324 *)
4325   ac_count=0
4326   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4327   while :
4328   do
4329     cat "conftest.in" "conftest.in" >"conftest.tmp"
4330     mv "conftest.tmp" "conftest.in"
4331     cp "conftest.in" "conftest.nl"
4332     echo 'EGREP' >> "conftest.nl"
4333     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335     ac_count=`expr $ac_count + 1`
4336     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4337       # Best one so far, save it but keep looking for a better one
4338       ac_cv_path_EGREP="$ac_path_EGREP"
4339       ac_path_EGREP_max=$ac_count
4340     fi
4341     # 10*(2^10) chars as input seems more than enough
4342     test $ac_count -gt 10 && break
4343   done
4344   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 esac
4346
4347
4348     $ac_path_EGREP_found && break 3
4349   done
4350 done
4351
4352 done
4353 IFS=$as_save_IFS
4354
4355
4356 fi
4357
4358 EGREP="$ac_cv_path_EGREP"
4359 if test -z "$EGREP"; then
4360   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4362    { (exit 1); exit 1; }; }
4363 fi
4364
4365 else
4366   ac_cv_path_EGREP=$EGREP
4367 fi
4368
4369
4370    fi
4371 fi
4372 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4373 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4374  EGREP="$ac_cv_path_EGREP"
4375
4376
4377
4378 # Check whether --with-gnu-ld was given.
4379 if test "${with_gnu_ld+set}" = set; then
4380   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4381 else
4382   with_gnu_ld=no
4383 fi
4384
4385 ac_prog=ld
4386 if test "$GCC" = yes; then
4387   # Check if gcc -print-prog-name=ld gives a path.
4388   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4389 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4390   case $host in
4391   *-*-mingw*)
4392     # gcc leaves a trailing carriage return which upsets mingw
4393     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4394   *)
4395     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4396   esac
4397   case $ac_prog in
4398     # Accept absolute paths.
4399     [\\/]* | ?:[\\/]*)
4400       re_direlt='/[^/][^/]*/\.\./'
4401       # Canonicalize the pathname of ld
4402       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4403       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4404         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4405       done
4406       test -z "$LD" && LD="$ac_prog"
4407       ;;
4408   "")
4409     # If it fails, then pretend we aren't using GCC.
4410     ac_prog=ld
4411     ;;
4412   *)
4413     # If it is relative, then search for the first ld in PATH.
4414     with_gnu_ld=unknown
4415     ;;
4416   esac
4417 elif test "$with_gnu_ld" = yes; then
4418   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4419 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4420 else
4421   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4422 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4423 fi
4424 if test "${lt_cv_path_LD+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   if test -z "$LD"; then
4428   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4429   for ac_dir in $PATH; do
4430     IFS="$lt_save_ifs"
4431     test -z "$ac_dir" && ac_dir=.
4432     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4433       lt_cv_path_LD="$ac_dir/$ac_prog"
4434       # Check to see if the program is GNU ld.  I'd rather use --version,
4435       # but apparently some variants of GNU ld only accept -v.
4436       # Break only if it was the GNU/non-GNU ld that we prefer.
4437       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4438       *GNU* | *'with BFD'*)
4439         test "$with_gnu_ld" != no && break
4440         ;;
4441       *)
4442         test "$with_gnu_ld" != yes && break
4443         ;;
4444       esac
4445     fi
4446   done
4447   IFS="$lt_save_ifs"
4448 else
4449   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4450 fi
4451 fi
4452
4453 LD="$lt_cv_path_LD"
4454 if test -n "$LD"; then
4455   { echo "$as_me:$LINENO: result: $LD" >&5
4456 echo "${ECHO_T}$LD" >&6; }
4457 else
4458   { echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; }
4460 fi
4461 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4462 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4463    { (exit 1); exit 1; }; }
4464 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4466 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4470 case `$LD -v 2>&1 </dev/null` in
4471 *GNU* | *'with BFD'*)
4472   lt_cv_prog_gnu_ld=yes
4473   ;;
4474 *)
4475   lt_cv_prog_gnu_ld=no
4476   ;;
4477 esac
4478 fi
4479 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4480 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4481 with_gnu_ld=$lt_cv_prog_gnu_ld
4482
4483
4484 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4485 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4486 if test "${lt_cv_ld_reload_flag+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   lt_cv_ld_reload_flag='-r'
4490 fi
4491 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4492 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4493 reload_flag=$lt_cv_ld_reload_flag
4494 case $reload_flag in
4495 "" | " "*) ;;
4496 *) reload_flag=" $reload_flag" ;;
4497 esac
4498 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4499 case $host_os in
4500   darwin*)
4501     if test "$GCC" = yes; then
4502       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4503     else
4504       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4505     fi
4506     ;;
4507 esac
4508
4509 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4510 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4511 if test "${lt_cv_path_NM+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   if test -n "$NM"; then
4515   # Let the user override the test.
4516   lt_cv_path_NM="$NM"
4517 else
4518   lt_nm_to_check="${ac_tool_prefix}nm"
4519   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4520     lt_nm_to_check="$lt_nm_to_check nm"
4521   fi
4522   for lt_tmp_nm in $lt_nm_to_check; do
4523     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4525       IFS="$lt_save_ifs"
4526       test -z "$ac_dir" && ac_dir=.
4527       tmp_nm="$ac_dir/$lt_tmp_nm"
4528       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4529         # Check to see if the nm accepts a BSD-compat flag.
4530         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4531         #   nm: unknown option "B" ignored
4532         # Tru64's nm complains that /dev/null is an invalid object file
4533         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4534         */dev/null* | *'Invalid file or object type'*)
4535           lt_cv_path_NM="$tmp_nm -B"
4536           break
4537           ;;
4538         *)
4539           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4540           */dev/null*)
4541             lt_cv_path_NM="$tmp_nm -p"
4542             break
4543             ;;
4544           *)
4545             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4546             continue # so that we can try to find one that supports BSD flags
4547             ;;
4548           esac
4549           ;;
4550         esac
4551       fi
4552     done
4553     IFS="$lt_save_ifs"
4554   done
4555   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4556 fi
4557 fi
4558 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4559 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4560 NM="$lt_cv_path_NM"
4561
4562 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4563 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4564 if test "${lt_cv_deplibs_check_method+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   lt_cv_file_magic_cmd='$MAGIC_CMD'
4568 lt_cv_file_magic_test_file=
4569 lt_cv_deplibs_check_method='unknown'
4570 # Need to set the preceding variable on all platforms that support
4571 # interlibrary dependencies.
4572 # 'none' -- dependencies not supported.
4573 # `unknown' -- same as none, but documents that we really don't know.
4574 # 'pass_all' -- all dependencies passed with no checks.
4575 # 'test_compile' -- check by making test program.
4576 # 'file_magic [[regex]]' -- check by looking for files in library path
4577 # which responds to the $file_magic_cmd with a given extended regex.
4578 # If you have `file' or equivalent on your system and you're not sure
4579 # whether `pass_all' will *always* work, you probably want this one.
4580
4581 case $host_os in
4582 aix4* | aix5*)
4583   lt_cv_deplibs_check_method=pass_all
4584   ;;
4585
4586 beos*)
4587   lt_cv_deplibs_check_method=pass_all
4588   ;;
4589
4590 bsdi[45]*)
4591   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4592   lt_cv_file_magic_cmd='/usr/bin/file -L'
4593   lt_cv_file_magic_test_file=/shlib/libc.so
4594   ;;
4595
4596 cygwin*)
4597   # func_win32_libid is a shell function defined in ltmain.sh
4598   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4599   lt_cv_file_magic_cmd='func_win32_libid'
4600   ;;
4601
4602 mingw* | pw32*)
4603   # Base MSYS/MinGW do not provide the 'file' command needed by
4604   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4605   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4606   lt_cv_file_magic_cmd='$OBJDUMP -f'
4607   ;;
4608
4609 darwin* | rhapsody*)
4610   lt_cv_deplibs_check_method=pass_all
4611   ;;
4612
4613 freebsd* | kfreebsd*-gnu | dragonfly*)
4614   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4615     case $host_cpu in
4616     i*86 )
4617       # Not sure whether the presence of OpenBSD here was a mistake.
4618       # Let's accept both of them until this is cleared up.
4619       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4620       lt_cv_file_magic_cmd=/usr/bin/file
4621       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4622       ;;
4623     esac
4624   else
4625     lt_cv_deplibs_check_method=pass_all
4626   fi
4627   ;;
4628
4629 gnu*)
4630   lt_cv_deplibs_check_method=pass_all
4631   ;;
4632
4633 hpux10.20* | hpux11*)
4634   lt_cv_file_magic_cmd=/usr/bin/file
4635   case $host_cpu in
4636   ia64*)
4637     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4638     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4639     ;;
4640   hppa*64*)
4641     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]'
4642     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4643     ;;
4644   *)
4645     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4646     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4647     ;;
4648   esac
4649   ;;
4650
4651 interix3*)
4652   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4653   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4654   ;;
4655
4656 irix5* | irix6* | nonstopux*)
4657   case $LD in
4658   *-32|*"-32 ") libmagic=32-bit;;
4659   *-n32|*"-n32 ") libmagic=N32;;
4660   *-64|*"-64 ") libmagic=64-bit;;
4661   *) libmagic=never-match;;
4662   esac
4663   lt_cv_deplibs_check_method=pass_all
4664   ;;
4665
4666 # This must be Linux ELF.
4667 linux*)
4668   lt_cv_deplibs_check_method=pass_all
4669   ;;
4670
4671 netbsd*)
4672   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4673     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4674   else
4675     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4676   fi
4677   ;;
4678
4679 newos6*)
4680   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4681   lt_cv_file_magic_cmd=/usr/bin/file
4682   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4683   ;;
4684
4685 nto-qnx*)
4686   lt_cv_deplibs_check_method=unknown
4687   ;;
4688
4689 openbsd*)
4690   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4691     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4692   else
4693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4694   fi
4695   ;;
4696
4697 osf3* | osf4* | osf5*)
4698   lt_cv_deplibs_check_method=pass_all
4699   ;;
4700
4701 solaris*)
4702   lt_cv_deplibs_check_method=pass_all
4703   ;;
4704
4705 sysv4 | sysv4.3*)
4706   case $host_vendor in
4707   motorola)
4708     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]'
4709     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4710     ;;
4711   ncr)
4712     lt_cv_deplibs_check_method=pass_all
4713     ;;
4714   sequent)
4715     lt_cv_file_magic_cmd='/bin/file'
4716     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4717     ;;
4718   sni)
4719     lt_cv_file_magic_cmd='/bin/file'
4720     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4721     lt_cv_file_magic_test_file=/lib/libc.so
4722     ;;
4723   siemens)
4724     lt_cv_deplibs_check_method=pass_all
4725     ;;
4726   pc)
4727     lt_cv_deplibs_check_method=pass_all
4728     ;;
4729   esac
4730   ;;
4731
4732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4733   lt_cv_deplibs_check_method=pass_all
4734   ;;
4735 esac
4736
4737 fi
4738 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4739 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4740 file_magic_cmd=$lt_cv_file_magic_cmd
4741 deplibs_check_method=$lt_cv_deplibs_check_method
4742 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4743
4744
4745
4746
4747 # If no C compiler was specified, use CC.
4748 LTCC=${LTCC-"$CC"}
4749
4750 # If no C compiler flags were specified, use CFLAGS.
4751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4752
4753 # Allow CC to be a program name with arguments.
4754 compiler=$CC
4755
4756
4757 # Check whether --enable-libtool-lock was given.
4758 if test "${enable_libtool_lock+set}" = set; then
4759   enableval=$enable_libtool_lock;
4760 fi
4761
4762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4763
4764 # Some flags need to be propagated to the compiler or linker for good
4765 # libtool support.
4766 case $host in
4767 ia64-*-hpux*)
4768   # Find out which ABI we are using.
4769   echo 'int i;' > conftest.$ac_ext
4770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; then
4775     case `/usr/bin/file conftest.$ac_objext` in
4776     *ELF-32*)
4777       HPUX_IA64_MODE="32"
4778       ;;
4779     *ELF-64*)
4780       HPUX_IA64_MODE="64"
4781       ;;
4782     esac
4783   fi
4784   rm -rf conftest*
4785   ;;
4786 *-*-irix6*)
4787   # Find out which ABI we are using.
4788   echo '#line 4788 "configure"' > conftest.$ac_ext
4789   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; then
4794    if test "$lt_cv_prog_gnu_ld" = yes; then
4795     case `/usr/bin/file conftest.$ac_objext` in
4796     *32-bit*)
4797       LD="${LD-ld} -melf32bsmip"
4798       ;;
4799     *N32*)
4800       LD="${LD-ld} -melf32bmipn32"
4801       ;;
4802     *64-bit*)
4803       LD="${LD-ld} -melf64bmip"
4804       ;;
4805     esac
4806    else
4807     case `/usr/bin/file conftest.$ac_objext` in
4808     *32-bit*)
4809       LD="${LD-ld} -32"
4810       ;;
4811     *N32*)
4812       LD="${LD-ld} -n32"
4813       ;;
4814     *64-bit*)
4815       LD="${LD-ld} -64"
4816       ;;
4817     esac
4818    fi
4819   fi
4820   rm -rf conftest*
4821   ;;
4822
4823 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4824   # Find out which ABI we are using.
4825   echo 'int i;' > conftest.$ac_ext
4826   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827   (eval $ac_compile) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; then
4831     case `/usr/bin/file conftest.o` in
4832     *32-bit*)
4833       case $host in
4834         x86_64-*linux*)
4835           LD="${LD-ld} -m elf_i386"
4836           ;;
4837         ppc64-*linux*|powerpc64-*linux*)
4838           LD="${LD-ld} -m elf32ppclinux"
4839           ;;
4840         s390x-*linux*)
4841           LD="${LD-ld} -m elf_s390"
4842           ;;
4843         sparc64-*linux*)
4844           LD="${LD-ld} -m elf32_sparc"
4845           ;;
4846       esac
4847       ;;
4848     *64-bit*)
4849       case $host in
4850         x86_64-*linux*)
4851           LD="${LD-ld} -m elf_x86_64"
4852           ;;
4853         ppc*-*linux*|powerpc*-*linux*)
4854           LD="${LD-ld} -m elf64ppc"
4855           ;;
4856         s390*-*linux*)
4857           LD="${LD-ld} -m elf64_s390"
4858           ;;
4859         sparc*-*linux*)
4860           LD="${LD-ld} -m elf64_sparc"
4861           ;;
4862       esac
4863       ;;
4864     esac
4865   fi
4866   rm -rf conftest*
4867   ;;
4868
4869 *-*-sco3.2v5*)
4870   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4871   SAVE_CFLAGS="$CFLAGS"
4872   CFLAGS="$CFLAGS -belf"
4873   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4874 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4875 if test "${lt_cv_cc_needs_belf+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883
4884      cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h.  */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h.  */
4890
4891 int
4892 main ()
4893 {
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (ac_try="$ac_link"
4901 case "(($ac_try" in
4902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903   *) ac_try_echo=$ac_try;;
4904 esac
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906   (eval "$ac_link") 2>conftest.er1
4907   ac_status=$?
4908   grep -v '^ *+' conftest.er1 >conftest.err
4909   rm -f conftest.er1
4910   cat conftest.err >&5
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); } &&
4913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4914   { (case "(($ac_try" in
4915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916   *) ac_try_echo=$ac_try;;
4917 esac
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919   (eval "$ac_try") 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; } &&
4923          { ac_try='test -s conftest$ac_exeext'
4924   { (case "(($ac_try" in
4925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926   *) ac_try_echo=$ac_try;;
4927 esac
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929   (eval "$ac_try") 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; }; then
4933   lt_cv_cc_needs_belf=yes
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938         lt_cv_cc_needs_belf=no
4939 fi
4940
4941 rm -f core conftest.err conftest.$ac_objext \
4942       conftest$ac_exeext conftest.$ac_ext
4943      ac_ext=c
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948
4949 fi
4950 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4951 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4952   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4953     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4954     CFLAGS="$SAVE_CFLAGS"
4955   fi
4956   ;;
4957 sparc*-*solaris*)
4958   # Find out which ABI we are using.
4959   echo 'int i;' > conftest.$ac_ext
4960   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961   (eval $ac_compile) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); }; then
4965     case `/usr/bin/file conftest.o` in
4966     *64-bit*)
4967       case $lt_cv_prog_gnu_ld in
4968       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4969       *)    LD="${LD-ld} -64" ;;
4970       esac
4971       ;;
4972     esac
4973   fi
4974   rm -rf conftest*
4975   ;;
4976
4977
4978 esac
4979
4980 need_locks="$enable_libtool_lock"
4981
4982
4983
4984 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4985 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4986 if test "${ac_cv_header_stdc+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 #include <stdlib.h>
4996 #include <stdarg.h>
4997 #include <string.h>
4998 #include <float.h>
4999
5000 int
5001 main ()
5002 {
5003
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (ac_try="$ac_compile"
5010 case "(($ac_try" in
5011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012   *) ac_try_echo=$ac_try;;
5013 esac
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015   (eval "$ac_compile") 2>conftest.er1
5016   ac_status=$?
5017   grep -v '^ *+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5023   { (case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028   (eval "$ac_try") 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; } &&
5032          { ac_try='test -s conftest.$ac_objext'
5033   { (case "(($ac_try" in
5034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035   *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038   (eval "$ac_try") 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ac_cv_header_stdc=yes
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047         ac_cv_header_stdc=no
5048 fi
5049
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051
5052 if test $ac_cv_header_stdc = yes; then
5053   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <string.h>
5061
5062 _ACEOF
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064   $EGREP "memchr" >/dev/null 2>&1; then
5065   :
5066 else
5067   ac_cv_header_stdc=no
5068 fi
5069 rm -f conftest*
5070
5071 fi
5072
5073 if test $ac_cv_header_stdc = yes; then
5074   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5075   cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 #include <stdlib.h>
5082
5083 _ACEOF
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085   $EGREP "free" >/dev/null 2>&1; then
5086   :
5087 else
5088   ac_cv_header_stdc=no
5089 fi
5090 rm -f conftest*
5091
5092 fi
5093
5094 if test $ac_cv_header_stdc = yes; then
5095   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5096   if test "$cross_compiling" = yes; then
5097   :
5098 else
5099   cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105 #include <ctype.h>
5106 #include <stdlib.h>
5107 #if ((' ' & 0x0FF) == 0x020)
5108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5110 #else
5111 # define ISLOWER(c) \
5112                    (('a' <= (c) && (c) <= 'i') \
5113                      || ('j' <= (c) && (c) <= 'r') \
5114                      || ('s' <= (c) && (c) <= 'z'))
5115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5116 #endif
5117
5118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5119 int
5120 main ()
5121 {
5122   int i;
5123   for (i = 0; i < 256; i++)
5124     if (XOR (islower (i), ISLOWER (i))
5125         || toupper (i) != TOUPPER (i))
5126       return 2;
5127   return 0;
5128 }
5129 _ACEOF
5130 rm -f conftest$ac_exeext
5131 if { (ac_try="$ac_link"
5132 case "(($ac_try" in
5133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134   *) ac_try_echo=$ac_try;;
5135 esac
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137   (eval "$ac_link") 2>&5
5138   ac_status=$?
5139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141   { (case "(($ac_try" in
5142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143   *) ac_try_echo=$ac_try;;
5144 esac
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146   (eval "$ac_try") 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150   :
5151 else
5152   echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 ( exit $ac_status )
5157 ac_cv_header_stdc=no
5158 fi
5159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5160 fi
5161
5162
5163 fi
5164 fi
5165 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5167 if test $ac_cv_header_stdc = yes; then
5168
5169 cat >>confdefs.h <<\_ACEOF
5170 #define STDC_HEADERS 1
5171 _ACEOF
5172
5173 fi
5174
5175 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5186                   inttypes.h stdint.h unistd.h
5187 do
5188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   cat >conftest.$ac_ext <<_ACEOF
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200 $ac_includes_default
5201
5202 #include <$ac_header>
5203 _ACEOF
5204 rm -f conftest.$ac_objext
5205 if { (ac_try="$ac_compile"
5206 case "(($ac_try" in
5207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208   *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211   (eval "$ac_compile") 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } &&
5218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5219   { (case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224   (eval "$ac_try") 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; } &&
5228          { ac_try='test -s conftest.$ac_objext'
5229   { (case "(($ac_try" in
5230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231   *) ac_try_echo=$ac_try;;
5232 esac
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234   (eval "$ac_try") 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; }; then
5238   eval "$as_ac_Header=yes"
5239 else
5240   echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5242
5243         eval "$as_ac_Header=no"
5244 fi
5245
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 ac_res=`eval echo '${'$as_ac_Header'}'`
5249                { echo "$as_me:$LINENO: result: $ac_res" >&5
5250 echo "${ECHO_T}$ac_res" >&6; }
5251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5252   cat >>confdefs.h <<_ACEOF
5253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5254 _ACEOF
5255
5256 fi
5257
5258 done
5259
5260
5261
5262 for ac_header in dlfcn.h
5263 do
5264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5266   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 fi
5271 ac_res=`eval echo '${'$as_ac_Header'}'`
5272                { echo "$as_me:$LINENO: result: $ac_res" >&5
5273 echo "${ECHO_T}$ac_res" >&6; }
5274 else
5275   # Is the header compilable?
5276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 $ac_includes_default
5285 #include <$ac_header>
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5289 case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_compile") 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } &&
5301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302   { (case "(($ac_try" in
5303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304   *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307   (eval "$ac_try") 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; } &&
5311          { ac_try='test -s conftest.$ac_objext'
5312   { (case "(($ac_try" in
5313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314   *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317   (eval "$ac_try") 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   ac_header_compiler=yes
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326         ac_header_compiler=no
5327 fi
5328
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5331 echo "${ECHO_T}$ac_header_compiler" >&6; }
5332
5333 # Is the header present?
5334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5336 cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h.  */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h.  */
5342 #include <$ac_header>
5343 _ACEOF
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5345 case "(($ac_try" in
5346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347   *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5351   ac_status=$?
5352   grep -v '^ *+' conftest.er1 >conftest.err
5353   rm -f conftest.er1
5354   cat conftest.err >&5
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); } >/dev/null; then
5357   if test -s conftest.err; then
5358     ac_cpp_err=$ac_c_preproc_warn_flag
5359     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360   else
5361     ac_cpp_err=
5362   fi
5363 else
5364   ac_cpp_err=yes
5365 fi
5366 if test -z "$ac_cpp_err"; then
5367   ac_header_preproc=yes
5368 else
5369   echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372   ac_header_preproc=no
5373 fi
5374
5375 rm -f conftest.err conftest.$ac_ext
5376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5377 echo "${ECHO_T}$ac_header_preproc" >&6; }
5378
5379 # So?  What about this header?
5380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5381   yes:no: )
5382     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5386     ac_header_preproc=yes
5387     ;;
5388   no:yes:* )
5389     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5391     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5392 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5393     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5395     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5396 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5399     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5401
5402     ;;
5403 esac
5404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   eval "$as_ac_Header=\$ac_header_preproc"
5410 fi
5411 ac_res=`eval echo '${'$as_ac_Header'}'`
5412                { echo "$as_me:$LINENO: result: $ac_res" >&5
5413 echo "${ECHO_T}$ac_res" >&6; }
5414
5415 fi
5416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5417   cat >>confdefs.h <<_ACEOF
5418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419 _ACEOF
5420
5421 fi
5422
5423 done
5424
5425
5426
5427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5428     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5429     (test "X$CXX" != "Xg++"))) ; then
5430   ac_ext=cpp
5431 ac_cpp='$CXXCPP $CPPFLAGS'
5432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5435 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5437 if test -z "$CXXCPP"; then
5438   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5439   echo $ECHO_N "(cached) $ECHO_C" >&6
5440 else
5441       # Double quotes because CXXCPP needs to be expanded
5442     for CXXCPP in "$CXX -E" "/lib/cpp"
5443     do
5444       ac_preproc_ok=false
5445 for ac_cxx_preproc_warn_flag in '' yes
5446 do
5447   # Use a header file that comes with gcc, so configuring glibc
5448   # with a fresh cross-compiler works.
5449   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5450   # <limits.h> exists even on freestanding compilers.
5451   # On the NeXT, cc -E runs the code through the compiler's parser,
5452   # not just through cpp. "Syntax error" is here to catch this case.
5453   cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459 #ifdef __STDC__
5460 # include <limits.h>
5461 #else
5462 # include <assert.h>
5463 #endif
5464                      Syntax error
5465 _ACEOF
5466 if { (ac_try="$ac_cpp conftest.$ac_ext"
5467 case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5473   ac_status=$?
5474   grep -v '^ *+' conftest.er1 >conftest.err
5475   rm -f conftest.er1
5476   cat conftest.err >&5
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); } >/dev/null; then
5479   if test -s conftest.err; then
5480     ac_cpp_err=$ac_cxx_preproc_warn_flag
5481     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5482   else
5483     ac_cpp_err=
5484   fi
5485 else
5486   ac_cpp_err=yes
5487 fi
5488 if test -z "$ac_cpp_err"; then
5489   :
5490 else
5491   echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5493
5494   # Broken: fails on valid input.
5495 continue
5496 fi
5497
5498 rm -f conftest.err conftest.$ac_ext
5499
5500   # OK, works on sane cases.  Now check whether nonexistent headers
5501   # can be detected and how.
5502   cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508 #include <ac_nonexistent.h>
5509 _ACEOF
5510 if { (ac_try="$ac_cpp conftest.$ac_ext"
5511 case "(($ac_try" in
5512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513   *) ac_try_echo=$ac_try;;
5514 esac
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5517   ac_status=$?
5518   grep -v '^ *+' conftest.er1 >conftest.err
5519   rm -f conftest.er1
5520   cat conftest.err >&5
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); } >/dev/null; then
5523   if test -s conftest.err; then
5524     ac_cpp_err=$ac_cxx_preproc_warn_flag
5525     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5526   else
5527     ac_cpp_err=
5528   fi
5529 else
5530   ac_cpp_err=yes
5531 fi
5532 if test -z "$ac_cpp_err"; then
5533   # Broken: success on invalid input.
5534 continue
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539   # Passes both tests.
5540 ac_preproc_ok=:
5541 break
5542 fi
5543
5544 rm -f conftest.err conftest.$ac_ext
5545
5546 done
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.err conftest.$ac_ext
5549 if $ac_preproc_ok; then
5550   break
5551 fi
5552
5553     done
5554     ac_cv_prog_CXXCPP=$CXXCPP
5555
5556 fi
5557   CXXCPP=$ac_cv_prog_CXXCPP
5558 else
5559   ac_cv_prog_CXXCPP=$CXXCPP
5560 fi
5561 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5562 echo "${ECHO_T}$CXXCPP" >&6; }
5563 ac_preproc_ok=false
5564 for ac_cxx_preproc_warn_flag in '' yes
5565 do
5566   # Use a header file that comes with gcc, so configuring glibc
5567   # with a fresh cross-compiler works.
5568   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569   # <limits.h> exists even on freestanding compilers.
5570   # On the NeXT, cc -E runs the code through the compiler's parser,
5571   # not just through cpp. "Syntax error" is here to catch this case.
5572   cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578 #ifdef __STDC__
5579 # include <limits.h>
5580 #else
5581 # include <assert.h>
5582 #endif
5583                      Syntax error
5584 _ACEOF
5585 if { (ac_try="$ac_cpp conftest.$ac_ext"
5586 case "(($ac_try" in
5587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588   *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5592   ac_status=$?
5593   grep -v '^ *+' conftest.er1 >conftest.err
5594   rm -f conftest.er1
5595   cat conftest.err >&5
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } >/dev/null; then
5598   if test -s conftest.err; then
5599     ac_cpp_err=$ac_cxx_preproc_warn_flag
5600     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5601   else
5602     ac_cpp_err=
5603   fi
5604 else
5605   ac_cpp_err=yes
5606 fi
5607 if test -z "$ac_cpp_err"; then
5608   :
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613   # Broken: fails on valid input.
5614 continue
5615 fi
5616
5617 rm -f conftest.err conftest.$ac_ext
5618
5619   # OK, works on sane cases.  Now check whether nonexistent headers
5620   # can be detected and how.
5621   cat >conftest.$ac_ext <<_ACEOF
5622 /* confdefs.h.  */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h.  */
5627 #include <ac_nonexistent.h>
5628 _ACEOF
5629 if { (ac_try="$ac_cpp conftest.$ac_ext"
5630 case "(($ac_try" in
5631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632   *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } >/dev/null; then
5642   if test -s conftest.err; then
5643     ac_cpp_err=$ac_cxx_preproc_warn_flag
5644     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5645   else
5646     ac_cpp_err=
5647   fi
5648 else
5649   ac_cpp_err=yes
5650 fi
5651 if test -z "$ac_cpp_err"; then
5652   # Broken: success on invalid input.
5653 continue
5654 else
5655   echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658   # Passes both tests.
5659 ac_preproc_ok=:
5660 break
5661 fi
5662
5663 rm -f conftest.err conftest.$ac_ext
5664
5665 done
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.err conftest.$ac_ext
5668 if $ac_preproc_ok; then
5669   :
5670 else
5671   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5672 See \`config.log' for more details." >&5
5673 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5674 See \`config.log' for more details." >&2;}
5675    { (exit 1); exit 1; }; }
5676 fi
5677
5678 ac_ext=cpp
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683
5684 fi
5685
5686
5687 ac_ext=f
5688 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5689 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5691 if test -n "$ac_tool_prefix"; then
5692   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5693   do
5694     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698 if test "${ac_cv_prog_F77+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   if test -n "$F77"; then
5702   ac_cv_prog_F77="$F77" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709   for ac_exec_ext in '' $ac_executable_extensions; do
5710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5711     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713     break 2
5714   fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 F77=$ac_cv_prog_F77
5722 if test -n "$F77"; then
5723   { echo "$as_me:$LINENO: result: $F77" >&5
5724 echo "${ECHO_T}$F77" >&6; }
5725 else
5726   { echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6; }
5728 fi
5729
5730
5731     test -n "$F77" && break
5732   done
5733 fi
5734 if test -z "$F77"; then
5735   ac_ct_F77=$F77
5736   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5737 do
5738   # Extract the first word of "$ac_prog", so it can be a program name with args.
5739 set dummy $ac_prog; ac_word=$2
5740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   if test -n "$ac_ct_F77"; then
5746   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753   for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_prog_ac_ct_F77="$ac_prog"
5756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760 done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5766 if test -n "$ac_ct_F77"; then
5767   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5768 echo "${ECHO_T}$ac_ct_F77" >&6; }
5769 else
5770   { echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6; }
5772 fi
5773
5774
5775   test -n "$ac_ct_F77" && break
5776 done
5777
5778   if test "x$ac_ct_F77" = x; then
5779     F77=""
5780   else
5781     case $cross_compiling:$ac_tool_warned in
5782 yes:)
5783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5784 whose name does not start with the host triplet.  If you think this
5785 configuration is useful to you, please write to autoconf@gnu.org." >&5
5786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5787 whose name does not start with the host triplet.  If you think this
5788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5789 ac_tool_warned=yes ;;
5790 esac
5791     F77=$ac_ct_F77
5792   fi
5793 fi
5794
5795
5796 # Provide some information about the compiler.
5797 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5798 ac_compiler=`set X $ac_compile; echo $2`
5799 { (ac_try="$ac_compiler --version >&5"
5800 case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805   (eval "$ac_compiler --version >&5") 2>&5
5806   ac_status=$?
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); }
5809 { (ac_try="$ac_compiler -v >&5"
5810 case "(($ac_try" in
5811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812   *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815   (eval "$ac_compiler -v >&5") 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }
5819 { (ac_try="$ac_compiler -V >&5"
5820 case "(($ac_try" in
5821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822   *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825   (eval "$ac_compiler -V >&5") 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }
5829 rm -f a.out
5830
5831 # If we don't use `.F' as extension, the preprocessor is not run on the
5832 # input file.  (Note that this only needs to work for GNU compilers.)
5833 ac_save_ext=$ac_ext
5834 ac_ext=F
5835 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5836 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5837 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   cat >conftest.$ac_ext <<_ACEOF
5841       program main
5842 #ifndef __GNUC__
5843        choke me
5844 #endif
5845
5846       end
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852   *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855   (eval "$ac_compile") 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5863   { (case "(($ac_try" in
5864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865   *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868   (eval "$ac_try") 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; } &&
5872          { ac_try='test -s conftest.$ac_objext'
5873   { (case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_try") 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; }; then
5882   ac_compiler_gnu=yes
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887         ac_compiler_gnu=no
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5892
5893 fi
5894 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5895 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5896 ac_ext=$ac_save_ext
5897 ac_test_FFLAGS=${FFLAGS+set}
5898 ac_save_FFLAGS=$FFLAGS
5899 FFLAGS=
5900 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5901 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_f77_g+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   FFLAGS=-g
5906 cat >conftest.$ac_ext <<_ACEOF
5907       program main
5908
5909       end
5910 _ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5913 case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_compile") 2>conftest.er1
5919   ac_status=$?
5920   grep -v '^ *+' conftest.er1 >conftest.err
5921   rm -f conftest.er1
5922   cat conftest.err >&5
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); } &&
5925          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5926   { (case "(($ac_try" in
5927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928   *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931   (eval "$ac_try") 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; } &&
5935          { ac_try='test -s conftest.$ac_objext'
5936   { (case "(($ac_try" in
5937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938   *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941   (eval "$ac_try") 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   ac_cv_prog_f77_g=yes
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950         ac_cv_prog_f77_g=no
5951 fi
5952
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954
5955 fi
5956 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5957 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5958 if test "$ac_test_FFLAGS" = set; then
5959   FFLAGS=$ac_save_FFLAGS
5960 elif test $ac_cv_prog_f77_g = yes; then
5961   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5962     FFLAGS="-g -O2"
5963   else
5964     FFLAGS="-g"
5965   fi
5966 else
5967   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5968     FFLAGS="-O2"
5969   else
5970     FFLAGS=
5971   fi
5972 fi
5973
5974 G77=`test $ac_compiler_gnu = yes && echo yes`
5975 ac_ext=c
5976 ac_cpp='$CPP $CPPFLAGS'
5977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
5981
5982
5983 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5984
5985 # find the maximum length of command line arguments
5986 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5987 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5988 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991     i=0
5992   teststring="ABCD"
5993
5994   case $build_os in
5995   msdosdjgpp*)
5996     # On DJGPP, this test can blow up pretty badly due to problems in libc
5997     # (any single argument exceeding 2000 bytes causes a buffer overrun
5998     # during glob expansion).  Even if it were fixed, the result of this
5999     # check would be larger than it should be.
6000     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6001     ;;
6002
6003   gnu*)
6004     # Under GNU Hurd, this test is not required because there is
6005     # no limit to the length of command line arguments.
6006     # Libtool will interpret -1 as no limit whatsoever
6007     lt_cv_sys_max_cmd_len=-1;
6008     ;;
6009
6010   cygwin* | mingw*)
6011     # On Win9x/ME, this test blows up -- it succeeds, but takes
6012     # about 5 minutes as the teststring grows exponentially.
6013     # Worse, since 9x/ME are not pre-emptively multitasking,
6014     # you end up with a "frozen" computer, even though with patience
6015     # the test eventually succeeds (with a max line length of 256k).
6016     # Instead, let's just punt: use the minimum linelength reported by
6017     # all of the supported platforms: 8192 (on NT/2K/XP).
6018     lt_cv_sys_max_cmd_len=8192;
6019     ;;
6020
6021   amigaos*)
6022     # On AmigaOS with pdksh, this test takes hours, literally.
6023     # So we just punt and use a minimum line length of 8192.
6024     lt_cv_sys_max_cmd_len=8192;
6025     ;;
6026
6027   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6028     # This has been around since 386BSD, at least.  Likely further.
6029     if test -x /sbin/sysctl; then
6030       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6031     elif test -x /usr/sbin/sysctl; then
6032       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6033     else
6034       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6035     fi
6036     # And add a safety zone
6037     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6038     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6039     ;;
6040
6041   interix*)
6042     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6043     lt_cv_sys_max_cmd_len=196608
6044     ;;
6045
6046   osf*)
6047     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049     # nice to cause kernel panics so lets avoid the loop below.
6050     # First set a reasonable default.
6051     lt_cv_sys_max_cmd_len=16384
6052     #
6053     if test -x /sbin/sysconfig; then
6054       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6056       esac
6057     fi
6058     ;;
6059   sco3.2v5*)
6060     lt_cv_sys_max_cmd_len=102400
6061     ;;
6062   sysv5* | sco5v6* | sysv4.2uw2*)
6063     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064     if test -n "$kargmax"; then
6065       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6066     else
6067       lt_cv_sys_max_cmd_len=32768
6068     fi
6069     ;;
6070   *)
6071     # If test is not a shell built-in, we'll probably end up computing a
6072     # maximum length that is only half of the actual maximum length, but
6073     # we can't tell.
6074     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6075     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6076                = "XX$teststring") >/dev/null 2>&1 &&
6077             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6078             lt_cv_sys_max_cmd_len=$new_result &&
6079             test $i != 17 # 1/2 MB should be enough
6080     do
6081       i=`expr $i + 1`
6082       teststring=$teststring$teststring
6083     done
6084     teststring=
6085     # Add a significant safety factor because C++ compilers can tack on massive
6086     # amounts of additional arguments before passing them to the linker.
6087     # It appears as though 1/2 is a usable value.
6088     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6089     ;;
6090   esac
6091
6092 fi
6093
6094 if test -n $lt_cv_sys_max_cmd_len ; then
6095   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6096 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6097 else
6098   { echo "$as_me:$LINENO: result: none" >&5
6099 echo "${ECHO_T}none" >&6; }
6100 fi
6101
6102
6103
6104
6105 # Check for command to grab the raw symbol name followed by C symbol from nm.
6106 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6107 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6108 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111
6112 # These are sane defaults that work on at least a few old systems.
6113 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6114
6115 # Character class describing NM global symbol codes.
6116 symcode='[BCDEGRST]'
6117
6118 # Regexp to match symbols that can be accessed directly from C.
6119 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6120
6121 # Transform an extracted symbol line into a proper C declaration
6122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6123
6124 # Transform an extracted symbol line into symbol name and symbol address
6125 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'"
6126
6127 # Define system-specific variables.
6128 case $host_os in
6129 aix*)
6130   symcode='[BCDT]'
6131   ;;
6132 cygwin* | mingw* | pw32*)
6133   symcode='[ABCDGISTW]'
6134   ;;
6135 hpux*) # Its linker distinguishes data from code symbols
6136   if test "$host_cpu" = ia64; then
6137     symcode='[ABCDEGRST]'
6138   fi
6139   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6140   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'"
6141   ;;
6142 linux*)
6143   if test "$host_cpu" = ia64; then
6144     symcode='[ABCDGIRSTW]'
6145     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6146     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'"
6147   fi
6148   ;;
6149 irix* | nonstopux*)
6150   symcode='[BCDEGRST]'
6151   ;;
6152 osf*)
6153   symcode='[BCDEGQRST]'
6154   ;;
6155 solaris*)
6156   symcode='[BDRT]'
6157   ;;
6158 sco3.2v5*)
6159   symcode='[DT]'
6160   ;;
6161 sysv4.2uw2*)
6162   symcode='[DT]'
6163   ;;
6164 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6165   symcode='[ABDT]'
6166   ;;
6167 sysv4)
6168   symcode='[DFNSTU]'
6169   ;;
6170 esac
6171
6172 # Handle CRLF in mingw tool chain
6173 opt_cr=
6174 case $build_os in
6175 mingw*)
6176   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6177   ;;
6178 esac
6179
6180 # If we're using GNU nm, then use its standard symbol codes.
6181 case `$NM -V 2>&1` in
6182 *GNU* | *'with BFD'*)
6183   symcode='[ABCDGIRSTW]' ;;
6184 esac
6185
6186 # Try without a prefix undercore, then with it.
6187 for ac_symprfx in "" "_"; do
6188
6189   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6190   symxfrm="\\1 $ac_symprfx\\2 \\2"
6191
6192   # Write the raw and C identifiers.
6193   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6194
6195   # Check to see that the pipe works correctly.
6196   pipe_works=no
6197
6198   rm -f conftest*
6199   cat > conftest.$ac_ext <<EOF
6200 #ifdef __cplusplus
6201 extern "C" {
6202 #endif
6203 char nm_test_var;
6204 void nm_test_func(){}
6205 #ifdef __cplusplus
6206 }
6207 #endif
6208 int main(){nm_test_var='a';nm_test_func();return(0);}
6209 EOF
6210
6211   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212   (eval $ac_compile) 2>&5
6213   ac_status=$?
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); }; then
6216     # Now try to grab the symbols.
6217     nlist=conftest.nm
6218     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6219   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6220   ac_status=$?
6221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); } && test -s "$nlist"; then
6223       # Try sorting and uniquifying the output.
6224       if sort "$nlist" | uniq > "$nlist"T; then
6225         mv -f "$nlist"T "$nlist"
6226       else
6227         rm -f "$nlist"T
6228       fi
6229
6230       # Make sure that we snagged all the symbols we need.
6231       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6232         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6233           cat <<EOF > conftest.$ac_ext
6234 #ifdef __cplusplus
6235 extern "C" {
6236 #endif
6237
6238 EOF
6239           # Now generate the symbol file.
6240           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6241
6242           cat <<EOF >> conftest.$ac_ext
6243 #if defined (__STDC__) && __STDC__
6244 # define lt_ptr_t void *
6245 #else
6246 # define lt_ptr_t char *
6247 # define const
6248 #endif
6249
6250 /* The mapping between symbol names and symbols. */
6251 const struct {
6252   const char *name;
6253   lt_ptr_t address;
6254 }
6255 lt_preloaded_symbols[] =
6256 {
6257 EOF
6258           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6259           cat <<\EOF >> conftest.$ac_ext
6260   {0, (lt_ptr_t) 0}
6261 };
6262
6263 #ifdef __cplusplus
6264 }
6265 #endif
6266 EOF
6267           # Now try linking the two files.
6268           mv conftest.$ac_objext conftstm.$ac_objext
6269           lt_save_LIBS="$LIBS"
6270           lt_save_CFLAGS="$CFLAGS"
6271           LIBS="conftstm.$ac_objext"
6272           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6273           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274   (eval $ac_link) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6278             pipe_works=yes
6279           fi
6280           LIBS="$lt_save_LIBS"
6281           CFLAGS="$lt_save_CFLAGS"
6282         else
6283           echo "cannot find nm_test_func in $nlist" >&5
6284         fi
6285       else
6286         echo "cannot find nm_test_var in $nlist" >&5
6287       fi
6288     else
6289       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6290     fi
6291   else
6292     echo "$progname: failed program was:" >&5
6293     cat conftest.$ac_ext >&5
6294   fi
6295   rm -f conftest* conftst*
6296
6297   # Do not use the global_symbol_pipe unless it works.
6298   if test "$pipe_works" = yes; then
6299     break
6300   else
6301     lt_cv_sys_global_symbol_pipe=
6302   fi
6303 done
6304
6305 fi
6306
6307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6308   lt_cv_sys_global_symbol_to_cdecl=
6309 fi
6310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6311   { echo "$as_me:$LINENO: result: failed" >&5
6312 echo "${ECHO_T}failed" >&6; }
6313 else
6314   { echo "$as_me:$LINENO: result: ok" >&5
6315 echo "${ECHO_T}ok" >&6; }
6316 fi
6317
6318 { echo "$as_me:$LINENO: checking for objdir" >&5
6319 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6320 if test "${lt_cv_objdir+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   rm -f .libs 2>/dev/null
6324 mkdir .libs 2>/dev/null
6325 if test -d .libs; then
6326   lt_cv_objdir=.libs
6327 else
6328   # MS-DOS does not allow filenames that begin with a dot.
6329   lt_cv_objdir=_libs
6330 fi
6331 rmdir .libs 2>/dev/null
6332 fi
6333 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6334 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6335 objdir=$lt_cv_objdir
6336
6337
6338
6339
6340
6341 case $host_os in
6342 aix3*)
6343   # AIX sometimes has problems with the GCC collect2 program.  For some
6344   # reason, if we set the COLLECT_NAMES environment variable, the problems
6345   # vanish in a puff of smoke.
6346   if test "X${COLLECT_NAMES+set}" != Xset; then
6347     COLLECT_NAMES=
6348     export COLLECT_NAMES
6349   fi
6350   ;;
6351 esac
6352
6353 # Sed substitution that helps us do robust quoting.  It backslashifies
6354 # metacharacters that are still active within double-quoted strings.
6355 Xsed='sed -e 1s/^X//'
6356 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6357
6358 # Same as above, but do not quote variable references.
6359 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6360
6361 # Sed substitution to delay expansion of an escaped shell variable in a
6362 # double_quote_subst'ed string.
6363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6364
6365 # Sed substitution to avoid accidental globbing in evaled expressions
6366 no_glob_subst='s/\*/\\\*/g'
6367
6368 # Constants:
6369 rm="rm -f"
6370
6371 # Global variables:
6372 default_ofile=libtool
6373 can_build_shared=yes
6374
6375 # All known linkers require a `.a' archive for static linking (except MSVC,
6376 # which needs '.lib').
6377 libext=a
6378 ltmain="$ac_aux_dir/ltmain.sh"
6379 ofile="$default_ofile"
6380 with_gnu_ld="$lt_cv_prog_gnu_ld"
6381
6382 if test -n "$ac_tool_prefix"; then
6383   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}ar; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_prog_AR+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   if test -n "$AR"; then
6391   ac_cv_prog_AR="$AR" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398   for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_prog_AR="${ac_tool_prefix}ar"
6401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 AR=$ac_cv_prog_AR
6411 if test -n "$AR"; then
6412   { echo "$as_me:$LINENO: result: $AR" >&5
6413 echo "${ECHO_T}$AR" >&6; }
6414 else
6415   { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6417 fi
6418
6419
6420 fi
6421 if test -z "$ac_cv_prog_AR"; then
6422   ac_ct_AR=$AR
6423   # Extract the first word of "ar", so it can be a program name with args.
6424 set dummy ar; ac_word=$2
6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   if test -n "$ac_ct_AR"; then
6431   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440     ac_cv_prog_ac_ct_AR="ar"
6441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448 fi
6449 fi
6450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6451 if test -n "$ac_ct_AR"; then
6452   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6453 echo "${ECHO_T}$ac_ct_AR" >&6; }
6454 else
6455   { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6457 fi
6458
6459   if test "x$ac_ct_AR" = x; then
6460     AR="false"
6461   else
6462     case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6465 whose name does not start with the host triplet.  If you think this
6466 configuration is useful to you, please write to autoconf@gnu.org." >&5
6467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6468 whose name does not start with the host triplet.  If you think this
6469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6470 ac_tool_warned=yes ;;
6471 esac
6472     AR=$ac_ct_AR
6473   fi
6474 else
6475   AR="$ac_cv_prog_AR"
6476 fi
6477
6478 if test -n "$ac_tool_prefix"; then
6479   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_prog_RANLIB+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   if test -n "$RANLIB"; then
6487   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 RANLIB=$ac_cv_prog_RANLIB
6507 if test -n "$RANLIB"; then
6508   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6509 echo "${ECHO_T}$RANLIB" >&6; }
6510 else
6511   { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6513 fi
6514
6515
6516 fi
6517 if test -z "$ac_cv_prog_RANLIB"; then
6518   ac_ct_RANLIB=$RANLIB
6519   # Extract the first word of "ranlib", so it can be a program name with args.
6520 set dummy ranlib; ac_word=$2
6521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   if test -n "$ac_ct_RANLIB"; then
6527   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_prog_ac_ct_RANLIB="ranlib"
6537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6547 if test -n "$ac_ct_RANLIB"; then
6548   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6549 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6550 else
6551   { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6553 fi
6554
6555   if test "x$ac_ct_RANLIB" = x; then
6556     RANLIB=":"
6557   else
6558     case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6561 whose name does not start with the host triplet.  If you think this
6562 configuration is useful to you, please write to autoconf@gnu.org." >&5
6563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6564 whose name does not start with the host triplet.  If you think this
6565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6566 ac_tool_warned=yes ;;
6567 esac
6568     RANLIB=$ac_ct_RANLIB
6569   fi
6570 else
6571   RANLIB="$ac_cv_prog_RANLIB"
6572 fi
6573
6574 if test -n "$ac_tool_prefix"; then
6575   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6576 set dummy ${ac_tool_prefix}strip; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_prog_STRIP+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   if test -n "$STRIP"; then
6583   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 STRIP=$ac_cv_prog_STRIP
6603 if test -n "$STRIP"; then
6604   { echo "$as_me:$LINENO: result: $STRIP" >&5
6605 echo "${ECHO_T}$STRIP" >&6; }
6606 else
6607   { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6609 fi
6610
6611
6612 fi
6613 if test -z "$ac_cv_prog_STRIP"; then
6614   ac_ct_STRIP=$STRIP
6615   # Extract the first word of "strip", so it can be a program name with args.
6616 set dummy strip; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   if test -n "$ac_ct_STRIP"; then
6623   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630   for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_prog_ac_ct_STRIP="strip"
6633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637 done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6643 if test -n "$ac_ct_STRIP"; then
6644   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6646 else
6647   { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6649 fi
6650
6651   if test "x$ac_ct_STRIP" = x; then
6652     STRIP=":"
6653   else
6654     case $cross_compiling:$ac_tool_warned in
6655 yes:)
6656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6657 whose name does not start with the host triplet.  If you think this
6658 configuration is useful to you, please write to autoconf@gnu.org." >&5
6659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6660 whose name does not start with the host triplet.  If you think this
6661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664     STRIP=$ac_ct_STRIP
6665   fi
6666 else
6667   STRIP="$ac_cv_prog_STRIP"
6668 fi
6669
6670
6671 old_CC="$CC"
6672 old_CFLAGS="$CFLAGS"
6673
6674 # Set sane defaults for various variables
6675 test -z "$AR" && AR=ar
6676 test -z "$AR_FLAGS" && AR_FLAGS=cru
6677 test -z "$AS" && AS=as
6678 test -z "$CC" && CC=cc
6679 test -z "$LTCC" && LTCC=$CC
6680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6681 test -z "$DLLTOOL" && DLLTOOL=dlltool
6682 test -z "$LD" && LD=ld
6683 test -z "$LN_S" && LN_S="ln -s"
6684 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6685 test -z "$NM" && NM=nm
6686 test -z "$SED" && SED=sed
6687 test -z "$OBJDUMP" && OBJDUMP=objdump
6688 test -z "$RANLIB" && RANLIB=:
6689 test -z "$STRIP" && STRIP=:
6690 test -z "$ac_objext" && ac_objext=o
6691
6692 # Determine commands to create old-style static archives.
6693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6694 old_postinstall_cmds='chmod 644 $oldlib'
6695 old_postuninstall_cmds=
6696
6697 if test -n "$RANLIB"; then
6698   case $host_os in
6699   openbsd*)
6700     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6701     ;;
6702   *)
6703     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6704     ;;
6705   esac
6706   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6707 fi
6708
6709 for cc_temp in $compiler""; do
6710   case $cc_temp in
6711     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6712     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6713     \-*) ;;
6714     *) break;;
6715   esac
6716 done
6717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6718
6719
6720 # Only perform the check for file, if the check method requires it
6721 case $deplibs_check_method in
6722 file_magic*)
6723   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6724     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6725 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6726 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   case $MAGIC_CMD in
6730 [\\/*] |  ?:[\\/]*)
6731   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6732   ;;
6733 *)
6734   lt_save_MAGIC_CMD="$MAGIC_CMD"
6735   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6736   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6737   for ac_dir in $ac_dummy; do
6738     IFS="$lt_save_ifs"
6739     test -z "$ac_dir" && ac_dir=.
6740     if test -f $ac_dir/${ac_tool_prefix}file; then
6741       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6742       if test -n "$file_magic_test_file"; then
6743         case $deplibs_check_method in
6744         "file_magic "*)
6745           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6746           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6747           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6748             $EGREP "$file_magic_regex" > /dev/null; then
6749             :
6750           else
6751             cat <<EOF 1>&2
6752
6753 *** Warning: the command libtool uses to detect shared libraries,
6754 *** $file_magic_cmd, produces output that libtool cannot recognize.
6755 *** The result is that libtool may fail to recognize shared libraries
6756 *** as such.  This will affect the creation of libtool libraries that
6757 *** depend on shared libraries, but programs linked with such libtool
6758 *** libraries will work regardless of this problem.  Nevertheless, you
6759 *** may want to report the problem to your system manager and/or to
6760 *** bug-libtool@gnu.org
6761
6762 EOF
6763           fi ;;
6764         esac
6765       fi
6766       break
6767     fi
6768   done
6769   IFS="$lt_save_ifs"
6770   MAGIC_CMD="$lt_save_MAGIC_CMD"
6771   ;;
6772 esac
6773 fi
6774
6775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6776 if test -n "$MAGIC_CMD"; then
6777   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6778 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6779 else
6780   { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6782 fi
6783
6784 if test -z "$lt_cv_path_MAGIC_CMD"; then
6785   if test -n "$ac_tool_prefix"; then
6786     { echo "$as_me:$LINENO: checking for file" >&5
6787 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   case $MAGIC_CMD in
6792 [\\/*] |  ?:[\\/]*)
6793   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6794   ;;
6795 *)
6796   lt_save_MAGIC_CMD="$MAGIC_CMD"
6797   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6798   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6799   for ac_dir in $ac_dummy; do
6800     IFS="$lt_save_ifs"
6801     test -z "$ac_dir" && ac_dir=.
6802     if test -f $ac_dir/file; then
6803       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6804       if test -n "$file_magic_test_file"; then
6805         case $deplibs_check_method in
6806         "file_magic "*)
6807           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6808           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6809           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6810             $EGREP "$file_magic_regex" > /dev/null; then
6811             :
6812           else
6813             cat <<EOF 1>&2
6814
6815 *** Warning: the command libtool uses to detect shared libraries,
6816 *** $file_magic_cmd, produces output that libtool cannot recognize.
6817 *** The result is that libtool may fail to recognize shared libraries
6818 *** as such.  This will affect the creation of libtool libraries that
6819 *** depend on shared libraries, but programs linked with such libtool
6820 *** libraries will work regardless of this problem.  Nevertheless, you
6821 *** may want to report the problem to your system manager and/or to
6822 *** bug-libtool@gnu.org
6823
6824 EOF
6825           fi ;;
6826         esac
6827       fi
6828       break
6829     fi
6830   done
6831   IFS="$lt_save_ifs"
6832   MAGIC_CMD="$lt_save_MAGIC_CMD"
6833   ;;
6834 esac
6835 fi
6836
6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838 if test -n "$MAGIC_CMD"; then
6839   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6840 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6841 else
6842   { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6844 fi
6845
6846   else
6847     MAGIC_CMD=:
6848   fi
6849 fi
6850
6851   fi
6852   ;;
6853 esac
6854
6855 enable_dlopen=no
6856 enable_win32_dll=no
6857
6858 # Check whether --enable-libtool-lock was given.
6859 if test "${enable_libtool_lock+set}" = set; then
6860   enableval=$enable_libtool_lock;
6861 fi
6862
6863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6864
6865
6866 # Check whether --with-pic was given.
6867 if test "${with_pic+set}" = set; then
6868   withval=$with_pic; pic_mode="$withval"
6869 else
6870   pic_mode=default
6871 fi
6872
6873 test -z "$pic_mode" && pic_mode=default
6874
6875 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6876 #
6877 # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6878 #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6879 #        calls AC_LIBTOOL_CONFIG and creates libtool.
6880 #
6881 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6882 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6883 if test "x$ltmain" = "x" ; then
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886   { { echo "$as_me:$LINENO: error:
6887
6888 *** [Gentoo] sanity check failed! ***
6889 *** \$ltmain is not defined, please check the patch for consistency! ***
6890 " >&5
6891 echo "$as_me: error:
6892
6893 *** [Gentoo] sanity check failed! ***
6894 *** \$ltmain is not defined, please check the patch for consistency! ***
6895 " >&2;}
6896    { (exit 1); exit 1; }; }
6897 fi
6898 gentoo_lt_version="1.5.22"
6899 gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
6900 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6901   { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903   { { echo "$as_me:$LINENO: error:
6904
6905 *** [Gentoo] sanity check failed! ***
6906 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6907 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6908
6909 Please run:
6910
6911   libtoolize --copy --force
6912
6913 if appropriate, please contact the maintainer of this
6914 package (or your distribution) for help.
6915 " >&5
6916 echo "$as_me: error:
6917
6918 *** [Gentoo] sanity check failed! ***
6919 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6920 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6921
6922 Please run:
6923
6924   libtoolize --copy --force
6925
6926 if appropriate, please contact the maintainer of this
6927 package (or your distribution) for help.
6928 " >&2;}
6929    { (exit 1); exit 1; }; }
6930 else
6931   { echo "$as_me:$LINENO: result: yes" >&5
6932 echo "${ECHO_T}yes" >&6; }
6933 fi
6934
6935
6936 # Use C for the default configuration in the libtool script
6937 tagname=
6938 lt_save_CC="$CC"
6939 ac_ext=c
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945
6946 # Source file extension for C test sources.
6947 ac_ext=c
6948
6949 # Object file extension for compiled C test sources.
6950 objext=o
6951 objext=$objext
6952
6953 # Code to be used in simple compile tests
6954 lt_simple_compile_test_code="int some_variable = 0;\n"
6955
6956 # Code to be used in simple link tests
6957 lt_simple_link_test_code='int main(){return(0);}\n'
6958
6959
6960 # If no C compiler was specified, use CC.
6961 LTCC=${LTCC-"$CC"}
6962
6963 # If no C compiler flags were specified, use CFLAGS.
6964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6965
6966 # Allow CC to be a program name with arguments.
6967 compiler=$CC
6968
6969
6970 # save warnings/boilerplate of simple test code
6971 ac_outfile=conftest.$ac_objext
6972 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6974 _lt_compiler_boilerplate=`cat conftest.err`
6975 $rm conftest*
6976
6977 ac_outfile=conftest.$ac_objext
6978 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6980 _lt_linker_boilerplate=`cat conftest.err`
6981 $rm conftest*
6982
6983
6984
6985 lt_prog_compiler_no_builtin_flag=
6986
6987 if test "$GCC" = yes; then
6988   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6989
6990
6991 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6992 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6993 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   lt_cv_prog_compiler_rtti_exceptions=no
6997   ac_outfile=conftest.$ac_objext
6998    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6999    lt_compiler_flag="-fno-rtti -fno-exceptions"
7000    # Insert the option either (1) after the last *FLAGS variable, or
7001    # (2) before a word containing "conftest.", or (3) at the end.
7002    # Note that $ac_compile itself does not contain backslashes and begins
7003    # with a dollar sign (not a hyphen), so the echo should work correctly.
7004    # The option is referenced via a variable to avoid confusing sed.
7005    lt_compile=`echo "$ac_compile" | $SED \
7006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7008    -e 's:$: $lt_compiler_flag:'`
7009    (eval echo "\"\$as_me:7009: $lt_compile\"" >&5)
7010    (eval "$lt_compile" 2>conftest.err)
7011    ac_status=$?
7012    cat conftest.err >&5
7013    echo "$as_me:7013: \$? = $ac_status" >&5
7014    if (exit $ac_status) && test -s "$ac_outfile"; then
7015      # The compiler can only warn and ignore the option if not recognized
7016      # So say no if there are warnings other than the usual output.
7017      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7018      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7019      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7020        lt_cv_prog_compiler_rtti_exceptions=yes
7021      fi
7022    fi
7023    $rm conftest*
7024
7025 fi
7026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7027 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7028
7029 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7030     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7031 else
7032     :
7033 fi
7034
7035 fi
7036
7037 lt_prog_compiler_wl=
7038 lt_prog_compiler_pic=
7039 lt_prog_compiler_static=
7040
7041 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7042 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7043
7044   if test "$GCC" = yes; then
7045     lt_prog_compiler_wl='-Wl,'
7046     lt_prog_compiler_static='-static'
7047
7048     case $host_os in
7049       aix*)
7050       # All AIX code is PIC.
7051       if test "$host_cpu" = ia64; then
7052         # AIX 5 now supports IA64 processor
7053         lt_prog_compiler_static='-Bstatic'
7054       fi
7055       ;;
7056
7057     amigaos*)
7058       # FIXME: we need at least 68020 code to build shared libraries, but
7059       # adding the `-m68020' flag to GCC prevents building anything better,
7060       # like `-m68040'.
7061       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7062       ;;
7063
7064     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7065       # PIC is the default for these OSes.
7066       ;;
7067
7068     mingw* | pw32* | os2*)
7069       # This hack is so that the source file can tell whether it is being
7070       # built for inclusion in a dll (and should export symbols for example).
7071       lt_prog_compiler_pic='-DDLL_EXPORT'
7072       ;;
7073
7074     darwin* | rhapsody*)
7075       # PIC is the default on this platform
7076       # Common symbols not allowed in MH_DYLIB files
7077       lt_prog_compiler_pic='-fno-common'
7078       ;;
7079
7080     interix3*)
7081       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7082       # Instead, we relocate shared libraries at runtime.
7083       ;;
7084
7085     msdosdjgpp*)
7086       # Just because we use GCC doesn't mean we suddenly get shared libraries
7087       # on systems that don't support them.
7088       lt_prog_compiler_can_build_shared=no
7089       enable_shared=no
7090       ;;
7091
7092     sysv4*MP*)
7093       if test -d /usr/nec; then
7094         lt_prog_compiler_pic=-Kconform_pic
7095       fi
7096       ;;
7097
7098     hpux*)
7099       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7100       # not for PA HP-UX.
7101       case $host_cpu in
7102       hppa*64*|ia64*)
7103         # +Z the default
7104         ;;
7105       *)
7106         lt_prog_compiler_pic='-fPIC'
7107         ;;
7108       esac
7109       ;;
7110
7111     *)
7112       lt_prog_compiler_pic='-fPIC'
7113       ;;
7114     esac
7115   else
7116     # PORTME Check for flag to pass linker flags through the system compiler.
7117     case $host_os in
7118     aix*)
7119       lt_prog_compiler_wl='-Wl,'
7120       if test "$host_cpu" = ia64; then
7121         # AIX 5 now supports IA64 processor
7122         lt_prog_compiler_static='-Bstatic'
7123       else
7124         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7125       fi
7126       ;;
7127       darwin*)
7128         # PIC is the default on this platform
7129         # Common symbols not allowed in MH_DYLIB files
7130        case $cc_basename in
7131          xlc*)
7132          lt_prog_compiler_pic='-qnocommon'
7133          lt_prog_compiler_wl='-Wl,'
7134          ;;
7135        esac
7136        ;;
7137
7138     mingw* | pw32* | os2*)
7139       # This hack is so that the source file can tell whether it is being
7140       # built for inclusion in a dll (and should export symbols for example).
7141       lt_prog_compiler_pic='-DDLL_EXPORT'
7142       ;;
7143
7144     hpux9* | hpux10* | hpux11*)
7145       lt_prog_compiler_wl='-Wl,'
7146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7147       # not for PA HP-UX.
7148       case $host_cpu in
7149       hppa*64*|ia64*)
7150         # +Z the default
7151         ;;
7152       *)
7153         lt_prog_compiler_pic='+Z'
7154         ;;
7155       esac
7156       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7157       lt_prog_compiler_static='${wl}-a ${wl}archive'
7158       ;;
7159
7160     irix5* | irix6* | nonstopux*)
7161       lt_prog_compiler_wl='-Wl,'
7162       # PIC (with -KPIC) is the default.
7163       lt_prog_compiler_static='-non_shared'
7164       ;;
7165
7166     newsos6)
7167       lt_prog_compiler_pic='-KPIC'
7168       lt_prog_compiler_static='-Bstatic'
7169       ;;
7170
7171     linux*)
7172       case $cc_basename in
7173       icc* | ecc*)
7174         lt_prog_compiler_wl='-Wl,'
7175         lt_prog_compiler_pic='-KPIC'
7176         lt_prog_compiler_static='-static'
7177         ;;
7178       pgcc* | pgf77* | pgf90* | pgf95*)
7179         # Portland Group compilers (*not* the Pentium gcc compiler,
7180         # which looks to be a dead project)
7181         lt_prog_compiler_wl='-Wl,'
7182         lt_prog_compiler_pic='-fpic'
7183         lt_prog_compiler_static='-Bstatic'
7184         ;;
7185       ccc*)
7186         lt_prog_compiler_wl='-Wl,'
7187         # All Alpha code is PIC.
7188         lt_prog_compiler_static='-non_shared'
7189         ;;
7190       esac
7191       ;;
7192
7193     osf3* | osf4* | osf5*)
7194       lt_prog_compiler_wl='-Wl,'
7195       # All OSF/1 code is PIC.
7196       lt_prog_compiler_static='-non_shared'
7197       ;;
7198
7199     solaris*)
7200       lt_prog_compiler_pic='-KPIC'
7201       lt_prog_compiler_static='-Bstatic'
7202       case $cc_basename in
7203       f77* | f90* | f95*)
7204         lt_prog_compiler_wl='-Qoption ld ';;
7205       *)
7206         lt_prog_compiler_wl='-Wl,';;
7207       esac
7208       ;;
7209
7210     sunos4*)
7211       lt_prog_compiler_wl='-Qoption ld '
7212       lt_prog_compiler_pic='-PIC'
7213       lt_prog_compiler_static='-Bstatic'
7214       ;;
7215
7216     sysv4 | sysv4.2uw2* | sysv4.3*)
7217       lt_prog_compiler_wl='-Wl,'
7218       lt_prog_compiler_pic='-KPIC'
7219       lt_prog_compiler_static='-Bstatic'
7220       ;;
7221
7222     sysv4*MP*)
7223       if test -d /usr/nec ;then
7224         lt_prog_compiler_pic='-Kconform_pic'
7225         lt_prog_compiler_static='-Bstatic'
7226       fi
7227       ;;
7228
7229     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7230       lt_prog_compiler_wl='-Wl,'
7231       lt_prog_compiler_pic='-KPIC'
7232       lt_prog_compiler_static='-Bstatic'
7233       ;;
7234
7235     unicos*)
7236       lt_prog_compiler_wl='-Wl,'
7237       lt_prog_compiler_can_build_shared=no
7238       ;;
7239
7240     uts4*)
7241       lt_prog_compiler_pic='-pic'
7242       lt_prog_compiler_static='-Bstatic'
7243       ;;
7244
7245     *)
7246       lt_prog_compiler_can_build_shared=no
7247       ;;
7248     esac
7249   fi
7250
7251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7252 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7253
7254 #
7255 # Check to make sure the PIC flag actually works.
7256 #
7257 if test -n "$lt_prog_compiler_pic"; then
7258
7259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7261 if test "${lt_prog_compiler_pic_works+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   lt_prog_compiler_pic_works=no
7265   ac_outfile=conftest.$ac_objext
7266    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7267    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7268    # Insert the option either (1) after the last *FLAGS variable, or
7269    # (2) before a word containing "conftest.", or (3) at the end.
7270    # Note that $ac_compile itself does not contain backslashes and begins
7271    # with a dollar sign (not a hyphen), so the echo should work correctly.
7272    # The option is referenced via a variable to avoid confusing sed.
7273    lt_compile=`echo "$ac_compile" | $SED \
7274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7276    -e 's:$: $lt_compiler_flag:'`
7277    (eval echo "\"\$as_me:7277: $lt_compile\"" >&5)
7278    (eval "$lt_compile" 2>conftest.err)
7279    ac_status=$?
7280    cat conftest.err >&5
7281    echo "$as_me:7281: \$? = $ac_status" >&5
7282    if (exit $ac_status) && test -s "$ac_outfile"; then
7283      # The compiler can only warn and ignore the option if not recognized
7284      # So say no if there are warnings other than the usual output.
7285      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7286      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7287      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7288        lt_prog_compiler_pic_works=yes
7289      fi
7290    fi
7291    $rm conftest*
7292
7293 fi
7294 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7295 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7296
7297 if test x"$lt_prog_compiler_pic_works" = xyes; then
7298     case $lt_prog_compiler_pic in
7299      "" | " "*) ;;
7300      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7301      esac
7302 else
7303     lt_prog_compiler_pic=
7304      lt_prog_compiler_can_build_shared=no
7305 fi
7306
7307 fi
7308 case $host_os in
7309   # For platforms which do not support PIC, -DPIC is meaningless:
7310   *djgpp*)
7311     lt_prog_compiler_pic=
7312     ;;
7313   *)
7314     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7315     ;;
7316 esac
7317
7318 #
7319 # Check to make sure the static flag actually works.
7320 #
7321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7322 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7323 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7324 if test "${lt_prog_compiler_static_works+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   lt_prog_compiler_static_works=no
7328    save_LDFLAGS="$LDFLAGS"
7329    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7330    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7331    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7332      # The linker can only warn and ignore the option if not recognized
7333      # So say no if there are warnings
7334      if test -s conftest.err; then
7335        # Append any errors to the config.log.
7336        cat conftest.err 1>&5
7337        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7338        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7339        if diff conftest.exp conftest.er2 >/dev/null; then
7340          lt_prog_compiler_static_works=yes
7341        fi
7342      else
7343        lt_prog_compiler_static_works=yes
7344      fi
7345    fi
7346    $rm conftest*
7347    LDFLAGS="$save_LDFLAGS"
7348
7349 fi
7350 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7351 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7352
7353 if test x"$lt_prog_compiler_static_works" = xyes; then
7354     :
7355 else
7356     lt_prog_compiler_static=
7357 fi
7358
7359
7360 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7361 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7362 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   lt_cv_prog_compiler_c_o=no
7366    $rm -r conftest 2>/dev/null
7367    mkdir conftest
7368    cd conftest
7369    mkdir out
7370    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7371
7372    lt_compiler_flag="-o out/conftest2.$ac_objext"
7373    # Insert the option either (1) after the last *FLAGS variable, or
7374    # (2) before a word containing "conftest.", or (3) at the end.
7375    # Note that $ac_compile itself does not contain backslashes and begins
7376    # with a dollar sign (not a hyphen), so the echo should work correctly.
7377    lt_compile=`echo "$ac_compile" | $SED \
7378    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7379    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7380    -e 's:$: $lt_compiler_flag:'`
7381    (eval echo "\"\$as_me:7381: $lt_compile\"" >&5)
7382    (eval "$lt_compile" 2>out/conftest.err)
7383    ac_status=$?
7384    cat out/conftest.err >&5
7385    echo "$as_me:7385: \$? = $ac_status" >&5
7386    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7387    then
7388      # The compiler can only warn and ignore the option if not recognized
7389      # So say no if there are warnings
7390      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7391      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7392      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7393        lt_cv_prog_compiler_c_o=yes
7394      fi
7395    fi
7396    chmod u+w . 2>&5
7397    $rm conftest*
7398    # SGI C++ compiler will create directory out/ii_files/ for
7399    # template instantiation
7400    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7401    $rm out/* && rmdir out
7402    cd ..
7403    rmdir conftest
7404    $rm conftest*
7405
7406 fi
7407 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7408 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7409
7410
7411 hard_links="nottested"
7412 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7413   # do not overwrite the value of need_locks provided by the user
7414   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7415 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7416   hard_links=yes
7417   $rm conftest*
7418   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7419   touch conftest.a
7420   ln conftest.a conftest.b 2>&5 || hard_links=no
7421   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7422   { echo "$as_me:$LINENO: result: $hard_links" >&5
7423 echo "${ECHO_T}$hard_links" >&6; }
7424   if test "$hard_links" = no; then
7425     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7426 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7427     need_locks=warn
7428   fi
7429 else
7430   need_locks=no
7431 fi
7432
7433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7435
7436   runpath_var=
7437   allow_undefined_flag=
7438   enable_shared_with_static_runtimes=no
7439   archive_cmds=
7440   archive_expsym_cmds=
7441   old_archive_From_new_cmds=
7442   old_archive_from_expsyms_cmds=
7443   export_dynamic_flag_spec=
7444   whole_archive_flag_spec=
7445   thread_safe_flag_spec=
7446   hardcode_libdir_flag_spec=
7447   hardcode_libdir_flag_spec_ld=
7448   hardcode_libdir_separator=
7449   hardcode_direct=no
7450   hardcode_minus_L=no
7451   hardcode_shlibpath_var=unsupported
7452   link_all_deplibs=unknown
7453   hardcode_automatic=no
7454   module_cmds=
7455   module_expsym_cmds=
7456   always_export_symbols=no
7457   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7458   # include_expsyms should be a list of space-separated symbols to be *always*
7459   # included in the symbol list
7460   include_expsyms=
7461   # exclude_expsyms can be an extended regexp of symbols to exclude
7462   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7463   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7464   # as well as any symbol that contains `d'.
7465   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7466   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7467   # platforms (ab)use it in PIC code, but their linkers get confused if
7468   # the symbol is explicitly referenced.  Since portable code cannot
7469   # rely on this symbol name, it's probably fine to never include it in
7470   # preloaded symbol tables.
7471   extract_expsyms_cmds=
7472   # Just being paranoid about ensuring that cc_basename is set.
7473   for cc_temp in $compiler""; do
7474   case $cc_temp in
7475     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7476     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7477     \-*) ;;
7478     *) break;;
7479   esac
7480 done
7481 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7482
7483   case $host_os in
7484   cygwin* | mingw* | pw32*)
7485     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7486     # When not using gcc, we currently assume that we are using
7487     # Microsoft Visual C++.
7488     if test "$GCC" != yes; then
7489       with_gnu_ld=no
7490     fi
7491     ;;
7492   interix*)
7493     # we just hope/assume this is gcc and not c89 (= MSVC++)
7494     with_gnu_ld=yes
7495     ;;
7496   openbsd*)
7497     with_gnu_ld=no
7498     ;;
7499   esac
7500
7501   ld_shlibs=yes
7502   if test "$with_gnu_ld" = yes; then
7503     # If archive_cmds runs LD, not CC, wlarc should be empty
7504     wlarc='${wl}'
7505
7506     # Set some defaults for GNU ld with shared library support. These
7507     # are reset later if shared libraries are not supported. Putting them
7508     # here allows them to be overridden if necessary.
7509     runpath_var=LD_RUN_PATH
7510     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7511     export_dynamic_flag_spec='${wl}--export-dynamic'
7512     # ancient GNU ld didn't support --whole-archive et. al.
7513     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7514         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7515       else
7516         whole_archive_flag_spec=
7517     fi
7518     supports_anon_versioning=no
7519     case `$LD -v 2>/dev/null` in
7520       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7521       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7522       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7523       *\ 2.11.*) ;; # other 2.11 versions
7524       *) supports_anon_versioning=yes ;;
7525     esac
7526
7527     # See if GNU ld supports shared libraries.
7528     case $host_os in
7529     aix3* | aix4* | aix5*)
7530       # On AIX/PPC, the GNU linker is very broken
7531       if test "$host_cpu" != ia64; then
7532         ld_shlibs=no
7533         cat <<EOF 1>&2
7534
7535 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7536 *** to be unable to reliably create shared libraries on AIX.
7537 *** Therefore, libtool is disabling shared libraries support.  If you
7538 *** really care for shared libraries, you may want to modify your PATH
7539 *** so that a non-GNU linker is found, and then restart.
7540
7541 EOF
7542       fi
7543       ;;
7544
7545     amigaos*)
7546       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)'
7547       hardcode_libdir_flag_spec='-L$libdir'
7548       hardcode_minus_L=yes
7549
7550       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7551       # that the semantics of dynamic libraries on AmigaOS, at least up
7552       # to version 4, is to share data among multiple programs linked
7553       # with the same dynamic library.  Since this doesn't match the
7554       # behavior of shared libraries on other platforms, we can't use
7555       # them.
7556       ld_shlibs=no
7557       ;;
7558
7559     beos*)
7560       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7561         allow_undefined_flag=unsupported
7562         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7563         # support --undefined.  This deserves some investigation.  FIXME
7564         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7565       else
7566         ld_shlibs=no
7567       fi
7568       ;;
7569
7570     cygwin* | mingw* | pw32*)
7571       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7572       # as there is no search path for DLLs.
7573       hardcode_libdir_flag_spec='-L$libdir'
7574       allow_undefined_flag=unsupported
7575       always_export_symbols=no
7576       enable_shared_with_static_runtimes=yes
7577       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7578
7579       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7580         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7581         # If the export-symbols file already is a .def file (1st line
7582         # is EXPORTS), use it as is; otherwise, prepend...
7583         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7584           cp $export_symbols $output_objdir/$soname.def;
7585         else
7586           echo EXPORTS > $output_objdir/$soname.def;
7587           cat $export_symbols >> $output_objdir/$soname.def;
7588         fi~
7589         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7590       else
7591         ld_shlibs=no
7592       fi
7593       ;;
7594
7595     interix3*)
7596       hardcode_direct=no
7597       hardcode_shlibpath_var=no
7598       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7599       export_dynamic_flag_spec='${wl}-E'
7600       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7601       # Instead, shared libraries are loaded at an image base (0x10000000 by
7602       # default) and relocated if they conflict, which is a slow very memory
7603       # consuming and fragmenting process.  To avoid this, we pick a random,
7604       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7605       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7606       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7607       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'
7608       ;;
7609
7610     linux*)
7611       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7612         tmp_addflag=
7613         case $cc_basename,$host_cpu in
7614         pgcc*)                          # Portland Group C compiler
7615           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'
7616           tmp_addflag=' $pic_flag'
7617           ;;
7618         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7619           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'
7620           tmp_addflag=' $pic_flag -Mnomain' ;;
7621         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7622           tmp_addflag=' -i_dynamic' ;;
7623         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7624           tmp_addflag=' -i_dynamic -nofor_main' ;;
7625         ifc* | ifort*)                  # Intel Fortran compiler
7626           tmp_addflag=' -nofor_main' ;;
7627         esac
7628         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7629
7630         if test $supports_anon_versioning = yes; then
7631           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7632   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7633   $echo "local: *; };" >> $output_objdir/$libname.ver~
7634           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7635         fi
7636       else
7637         ld_shlibs=no
7638       fi
7639       ;;
7640
7641     netbsd*)
7642       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7643         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7644         wlarc=
7645       else
7646         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7647         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7648       fi
7649       ;;
7650
7651     solaris*)
7652       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7653         ld_shlibs=no
7654         cat <<EOF 1>&2
7655
7656 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7657 *** create shared libraries on Solaris systems.  Therefore, libtool
7658 *** is disabling shared libraries support.  We urge you to upgrade GNU
7659 *** binutils to release 2.9.1 or newer.  Another option is to modify
7660 *** your PATH or compiler configuration so that the native linker is
7661 *** used, and then restart.
7662
7663 EOF
7664       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7665         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7666         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7667       else
7668         ld_shlibs=no
7669       fi
7670       ;;
7671
7672     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7673       case `$LD -v 2>&1` in
7674         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7675         ld_shlibs=no
7676         cat <<_LT_EOF 1>&2
7677
7678 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7679 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7680 *** is disabling shared libraries support.  We urge you to upgrade GNU
7681 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7682 *** your PATH or compiler configuration so that the native linker is
7683 *** used, and then restart.
7684
7685 _LT_EOF
7686         ;;
7687         *)
7688           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7689             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7690             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7691             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7692           else
7693             ld_shlibs=no
7694           fi
7695         ;;
7696       esac
7697       ;;
7698
7699     sunos4*)
7700       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7701       wlarc=
7702       hardcode_direct=yes
7703       hardcode_shlibpath_var=no
7704       ;;
7705
7706     *)
7707       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7708         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7710       else
7711         ld_shlibs=no
7712       fi
7713       ;;
7714     esac
7715
7716     if test "$ld_shlibs" = no; then
7717       runpath_var=
7718       hardcode_libdir_flag_spec=
7719       export_dynamic_flag_spec=
7720       whole_archive_flag_spec=
7721     fi
7722   else
7723     # PORTME fill in a description of your system's linker (not GNU ld)
7724     case $host_os in
7725     aix3*)
7726       allow_undefined_flag=unsupported
7727       always_export_symbols=yes
7728       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'
7729       # Note: this linker hardcodes the directories in LIBPATH if there
7730       # are no directories specified by -L.
7731       hardcode_minus_L=yes
7732       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7733         # Neither direct hardcoding nor static linking is supported with a
7734         # broken collect2.
7735         hardcode_direct=unsupported
7736       fi
7737       ;;
7738
7739     aix4* | aix5*)
7740       if test "$host_cpu" = ia64; then
7741         # On IA64, the linker does run time linking by default, so we don't
7742         # have to do anything special.
7743         aix_use_runtimelinking=no
7744         exp_sym_flag='-Bexport'
7745         no_entry_flag=""
7746       else
7747         # If we're using GNU nm, then we don't want the "-C" option.
7748         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7749         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7750           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'
7751         else
7752           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'
7753         fi
7754         aix_use_runtimelinking=no
7755
7756         # Test if we are trying to use run time linking or normal
7757         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7758         # need to do runtime linking.
7759         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7760           for ld_flag in $LDFLAGS; do
7761           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7762             aix_use_runtimelinking=yes
7763             break
7764           fi
7765           done
7766           ;;
7767         esac
7768
7769         exp_sym_flag='-bexport'
7770         no_entry_flag='-bnoentry'
7771       fi
7772
7773       # When large executables or shared objects are built, AIX ld can
7774       # have problems creating the table of contents.  If linking a library
7775       # or program results in "error TOC overflow" add -mminimal-toc to
7776       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7777       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7778
7779       archive_cmds=''
7780       hardcode_direct=yes
7781       hardcode_libdir_separator=':'
7782       link_all_deplibs=yes
7783
7784       if test "$GCC" = yes; then
7785         case $host_os in aix4.[012]|aix4.[012].*)
7786         # We only want to do this on AIX 4.2 and lower, the check
7787         # below for broken collect2 doesn't work under 4.3+
7788           collect2name=`${CC} -print-prog-name=collect2`
7789           if test -f "$collect2name" && \
7790            strings "$collect2name" | grep resolve_lib_name >/dev/null
7791           then
7792           # We have reworked collect2
7793           hardcode_direct=yes
7794           else
7795           # We have old collect2
7796           hardcode_direct=unsupported
7797           # It fails to find uninstalled libraries when the uninstalled
7798           # path is not listed in the libpath.  Setting hardcode_minus_L
7799           # to unsupported forces relinking
7800           hardcode_minus_L=yes
7801           hardcode_libdir_flag_spec='-L$libdir'
7802           hardcode_libdir_separator=
7803           fi
7804           ;;
7805         esac
7806         shared_flag='-shared'
7807         if test "$aix_use_runtimelinking" = yes; then
7808           shared_flag="$shared_flag "'${wl}-G'
7809         fi
7810       else
7811         # not using gcc
7812         if test "$host_cpu" = ia64; then
7813         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7814         # chokes on -Wl,-G. The following line is correct:
7815           shared_flag='-G'
7816         else
7817           if test "$aix_use_runtimelinking" = yes; then
7818             shared_flag='${wl}-G'
7819           else
7820             shared_flag='${wl}-bM:SRE'
7821           fi
7822         fi
7823       fi
7824
7825       # It seems that -bexpall does not export symbols beginning with
7826       # underscore (_), so it is better to generate a list of symbols to export.
7827       always_export_symbols=yes
7828       if test "$aix_use_runtimelinking" = yes; then
7829         # Warning - without using the other runtime loading flags (-brtl),
7830         # -berok will link without error, but may produce a broken library.
7831         allow_undefined_flag='-berok'
7832        # Determine the default libpath from the value encoded in an empty executable.
7833        cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839
7840 int
7841 main ()
7842 {
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (ac_try="$ac_link"
7850 case "(($ac_try" in
7851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852   *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855   (eval "$ac_link") 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7863   { (case "(($ac_try" in
7864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865   *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868   (eval "$ac_try") 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; } &&
7872          { ac_try='test -s conftest$ac_exeext'
7873   { (case "(($ac_try" in
7874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875   *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878   (eval "$ac_try") 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; }; then
7882
7883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7884 }'`
7885 # Check for a 64-bit object if we didn't find anything.
7886 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; }
7887 }'`; fi
7888 else
7889   echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892
7893 fi
7894
7895 rm -f core conftest.err conftest.$ac_objext \
7896       conftest$ac_exeext conftest.$ac_ext
7897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7898
7899        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7900         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"
7901        else
7902         if test "$host_cpu" = ia64; then
7903           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7904           allow_undefined_flag="-z nodefs"
7905           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"
7906         else
7907          # Determine the default libpath from the value encoded in an empty executable.
7908          cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914
7915 int
7916 main ()
7917 {
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930   (eval "$ac_link") 2>conftest.er1
7931   ac_status=$?
7932   grep -v '^ *+' conftest.er1 >conftest.err
7933   rm -f conftest.er1
7934   cat conftest.err >&5
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); } &&
7937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7938   { (case "(($ac_try" in
7939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940   *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943   (eval "$ac_try") 2>&5
7944   ac_status=$?
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); }; } &&
7947          { ac_try='test -s conftest$ac_exeext'
7948   { (case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_try") 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; }; then
7957
7958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7959 }'`
7960 # Check for a 64-bit object if we didn't find anything.
7961 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; }
7962 }'`; fi
7963 else
7964   echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967
7968 fi
7969
7970 rm -f core conftest.err conftest.$ac_objext \
7971       conftest$ac_exeext conftest.$ac_ext
7972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7973
7974          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7975           # Warning - without using the other run time loading flags,
7976           # -berok will link without error, but may produce a broken library.
7977           no_undefined_flag=' ${wl}-bernotok'
7978           allow_undefined_flag=' ${wl}-berok'
7979           # Exported symbols can be pulled into shared objects from archives
7980           whole_archive_flag_spec='$convenience'
7981           archive_cmds_need_lc=yes
7982           # This is similar to how AIX traditionally builds its shared libraries.
7983           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'
7984         fi
7985       fi
7986       ;;
7987
7988     amigaos*)
7989       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)'
7990       hardcode_libdir_flag_spec='-L$libdir'
7991       hardcode_minus_L=yes
7992       # see comment about different semantics on the GNU ld section
7993       ld_shlibs=no
7994       ;;
7995
7996     bsdi[45]*)
7997       export_dynamic_flag_spec=-rdynamic
7998       ;;
7999
8000     cygwin* | mingw* | pw32*)
8001       # When not using gcc, we currently assume that we are using
8002       # Microsoft Visual C++.
8003       # hardcode_libdir_flag_spec is actually meaningless, as there is
8004       # no search path for DLLs.
8005       hardcode_libdir_flag_spec=' '
8006       allow_undefined_flag=unsupported
8007       # Tell ltmain to make .lib files, not .a files.
8008       libext=lib
8009       # Tell ltmain to make .dll files, not .so files.
8010       shrext_cmds=".dll"
8011       # FIXME: Setting linknames here is a bad hack.
8012       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8013       # The linker will automatically build a .lib file if we build a DLL.
8014       old_archive_From_new_cmds='true'
8015       # FIXME: Should let the user specify the lib program.
8016       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8017       fix_srcfile_path='`cygpath -w "$srcfile"`'
8018       enable_shared_with_static_runtimes=yes
8019       ;;
8020
8021     darwin* | rhapsody*)
8022       case $host_os in
8023         rhapsody* | darwin1.[012])
8024          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8025          ;;
8026        *) # Darwin 1.3 on
8027          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8028            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8029          else
8030            case ${MACOSX_DEPLOYMENT_TARGET} in
8031              10.[012])
8032                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8033                ;;
8034              10.*)
8035                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8036                ;;
8037            esac
8038          fi
8039          ;;
8040       esac
8041       archive_cmds_need_lc=no
8042       hardcode_direct=no
8043       hardcode_automatic=yes
8044       hardcode_shlibpath_var=unsupported
8045       whole_archive_flag_spec=''
8046       link_all_deplibs=yes
8047     if test "$GCC" = yes ; then
8048         output_verbose_link_cmd='echo'
8049         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8050       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8051       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8052       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}'
8053       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}'
8054     else
8055       case $cc_basename in
8056         xlc*)
8057          output_verbose_link_cmd='echo'
8058          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8059          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8060           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8061          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}'
8062           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}'
8063           ;;
8064        *)
8065          ld_shlibs=no
8066           ;;
8067       esac
8068     fi
8069       ;;
8070
8071     dgux*)
8072       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8073       hardcode_libdir_flag_spec='-L$libdir'
8074       hardcode_shlibpath_var=no
8075       ;;
8076
8077     freebsd1*)
8078       ld_shlibs=no
8079       ;;
8080
8081     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8082     # support.  Future versions do this automatically, but an explicit c++rt0.o
8083     # does not break anything, and helps significantly (at the cost of a little
8084     # extra space).
8085     freebsd2.2*)
8086       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8087       hardcode_libdir_flag_spec='-R$libdir'
8088       hardcode_direct=yes
8089       hardcode_shlibpath_var=no
8090       ;;
8091
8092     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8093     freebsd2*)
8094       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8095       hardcode_direct=yes
8096       hardcode_minus_L=yes
8097       hardcode_shlibpath_var=no
8098       ;;
8099
8100     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8101     freebsd* | kfreebsd*-gnu | dragonfly*)
8102       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8103       hardcode_libdir_flag_spec='-R$libdir'
8104       hardcode_direct=yes
8105       hardcode_shlibpath_var=no
8106       ;;
8107
8108     hpux9*)
8109       if test "$GCC" = yes; then
8110         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'
8111       else
8112         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'
8113       fi
8114       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8115       hardcode_libdir_separator=:
8116       hardcode_direct=yes
8117
8118       # hardcode_minus_L: Not really in the search PATH,
8119       # but as the default location of the library.
8120       hardcode_minus_L=yes
8121       export_dynamic_flag_spec='${wl}-E'
8122       ;;
8123
8124     hpux10*)
8125       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8126         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8127       else
8128         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8129       fi
8130       if test "$with_gnu_ld" = no; then
8131         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8132         hardcode_libdir_separator=:
8133
8134         hardcode_direct=yes
8135         export_dynamic_flag_spec='${wl}-E'
8136
8137         # hardcode_minus_L: Not really in the search PATH,
8138         # but as the default location of the library.
8139         hardcode_minus_L=yes
8140       fi
8141       ;;
8142
8143     hpux11*)
8144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8145         case $host_cpu in
8146         hppa*64*)
8147           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8148           ;;
8149         ia64*)
8150           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8151           ;;
8152         *)
8153           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8154           ;;
8155         esac
8156       else
8157         case $host_cpu in
8158         hppa*64*)
8159           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8160           ;;
8161         ia64*)
8162           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8163           ;;
8164         *)
8165           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8166           ;;
8167         esac
8168       fi
8169       if test "$with_gnu_ld" = no; then
8170         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8171         hardcode_libdir_separator=:
8172
8173         case $host_cpu in
8174         hppa*64*|ia64*)
8175           hardcode_libdir_flag_spec_ld='+b $libdir'
8176           hardcode_direct=no
8177           hardcode_shlibpath_var=no
8178           ;;
8179         *)
8180           hardcode_direct=yes
8181           export_dynamic_flag_spec='${wl}-E'
8182
8183           # hardcode_minus_L: Not really in the search PATH,
8184           # but as the default location of the library.
8185           hardcode_minus_L=yes
8186           ;;
8187         esac
8188       fi
8189       ;;
8190
8191     irix5* | irix6* | nonstopux*)
8192       if test "$GCC" = yes; then
8193         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'
8194       else
8195         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'
8196         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8197       fi
8198       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8199       hardcode_libdir_separator=:
8200       link_all_deplibs=yes
8201       ;;
8202
8203     netbsd*)
8204       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8205         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8206       else
8207         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8208       fi
8209       hardcode_libdir_flag_spec='-R$libdir'
8210       hardcode_direct=yes
8211       hardcode_shlibpath_var=no
8212       ;;
8213
8214     newsos6)
8215       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8216       hardcode_direct=yes
8217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218       hardcode_libdir_separator=:
8219       hardcode_shlibpath_var=no
8220       ;;
8221
8222     openbsd*)
8223       hardcode_direct=yes
8224       hardcode_shlibpath_var=no
8225       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8226         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8227         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8228         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8229         export_dynamic_flag_spec='${wl}-E'
8230       else
8231        case $host_os in
8232          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8233            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8234            hardcode_libdir_flag_spec='-R$libdir'
8235            ;;
8236          *)
8237            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8238            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8239            ;;
8240        esac
8241       fi
8242       ;;
8243
8244     os2*)
8245       hardcode_libdir_flag_spec='-L$libdir'
8246       hardcode_minus_L=yes
8247       allow_undefined_flag=unsupported
8248       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'
8249       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8250       ;;
8251
8252     osf3*)
8253       if test "$GCC" = yes; then
8254         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8255         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'
8256       else
8257         allow_undefined_flag=' -expect_unresolved \*'
8258         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'
8259       fi
8260       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8261       hardcode_libdir_separator=:
8262       ;;
8263
8264     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8265       if test "$GCC" = yes; then
8266         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8267         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'
8268         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8269       else
8270         allow_undefined_flag=' -expect_unresolved \*'
8271         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'
8272         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8273         $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'
8274
8275         # Both c and cxx compiler support -rpath directly
8276         hardcode_libdir_flag_spec='-rpath $libdir'
8277       fi
8278       hardcode_libdir_separator=:
8279       ;;
8280
8281     solaris*)
8282       no_undefined_flag=' -z text'
8283       if test "$GCC" = yes; then
8284         wlarc='${wl}'
8285         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8286         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8287           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8288       else
8289         wlarc=''
8290         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8292         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8293       fi
8294       hardcode_libdir_flag_spec='-R$libdir'
8295       hardcode_shlibpath_var=no
8296       case $host_os in
8297       solaris2.[0-5] | solaris2.[0-5].*) ;;
8298       *)
8299         # The compiler driver will combine linker options so we
8300         # cannot just pass the convience library names through
8301         # without $wl, iff we do not link with $LD.
8302         # Luckily, gcc supports the same syntax we need for Sun Studio.
8303         # Supported since Solaris 2.6 (maybe 2.5.1?)
8304         case $wlarc in
8305         '')
8306           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8307         *)
8308           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' ;;
8309         esac ;;
8310       esac
8311       link_all_deplibs=yes
8312       ;;
8313
8314     sunos4*)
8315       if test "x$host_vendor" = xsequent; then
8316         # Use $CC to link under sequent, because it throws in some extra .o
8317         # files that make .init and .fini sections work.
8318         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8319       else
8320         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8321       fi
8322       hardcode_libdir_flag_spec='-L$libdir'
8323       hardcode_direct=yes
8324       hardcode_minus_L=yes
8325       hardcode_shlibpath_var=no
8326       ;;
8327
8328     sysv4)
8329       case $host_vendor in
8330         sni)
8331           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8332           hardcode_direct=yes # is this really true???
8333         ;;
8334         siemens)
8335           ## LD is ld it makes a PLAMLIB
8336           ## CC just makes a GrossModule.
8337           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8338           reload_cmds='$CC -r -o $output$reload_objs'
8339           hardcode_direct=no
8340         ;;
8341         motorola)
8342           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8343           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8344         ;;
8345       esac
8346       runpath_var='LD_RUN_PATH'
8347       hardcode_shlibpath_var=no
8348       ;;
8349
8350     sysv4.3*)
8351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352       hardcode_shlibpath_var=no
8353       export_dynamic_flag_spec='-Bexport'
8354       ;;
8355
8356     sysv4*MP*)
8357       if test -d /usr/nec; then
8358         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359         hardcode_shlibpath_var=no
8360         runpath_var=LD_RUN_PATH
8361         hardcode_runpath_var=yes
8362         ld_shlibs=yes
8363       fi
8364       ;;
8365
8366     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8367       no_undefined_flag='${wl}-z,text'
8368       archive_cmds_need_lc=no
8369       hardcode_shlibpath_var=no
8370       runpath_var='LD_RUN_PATH'
8371
8372       if test "$GCC" = yes; then
8373         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8374         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8375       else
8376         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8377         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8378       fi
8379       ;;
8380
8381     sysv5* | sco3.2v5* | sco5v6*)
8382       # Note: We can NOT use -z defs as we might desire, because we do not
8383       # link with -lc, and that would cause any symbols used from libc to
8384       # always be unresolved, which means just about no library would
8385       # ever link correctly.  If we're not using GNU ld we use -z text
8386       # though, which does catch some bad symbols but isn't as heavy-handed
8387       # as -z defs.
8388       no_undefined_flag='${wl}-z,text'
8389       allow_undefined_flag='${wl}-z,nodefs'
8390       archive_cmds_need_lc=no
8391       hardcode_shlibpath_var=no
8392       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8393       hardcode_libdir_separator=':'
8394       link_all_deplibs=yes
8395       export_dynamic_flag_spec='${wl}-Bexport'
8396       runpath_var='LD_RUN_PATH'
8397
8398       if test "$GCC" = yes; then
8399         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8400         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8401       else
8402         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8404       fi
8405       ;;
8406
8407     uts4*)
8408       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8409       hardcode_libdir_flag_spec='-L$libdir'
8410       hardcode_shlibpath_var=no
8411       ;;
8412
8413     *)
8414       ld_shlibs=no
8415       ;;
8416     esac
8417   fi
8418
8419 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8420 echo "${ECHO_T}$ld_shlibs" >&6; }
8421 test "$ld_shlibs" = no && can_build_shared=no
8422
8423 #
8424 # Do we need to explicitly link libc?
8425 #
8426 case "x$archive_cmds_need_lc" in
8427 x|xyes)
8428   # Assume -lc should be added
8429   archive_cmds_need_lc=yes
8430
8431   if test "$enable_shared" = yes && test "$GCC" = yes; then
8432     case $archive_cmds in
8433     *'~'*)
8434       # FIXME: we may have to deal with multi-command sequences.
8435       ;;
8436     '$CC '*)
8437       # Test whether the compiler implicitly links with -lc since on some
8438       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8439       # to ld, don't add -lc before -lgcc.
8440       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8441 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8442       $rm conftest*
8443       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8444
8445       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446   (eval $ac_compile) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } 2>conftest.err; then
8450         soname=conftest
8451         lib=conftest
8452         libobjs=conftest.$ac_objext
8453         deplibs=
8454         wl=$lt_prog_compiler_wl
8455         pic_flag=$lt_prog_compiler_pic
8456         compiler_flags=-v
8457         linker_flags=-v
8458         verstring=
8459         output_objdir=.
8460         libname=conftest
8461         lt_save_allow_undefined_flag=$allow_undefined_flag
8462         allow_undefined_flag=
8463         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8464   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }
8468         then
8469           archive_cmds_need_lc=no
8470         else
8471           archive_cmds_need_lc=yes
8472         fi
8473         allow_undefined_flag=$lt_save_allow_undefined_flag
8474       else
8475         cat conftest.err 1>&5
8476       fi
8477       $rm conftest*
8478       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8479 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8480       ;;
8481     esac
8482   fi
8483   ;;
8484 esac
8485
8486 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8487 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8488 library_names_spec=
8489 libname_spec='lib$name'
8490 soname_spec=
8491 shrext_cmds=".so"
8492 postinstall_cmds=
8493 postuninstall_cmds=
8494 finish_cmds=
8495 finish_eval=
8496 shlibpath_var=
8497 shlibpath_overrides_runpath=unknown
8498 version_type=none
8499 dynamic_linker="$host_os ld.so"
8500 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8501 if test "$GCC" = yes; then
8502   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8503   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8504     # if the path contains ";" then we assume it to be the separator
8505     # otherwise default to the standard path separator (i.e. ":") - it is
8506     # assumed that no part of a normal pathname contains ";" but that should
8507     # okay in the real world where ";" in dirpaths is itself problematic.
8508     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8509   else
8510     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8511   fi
8512 else
8513   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8514 fi
8515 need_lib_prefix=unknown
8516 hardcode_into_libs=no
8517
8518 # when you set need_version to no, make sure it does not cause -set_version
8519 # flags to be left without arguments
8520 need_version=unknown
8521
8522 case $host_os in
8523 aix3*)
8524   version_type=linux
8525   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8526   shlibpath_var=LIBPATH
8527
8528   # AIX 3 has no versioning support, so we append a major version to the name.
8529   soname_spec='${libname}${release}${shared_ext}$major'
8530   ;;
8531
8532 aix4* | aix5*)
8533   version_type=linux
8534   need_lib_prefix=no
8535   need_version=no
8536   hardcode_into_libs=yes
8537   if test "$host_cpu" = ia64; then
8538     # AIX 5 supports IA64
8539     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8540     shlibpath_var=LD_LIBRARY_PATH
8541   else
8542     # With GCC up to 2.95.x, collect2 would create an import file
8543     # for dependence libraries.  The import file would start with
8544     # the line `#! .'.  This would cause the generated library to
8545     # depend on `.', always an invalid library.  This was fixed in
8546     # development snapshots of GCC prior to 3.0.
8547     case $host_os in
8548       aix4 | aix4.[01] | aix4.[01].*)
8549       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8550            echo ' yes '
8551            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8552         :
8553       else
8554         can_build_shared=no
8555       fi
8556       ;;
8557     esac
8558     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8559     # soname into executable. Probably we can add versioning support to
8560     # collect2, so additional links can be useful in future.
8561     if test "$aix_use_runtimelinking" = yes; then
8562       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8563       # instead of lib<name>.a to let people know that these are not
8564       # typical AIX shared libraries.
8565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566     else
8567       # We preserve .a as extension for shared libraries through AIX4.2
8568       # and later when we are not doing run time linking.
8569       library_names_spec='${libname}${release}.a $libname.a'
8570       soname_spec='${libname}${release}${shared_ext}$major'
8571     fi
8572     shlibpath_var=LIBPATH
8573   fi
8574   ;;
8575
8576 amigaos*)
8577   library_names_spec='$libname.ixlibrary $libname.a'
8578   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8579   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'
8580   ;;
8581
8582 beos*)
8583   library_names_spec='${libname}${shared_ext}'
8584   dynamic_linker="$host_os ld.so"
8585   shlibpath_var=LIBRARY_PATH
8586   ;;
8587
8588 bsdi[45]*)
8589   version_type=linux
8590   need_version=no
8591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8592   soname_spec='${libname}${release}${shared_ext}$major'
8593   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8594   shlibpath_var=LD_LIBRARY_PATH
8595   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8596   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8597   # the default ld.so.conf also contains /usr/contrib/lib and
8598   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8599   # libtool to hard-code these into programs
8600   ;;
8601
8602 cygwin* | mingw* | pw32*)
8603   version_type=windows
8604   shrext_cmds=".dll"
8605   need_version=no
8606   need_lib_prefix=no
8607
8608   case $GCC,$host_os in
8609   yes,cygwin* | yes,mingw* | yes,pw32*)
8610     library_names_spec='$libname.dll.a'
8611     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8612     postinstall_cmds='base_file=`basename \${file}`~
8613       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8614       dldir=$destdir/`dirname \$dlpath`~
8615       test -d \$dldir || mkdir -p \$dldir~
8616       $install_prog $dir/$dlname \$dldir/$dlname~
8617       chmod a+x \$dldir/$dlname'
8618     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8619       dlpath=$dir/\$dldll~
8620        $rm \$dlpath'
8621     shlibpath_overrides_runpath=yes
8622
8623     case $host_os in
8624     cygwin*)
8625       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8626       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8627       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8628       ;;
8629     mingw*)
8630       # MinGW DLLs use traditional 'lib' prefix
8631       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8632       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8633       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8634         # It is most probably a Windows format PATH printed by
8635         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8636         # path with ; separators, and with drive letters. We can handle the
8637         # drive letters (cygwin fileutils understands them), so leave them,
8638         # especially as we might pass files found there to a mingw objdump,
8639         # which wouldn't understand a cygwinified path. Ahh.
8640         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8641       else
8642         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8643       fi
8644       ;;
8645     pw32*)
8646       # pw32 DLLs use 'pw' prefix rather than 'lib'
8647       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8648       ;;
8649     esac
8650     ;;
8651
8652   linux*)
8653     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8654       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655       supports_anon_versioning=no
8656       case `$LD -v 2>/dev/null` in
8657         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8658         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8659         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8660         *\ 2.11.*) ;; # other 2.11 versions
8661         *) supports_anon_versioning=yes ;;
8662       esac
8663       if test $supports_anon_versioning = yes; then
8664         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8666 $echo "local: *; };" >> $output_objdir/$libname.ver~
8667         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8668       else
8669         $archive_expsym_cmds="$archive_cmds"
8670       fi
8671     else
8672       ld_shlibs=no
8673     fi
8674     ;;
8675
8676   *)
8677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8678     ;;
8679   esac
8680   dynamic_linker='Win32 ld.exe'
8681   # FIXME: first we should search . and the directory the executable is in
8682   shlibpath_var=PATH
8683   ;;
8684
8685 darwin* | rhapsody*)
8686   dynamic_linker="$host_os dyld"
8687   version_type=darwin
8688   need_lib_prefix=no
8689   need_version=no
8690   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8691   soname_spec='${libname}${release}${major}$shared_ext'
8692   shlibpath_overrides_runpath=yes
8693   shlibpath_var=DYLD_LIBRARY_PATH
8694   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8695   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8696   if test "$GCC" = yes; then
8697     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"`
8698   else
8699     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8700   fi
8701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8702   ;;
8703
8704 dgux*)
8705   version_type=linux
8706   need_lib_prefix=no
8707   need_version=no
8708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8709   soname_spec='${libname}${release}${shared_ext}$major'
8710   shlibpath_var=LD_LIBRARY_PATH
8711   ;;
8712
8713 freebsd1*)
8714   dynamic_linker=no
8715   ;;
8716
8717 kfreebsd*-gnu)
8718   version_type=linux
8719   need_lib_prefix=no
8720   need_version=no
8721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8722   soname_spec='${libname}${release}${shared_ext}$major'
8723   shlibpath_var=LD_LIBRARY_PATH
8724   shlibpath_overrides_runpath=no
8725   hardcode_into_libs=yes
8726   dynamic_linker='GNU ld.so'
8727   ;;
8728
8729 freebsd* | dragonfly*)
8730   # DragonFly does not have aout.  When/if they implement a new
8731   # versioning mechanism, adjust this.
8732   if test -x /usr/bin/objformat; then
8733     objformat=`/usr/bin/objformat`
8734   else
8735     case $host_os in
8736     freebsd[123]*) objformat=aout ;;
8737     *) objformat=elf ;;
8738     esac
8739   fi
8740   # Handle Gentoo/FreeBSD as it was Linux
8741   case $host_vendor in
8742     gentoo)
8743       version_type=linux ;;
8744     *)
8745       version_type=freebsd-$objformat ;;
8746   esac
8747
8748   case $version_type in
8749     freebsd-elf*)
8750       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8751       need_version=no
8752       need_lib_prefix=no
8753       ;;
8754     freebsd-*)
8755       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8756       need_version=yes
8757       ;;
8758     linux)
8759       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8760       soname_spec='${libname}${release}${shared_ext}$major'
8761       need_lib_prefix=no
8762       need_version=no
8763       ;;
8764   esac
8765   shlibpath_var=LD_LIBRARY_PATH
8766   case $host_os in
8767   freebsd2*)
8768     shlibpath_overrides_runpath=yes
8769     ;;
8770   freebsd3.[01]* | freebsdelf3.[01]*)
8771     shlibpath_overrides_runpath=yes
8772     hardcode_into_libs=yes
8773     ;;
8774   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8775   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8776     shlibpath_overrides_runpath=no
8777     hardcode_into_libs=yes
8778     ;;
8779   freebsd*) # from 4.6 on
8780     shlibpath_overrides_runpath=yes
8781     hardcode_into_libs=yes
8782     ;;
8783   esac
8784   ;;
8785
8786 gnu*)
8787   version_type=linux
8788   need_lib_prefix=no
8789   need_version=no
8790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8791   soname_spec='${libname}${release}${shared_ext}$major'
8792   shlibpath_var=LD_LIBRARY_PATH
8793   hardcode_into_libs=yes
8794   ;;
8795
8796 hpux9* | hpux10* | hpux11*)
8797   # Give a soname corresponding to the major version so that dld.sl refuses to
8798   # link against other versions.
8799   version_type=sunos
8800   need_lib_prefix=no
8801   need_version=no
8802   case $host_cpu in
8803   ia64*)
8804     shrext_cmds='.so'
8805     hardcode_into_libs=yes
8806     dynamic_linker="$host_os dld.so"
8807     shlibpath_var=LD_LIBRARY_PATH
8808     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810     soname_spec='${libname}${release}${shared_ext}$major'
8811     if test "X$HPUX_IA64_MODE" = X32; then
8812       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8813     else
8814       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8815     fi
8816     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8817     ;;
8818    hppa*64*)
8819      shrext_cmds='.sl'
8820      hardcode_into_libs=yes
8821      dynamic_linker="$host_os dld.sl"
8822      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8823      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825      soname_spec='${libname}${release}${shared_ext}$major'
8826      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8827      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8828      ;;
8829    *)
8830     shrext_cmds='.sl'
8831     dynamic_linker="$host_os dld.sl"
8832     shlibpath_var=SHLIB_PATH
8833     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8835     soname_spec='${libname}${release}${shared_ext}$major'
8836     ;;
8837   esac
8838   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8839   postinstall_cmds='chmod 555 $lib'
8840   ;;
8841
8842 interix3*)
8843   version_type=linux
8844   need_lib_prefix=no
8845   need_version=no
8846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8847   soname_spec='${libname}${release}${shared_ext}$major'
8848   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8849   shlibpath_var=LD_LIBRARY_PATH
8850   shlibpath_overrides_runpath=no
8851   hardcode_into_libs=yes
8852   ;;
8853
8854 irix5* | irix6* | nonstopux*)
8855   case $host_os in
8856     nonstopux*) version_type=nonstopux ;;
8857     *)
8858         if test "$lt_cv_prog_gnu_ld" = yes; then
8859                 version_type=linux
8860         else
8861                 version_type=irix
8862         fi ;;
8863   esac
8864   need_lib_prefix=no
8865   need_version=no
8866   soname_spec='${libname}${release}${shared_ext}$major'
8867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8868   case $host_os in
8869   irix5* | nonstopux*)
8870     libsuff= shlibsuff=
8871     ;;
8872   *)
8873     case $LD in # libtool.m4 will add one of these switches to LD
8874     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8875       libsuff= shlibsuff= libmagic=32-bit;;
8876     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8877       libsuff=32 shlibsuff=N32 libmagic=N32;;
8878     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8879       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8880     *) libsuff= shlibsuff= libmagic=never-match;;
8881     esac
8882     ;;
8883   esac
8884   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8885   shlibpath_overrides_runpath=no
8886   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8887   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8888   hardcode_into_libs=yes
8889   ;;
8890
8891 # No shared lib support for Linux oldld, aout, or coff.
8892 linux*oldld* | linux*aout* | linux*coff*)
8893   dynamic_linker=no
8894   ;;
8895
8896 # This must be Linux ELF.
8897 linux*)
8898   version_type=linux
8899   need_lib_prefix=no
8900   need_version=no
8901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902   soname_spec='${libname}${release}${shared_ext}$major'
8903   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8904   shlibpath_var=LD_LIBRARY_PATH
8905   shlibpath_overrides_runpath=no
8906   # This implies no fast_install, which is unacceptable.
8907   # Some rework will be needed to allow for fast_install
8908   # before this can be enabled.
8909   hardcode_into_libs=yes
8910
8911   # Append ld.so.conf contents to the search path
8912   if test -f /etc/ld.so.conf; then
8913     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8914     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8915   fi
8916
8917   # We used to test for /lib/ld.so.1 and disable shared libraries on
8918   # powerpc, because MkLinux only supported shared libraries with the
8919   # GNU dynamic linker.  Since this was broken with cross compilers,
8920   # most powerpc-linux boxes support dynamic linking these days and
8921   # people can always --disable-shared, the test was removed, and we
8922   # assume the GNU/Linux dynamic linker is in use.
8923   dynamic_linker='GNU/Linux ld.so'
8924   ;;
8925
8926 knetbsd*-gnu)
8927   version_type=linux
8928   need_lib_prefix=no
8929   need_version=no
8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   shlibpath_var=LD_LIBRARY_PATH
8933   shlibpath_overrides_runpath=no
8934   hardcode_into_libs=yes
8935   dynamic_linker='GNU ld.so'
8936   ;;
8937
8938 netbsd*)
8939   version_type=sunos
8940   need_lib_prefix=no
8941   need_version=no
8942   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8944     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8945     dynamic_linker='NetBSD (a.out) ld.so'
8946   else
8947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8948     soname_spec='${libname}${release}${shared_ext}$major'
8949     dynamic_linker='NetBSD ld.elf_so'
8950   fi
8951   shlibpath_var=LD_LIBRARY_PATH
8952   shlibpath_overrides_runpath=yes
8953   hardcode_into_libs=yes
8954   ;;
8955
8956 newsos6)
8957   version_type=linux
8958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959   shlibpath_var=LD_LIBRARY_PATH
8960   shlibpath_overrides_runpath=yes
8961   ;;
8962
8963 nto-qnx*)
8964   version_type=linux
8965   need_lib_prefix=no
8966   need_version=no
8967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968   soname_spec='${libname}${release}${shared_ext}$major'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   shlibpath_overrides_runpath=yes
8971   ;;
8972
8973 openbsd*)
8974   version_type=sunos
8975   sys_lib_dlsearch_path_spec="/usr/lib"
8976   need_lib_prefix=no
8977   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8978   case $host_os in
8979     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8980     *)                         need_version=no  ;;
8981   esac
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8986     case $host_os in
8987       openbsd2.[89] | openbsd2.[89].*)
8988         shlibpath_overrides_runpath=no
8989         ;;
8990       *)
8991         shlibpath_overrides_runpath=yes
8992         ;;
8993       esac
8994   else
8995     shlibpath_overrides_runpath=yes
8996   fi
8997   ;;
8998
8999 os2*)
9000   libname_spec='$name'
9001   shrext_cmds=".dll"
9002   need_lib_prefix=no
9003   library_names_spec='$libname${shared_ext} $libname.a'
9004   dynamic_linker='OS/2 ld.exe'
9005   shlibpath_var=LIBPATH
9006   ;;
9007
9008 osf3* | osf4* | osf5*)
9009   version_type=osf
9010   need_lib_prefix=no
9011   need_version=no
9012   soname_spec='${libname}${release}${shared_ext}$major'
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014   shlibpath_var=LD_LIBRARY_PATH
9015   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9016   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9017   ;;
9018
9019 solaris*)
9020   version_type=linux
9021   need_lib_prefix=no
9022   need_version=no
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024   soname_spec='${libname}${release}${shared_ext}$major'
9025   shlibpath_var=LD_LIBRARY_PATH
9026   shlibpath_overrides_runpath=yes
9027   hardcode_into_libs=yes
9028   # ldd complains unless libraries are executable
9029   postinstall_cmds='chmod +x $lib'
9030   ;;
9031
9032 sunos4*)
9033   version_type=sunos
9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9036   shlibpath_var=LD_LIBRARY_PATH
9037   shlibpath_overrides_runpath=yes
9038   if test "$with_gnu_ld" = yes; then
9039     need_lib_prefix=no
9040   fi
9041   need_version=yes
9042   ;;
9043
9044 sysv4 | sysv4.3*)
9045   version_type=linux
9046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047   soname_spec='${libname}${release}${shared_ext}$major'
9048   shlibpath_var=LD_LIBRARY_PATH
9049   case $host_vendor in
9050     sni)
9051       shlibpath_overrides_runpath=no
9052       need_lib_prefix=no
9053       export_dynamic_flag_spec='${wl}-Blargedynsym'
9054       runpath_var=LD_RUN_PATH
9055       ;;
9056     siemens)
9057       need_lib_prefix=no
9058       ;;
9059     motorola)
9060       need_lib_prefix=no
9061       need_version=no
9062       shlibpath_overrides_runpath=no
9063       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9064       ;;
9065   esac
9066   ;;
9067
9068 sysv4*MP*)
9069   if test -d /usr/nec ;then
9070     version_type=linux
9071     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9072     soname_spec='$libname${shared_ext}.$major'
9073     shlibpath_var=LD_LIBRARY_PATH
9074   fi
9075   ;;
9076
9077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9078   version_type=freebsd-elf
9079   need_lib_prefix=no
9080   need_version=no
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   hardcode_into_libs=yes
9085   if test "$with_gnu_ld" = yes; then
9086     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9087     shlibpath_overrides_runpath=no
9088   else
9089     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9090     shlibpath_overrides_runpath=yes
9091     case $host_os in
9092       sco3.2v5*)
9093         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9094         ;;
9095     esac
9096   fi
9097   sys_lib_dlsearch_path_spec='/usr/lib'
9098   ;;
9099
9100 uts4*)
9101   version_type=linux
9102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103   soname_spec='${libname}${release}${shared_ext}$major'
9104   shlibpath_var=LD_LIBRARY_PATH
9105   ;;
9106
9107 *)
9108   dynamic_linker=no
9109   ;;
9110 esac
9111 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9112 echo "${ECHO_T}$dynamic_linker" >&6; }
9113 test "$dynamic_linker" = no && can_build_shared=no
9114
9115 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9116 if test "$GCC" = yes; then
9117   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9118 fi
9119
9120 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9121 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9122 hardcode_action=
9123 if test -n "$hardcode_libdir_flag_spec" || \
9124    test -n "$runpath_var" || \
9125    test "X$hardcode_automatic" = "Xyes" ; then
9126
9127   # We can hardcode non-existant directories.
9128   if test "$hardcode_direct" != no &&
9129      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9130      # have to relink, otherwise we might link with an installed library
9131      # when we should be linking with a yet-to-be-installed one
9132      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9133      test "$hardcode_minus_L" != no; then
9134     # Linking always hardcodes the temporary library directory.
9135     hardcode_action=relink
9136   else
9137     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9138     hardcode_action=immediate
9139   fi
9140 else
9141   # We cannot hardcode anything, or else we can only hardcode existing
9142   # directories.
9143   hardcode_action=unsupported
9144 fi
9145 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9146 echo "${ECHO_T}$hardcode_action" >&6; }
9147
9148 if test "$hardcode_action" = relink; then
9149   # Fast installation is not supported
9150   enable_fast_install=no
9151 elif test "$shlibpath_overrides_runpath" = yes ||
9152      test "$enable_shared" = no; then
9153   # Fast installation is not necessary
9154   enable_fast_install=needless
9155 fi
9156
9157 striplib=
9158 old_striplib=
9159 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9160 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9161 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9162   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9163   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9164   { echo "$as_me:$LINENO: result: yes" >&5
9165 echo "${ECHO_T}yes" >&6; }
9166 else
9167 # FIXME - insert some real tests, host_os isn't really good enough
9168   case $host_os in
9169    darwin*)
9170        if test -n "$STRIP" ; then
9171          striplib="$STRIP -x"
9172          { echo "$as_me:$LINENO: result: yes" >&5
9173 echo "${ECHO_T}yes" >&6; }
9174        else
9175   { echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6; }
9177 fi
9178        ;;
9179    *)
9180   { echo "$as_me:$LINENO: result: no" >&5
9181 echo "${ECHO_T}no" >&6; }
9182     ;;
9183   esac
9184 fi
9185
9186 if test "x$enable_dlopen" != xyes; then
9187   enable_dlopen=unknown
9188   enable_dlopen_self=unknown
9189   enable_dlopen_self_static=unknown
9190 else
9191   lt_cv_dlopen=no
9192   lt_cv_dlopen_libs=
9193
9194   case $host_os in
9195   beos*)
9196     lt_cv_dlopen="load_add_on"
9197     lt_cv_dlopen_libs=
9198     lt_cv_dlopen_self=yes
9199     ;;
9200
9201   mingw* | pw32*)
9202     lt_cv_dlopen="LoadLibrary"
9203     lt_cv_dlopen_libs=
9204    ;;
9205
9206   cygwin*)
9207     lt_cv_dlopen="dlopen"
9208     lt_cv_dlopen_libs=
9209    ;;
9210
9211   darwin*)
9212   # if libdl is installed we need to link against it
9213     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9214 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   ac_check_lib_save_LIBS=$LIBS
9219 LIBS="-ldl  $LIBS"
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226
9227 /* Override any GCC internal prototype to avoid an error.
9228    Use char because int might match the return type of a GCC
9229    builtin and then its argument prototype would still apply.  */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 char dlopen ();
9234 int
9235 main ()
9236 {
9237 return dlopen ();
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (ac_try="$ac_link"
9244 case "(($ac_try" in
9245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246   *) ac_try_echo=$ac_try;;
9247 esac
9248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9249   (eval "$ac_link") 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } &&
9256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9257   { (case "(($ac_try" in
9258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259   *) ac_try_echo=$ac_try;;
9260 esac
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262   (eval "$ac_try") 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest$ac_exeext'
9267   { (case "(($ac_try" in
9268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269   *) ac_try_echo=$ac_try;;
9270 esac
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272   (eval "$ac_try") 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); }; }; then
9276   ac_cv_lib_dl_dlopen=yes
9277 else
9278   echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281         ac_cv_lib_dl_dlopen=no
9282 fi
9283
9284 rm -f core conftest.err conftest.$ac_objext \
9285       conftest$ac_exeext conftest.$ac_ext
9286 LIBS=$ac_check_lib_save_LIBS
9287 fi
9288 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9290 if test $ac_cv_lib_dl_dlopen = yes; then
9291   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9292 else
9293
9294     lt_cv_dlopen="dyld"
9295     lt_cv_dlopen_libs=
9296     lt_cv_dlopen_self=yes
9297
9298 fi
9299
9300    ;;
9301
9302   *)
9303     { echo "$as_me:$LINENO: checking for shl_load" >&5
9304 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9305 if test "${ac_cv_func_shl_load+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h.  */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h.  */
9314 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9316 #define shl_load innocuous_shl_load
9317
9318 /* System header to define __stub macros and hopefully few prototypes,
9319     which can conflict with char shl_load (); below.
9320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9321     <limits.h> exists even on freestanding compilers.  */
9322
9323 #ifdef __STDC__
9324 # include <limits.h>
9325 #else
9326 # include <assert.h>
9327 #endif
9328
9329 #undef shl_load
9330
9331 /* Override any GCC internal prototype to avoid an error.
9332    Use char because int might match the return type of a GCC
9333    builtin and then its argument prototype would still apply.  */
9334 #ifdef __cplusplus
9335 extern "C"
9336 #endif
9337 char shl_load ();
9338 /* The GNU C library defines this for functions which it implements
9339     to always fail with ENOSYS.  Some functions are actually named
9340     something starting with __ and the normal name is an alias.  */
9341 #if defined __stub_shl_load || defined __stub___shl_load
9342 choke me
9343 #endif
9344
9345 int
9346 main ()
9347 {
9348 return shl_load ();
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (ac_try="$ac_link"
9355 case "(($ac_try" in
9356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357   *) ac_try_echo=$ac_try;;
9358 esac
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360   (eval "$ac_link") 2>conftest.er1
9361   ac_status=$?
9362   grep -v '^ *+' conftest.er1 >conftest.err
9363   rm -f conftest.er1
9364   cat conftest.err >&5
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); } &&
9367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9368   { (case "(($ac_try" in
9369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370   *) ac_try_echo=$ac_try;;
9371 esac
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373   (eval "$ac_try") 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; } &&
9377          { ac_try='test -s conftest$ac_exeext'
9378   { (case "(($ac_try" in
9379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380   *) ac_try_echo=$ac_try;;
9381 esac
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383   (eval "$ac_try") 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; }; then
9387   ac_cv_func_shl_load=yes
9388 else
9389   echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9391
9392         ac_cv_func_shl_load=no
9393 fi
9394
9395 rm -f core conftest.err conftest.$ac_objext \
9396       conftest$ac_exeext conftest.$ac_ext
9397 fi
9398 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9399 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9400 if test $ac_cv_func_shl_load = yes; then
9401   lt_cv_dlopen="shl_load"
9402 else
9403   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9404 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9405 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408   ac_check_lib_save_LIBS=$LIBS
9409 LIBS="-ldld  $LIBS"
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416
9417 /* Override any GCC internal prototype to avoid an error.
9418    Use char because int might match the return type of a GCC
9419    builtin and then its argument prototype would still apply.  */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 char shl_load ();
9424 int
9425 main ()
9426 {
9427 return shl_load ();
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (ac_try="$ac_link"
9434 case "(($ac_try" in
9435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436   *) ac_try_echo=$ac_try;;
9437 esac
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439   (eval "$ac_link") 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } &&
9446          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447   { (case "(($ac_try" in
9448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449   *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452   (eval "$ac_try") 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; } &&
9456          { ac_try='test -s conftest$ac_exeext'
9457   { (case "(($ac_try" in
9458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459   *) ac_try_echo=$ac_try;;
9460 esac
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462   (eval "$ac_try") 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   ac_cv_lib_dld_shl_load=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471         ac_cv_lib_dld_shl_load=no
9472 fi
9473
9474 rm -f core conftest.err conftest.$ac_objext \
9475       conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9477 fi
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9480 if test $ac_cv_lib_dld_shl_load = yes; then
9481   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9482 else
9483   { echo "$as_me:$LINENO: checking for dlopen" >&5
9484 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_dlopen+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9496 #define dlopen innocuous_dlopen
9497
9498 /* System header to define __stub macros and hopefully few prototypes,
9499     which can conflict with char dlopen (); below.
9500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501     <limits.h> exists even on freestanding compilers.  */
9502
9503 #ifdef __STDC__
9504 # include <limits.h>
9505 #else
9506 # include <assert.h>
9507 #endif
9508
9509 #undef dlopen
9510
9511 /* Override any GCC internal prototype to avoid an error.
9512    Use char because int might match the return type of a GCC
9513    builtin and then its argument prototype would still apply.  */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char dlopen ();
9518 /* The GNU C library defines this for functions which it implements
9519     to always fail with ENOSYS.  Some functions are actually named
9520     something starting with __ and the normal name is an alias.  */
9521 #if defined __stub_dlopen || defined __stub___dlopen
9522 choke me
9523 #endif
9524
9525 int
9526 main ()
9527 {
9528 return dlopen ();
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9535 case "(($ac_try" in
9536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537   *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540   (eval "$ac_link") 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } &&
9547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9548   { (case "(($ac_try" in
9549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550   *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553   (eval "$ac_try") 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; } &&
9557          { ac_try='test -s conftest$ac_exeext'
9558   { (case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563   (eval "$ac_try") 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; }; then
9567   ac_cv_func_dlopen=yes
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572         ac_cv_func_dlopen=no
9573 fi
9574
9575 rm -f core conftest.err conftest.$ac_objext \
9576       conftest$ac_exeext conftest.$ac_ext
9577 fi
9578 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9579 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9580 if test $ac_cv_func_dlopen = yes; then
9581   lt_cv_dlopen="dlopen"
9582 else
9583   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588   ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-ldl  $LIBS"
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h.  */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h.  */
9596
9597 /* Override any GCC internal prototype to avoid an error.
9598    Use char because int might match the return type of a GCC
9599    builtin and then its argument prototype would still apply.  */
9600 #ifdef __cplusplus
9601 extern "C"
9602 #endif
9603 char dlopen ();
9604 int
9605 main ()
9606 {
9607 return dlopen ();
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (ac_try="$ac_link"
9614 case "(($ac_try" in
9615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616   *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619   (eval "$ac_link") 2>conftest.er1
9620   ac_status=$?
9621   grep -v '^ *+' conftest.er1 >conftest.err
9622   rm -f conftest.er1
9623   cat conftest.err >&5
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } &&
9626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9627   { (case "(($ac_try" in
9628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629   *) ac_try_echo=$ac_try;;
9630 esac
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632   (eval "$ac_try") 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); }; } &&
9636          { ac_try='test -s conftest$ac_exeext'
9637   { (case "(($ac_try" in
9638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639   *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642   (eval "$ac_try") 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; }; then
9646   ac_cv_lib_dl_dlopen=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651         ac_cv_lib_dl_dlopen=no
9652 fi
9653
9654 rm -f core conftest.err conftest.$ac_objext \
9655       conftest$ac_exeext conftest.$ac_ext
9656 LIBS=$ac_check_lib_save_LIBS
9657 fi
9658 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9660 if test $ac_cv_lib_dl_dlopen = yes; then
9661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9662 else
9663   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9666   echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668   ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-lsvld  $LIBS"
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676
9677 /* Override any GCC internal prototype to avoid an error.
9678    Use char because int might match the return type of a GCC
9679    builtin and then its argument prototype would still apply.  */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char dlopen ();
9684 int
9685 main ()
9686 {
9687 return dlopen ();
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9694 case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_link") 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707   { (case "(($ac_try" in
9708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709   *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712   (eval "$ac_try") 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; } &&
9716          { ac_try='test -s conftest$ac_exeext'
9717   { (case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_try") 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_lib_svld_dlopen=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731         ac_cv_lib_svld_dlopen=no
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext \
9735       conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_check_lib_save_LIBS
9737 fi
9738 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9739 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9740 if test $ac_cv_lib_svld_dlopen = yes; then
9741   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9742 else
9743   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9744 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9746   echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748   ac_check_lib_save_LIBS=$LIBS
9749 LIBS="-ldld  $LIBS"
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756
9757 /* Override any GCC internal prototype to avoid an error.
9758    Use char because int might match the return type of a GCC
9759    builtin and then its argument prototype would still apply.  */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char dld_link ();
9764 int
9765 main ()
9766 {
9767 return dld_link ();
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9774 case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_link") 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787   { (case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792   (eval "$ac_try") 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; } &&
9796          { ac_try='test -s conftest$ac_exeext'
9797   { (case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802   (eval "$ac_try") 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   ac_cv_lib_dld_dld_link=yes
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811         ac_cv_lib_dld_dld_link=no
9812 fi
9813
9814 rm -f core conftest.err conftest.$ac_objext \
9815       conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9817 fi
9818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9819 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9820 if test $ac_cv_lib_dld_dld_link = yes; then
9821   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9822 fi
9823
9824
9825 fi
9826
9827
9828 fi
9829
9830
9831 fi
9832
9833
9834 fi
9835
9836
9837 fi
9838
9839     ;;
9840   esac
9841
9842   if test "x$lt_cv_dlopen" != xno; then
9843     enable_dlopen=yes
9844   else
9845     enable_dlopen=no
9846   fi
9847
9848   case $lt_cv_dlopen in
9849   dlopen)
9850     save_CPPFLAGS="$CPPFLAGS"
9851     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9852
9853     save_LDFLAGS="$LDFLAGS"
9854     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9855
9856     save_LIBS="$LIBS"
9857     LIBS="$lt_cv_dlopen_libs $LIBS"
9858
9859     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9860 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9861 if test "${lt_cv_dlopen_self+set}" = set; then
9862   echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864           if test "$cross_compiling" = yes; then :
9865   lt_cv_dlopen_self=cross
9866 else
9867   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868   lt_status=$lt_dlunknown
9869   cat > conftest.$ac_ext <<EOF
9870 #line 9870 "configure"
9871 #include "confdefs.h"
9872
9873 #if HAVE_DLFCN_H
9874 #include <dlfcn.h>
9875 #endif
9876
9877 #include <stdio.h>
9878
9879 #ifdef RTLD_GLOBAL
9880 #  define LT_DLGLOBAL           RTLD_GLOBAL
9881 #else
9882 #  ifdef DL_GLOBAL
9883 #    define LT_DLGLOBAL         DL_GLOBAL
9884 #  else
9885 #    define LT_DLGLOBAL         0
9886 #  endif
9887 #endif
9888
9889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890    find out it does not work in some platform. */
9891 #ifndef LT_DLLAZY_OR_NOW
9892 #  ifdef RTLD_LAZY
9893 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9894 #  else
9895 #    ifdef DL_LAZY
9896 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9897 #    else
9898 #      ifdef RTLD_NOW
9899 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9900 #      else
9901 #        ifdef DL_NOW
9902 #          define LT_DLLAZY_OR_NOW      DL_NOW
9903 #        else
9904 #          define LT_DLLAZY_OR_NOW      0
9905 #        endif
9906 #      endif
9907 #    endif
9908 #  endif
9909 #endif
9910
9911 #ifdef __cplusplus
9912 extern "C" void exit (int);
9913 #endif
9914
9915 void fnord() { int i=42;}
9916 int main ()
9917 {
9918   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919   int status = $lt_dlunknown;
9920
9921   if (self)
9922     {
9923       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9924       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925       /* dlclose (self); */
9926     }
9927   else
9928     puts (dlerror ());
9929
9930     exit (status);
9931 }
9932 EOF
9933   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934   (eval $ac_link) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9938     (./conftest; exit; ) >&5 2>/dev/null
9939     lt_status=$?
9940     case x$lt_status in
9941       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9942       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9943       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9944     esac
9945   else :
9946     # compilation failed
9947     lt_cv_dlopen_self=no
9948   fi
9949 fi
9950 rm -fr conftest*
9951
9952
9953 fi
9954 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9955 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9956
9957     if test "x$lt_cv_dlopen_self" = xyes; then
9958       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9959       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9960 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9961 if test "${lt_cv_dlopen_self_static+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964           if test "$cross_compiling" = yes; then :
9965   lt_cv_dlopen_self_static=cross
9966 else
9967   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9968   lt_status=$lt_dlunknown
9969   cat > conftest.$ac_ext <<EOF
9970 #line 9970 "configure"
9971 #include "confdefs.h"
9972
9973 #if HAVE_DLFCN_H
9974 #include <dlfcn.h>
9975 #endif
9976
9977 #include <stdio.h>
9978
9979 #ifdef RTLD_GLOBAL
9980 #  define LT_DLGLOBAL           RTLD_GLOBAL
9981 #else
9982 #  ifdef DL_GLOBAL
9983 #    define LT_DLGLOBAL         DL_GLOBAL
9984 #  else
9985 #    define LT_DLGLOBAL         0
9986 #  endif
9987 #endif
9988
9989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9990    find out it does not work in some platform. */
9991 #ifndef LT_DLLAZY_OR_NOW
9992 #  ifdef RTLD_LAZY
9993 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9994 #  else
9995 #    ifdef DL_LAZY
9996 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9997 #    else
9998 #      ifdef RTLD_NOW
9999 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10000 #      else
10001 #        ifdef DL_NOW
10002 #          define LT_DLLAZY_OR_NOW      DL_NOW
10003 #        else
10004 #          define LT_DLLAZY_OR_NOW      0
10005 #        endif
10006 #      endif
10007 #    endif
10008 #  endif
10009 #endif
10010
10011 #ifdef __cplusplus
10012 extern "C" void exit (int);
10013 #endif
10014
10015 void fnord() { int i=42;}
10016 int main ()
10017 {
10018   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10019   int status = $lt_dlunknown;
10020
10021   if (self)
10022     {
10023       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10024       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10025       /* dlclose (self); */
10026     }
10027   else
10028     puts (dlerror ());
10029
10030     exit (status);
10031 }
10032 EOF
10033   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034   (eval $ac_link) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10038     (./conftest; exit; ) >&5 2>/dev/null
10039     lt_status=$?
10040     case x$lt_status in
10041       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10042       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10043       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10044     esac
10045   else :
10046     # compilation failed
10047     lt_cv_dlopen_self_static=no
10048   fi
10049 fi
10050 rm -fr conftest*
10051
10052
10053 fi
10054 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10055 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10056     fi
10057
10058     CPPFLAGS="$save_CPPFLAGS"
10059     LDFLAGS="$save_LDFLAGS"
10060     LIBS="$save_LIBS"
10061     ;;
10062   esac
10063
10064   case $lt_cv_dlopen_self in
10065   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10066   *) enable_dlopen_self=unknown ;;
10067   esac
10068
10069   case $lt_cv_dlopen_self_static in
10070   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10071   *) enable_dlopen_self_static=unknown ;;
10072   esac
10073 fi
10074
10075
10076 # Report which library types will actually be built
10077 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10078 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10079 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10080 echo "${ECHO_T}$can_build_shared" >&6; }
10081
10082 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10083 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10084 test "$can_build_shared" = "no" && enable_shared=no
10085
10086 # On AIX, shared libraries and static libraries use the same namespace, and
10087 # are all built from PIC.
10088 case $host_os in
10089 aix3*)
10090   test "$enable_shared" = yes && enable_static=no
10091   if test -n "$RANLIB"; then
10092     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10093     postinstall_cmds='$RANLIB $lib'
10094   fi
10095   ;;
10096
10097 aix4* | aix5*)
10098   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10099     test "$enable_shared" = yes && enable_static=no
10100   fi
10101     ;;
10102 esac
10103 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10104 echo "${ECHO_T}$enable_shared" >&6; }
10105
10106 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10107 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10108 # Make sure either enable_shared or enable_static is yes.
10109 test "$enable_shared" = yes || enable_static=yes
10110 { echo "$as_me:$LINENO: result: $enable_static" >&5
10111 echo "${ECHO_T}$enable_static" >&6; }
10112
10113 # The else clause should only fire when bootstrapping the
10114 # libtool distribution, otherwise you forgot to ship ltmain.sh
10115 # with your package, and you will get complaints that there are
10116 # no rules to generate ltmain.sh.
10117 if test -f "$ltmain"; then
10118   # See if we are running on zsh, and set the options which allow our commands through
10119   # without removal of \ escapes.
10120   if test -n "${ZSH_VERSION+set}" ; then
10121     setopt NO_GLOB_SUBST
10122   fi
10123   # Now quote all the things that may contain metacharacters while being
10124   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10125   # variables and quote the copies for generation of the libtool script.
10126   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10127     SED SHELL STRIP \
10128     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10129     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10130     deplibs_check_method reload_flag reload_cmds need_locks \
10131     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10132     lt_cv_sys_global_symbol_to_c_name_address \
10133     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10134     old_postinstall_cmds old_postuninstall_cmds \
10135     compiler \
10136     CC \
10137     LD \
10138     lt_prog_compiler_wl \
10139     lt_prog_compiler_pic \
10140     lt_prog_compiler_static \
10141     lt_prog_compiler_no_builtin_flag \
10142     export_dynamic_flag_spec \
10143     thread_safe_flag_spec \
10144     whole_archive_flag_spec \
10145     enable_shared_with_static_runtimes \
10146     old_archive_cmds \
10147     old_archive_from_new_cmds \
10148     predep_objects \
10149     postdep_objects \
10150     predeps \
10151     postdeps \
10152     compiler_lib_search_path \
10153     archive_cmds \
10154     archive_expsym_cmds \
10155     postinstall_cmds \
10156     postuninstall_cmds \
10157     old_archive_from_expsyms_cmds \
10158     allow_undefined_flag \
10159     no_undefined_flag \
10160     export_symbols_cmds \
10161     hardcode_libdir_flag_spec \
10162     hardcode_libdir_flag_spec_ld \
10163     hardcode_libdir_separator \
10164     hardcode_automatic \
10165     module_cmds \
10166     module_expsym_cmds \
10167     lt_cv_prog_compiler_c_o \
10168     exclude_expsyms \
10169     include_expsyms; do
10170
10171     case $var in
10172     old_archive_cmds | \
10173     old_archive_from_new_cmds | \
10174     archive_cmds | \
10175     archive_expsym_cmds | \
10176     module_cmds | \
10177     module_expsym_cmds | \
10178     old_archive_from_expsyms_cmds | \
10179     export_symbols_cmds | \
10180     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10181     postinstall_cmds | postuninstall_cmds | \
10182     old_postinstall_cmds | old_postuninstall_cmds | \
10183     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10184       # Double-quote double-evaled strings.
10185       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10186       ;;
10187     *)
10188       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10189       ;;
10190     esac
10191   done
10192
10193   case $lt_echo in
10194   *'\$0 --fallback-echo"')
10195     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10196     ;;
10197   esac
10198
10199 cfgfile="${ofile}T"
10200   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10201   $rm -f "$cfgfile"
10202   { echo "$as_me:$LINENO: creating $ofile" >&5
10203 echo "$as_me: creating $ofile" >&6;}
10204
10205   cat <<__EOF__ >> "$cfgfile"
10206 #! $SHELL
10207
10208 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10209 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10211 #
10212 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10213 # Free Software Foundation, Inc.
10214 #
10215 # This file is part of GNU Libtool:
10216 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10217 #
10218 # This program is free software; you can redistribute it and/or modify
10219 # it under the terms of the GNU General Public License as published by
10220 # the Free Software Foundation; either version 2 of the License, or
10221 # (at your option) any later version.
10222 #
10223 # This program is distributed in the hope that it will be useful, but
10224 # WITHOUT ANY WARRANTY; without even the implied warranty of
10225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10226 # General Public License for more details.
10227 #
10228 # You should have received a copy of the GNU General Public License
10229 # along with this program; if not, write to the Free Software
10230 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10231 #
10232 # As a special exception to the GNU General Public License, if you
10233 # distribute this file as part of a program that contains a
10234 # configuration script generated by Autoconf, you may include it under
10235 # the same distribution terms that you use for the rest of that program.
10236
10237 # A sed program that does not truncate output.
10238 SED=$lt_SED
10239
10240 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10241 Xsed="$SED -e 1s/^X//"
10242
10243 # The HP-UX ksh and POSIX shell print the target directory to stdout
10244 # if CDPATH is set.
10245 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10246
10247 # The names of the tagged configurations supported by this script.
10248 available_tags=
10249
10250 # ### BEGIN LIBTOOL CONFIG
10251
10252 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10253
10254 # Shell to use when invoking shell scripts.
10255 SHELL=$lt_SHELL
10256
10257 # Whether or not to build shared libraries.
10258 build_libtool_libs=$enable_shared
10259
10260 # Whether or not to build static libraries.
10261 build_old_libs=$enable_static
10262
10263 # Whether or not to add -lc for building shared libraries.
10264 build_libtool_need_lc=$archive_cmds_need_lc
10265
10266 # Whether or not to disallow shared libs when runtime libs are static
10267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10268
10269 # Whether or not to optimize for fast installation.
10270 fast_install=$enable_fast_install
10271
10272 # The host system.
10273 host_alias=$host_alias
10274 host=$host
10275 host_os=$host_os
10276
10277 # The build system.
10278 build_alias=$build_alias
10279 build=$build
10280 build_os=$build_os
10281
10282 # An echo program that does not interpret backslashes.
10283 echo=$lt_echo
10284
10285 # The archiver.
10286 AR=$lt_AR
10287 AR_FLAGS=$lt_AR_FLAGS
10288
10289 # A C compiler.
10290 LTCC=$lt_LTCC
10291
10292 # LTCC compiler flags.
10293 LTCFLAGS=$lt_LTCFLAGS
10294
10295 # A language-specific compiler.
10296 CC=$lt_compiler
10297
10298 # Is the compiler the GNU C compiler?
10299 with_gcc=$GCC
10300
10301 # An ERE matcher.
10302 EGREP=$lt_EGREP
10303
10304 # The linker used to build libraries.
10305 LD=$lt_LD
10306
10307 # Whether we need hard or soft links.
10308 LN_S=$lt_LN_S
10309
10310 # A BSD-compatible nm program.
10311 NM=$lt_NM
10312
10313 # A symbol stripping program
10314 STRIP=$lt_STRIP
10315
10316 # Used to examine libraries when file_magic_cmd begins "file"
10317 MAGIC_CMD=$MAGIC_CMD
10318
10319 # Used on cygwin: DLL creation program.
10320 DLLTOOL="$DLLTOOL"
10321
10322 # Used on cygwin: object dumper.
10323 OBJDUMP="$OBJDUMP"
10324
10325 # Used on cygwin: assembler.
10326 AS="$AS"
10327
10328 # The name of the directory that contains temporary libtool files.
10329 objdir=$objdir
10330
10331 # How to create reloadable object files.
10332 reload_flag=$lt_reload_flag
10333 reload_cmds=$lt_reload_cmds
10334
10335 # How to pass a linker flag through the compiler.
10336 wl=$lt_lt_prog_compiler_wl
10337
10338 # Object file suffix (normally "o").
10339 objext="$ac_objext"
10340
10341 # Old archive suffix (normally "a").
10342 libext="$libext"
10343
10344 # Shared library suffix (normally ".so").
10345 shrext_cmds='$shrext_cmds'
10346
10347 # Executable file suffix (normally "").
10348 exeext="$exeext"
10349
10350 # Additional compiler flags for building library objects.
10351 pic_flag=$lt_lt_prog_compiler_pic
10352 pic_mode=$pic_mode
10353
10354 # What is the maximum length of a command?
10355 max_cmd_len=$lt_cv_sys_max_cmd_len
10356
10357 # Does compiler simultaneously support -c and -o options?
10358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10359
10360 # Must we lock files when doing compilation?
10361 need_locks=$lt_need_locks
10362
10363 # Do we need the lib prefix for modules?
10364 need_lib_prefix=$need_lib_prefix
10365
10366 # Do we need a version for libraries?
10367 need_version=$need_version
10368
10369 # Whether dlopen is supported.
10370 dlopen_support=$enable_dlopen
10371
10372 # Whether dlopen of programs is supported.
10373 dlopen_self=$enable_dlopen_self
10374
10375 # Whether dlopen of statically linked programs is supported.
10376 dlopen_self_static=$enable_dlopen_self_static
10377
10378 # Compiler flag to prevent dynamic linking.
10379 link_static_flag=$lt_lt_prog_compiler_static
10380
10381 # Compiler flag to turn off builtin functions.
10382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10383
10384 # Compiler flag to allow reflexive dlopens.
10385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10386
10387 # Compiler flag to generate shared objects directly from archives.
10388 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10389
10390 # Compiler flag to generate thread-safe objects.
10391 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10392
10393 # Library versioning type.
10394 version_type=$version_type
10395
10396 # Format of library name prefix.
10397 libname_spec=$lt_libname_spec
10398
10399 # List of archive names.  First name is the real one, the rest are links.
10400 # The last name is the one that the linker finds with -lNAME.
10401 library_names_spec=$lt_library_names_spec
10402
10403 # The coded name of the library, if different from the real name.
10404 soname_spec=$lt_soname_spec
10405
10406 # Commands used to build and install an old-style archive.
10407 RANLIB=$lt_RANLIB
10408 old_archive_cmds=$lt_old_archive_cmds
10409 old_postinstall_cmds=$lt_old_postinstall_cmds
10410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10411
10412 # Create an old-style archive from a shared archive.
10413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10414
10415 # Create a temporary old-style archive to link instead of a shared archive.
10416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10417
10418 # Commands used to build and install a shared archive.
10419 archive_cmds=$lt_archive_cmds
10420 archive_expsym_cmds=$lt_archive_expsym_cmds
10421 postinstall_cmds=$lt_postinstall_cmds
10422 postuninstall_cmds=$lt_postuninstall_cmds
10423
10424 # Commands used to build a loadable module (assumed same as above if empty)
10425 module_cmds=$lt_module_cmds
10426 module_expsym_cmds=$lt_module_expsym_cmds
10427
10428 # Commands to strip libraries.
10429 old_striplib=$lt_old_striplib
10430 striplib=$lt_striplib
10431
10432 # Dependencies to place before the objects being linked to create a
10433 # shared library.
10434 predep_objects=$lt_predep_objects
10435
10436 # Dependencies to place after the objects being linked to create a
10437 # shared library.
10438 postdep_objects=$lt_postdep_objects
10439
10440 # Dependencies to place before the objects being linked to create a
10441 # shared library.
10442 predeps=$lt_predeps
10443
10444 # Dependencies to place after the objects being linked to create a
10445 # shared library.
10446 postdeps=$lt_postdeps
10447
10448 # The library search path used internally by the compiler when linking
10449 # a shared library.
10450 compiler_lib_search_path=$lt_compiler_lib_search_path
10451
10452 # Method to check whether dependent libraries are shared objects.
10453 deplibs_check_method=$lt_deplibs_check_method
10454
10455 # Command to use when deplibs_check_method == file_magic.
10456 file_magic_cmd=$lt_file_magic_cmd
10457
10458 # Flag that allows shared libraries with undefined symbols to be built.
10459 allow_undefined_flag=$lt_allow_undefined_flag
10460
10461 # Flag that forces no undefined symbols.
10462 no_undefined_flag=$lt_no_undefined_flag
10463
10464 # Commands used to finish a libtool library installation in a directory.
10465 finish_cmds=$lt_finish_cmds
10466
10467 # Same as above, but a single script fragment to be evaled but not shown.
10468 finish_eval=$lt_finish_eval
10469
10470 # Take the output of nm and produce a listing of raw symbols and C names.
10471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10472
10473 # Transform the output of nm in a proper C declaration
10474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10475
10476 # Transform the output of nm in a C name address pair
10477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10478
10479 # This is the shared library runtime path variable.
10480 runpath_var=$runpath_var
10481
10482 # This is the shared library path variable.
10483 shlibpath_var=$shlibpath_var
10484
10485 # Is shlibpath searched before the hard-coded library search path?
10486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10487
10488 # How to hardcode a shared library path into an executable.
10489 hardcode_action=$hardcode_action
10490
10491 # Whether we should hardcode library paths into libraries.
10492 hardcode_into_libs=$hardcode_into_libs
10493
10494 # Flag to hardcode \$libdir into a binary during linking.
10495 # This must work even if \$libdir does not exist.
10496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10497
10498 # If ld is used when linking, flag to hardcode \$libdir into
10499 # a binary during linking. This must work even if \$libdir does
10500 # not exist.
10501 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10502
10503 # Whether we need a single -rpath flag with a separated argument.
10504 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10505
10506 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10507 # resulting binary.
10508 hardcode_direct=$hardcode_direct
10509
10510 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10511 # resulting binary.
10512 hardcode_minus_L=$hardcode_minus_L
10513
10514 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10515 # the resulting binary.
10516 hardcode_shlibpath_var=$hardcode_shlibpath_var
10517
10518 # Set to yes if building a shared library automatically hardcodes DIR into the library
10519 # and all subsequent libraries and executables linked against it.
10520 hardcode_automatic=$hardcode_automatic
10521
10522 # Variables whose values should be saved in libtool wrapper scripts and
10523 # restored at relink time.
10524 variables_saved_for_relink="$variables_saved_for_relink"
10525
10526 # Whether libtool must link a program against all its dependency libraries.
10527 link_all_deplibs=$link_all_deplibs
10528
10529 # Compile-time system search path for libraries
10530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10531
10532 # Run-time system search path for libraries
10533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10534
10535 # Fix the shell variable \$srcfile for the compiler.
10536 fix_srcfile_path="$fix_srcfile_path"
10537
10538 # Set to yes if exported symbols are required.
10539 always_export_symbols=$always_export_symbols
10540
10541 # The commands to list exported symbols.
10542 export_symbols_cmds=$lt_export_symbols_cmds
10543
10544 # The commands to extract the exported symbol list from a shared archive.
10545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10546
10547 # Symbols that should not be listed in the preloaded symbols.
10548 exclude_expsyms=$lt_exclude_expsyms
10549
10550 # Symbols that must always be exported.
10551 include_expsyms=$lt_include_expsyms
10552
10553 # ### END LIBTOOL CONFIG
10554
10555 __EOF__
10556
10557
10558   case $host_os in
10559   aix3*)
10560     cat <<\EOF >> "$cfgfile"
10561
10562 # AIX sometimes has problems with the GCC collect2 program.  For some
10563 # reason, if we set the COLLECT_NAMES environment variable, the problems
10564 # vanish in a puff of smoke.
10565 if test "X${COLLECT_NAMES+set}" != Xset; then
10566   COLLECT_NAMES=
10567   export COLLECT_NAMES
10568 fi
10569 EOF
10570     ;;
10571   esac
10572
10573   # We use sed instead of cat because bash on DJGPP gets confused if
10574   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10575   # text mode, it properly converts lines to CR/LF.  This bash problem
10576   # is reportedly fixed, but why not run on old versions too?
10577   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10578
10579   mv -f "$cfgfile" "$ofile" || \
10580     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10581   chmod +x "$ofile"
10582
10583 else
10584   # If there is no Makefile yet, we rely on a make rule to execute
10585   # `config.status --recheck' to rerun these tests and create the
10586   # libtool script then.
10587   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10588   if test -f "$ltmain_in"; then
10589     test -f Makefile && make "$ltmain"
10590   fi
10591 fi
10592
10593
10594 ac_ext=c
10595 ac_cpp='$CPP $CPPFLAGS'
10596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10599
10600 CC="$lt_save_CC"
10601
10602
10603 # Check whether --with-tags was given.
10604 if test "${with_tags+set}" = set; then
10605   withval=$with_tags; tagnames="$withval"
10606 fi
10607
10608
10609 if test -f "$ltmain" && test -n "$tagnames"; then
10610   if test ! -f "${ofile}"; then
10611     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10612 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10613   fi
10614
10615   if test -z "$LTCC"; then
10616     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10617     if test -z "$LTCC"; then
10618       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10619 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10620     else
10621       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10622 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10623     fi
10624   fi
10625   if test -z "$LTCFLAGS"; then
10626     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10627   fi
10628
10629   # Extract list of available tagged configurations in $ofile.
10630   # Note that this assumes the entire list is on one line.
10631   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10632
10633   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10634   for tagname in $tagnames; do
10635     IFS="$lt_save_ifs"
10636     # Check whether tagname contains only valid characters
10637     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10638     "") ;;
10639     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10640 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10641    { (exit 1); exit 1; }; }
10642         ;;
10643     esac
10644
10645     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10646     then
10647       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10648 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10649    { (exit 1); exit 1; }; }
10650     fi
10651
10652     # Update the list of available tags.
10653     if test -n "$tagname"; then
10654       echo appending configuration tag \"$tagname\" to $ofile
10655
10656       case $tagname in
10657       CXX)
10658         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10659             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10660             (test "X$CXX" != "Xg++"))) ; then
10661           ac_ext=cpp
10662 ac_cpp='$CXXCPP $CPPFLAGS'
10663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10666
10667
10668
10669
10670 archive_cmds_need_lc_CXX=no
10671 allow_undefined_flag_CXX=
10672 always_export_symbols_CXX=no
10673 archive_expsym_cmds_CXX=
10674 export_dynamic_flag_spec_CXX=
10675 hardcode_direct_CXX=no
10676 hardcode_libdir_flag_spec_CXX=
10677 hardcode_libdir_flag_spec_ld_CXX=
10678 hardcode_libdir_separator_CXX=
10679 hardcode_minus_L_CXX=no
10680 hardcode_shlibpath_var_CXX=unsupported
10681 hardcode_automatic_CXX=no
10682 module_cmds_CXX=
10683 module_expsym_cmds_CXX=
10684 link_all_deplibs_CXX=unknown
10685 old_archive_cmds_CXX=$old_archive_cmds
10686 no_undefined_flag_CXX=
10687 whole_archive_flag_spec_CXX=
10688 enable_shared_with_static_runtimes_CXX=no
10689
10690 # Dependencies to place before and after the object being linked:
10691 predep_objects_CXX=
10692 postdep_objects_CXX=
10693 predeps_CXX=
10694 postdeps_CXX=
10695 compiler_lib_search_path_CXX=
10696
10697 # Source file extension for C++ test sources.
10698 ac_ext=cpp
10699
10700 # Object file extension for compiled C++ test sources.
10701 objext=o
10702 objext_CXX=$objext
10703
10704 # Code to be used in simple compile tests
10705 lt_simple_compile_test_code="int some_variable = 0;\n"
10706
10707 # Code to be used in simple link tests
10708 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10709
10710 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10711
10712 # If no C compiler was specified, use CC.
10713 LTCC=${LTCC-"$CC"}
10714
10715 # If no C compiler flags were specified, use CFLAGS.
10716 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10717
10718 # Allow CC to be a program name with arguments.
10719 compiler=$CC
10720
10721
10722 # save warnings/boilerplate of simple test code
10723 ac_outfile=conftest.$ac_objext
10724 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10725 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10726 _lt_compiler_boilerplate=`cat conftest.err`
10727 $rm conftest*
10728
10729 ac_outfile=conftest.$ac_objext
10730 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10731 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10732 _lt_linker_boilerplate=`cat conftest.err`
10733 $rm conftest*
10734
10735
10736 # Allow CC to be a program name with arguments.
10737 lt_save_CC=$CC
10738 lt_save_LD=$LD
10739 lt_save_GCC=$GCC
10740 GCC=$GXX
10741 lt_save_with_gnu_ld=$with_gnu_ld
10742 lt_save_path_LD=$lt_cv_path_LD
10743 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10744   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10745 else
10746   $as_unset lt_cv_prog_gnu_ld
10747 fi
10748 if test -n "${lt_cv_path_LDCXX+set}"; then
10749   lt_cv_path_LD=$lt_cv_path_LDCXX
10750 else
10751   $as_unset lt_cv_path_LD
10752 fi
10753 test -z "${LDCXX+set}" || LD=$LDCXX
10754 CC=${CXX-"c++"}
10755 compiler=$CC
10756 compiler_CXX=$CC
10757 for cc_temp in $compiler""; do
10758   case $cc_temp in
10759     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10760     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10761     \-*) ;;
10762     *) break;;
10763   esac
10764 done
10765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10766
10767
10768 # We don't want -fno-exception wen compiling C++ code, so set the
10769 # no_builtin_flag separately
10770 if test "$GXX" = yes; then
10771   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10772 else
10773   lt_prog_compiler_no_builtin_flag_CXX=
10774 fi
10775
10776 if test "$GXX" = yes; then
10777   # Set up default GNU C++ configuration
10778
10779
10780 # Check whether --with-gnu-ld was given.
10781 if test "${with_gnu_ld+set}" = set; then
10782   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10783 else
10784   with_gnu_ld=no
10785 fi
10786
10787 ac_prog=ld
10788 if test "$GCC" = yes; then
10789   # Check if gcc -print-prog-name=ld gives a path.
10790   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10791 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10792   case $host in
10793   *-*-mingw*)
10794     # gcc leaves a trailing carriage return which upsets mingw
10795     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10796   *)
10797     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10798   esac
10799   case $ac_prog in
10800     # Accept absolute paths.
10801     [\\/]* | ?:[\\/]*)
10802       re_direlt='/[^/][^/]*/\.\./'
10803       # Canonicalize the pathname of ld
10804       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10805       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10806         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10807       done
10808       test -z "$LD" && LD="$ac_prog"
10809       ;;
10810   "")
10811     # If it fails, then pretend we aren't using GCC.
10812     ac_prog=ld
10813     ;;
10814   *)
10815     # If it is relative, then search for the first ld in PATH.
10816     with_gnu_ld=unknown
10817     ;;
10818   esac
10819 elif test "$with_gnu_ld" = yes; then
10820   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10821 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10822 else
10823   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10824 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10825 fi
10826 if test "${lt_cv_path_LD+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   if test -z "$LD"; then
10830   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10831   for ac_dir in $PATH; do
10832     IFS="$lt_save_ifs"
10833     test -z "$ac_dir" && ac_dir=.
10834     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10835       lt_cv_path_LD="$ac_dir/$ac_prog"
10836       # Check to see if the program is GNU ld.  I'd rather use --version,
10837       # but apparently some variants of GNU ld only accept -v.
10838       # Break only if it was the GNU/non-GNU ld that we prefer.
10839       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10840       *GNU* | *'with BFD'*)
10841         test "$with_gnu_ld" != no && break
10842         ;;
10843       *)
10844         test "$with_gnu_ld" != yes && break
10845         ;;
10846       esac
10847     fi
10848   done
10849   IFS="$lt_save_ifs"
10850 else
10851   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10852 fi
10853 fi
10854
10855 LD="$lt_cv_path_LD"
10856 if test -n "$LD"; then
10857   { echo "$as_me:$LINENO: result: $LD" >&5
10858 echo "${ECHO_T}$LD" >&6; }
10859 else
10860   { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10862 fi
10863 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10864 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10865    { (exit 1); exit 1; }; }
10866 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10867 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10868 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10872 case `$LD -v 2>&1 </dev/null` in
10873 *GNU* | *'with BFD'*)
10874   lt_cv_prog_gnu_ld=yes
10875   ;;
10876 *)
10877   lt_cv_prog_gnu_ld=no
10878   ;;
10879 esac
10880 fi
10881 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10882 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10883 with_gnu_ld=$lt_cv_prog_gnu_ld
10884
10885
10886
10887   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10888   # archiving commands below assume that GNU ld is being used.
10889   if test "$with_gnu_ld" = yes; then
10890     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891     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'
10892
10893     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10894     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10895
10896     # If archive_cmds runs LD, not CC, wlarc should be empty
10897     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10898     #     investigate it a little bit more. (MM)
10899     wlarc='${wl}'
10900
10901     # ancient GNU ld didn't support --whole-archive et. al.
10902     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10903         grep 'no-whole-archive' > /dev/null; then
10904       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10905     else
10906       whole_archive_flag_spec_CXX=
10907     fi
10908   else
10909     with_gnu_ld=no
10910     wlarc=
10911
10912     # A generic and very simple default shared library creation
10913     # command for GNU C++ for the case where it uses the native
10914     # linker, instead of GNU ld.  If possible, this setting should
10915     # overridden to take advantage of the native linker features on
10916     # the platform it is being used on.
10917     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10918   fi
10919
10920   # Commands to make compiler produce verbose output that lists
10921   # what "hidden" libraries, object files and flags are used when
10922   # linking a shared library.
10923   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10924
10925 else
10926   GXX=no
10927   with_gnu_ld=no
10928   wlarc=
10929 fi
10930
10931 # PORTME: fill in a description of your system's C++ link characteristics
10932 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10933 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10934 ld_shlibs_CXX=yes
10935 case $host_os in
10936   aix3*)
10937     # FIXME: insert proper C++ library support
10938     ld_shlibs_CXX=no
10939     ;;
10940   aix4* | aix5*)
10941     if test "$host_cpu" = ia64; then
10942       # On IA64, the linker does run time linking by default, so we don't
10943       # have to do anything special.
10944       aix_use_runtimelinking=no
10945       exp_sym_flag='-Bexport'
10946       no_entry_flag=""
10947     else
10948       aix_use_runtimelinking=no
10949
10950       # Test if we are trying to use run time linking or normal
10951       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10952       # need to do runtime linking.
10953       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10954         for ld_flag in $LDFLAGS; do
10955           case $ld_flag in
10956           *-brtl*)
10957             aix_use_runtimelinking=yes
10958             break
10959             ;;
10960           esac
10961         done
10962         ;;
10963       esac
10964
10965       exp_sym_flag='-bexport'
10966       no_entry_flag='-bnoentry'
10967     fi
10968
10969     # When large executables or shared objects are built, AIX ld can
10970     # have problems creating the table of contents.  If linking a library
10971     # or program results in "error TOC overflow" add -mminimal-toc to
10972     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10973     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10974
10975     archive_cmds_CXX=''
10976     hardcode_direct_CXX=yes
10977     hardcode_libdir_separator_CXX=':'
10978     link_all_deplibs_CXX=yes
10979
10980     if test "$GXX" = yes; then
10981       case $host_os in aix4.[012]|aix4.[012].*)
10982       # We only want to do this on AIX 4.2 and lower, the check
10983       # below for broken collect2 doesn't work under 4.3+
10984         collect2name=`${CC} -print-prog-name=collect2`
10985         if test -f "$collect2name" && \
10986            strings "$collect2name" | grep resolve_lib_name >/dev/null
10987         then
10988           # We have reworked collect2
10989           hardcode_direct_CXX=yes
10990         else
10991           # We have old collect2
10992           hardcode_direct_CXX=unsupported
10993           # It fails to find uninstalled libraries when the uninstalled
10994           # path is not listed in the libpath.  Setting hardcode_minus_L
10995           # to unsupported forces relinking
10996           hardcode_minus_L_CXX=yes
10997           hardcode_libdir_flag_spec_CXX='-L$libdir'
10998           hardcode_libdir_separator_CXX=
10999         fi
11000         ;;
11001       esac
11002       shared_flag='-shared'
11003       if test "$aix_use_runtimelinking" = yes; then
11004         shared_flag="$shared_flag "'${wl}-G'
11005       fi
11006     else
11007       # not using gcc
11008       if test "$host_cpu" = ia64; then
11009         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11010         # chokes on -Wl,-G. The following line is correct:
11011         shared_flag='-G'
11012       else
11013         if test "$aix_use_runtimelinking" = yes; then
11014           shared_flag='${wl}-G'
11015         else
11016           shared_flag='${wl}-bM:SRE'
11017         fi
11018       fi
11019     fi
11020
11021     # It seems that -bexpall does not export symbols beginning with
11022     # underscore (_), so it is better to generate a list of symbols to export.
11023     always_export_symbols_CXX=yes
11024     if test "$aix_use_runtimelinking" = yes; then
11025       # Warning - without using the other runtime loading flags (-brtl),
11026       # -berok will link without error, but may produce a broken library.
11027       allow_undefined_flag_CXX='-berok'
11028       # Determine the default libpath from the value encoded in an empty executable.
11029       cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h.  */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h.  */
11035
11036 int
11037 main ()
11038 {
11039
11040   ;
11041   return 0;
11042 }
11043 _ACEOF
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048   *) ac_try_echo=$ac_try;;
11049 esac
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051   (eval "$ac_link") 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11059   { (case "(($ac_try" in
11060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061   *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064   (eval "$ac_try") 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }; } &&
11068          { ac_try='test -s conftest$ac_exeext'
11069   { (case "(($ac_try" in
11070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071   *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074   (eval "$ac_try") 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; }; then
11078
11079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11080 }'`
11081 # Check for a 64-bit object if we didn't find anything.
11082 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; }
11083 }'`; fi
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088
11089 fi
11090
11091 rm -f core conftest.err conftest.$ac_objext \
11092       conftest$ac_exeext conftest.$ac_ext
11093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11094
11095       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11096
11097       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"
11098      else
11099       if test "$host_cpu" = ia64; then
11100         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11101         allow_undefined_flag_CXX="-z nodefs"
11102         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"
11103       else
11104         # Determine the default libpath from the value encoded in an empty executable.
11105         cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111
11112 int
11113 main ()
11114 {
11115
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124   *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127   (eval "$ac_link") 2>conftest.er1
11128   ac_status=$?
11129   grep -v '^ *+' conftest.er1 >conftest.err
11130   rm -f conftest.er1
11131   cat conftest.err >&5
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } &&
11134          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11135   { (case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_try") 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; } &&
11144          { ac_try='test -s conftest$ac_exeext'
11145   { (case "(($ac_try" in
11146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147   *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150   (eval "$ac_try") 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }; then
11154
11155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11156 }'`
11157 # Check for a 64-bit object if we didn't find anything.
11158 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; }
11159 }'`; fi
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164
11165 fi
11166
11167 rm -f core conftest.err conftest.$ac_objext \
11168       conftest$ac_exeext conftest.$ac_ext
11169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11170
11171         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172         # Warning - without using the other run time loading flags,
11173         # -berok will link without error, but may produce a broken library.
11174         no_undefined_flag_CXX=' ${wl}-bernotok'
11175         allow_undefined_flag_CXX=' ${wl}-berok'
11176         # Exported symbols can be pulled into shared objects from archives
11177         whole_archive_flag_spec_CXX='$convenience'
11178         archive_cmds_need_lc_CXX=yes
11179         # This is similar to how AIX traditionally builds its shared libraries.
11180         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'
11181       fi
11182     fi
11183     ;;
11184
11185   beos*)
11186     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11187       allow_undefined_flag_CXX=unsupported
11188       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11189       # support --undefined.  This deserves some investigation.  FIXME
11190       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11191     else
11192       ld_shlibs_CXX=no
11193     fi
11194     ;;
11195
11196   chorus*)
11197     case $cc_basename in
11198       *)
11199         # FIXME: insert proper C++ library support
11200         ld_shlibs_CXX=no
11201         ;;
11202     esac
11203     ;;
11204
11205   cygwin* | mingw* | pw32*)
11206     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11207     # as there is no search path for DLLs.
11208     hardcode_libdir_flag_spec_CXX='-L$libdir'
11209     allow_undefined_flag_CXX=unsupported
11210     always_export_symbols_CXX=no
11211     enable_shared_with_static_runtimes_CXX=yes
11212
11213     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11214       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'
11215       # If the export-symbols file already is a .def file (1st line
11216       # is EXPORTS), use it as is; otherwise, prepend...
11217       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11218         cp $export_symbols $output_objdir/$soname.def;
11219       else
11220         echo EXPORTS > $output_objdir/$soname.def;
11221         cat $export_symbols >> $output_objdir/$soname.def;
11222       fi~
11223       $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'
11224     else
11225       ld_shlibs_CXX=no
11226     fi
11227   ;;
11228       darwin* | rhapsody*)
11229         case $host_os in
11230         rhapsody* | darwin1.[012])
11231          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11232          ;;
11233        *) # Darwin 1.3 on
11234          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11235            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11236          else
11237            case ${MACOSX_DEPLOYMENT_TARGET} in
11238              10.[012])
11239                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11240                ;;
11241              10.*)
11242                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11243                ;;
11244            esac
11245          fi
11246          ;;
11247         esac
11248       archive_cmds_need_lc_CXX=no
11249       hardcode_direct_CXX=no
11250       hardcode_automatic_CXX=yes
11251       hardcode_shlibpath_var_CXX=unsupported
11252       whole_archive_flag_spec_CXX=''
11253       link_all_deplibs_CXX=yes
11254
11255     if test "$GXX" = yes ; then
11256       lt_int_apple_cc_single_mod=no
11257       output_verbose_link_cmd='echo'
11258       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11259        lt_int_apple_cc_single_mod=yes
11260       fi
11261       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11263       else
11264           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'
11265         fi
11266         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11267         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11268           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269             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}'
11270           else
11271             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}'
11272           fi
11273             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}'
11274       else
11275       case $cc_basename in
11276         xlc*)
11277          output_verbose_link_cmd='echo'
11278           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'
11279           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281           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}'
11282           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}'
11283           ;;
11284        *)
11285          ld_shlibs_CXX=no
11286           ;;
11287       esac
11288       fi
11289         ;;
11290
11291   dgux*)
11292     case $cc_basename in
11293       ec++*)
11294         # FIXME: insert proper C++ library support
11295         ld_shlibs_CXX=no
11296         ;;
11297       ghcx*)
11298         # Green Hills C++ Compiler
11299         # FIXME: insert proper C++ library support
11300         ld_shlibs_CXX=no
11301         ;;
11302       *)
11303         # FIXME: insert proper C++ library support
11304         ld_shlibs_CXX=no
11305         ;;
11306     esac
11307     ;;
11308   freebsd[12]*)
11309     # C++ shared libraries reported to be fairly broken before switch to ELF
11310     ld_shlibs_CXX=no
11311     ;;
11312   freebsd-elf*)
11313     archive_cmds_need_lc_CXX=no
11314     ;;
11315   freebsd* | kfreebsd*-gnu | dragonfly*)
11316     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11317     # conventions
11318     ld_shlibs_CXX=yes
11319     ;;
11320   gnu*)
11321     ;;
11322   hpux9*)
11323     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324     hardcode_libdir_separator_CXX=:
11325     export_dynamic_flag_spec_CXX='${wl}-E'
11326     hardcode_direct_CXX=yes
11327     hardcode_minus_L_CXX=yes # Not in the search PATH,
11328                                 # but as the default
11329                                 # location of the library.
11330
11331     case $cc_basename in
11332     CC*)
11333       # FIXME: insert proper C++ library support
11334       ld_shlibs_CXX=no
11335       ;;
11336     aCC*)
11337       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'
11338       # Commands to make compiler produce verbose output that lists
11339       # what "hidden" libraries, object files and flags are used when
11340       # linking a shared library.
11341       #
11342       # There doesn't appear to be a way to prevent this compiler from
11343       # explicitly linking system object files so we need to strip them
11344       # from the output so that they don't get included in the library
11345       # dependencies.
11346       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'
11347       ;;
11348     *)
11349       if test "$GXX" = yes; then
11350         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'
11351       else
11352         # FIXME: insert proper C++ library support
11353         ld_shlibs_CXX=no
11354       fi
11355       ;;
11356     esac
11357     ;;
11358   hpux10*|hpux11*)
11359     if test $with_gnu_ld = no; then
11360       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11361       hardcode_libdir_separator_CXX=:
11362
11363       case $host_cpu in
11364       hppa*64*|ia64*)
11365         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11366         ;;
11367       *)
11368         export_dynamic_flag_spec_CXX='${wl}-E'
11369         ;;
11370       esac
11371     fi
11372     case $host_cpu in
11373     hppa*64*|ia64*)
11374       hardcode_direct_CXX=no
11375       hardcode_shlibpath_var_CXX=no
11376       ;;
11377     *)
11378       hardcode_direct_CXX=yes
11379       hardcode_minus_L_CXX=yes # Not in the search PATH,
11380                                               # but as the default
11381                                               # location of the library.
11382       ;;
11383     esac
11384
11385     case $cc_basename in
11386       CC*)
11387         # FIXME: insert proper C++ library support
11388         ld_shlibs_CXX=no
11389         ;;
11390       aCC*)
11391         case $host_cpu in
11392         hppa*64*)
11393           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11394           ;;
11395         ia64*)
11396           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11397           ;;
11398         *)
11399           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11400           ;;
11401         esac
11402         # Commands to make compiler produce verbose output that lists
11403         # what "hidden" libraries, object files and flags are used when
11404         # linking a shared library.
11405         #
11406         # There doesn't appear to be a way to prevent this compiler from
11407         # explicitly linking system object files so we need to strip them
11408         # from the output so that they don't get included in the library
11409         # dependencies.
11410         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'
11411         ;;
11412       *)
11413         if test "$GXX" = yes; then
11414           if test $with_gnu_ld = no; then
11415             case $host_cpu in
11416             hppa*64*)
11417               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11418               ;;
11419             ia64*)
11420               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11421               ;;
11422             *)
11423               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'
11424               ;;
11425             esac
11426           fi
11427         else
11428           # FIXME: insert proper C++ library support
11429           ld_shlibs_CXX=no
11430         fi
11431         ;;
11432     esac
11433     ;;
11434   interix3*)
11435     hardcode_direct_CXX=no
11436     hardcode_shlibpath_var_CXX=no
11437     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438     export_dynamic_flag_spec_CXX='${wl}-E'
11439     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440     # Instead, shared libraries are loaded at an image base (0x10000000 by
11441     # default) and relocated if they conflict, which is a slow very memory
11442     # consuming and fragmenting process.  To avoid this, we pick a random,
11443     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11445     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'
11446     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'
11447     ;;
11448   irix5* | irix6*)
11449     case $cc_basename in
11450       CC*)
11451         # SGI C++
11452         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'
11453
11454         # Archives containing C++ object files must be created using
11455         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11456         # necessary to make sure instantiated templates are included
11457         # in the archive.
11458         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11459         ;;
11460       *)
11461         if test "$GXX" = yes; then
11462           if test "$with_gnu_ld" = no; then
11463             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'
11464           else
11465             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'
11466           fi
11467         fi
11468         link_all_deplibs_CXX=yes
11469         ;;
11470     esac
11471     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11472     hardcode_libdir_separator_CXX=:
11473     ;;
11474   linux*)
11475     case $cc_basename in
11476       KCC*)
11477         # Kuck and Associates, Inc. (KAI) C++ Compiler
11478
11479         # KCC will only create a shared library if the output file
11480         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11481         # to its proper name (with version) after linking.
11482         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'
11483         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'
11484         # Commands to make compiler produce verbose output that lists
11485         # what "hidden" libraries, object files and flags are used when
11486         # linking a shared library.
11487         #
11488         # There doesn't appear to be a way to prevent this compiler from
11489         # explicitly linking system object files so we need to strip them
11490         # from the output so that they don't get included in the library
11491         # dependencies.
11492         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'
11493
11494         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11495         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11496
11497         # Archives containing C++ object files must be created using
11498         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11499         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11500         ;;
11501       icpc*)
11502         # Intel C++
11503         with_gnu_ld=yes
11504         # version 8.0 and above of icpc choke on multiply defined symbols
11505         # if we add $predep_objects and $postdep_objects, however 7.1 and
11506         # earlier do not add the objects themselves.
11507         case `$CC -V 2>&1` in
11508         *"Version 7."*)
11509           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510           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'
11511           ;;
11512         *)  # Version 8.0 or newer
11513           tmp_idyn=
11514           case $host_cpu in
11515             ia64*) tmp_idyn=' -i_dynamic';;
11516           esac
11517           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518           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'
11519           ;;
11520         esac
11521         archive_cmds_need_lc_CXX=no
11522         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11524         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11525         ;;
11526       pgCC*)
11527         # Portland Group C++ compiler
11528         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11529         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'
11530
11531         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11532         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11533         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'
11534         ;;
11535       cxx*)
11536         # Compaq C++
11537         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538         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'
11539
11540         runpath_var=LD_RUN_PATH
11541         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11542         hardcode_libdir_separator_CXX=:
11543
11544         # Commands to make compiler produce verbose output that lists
11545         # what "hidden" libraries, object files and flags are used when
11546         # linking a shared library.
11547         #
11548         # There doesn't appear to be a way to prevent this compiler from
11549         # explicitly linking system object files so we need to strip them
11550         # from the output so that they don't get included in the library
11551         # dependencies.
11552         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'
11553         ;;
11554     esac
11555     ;;
11556   lynxos*)
11557     # FIXME: insert proper C++ library support
11558     ld_shlibs_CXX=no
11559     ;;
11560   m88k*)
11561     # FIXME: insert proper C++ library support
11562     ld_shlibs_CXX=no
11563     ;;
11564   mvs*)
11565     case $cc_basename in
11566       cxx*)
11567         # FIXME: insert proper C++ library support
11568         ld_shlibs_CXX=no
11569         ;;
11570       *)
11571         # FIXME: insert proper C++ library support
11572         ld_shlibs_CXX=no
11573         ;;
11574     esac
11575     ;;
11576   netbsd*)
11577     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11578       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11579       wlarc=
11580       hardcode_libdir_flag_spec_CXX='-R$libdir'
11581       hardcode_direct_CXX=yes
11582       hardcode_shlibpath_var_CXX=no
11583     fi
11584     # Workaround some broken pre-1.5 toolchains
11585     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11586     ;;
11587   openbsd2*)
11588     # C++ shared libraries are fairly broken
11589     ld_shlibs_CXX=no
11590     ;;
11591   openbsd*)
11592     hardcode_direct_CXX=yes
11593     hardcode_shlibpath_var_CXX=no
11594     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11595     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11596     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11597       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11598       export_dynamic_flag_spec_CXX='${wl}-E'
11599       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11600     fi
11601     output_verbose_link_cmd='echo'
11602     ;;
11603   osf3*)
11604     case $cc_basename in
11605       KCC*)
11606         # Kuck and Associates, Inc. (KAI) C++ Compiler
11607
11608         # KCC will only create a shared library if the output file
11609         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11610         # to its proper name (with version) after linking.
11611         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'
11612
11613         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11614         hardcode_libdir_separator_CXX=:
11615
11616         # Archives containing C++ object files must be created using
11617         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11619
11620         ;;
11621       RCC*)
11622         # Rational C++ 2.4.1
11623         # FIXME: insert proper C++ library support
11624         ld_shlibs_CXX=no
11625         ;;
11626       cxx*)
11627         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11628         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'
11629
11630         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11631         hardcode_libdir_separator_CXX=:
11632
11633         # Commands to make compiler produce verbose output that lists
11634         # what "hidden" libraries, object files and flags are used when
11635         # linking a shared library.
11636         #
11637         # There doesn't appear to be a way to prevent this compiler from
11638         # explicitly linking system object files so we need to strip them
11639         # from the output so that they don't get included in the library
11640         # dependencies.
11641         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'
11642         ;;
11643       *)
11644         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11645           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11646           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'
11647
11648           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11649           hardcode_libdir_separator_CXX=:
11650
11651           # Commands to make compiler produce verbose output that lists
11652           # what "hidden" libraries, object files and flags are used when
11653           # linking a shared library.
11654           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11655
11656         else
11657           # FIXME: insert proper C++ library support
11658           ld_shlibs_CXX=no
11659         fi
11660         ;;
11661     esac
11662     ;;
11663   osf4* | osf5*)
11664     case $cc_basename in
11665       KCC*)
11666         # Kuck and Associates, Inc. (KAI) C++ Compiler
11667
11668         # KCC will only create a shared library if the output file
11669         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11670         # to its proper name (with version) after linking.
11671         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'
11672
11673         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674         hardcode_libdir_separator_CXX=:
11675
11676         # Archives containing C++ object files must be created using
11677         # the KAI C++ compiler.
11678         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11679         ;;
11680       RCC*)
11681         # Rational C++ 2.4.1
11682         # FIXME: insert proper C++ library support
11683         ld_shlibs_CXX=no
11684         ;;
11685       cxx*)
11686         allow_undefined_flag_CXX=' -expect_unresolved \*'
11687         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'
11688         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11689           echo "-hidden">> $lib.exp~
11690           $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~
11691           $rm $lib.exp'
11692
11693         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11694         hardcode_libdir_separator_CXX=:
11695
11696         # Commands to make compiler produce verbose output that lists
11697         # what "hidden" libraries, object files and flags are used when
11698         # linking a shared library.
11699         #
11700         # There doesn't appear to be a way to prevent this compiler from
11701         # explicitly linking system object files so we need to strip them
11702         # from the output so that they don't get included in the library
11703         # dependencies.
11704         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'
11705         ;;
11706       *)
11707         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11709          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'
11710
11711           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11712           hardcode_libdir_separator_CXX=:
11713
11714           # Commands to make compiler produce verbose output that lists
11715           # what "hidden" libraries, object files and flags are used when
11716           # linking a shared library.
11717           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11718
11719         else
11720           # FIXME: insert proper C++ library support
11721           ld_shlibs_CXX=no
11722         fi
11723         ;;
11724     esac
11725     ;;
11726   psos*)
11727     # FIXME: insert proper C++ library support
11728     ld_shlibs_CXX=no
11729     ;;
11730   sunos4*)
11731     case $cc_basename in
11732       CC*)
11733         # Sun C++ 4.x
11734         # FIXME: insert proper C++ library support
11735         ld_shlibs_CXX=no
11736         ;;
11737       lcc*)
11738         # Lucid
11739         # FIXME: insert proper C++ library support
11740         ld_shlibs_CXX=no
11741         ;;
11742       *)
11743         # FIXME: insert proper C++ library support
11744         ld_shlibs_CXX=no
11745         ;;
11746     esac
11747     ;;
11748   solaris*)
11749     case $cc_basename in
11750       CC*)
11751         # Sun C++ 4.2, 5.x and Centerline C++
11752         archive_cmds_need_lc_CXX=yes
11753         no_undefined_flag_CXX=' -zdefs'
11754         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11757
11758         hardcode_libdir_flag_spec_CXX='-R$libdir'
11759         hardcode_shlibpath_var_CXX=no
11760         case $host_os in
11761           solaris2.[0-5] | solaris2.[0-5].*) ;;
11762           *)
11763             # The C++ compiler is used as linker so we must use $wl
11764             # flag to pass the commands to the underlying system
11765             # linker. We must also pass each convience library through
11766             # to the system linker between allextract/defaultextract.
11767             # The C++ compiler will combine linker options so we
11768             # cannot just pass the convience library names through
11769             # without $wl.
11770             # Supported since Solaris 2.6 (maybe 2.5.1?)
11771             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'
11772             ;;
11773         esac
11774         link_all_deplibs_CXX=yes
11775
11776         output_verbose_link_cmd='echo'
11777
11778         # Archives containing C++ object files must be created using
11779         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11780         # necessary to make sure instantiated templates are included
11781         # in the archive.
11782         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11783         ;;
11784       gcx*)
11785         # Green Hills C++ Compiler
11786         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11787
11788         # The C++ compiler must be used to create the archive.
11789         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11790         ;;
11791       *)
11792         # GNU C++ compiler with Solaris linker
11793         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11794           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11795           if $CC --version | grep -v '^2\.7' > /dev/null; then
11796             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11797             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11799
11800             # Commands to make compiler produce verbose output that lists
11801             # what "hidden" libraries, object files and flags are used when
11802             # linking a shared library.
11803             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11804           else
11805             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11806             # platform.
11807             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11810
11811             # Commands to make compiler produce verbose output that lists
11812             # what "hidden" libraries, object files and flags are used when
11813             # linking a shared library.
11814             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11815           fi
11816
11817           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11818         fi
11819         ;;
11820     esac
11821     ;;
11822   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11823     no_undefined_flag_CXX='${wl}-z,text'
11824     archive_cmds_need_lc_CXX=no
11825     hardcode_shlibpath_var_CXX=no
11826     runpath_var='LD_RUN_PATH'
11827
11828     case $cc_basename in
11829       CC*)
11830         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11832         ;;
11833       *)
11834         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836         ;;
11837     esac
11838     ;;
11839   sysv5* | sco3.2v5* | sco5v6*)
11840     # Note: We can NOT use -z defs as we might desire, because we do not
11841     # link with -lc, and that would cause any symbols used from libc to
11842     # always be unresolved, which means just about no library would
11843     # ever link correctly.  If we're not using GNU ld we use -z text
11844     # though, which does catch some bad symbols but isn't as heavy-handed
11845     # as -z defs.
11846     # For security reasons, it is highly recommended that you always
11847     # use absolute paths for naming shared libraries, and exclude the
11848     # DT_RUNPATH tag from executables and libraries.  But doing so
11849     # requires that you compile everything twice, which is a pain.
11850     # So that behaviour is only enabled if SCOABSPATH is set to a
11851     # non-empty value in the environment.  Most likely only useful for
11852     # creating official distributions of packages.
11853     # This is a hack until libtool officially supports absolute path
11854     # names for shared libraries.
11855     no_undefined_flag_CXX='${wl}-z,text'
11856     allow_undefined_flag_CXX='${wl}-z,nodefs'
11857     archive_cmds_need_lc_CXX=no
11858     hardcode_shlibpath_var_CXX=no
11859     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11860     hardcode_libdir_separator_CXX=':'
11861     link_all_deplibs_CXX=yes
11862     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11863     runpath_var='LD_RUN_PATH'
11864
11865     case $cc_basename in
11866       CC*)
11867         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11869         ;;
11870       *)
11871         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11873         ;;
11874     esac
11875     ;;
11876   tandem*)
11877     case $cc_basename in
11878       NCC*)
11879         # NonStop-UX NCC 3.20
11880         # FIXME: insert proper C++ library support
11881         ld_shlibs_CXX=no
11882         ;;
11883       *)
11884         # FIXME: insert proper C++ library support
11885         ld_shlibs_CXX=no
11886         ;;
11887     esac
11888     ;;
11889   vxworks*)
11890     # FIXME: insert proper C++ library support
11891     ld_shlibs_CXX=no
11892     ;;
11893   *)
11894     # FIXME: insert proper C++ library support
11895     ld_shlibs_CXX=no
11896     ;;
11897 esac
11898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11900 test "$ld_shlibs_CXX" = no && can_build_shared=no
11901
11902 GCC_CXX="$GXX"
11903 LD_CXX="$LD"
11904
11905
11906 cat > conftest.$ac_ext <<EOF
11907 class Foo
11908 {
11909 public:
11910   Foo (void) { a = 0; }
11911 private:
11912   int a;
11913 };
11914 EOF
11915
11916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917   (eval $ac_compile) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; then
11921   # Parse the compiler output and extract the necessary
11922   # objects, libraries and library flags.
11923
11924   # Sentinel used to keep track of whether or not we are before
11925   # the conftest object file.
11926   pre_test_object_deps_done=no
11927
11928   # The `*' in the case matches for architectures that use `case' in
11929   # $output_verbose_cmd can trigger glob expansion during the loop
11930   # eval without this substitution.
11931   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11932
11933   for p in `eval $output_verbose_link_cmd`; do
11934     case $p in
11935
11936     -L* | -R* | -l*)
11937        # Some compilers place space between "-{L,R}" and the path.
11938        # Remove the space.
11939        if test $p = "-L" \
11940           || test $p = "-R"; then
11941          prev=$p
11942          continue
11943        else
11944          prev=
11945        fi
11946
11947        if test "$pre_test_object_deps_done" = no; then
11948          case $p in
11949          -L* | -R*)
11950            # Internal compiler library paths should come after those
11951            # provided the user.  The postdeps already come after the
11952            # user supplied libs so there is no need to process them.
11953            if test -z "$compiler_lib_search_path_CXX"; then
11954              compiler_lib_search_path_CXX="${prev}${p}"
11955            else
11956              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11957            fi
11958            ;;
11959          # The "-l" case would never come before the object being
11960          # linked, so don't bother handling this case.
11961          esac
11962        else
11963          if test -z "$postdeps_CXX"; then
11964            postdeps_CXX="${prev}${p}"
11965          else
11966            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11967          fi
11968        fi
11969        ;;
11970
11971     *.$objext)
11972        # This assumes that the test object file only shows up
11973        # once in the compiler output.
11974        if test "$p" = "conftest.$objext"; then
11975          pre_test_object_deps_done=yes
11976          continue
11977        fi
11978
11979        if test "$pre_test_object_deps_done" = no; then
11980          if test -z "$predep_objects_CXX"; then
11981            predep_objects_CXX="$p"
11982          else
11983            predep_objects_CXX="$predep_objects_CXX $p"
11984          fi
11985        else
11986          if test -z "$postdep_objects_CXX"; then
11987            postdep_objects_CXX="$p"
11988          else
11989            postdep_objects_CXX="$postdep_objects_CXX $p"
11990          fi
11991        fi
11992        ;;
11993
11994     *) ;; # Ignore the rest.
11995
11996     esac
11997   done
11998
11999   # Clean up.
12000   rm -f a.out a.exe
12001 else
12002   echo "libtool.m4: error: problem compiling CXX test program"
12003 fi
12004
12005 $rm -f confest.$objext
12006
12007 # PORTME: override above test on systems where it is broken
12008 case $host_os in
12009 interix3*)
12010   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12011   # hack all around it, let's just trust "g++" to DTRT.
12012   predep_objects_CXX=
12013   postdep_objects_CXX=
12014   postdeps_CXX=
12015   ;;
12016
12017 solaris*)
12018   case $cc_basename in
12019   CC*)
12020     # Adding this requires a known-good setup of shared libraries for
12021     # Sun compiler versions before 5.6, else PIC objects from an old
12022     # archive will be linked into the output, leading to subtle bugs.
12023     postdeps_CXX='-lCstd -lCrun'
12024     ;;
12025   esac
12026   ;;
12027 esac
12028
12029
12030 case " $postdeps_CXX " in
12031 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12032 esac
12033
12034 lt_prog_compiler_wl_CXX=
12035 lt_prog_compiler_pic_CXX=
12036 lt_prog_compiler_static_CXX=
12037
12038 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12039 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12040
12041   # C++ specific cases for pic, static, wl, etc.
12042   if test "$GXX" = yes; then
12043     lt_prog_compiler_wl_CXX='-Wl,'
12044     lt_prog_compiler_static_CXX='-static'
12045
12046     case $host_os in
12047     aix*)
12048       # All AIX code is PIC.
12049       if test "$host_cpu" = ia64; then
12050         # AIX 5 now supports IA64 processor
12051         lt_prog_compiler_static_CXX='-Bstatic'
12052       fi
12053       ;;
12054     amigaos*)
12055       # FIXME: we need at least 68020 code to build shared libraries, but
12056       # adding the `-m68020' flag to GCC prevents building anything better,
12057       # like `-m68040'.
12058       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12059       ;;
12060     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12061       # PIC is the default for these OSes.
12062       ;;
12063     mingw* | os2* | pw32*)
12064       # This hack is so that the source file can tell whether it is being
12065       # built for inclusion in a dll (and should export symbols for example).
12066       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12067       ;;
12068     darwin* | rhapsody*)
12069       # PIC is the default on this platform
12070       # Common symbols not allowed in MH_DYLIB files
12071       lt_prog_compiler_pic_CXX='-fno-common'
12072       ;;
12073     *djgpp*)
12074       # DJGPP does not support shared libraries at all
12075       lt_prog_compiler_pic_CXX=
12076       ;;
12077     interix3*)
12078       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079       # Instead, we relocate shared libraries at runtime.
12080       ;;
12081     sysv4*MP*)
12082       if test -d /usr/nec; then
12083         lt_prog_compiler_pic_CXX=-Kconform_pic
12084       fi
12085       ;;
12086     hpux*)
12087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088       # not for PA HP-UX.
12089       case $host_cpu in
12090       hppa*64*|ia64*)
12091         ;;
12092       *)
12093         lt_prog_compiler_pic_CXX='-fPIC'
12094         ;;
12095       esac
12096       ;;
12097     *)
12098       lt_prog_compiler_pic_CXX='-fPIC'
12099       ;;
12100     esac
12101   else
12102     case $host_os in
12103       aix4* | aix5*)
12104         # All AIX code is PIC.
12105         if test "$host_cpu" = ia64; then
12106           # AIX 5 now supports IA64 processor
12107           lt_prog_compiler_static_CXX='-Bstatic'
12108         else
12109           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12110         fi
12111         ;;
12112       chorus*)
12113         case $cc_basename in
12114         cxch68*)
12115           # Green Hills C++ Compiler
12116           # _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"
12117           ;;
12118         esac
12119         ;;
12120        darwin*)
12121          # PIC is the default on this platform
12122          # Common symbols not allowed in MH_DYLIB files
12123          case $cc_basename in
12124            xlc*)
12125            lt_prog_compiler_pic_CXX='-qnocommon'
12126            lt_prog_compiler_wl_CXX='-Wl,'
12127            ;;
12128          esac
12129        ;;
12130       dgux*)
12131         case $cc_basename in
12132           ec++*)
12133             lt_prog_compiler_pic_CXX='-KPIC'
12134             ;;
12135           ghcx*)
12136             # Green Hills C++ Compiler
12137             lt_prog_compiler_pic_CXX='-pic'
12138             ;;
12139           *)
12140             ;;
12141         esac
12142         ;;
12143       freebsd* | kfreebsd*-gnu | dragonfly*)
12144         # FreeBSD uses GNU C++
12145         ;;
12146       hpux9* | hpux10* | hpux11*)
12147         case $cc_basename in
12148           CC*)
12149             lt_prog_compiler_wl_CXX='-Wl,'
12150             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151             if test "$host_cpu" != ia64; then
12152               lt_prog_compiler_pic_CXX='+Z'
12153             fi
12154             ;;
12155           aCC*)
12156             lt_prog_compiler_wl_CXX='-Wl,'
12157             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12158             case $host_cpu in
12159             hppa*64*|ia64*)
12160               # +Z the default
12161               ;;
12162             *)
12163               lt_prog_compiler_pic_CXX='+Z'
12164               ;;
12165             esac
12166             ;;
12167           *)
12168             ;;
12169         esac
12170         ;;
12171       interix*)
12172         # This is c89, which is MS Visual C++ (no shared libs)
12173         # Anyone wants to do a port?
12174         ;;
12175       irix5* | irix6* | nonstopux*)
12176         case $cc_basename in
12177           CC*)
12178             lt_prog_compiler_wl_CXX='-Wl,'
12179             lt_prog_compiler_static_CXX='-non_shared'
12180             # CC pic flag -KPIC is the default.
12181             ;;
12182           *)
12183             ;;
12184         esac
12185         ;;
12186       linux*)
12187         case $cc_basename in
12188           KCC*)
12189             # KAI C++ Compiler
12190             lt_prog_compiler_wl_CXX='--backend -Wl,'
12191             lt_prog_compiler_pic_CXX='-fPIC'
12192             ;;
12193           icpc* | ecpc*)
12194             # Intel C++
12195             lt_prog_compiler_wl_CXX='-Wl,'
12196             lt_prog_compiler_pic_CXX='-KPIC'
12197             lt_prog_compiler_static_CXX='-static'
12198             ;;
12199           pgCC*)
12200             # Portland Group C++ compiler.
12201             lt_prog_compiler_wl_CXX='-Wl,'
12202             lt_prog_compiler_pic_CXX='-fpic'
12203             lt_prog_compiler_static_CXX='-Bstatic'
12204             ;;
12205           cxx*)
12206             # Compaq C++
12207             # Make sure the PIC flag is empty.  It appears that all Alpha
12208             # Linux and Compaq Tru64 Unix objects are PIC.
12209             lt_prog_compiler_pic_CXX=
12210             lt_prog_compiler_static_CXX='-non_shared'
12211             ;;
12212           *)
12213             ;;
12214         esac
12215         ;;
12216       lynxos*)
12217         ;;
12218       m88k*)
12219         ;;
12220       mvs*)
12221         case $cc_basename in
12222           cxx*)
12223             lt_prog_compiler_pic_CXX='-W c,exportall'
12224             ;;
12225           *)
12226             ;;
12227         esac
12228         ;;
12229       netbsd*)
12230         ;;
12231       osf3* | osf4* | osf5*)
12232         case $cc_basename in
12233           KCC*)
12234             lt_prog_compiler_wl_CXX='--backend -Wl,'
12235             ;;
12236           RCC*)
12237             # Rational C++ 2.4.1
12238             lt_prog_compiler_pic_CXX='-pic'
12239             ;;
12240           cxx*)
12241             # Digital/Compaq C++
12242             lt_prog_compiler_wl_CXX='-Wl,'
12243             # Make sure the PIC flag is empty.  It appears that all Alpha
12244             # Linux and Compaq Tru64 Unix objects are PIC.
12245             lt_prog_compiler_pic_CXX=
12246             lt_prog_compiler_static_CXX='-non_shared'
12247             ;;
12248           *)
12249             ;;
12250         esac
12251         ;;
12252       psos*)
12253         ;;
12254       solaris*)
12255         case $cc_basename in
12256           CC*)
12257             # Sun C++ 4.2, 5.x and Centerline C++
12258             lt_prog_compiler_pic_CXX='-KPIC'
12259             lt_prog_compiler_static_CXX='-Bstatic'
12260             lt_prog_compiler_wl_CXX='-Qoption ld '
12261             ;;
12262           gcx*)
12263             # Green Hills C++ Compiler
12264             lt_prog_compiler_pic_CXX='-PIC'
12265             ;;
12266           *)
12267             ;;
12268         esac
12269         ;;
12270       sunos4*)
12271         case $cc_basename in
12272           CC*)
12273             # Sun C++ 4.x
12274             lt_prog_compiler_pic_CXX='-pic'
12275             lt_prog_compiler_static_CXX='-Bstatic'
12276             ;;
12277           lcc*)
12278             # Lucid
12279             lt_prog_compiler_pic_CXX='-pic'
12280             ;;
12281           *)
12282             ;;
12283         esac
12284         ;;
12285       tandem*)
12286         case $cc_basename in
12287           NCC*)
12288             # NonStop-UX NCC 3.20
12289             lt_prog_compiler_pic_CXX='-KPIC'
12290             ;;
12291           *)
12292             ;;
12293         esac
12294         ;;
12295       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12296         case $cc_basename in
12297           CC*)
12298             lt_prog_compiler_wl_CXX='-Wl,'
12299             lt_prog_compiler_pic_CXX='-KPIC'
12300             lt_prog_compiler_static_CXX='-Bstatic'
12301             ;;
12302         esac
12303         ;;
12304       vxworks*)
12305         ;;
12306       *)
12307         lt_prog_compiler_can_build_shared_CXX=no
12308         ;;
12309     esac
12310   fi
12311
12312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12313 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12314
12315 #
12316 # Check to make sure the PIC flag actually works.
12317 #
12318 if test -n "$lt_prog_compiler_pic_CXX"; then
12319
12320 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12322 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   lt_prog_compiler_pic_works_CXX=no
12326   ac_outfile=conftest.$ac_objext
12327    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12328    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12329    # Insert the option either (1) after the last *FLAGS variable, or
12330    # (2) before a word containing "conftest.", or (3) at the end.
12331    # Note that $ac_compile itself does not contain backslashes and begins
12332    # with a dollar sign (not a hyphen), so the echo should work correctly.
12333    # The option is referenced via a variable to avoid confusing sed.
12334    lt_compile=`echo "$ac_compile" | $SED \
12335    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337    -e 's:$: $lt_compiler_flag:'`
12338    (eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339    (eval "$lt_compile" 2>conftest.err)
12340    ac_status=$?
12341    cat conftest.err >&5
12342    echo "$as_me:12342: \$? = $ac_status" >&5
12343    if (exit $ac_status) && test -s "$ac_outfile"; then
12344      # The compiler can only warn and ignore the option if not recognized
12345      # So say no if there are warnings other than the usual output.
12346      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12347      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12348      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12349        lt_prog_compiler_pic_works_CXX=yes
12350      fi
12351    fi
12352    $rm conftest*
12353
12354 fi
12355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12356 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12357
12358 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12359     case $lt_prog_compiler_pic_CXX in
12360      "" | " "*) ;;
12361      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12362      esac
12363 else
12364     lt_prog_compiler_pic_CXX=
12365      lt_prog_compiler_can_build_shared_CXX=no
12366 fi
12367
12368 fi
12369 case $host_os in
12370   # For platforms which do not support PIC, -DPIC is meaningless:
12371   *djgpp*)
12372     lt_prog_compiler_pic_CXX=
12373     ;;
12374   *)
12375     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12376     ;;
12377 esac
12378
12379 #
12380 # Check to make sure the static flag actually works.
12381 #
12382 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12383 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12385 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388   lt_prog_compiler_static_works_CXX=no
12389    save_LDFLAGS="$LDFLAGS"
12390    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12391    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12392    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12393      # The linker can only warn and ignore the option if not recognized
12394      # So say no if there are warnings
12395      if test -s conftest.err; then
12396        # Append any errors to the config.log.
12397        cat conftest.err 1>&5
12398        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12399        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400        if diff conftest.exp conftest.er2 >/dev/null; then
12401          lt_prog_compiler_static_works_CXX=yes
12402        fi
12403      else
12404        lt_prog_compiler_static_works_CXX=yes
12405      fi
12406    fi
12407    $rm conftest*
12408    LDFLAGS="$save_LDFLAGS"
12409
12410 fi
12411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12412 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12413
12414 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12415     :
12416 else
12417     lt_prog_compiler_static_CXX=
12418 fi
12419
12420
12421 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12423 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   lt_cv_prog_compiler_c_o_CXX=no
12427    $rm -r conftest 2>/dev/null
12428    mkdir conftest
12429    cd conftest
12430    mkdir out
12431    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12432
12433    lt_compiler_flag="-o out/conftest2.$ac_objext"
12434    # Insert the option either (1) after the last *FLAGS variable, or
12435    # (2) before a word containing "conftest.", or (3) at the end.
12436    # Note that $ac_compile itself does not contain backslashes and begins
12437    # with a dollar sign (not a hyphen), so the echo should work correctly.
12438    lt_compile=`echo "$ac_compile" | $SED \
12439    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441    -e 's:$: $lt_compiler_flag:'`
12442    (eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443    (eval "$lt_compile" 2>out/conftest.err)
12444    ac_status=$?
12445    cat out/conftest.err >&5
12446    echo "$as_me:12446: \$? = $ac_status" >&5
12447    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12448    then
12449      # The compiler can only warn and ignore the option if not recognized
12450      # So say no if there are warnings
12451      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12452      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12453      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12454        lt_cv_prog_compiler_c_o_CXX=yes
12455      fi
12456    fi
12457    chmod u+w . 2>&5
12458    $rm conftest*
12459    # SGI C++ compiler will create directory out/ii_files/ for
12460    # template instantiation
12461    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12462    $rm out/* && rmdir out
12463    cd ..
12464    rmdir conftest
12465    $rm conftest*
12466
12467 fi
12468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12470
12471
12472 hard_links="nottested"
12473 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12474   # do not overwrite the value of need_locks provided by the user
12475   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12477   hard_links=yes
12478   $rm conftest*
12479   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12480   touch conftest.a
12481   ln conftest.a conftest.b 2>&5 || hard_links=no
12482   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483   { echo "$as_me:$LINENO: result: $hard_links" >&5
12484 echo "${ECHO_T}$hard_links" >&6; }
12485   if test "$hard_links" = no; then
12486     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12488     need_locks=warn
12489   fi
12490 else
12491   need_locks=no
12492 fi
12493
12494 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12496
12497   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12498   case $host_os in
12499   aix4* | aix5*)
12500     # If we're using GNU nm, then we don't want the "-C" option.
12501     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12502     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12503       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'
12504     else
12505       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'
12506     fi
12507     ;;
12508   pw32*)
12509     export_symbols_cmds_CXX="$ltdll_cmds"
12510   ;;
12511   cygwin* | mingw*)
12512     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'
12513   ;;
12514   *)
12515     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12516   ;;
12517   esac
12518
12519 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12520 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12521 test "$ld_shlibs_CXX" = no && can_build_shared=no
12522
12523 #
12524 # Do we need to explicitly link libc?
12525 #
12526 case "x$archive_cmds_need_lc_CXX" in
12527 x|xyes)
12528   # Assume -lc should be added
12529   archive_cmds_need_lc_CXX=yes
12530
12531   if test "$enable_shared" = yes && test "$GCC" = yes; then
12532     case $archive_cmds_CXX in
12533     *'~'*)
12534       # FIXME: we may have to deal with multi-command sequences.
12535       ;;
12536     '$CC '*)
12537       # Test whether the compiler implicitly links with -lc since on some
12538       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12539       # to ld, don't add -lc before -lgcc.
12540       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12541 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12542       $rm conftest*
12543       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12544
12545       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546   (eval $ac_compile) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } 2>conftest.err; then
12550         soname=conftest
12551         lib=conftest
12552         libobjs=conftest.$ac_objext
12553         deplibs=
12554         wl=$lt_prog_compiler_wl_CXX
12555         pic_flag=$lt_prog_compiler_pic_CXX
12556         compiler_flags=-v
12557         linker_flags=-v
12558         verstring=
12559         output_objdir=.
12560         libname=conftest
12561         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12562         allow_undefined_flag_CXX=
12563         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12564   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }
12568         then
12569           archive_cmds_need_lc_CXX=no
12570         else
12571           archive_cmds_need_lc_CXX=yes
12572         fi
12573         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12574       else
12575         cat conftest.err 1>&5
12576       fi
12577       $rm conftest*
12578       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12579 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12580       ;;
12581     esac
12582   fi
12583   ;;
12584 esac
12585
12586 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12587 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12588 library_names_spec=
12589 libname_spec='lib$name'
12590 soname_spec=
12591 shrext_cmds=".so"
12592 postinstall_cmds=
12593 postuninstall_cmds=
12594 finish_cmds=
12595 finish_eval=
12596 shlibpath_var=
12597 shlibpath_overrides_runpath=unknown
12598 version_type=none
12599 dynamic_linker="$host_os ld.so"
12600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12601 if test "$GCC" = yes; then
12602   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12603   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12604     # if the path contains ";" then we assume it to be the separator
12605     # otherwise default to the standard path separator (i.e. ":") - it is
12606     # assumed that no part of a normal pathname contains ";" but that should
12607     # okay in the real world where ";" in dirpaths is itself problematic.
12608     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12609   else
12610     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12611   fi
12612 else
12613   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12614 fi
12615 need_lib_prefix=unknown
12616 hardcode_into_libs=no
12617
12618 # when you set need_version to no, make sure it does not cause -set_version
12619 # flags to be left without arguments
12620 need_version=unknown
12621
12622 case $host_os in
12623 aix3*)
12624   version_type=linux
12625   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12626   shlibpath_var=LIBPATH
12627
12628   # AIX 3 has no versioning support, so we append a major version to the name.
12629   soname_spec='${libname}${release}${shared_ext}$major'
12630   ;;
12631
12632 aix4* | aix5*)
12633   version_type=linux
12634   need_lib_prefix=no
12635   need_version=no
12636   hardcode_into_libs=yes
12637   if test "$host_cpu" = ia64; then
12638     # AIX 5 supports IA64
12639     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12640     shlibpath_var=LD_LIBRARY_PATH
12641   else
12642     # With GCC up to 2.95.x, collect2 would create an import file
12643     # for dependence libraries.  The import file would start with
12644     # the line `#! .'.  This would cause the generated library to
12645     # depend on `.', always an invalid library.  This was fixed in
12646     # development snapshots of GCC prior to 3.0.
12647     case $host_os in
12648       aix4 | aix4.[01] | aix4.[01].*)
12649       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12650            echo ' yes '
12651            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12652         :
12653       else
12654         can_build_shared=no
12655       fi
12656       ;;
12657     esac
12658     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12659     # soname into executable. Probably we can add versioning support to
12660     # collect2, so additional links can be useful in future.
12661     if test "$aix_use_runtimelinking" = yes; then
12662       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12663       # instead of lib<name>.a to let people know that these are not
12664       # typical AIX shared libraries.
12665       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666     else
12667       # We preserve .a as extension for shared libraries through AIX4.2
12668       # and later when we are not doing run time linking.
12669       library_names_spec='${libname}${release}.a $libname.a'
12670       soname_spec='${libname}${release}${shared_ext}$major'
12671     fi
12672     shlibpath_var=LIBPATH
12673   fi
12674   ;;
12675
12676 amigaos*)
12677   library_names_spec='$libname.ixlibrary $libname.a'
12678   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12679   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'
12680   ;;
12681
12682 beos*)
12683   library_names_spec='${libname}${shared_ext}'
12684   dynamic_linker="$host_os ld.so"
12685   shlibpath_var=LIBRARY_PATH
12686   ;;
12687
12688 bsdi[45]*)
12689   version_type=linux
12690   need_version=no
12691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12692   soname_spec='${libname}${release}${shared_ext}$major'
12693   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12694   shlibpath_var=LD_LIBRARY_PATH
12695   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12696   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12697   # the default ld.so.conf also contains /usr/contrib/lib and
12698   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12699   # libtool to hard-code these into programs
12700   ;;
12701
12702 cygwin* | mingw* | pw32*)
12703   version_type=windows
12704   shrext_cmds=".dll"
12705   need_version=no
12706   need_lib_prefix=no
12707
12708   case $GCC,$host_os in
12709   yes,cygwin* | yes,mingw* | yes,pw32*)
12710     library_names_spec='$libname.dll.a'
12711     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12712     postinstall_cmds='base_file=`basename \${file}`~
12713       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12714       dldir=$destdir/`dirname \$dlpath`~
12715       test -d \$dldir || mkdir -p \$dldir~
12716       $install_prog $dir/$dlname \$dldir/$dlname~
12717       chmod a+x \$dldir/$dlname'
12718     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12719       dlpath=$dir/\$dldll~
12720        $rm \$dlpath'
12721     shlibpath_overrides_runpath=yes
12722
12723     case $host_os in
12724     cygwin*)
12725       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12726       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12727       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12728       ;;
12729     mingw*)
12730       # MinGW DLLs use traditional 'lib' prefix
12731       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12732       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12733       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12734         # It is most probably a Windows format PATH printed by
12735         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12736         # path with ; separators, and with drive letters. We can handle the
12737         # drive letters (cygwin fileutils understands them), so leave them,
12738         # especially as we might pass files found there to a mingw objdump,
12739         # which wouldn't understand a cygwinified path. Ahh.
12740         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12741       else
12742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12743       fi
12744       ;;
12745     pw32*)
12746       # pw32 DLLs use 'pw' prefix rather than 'lib'
12747       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12748       ;;
12749     esac
12750     ;;
12751
12752   linux*)
12753     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12754       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12755       supports_anon_versioning=no
12756       case `$LD -v 2>/dev/null` in
12757         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12758         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12759         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12760         *\ 2.11.*) ;; # other 2.11 versions
12761         *) supports_anon_versioning=yes ;;
12762       esac
12763       if test $supports_anon_versioning = yes; then
12764         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12766 $echo "local: *; };" >> $output_objdir/$libname.ver~
12767         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12768       else
12769         $archive_expsym_cmds="$archive_cmds"
12770       fi
12771     else
12772       ld_shlibs=no
12773     fi
12774     ;;
12775
12776   *)
12777     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12778     ;;
12779   esac
12780   dynamic_linker='Win32 ld.exe'
12781   # FIXME: first we should search . and the directory the executable is in
12782   shlibpath_var=PATH
12783   ;;
12784
12785 darwin* | rhapsody*)
12786   dynamic_linker="$host_os dyld"
12787   version_type=darwin
12788   need_lib_prefix=no
12789   need_version=no
12790   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12791   soname_spec='${libname}${release}${major}$shared_ext'
12792   shlibpath_overrides_runpath=yes
12793   shlibpath_var=DYLD_LIBRARY_PATH
12794   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12795   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12796   if test "$GCC" = yes; then
12797     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"`
12798   else
12799     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12800   fi
12801   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12802   ;;
12803
12804 dgux*)
12805   version_type=linux
12806   need_lib_prefix=no
12807   need_version=no
12808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12809   soname_spec='${libname}${release}${shared_ext}$major'
12810   shlibpath_var=LD_LIBRARY_PATH
12811   ;;
12812
12813 freebsd1*)
12814   dynamic_linker=no
12815   ;;
12816
12817 kfreebsd*-gnu)
12818   version_type=linux
12819   need_lib_prefix=no
12820   need_version=no
12821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12822   soname_spec='${libname}${release}${shared_ext}$major'
12823   shlibpath_var=LD_LIBRARY_PATH
12824   shlibpath_overrides_runpath=no
12825   hardcode_into_libs=yes
12826   dynamic_linker='GNU ld.so'
12827   ;;
12828
12829 freebsd* | dragonfly*)
12830   # DragonFly does not have aout.  When/if they implement a new
12831   # versioning mechanism, adjust this.
12832   if test -x /usr/bin/objformat; then
12833     objformat=`/usr/bin/objformat`
12834   else
12835     case $host_os in
12836     freebsd[123]*) objformat=aout ;;
12837     *) objformat=elf ;;
12838     esac
12839   fi
12840   # Handle Gentoo/FreeBSD as it was Linux
12841   case $host_vendor in
12842     gentoo)
12843       version_type=linux ;;
12844     *)
12845       version_type=freebsd-$objformat ;;
12846   esac
12847
12848   case $version_type in
12849     freebsd-elf*)
12850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12851       need_version=no
12852       need_lib_prefix=no
12853       ;;
12854     freebsd-*)
12855       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12856       need_version=yes
12857       ;;
12858     linux)
12859       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12860       soname_spec='${libname}${release}${shared_ext}$major'
12861       need_lib_prefix=no
12862       need_version=no
12863       ;;
12864   esac
12865   shlibpath_var=LD_LIBRARY_PATH
12866   case $host_os in
12867   freebsd2*)
12868     shlibpath_overrides_runpath=yes
12869     ;;
12870   freebsd3.[01]* | freebsdelf3.[01]*)
12871     shlibpath_overrides_runpath=yes
12872     hardcode_into_libs=yes
12873     ;;
12874   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12875   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12876     shlibpath_overrides_runpath=no
12877     hardcode_into_libs=yes
12878     ;;
12879   freebsd*) # from 4.6 on
12880     shlibpath_overrides_runpath=yes
12881     hardcode_into_libs=yes
12882     ;;
12883   esac
12884   ;;
12885
12886 gnu*)
12887   version_type=linux
12888   need_lib_prefix=no
12889   need_version=no
12890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12891   soname_spec='${libname}${release}${shared_ext}$major'
12892   shlibpath_var=LD_LIBRARY_PATH
12893   hardcode_into_libs=yes
12894   ;;
12895
12896 hpux9* | hpux10* | hpux11*)
12897   # Give a soname corresponding to the major version so that dld.sl refuses to
12898   # link against other versions.
12899   version_type=sunos
12900   need_lib_prefix=no
12901   need_version=no
12902   case $host_cpu in
12903   ia64*)
12904     shrext_cmds='.so'
12905     hardcode_into_libs=yes
12906     dynamic_linker="$host_os dld.so"
12907     shlibpath_var=LD_LIBRARY_PATH
12908     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12910     soname_spec='${libname}${release}${shared_ext}$major'
12911     if test "X$HPUX_IA64_MODE" = X32; then
12912       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12913     else
12914       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12915     fi
12916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12917     ;;
12918    hppa*64*)
12919      shrext_cmds='.sl'
12920      hardcode_into_libs=yes
12921      dynamic_linker="$host_os dld.sl"
12922      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12923      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12924      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925      soname_spec='${libname}${release}${shared_ext}$major'
12926      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12927      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12928      ;;
12929    *)
12930     shrext_cmds='.sl'
12931     dynamic_linker="$host_os dld.sl"
12932     shlibpath_var=SHLIB_PATH
12933     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935     soname_spec='${libname}${release}${shared_ext}$major'
12936     ;;
12937   esac
12938   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12939   postinstall_cmds='chmod 555 $lib'
12940   ;;
12941
12942 interix3*)
12943   version_type=linux
12944   need_lib_prefix=no
12945   need_version=no
12946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12947   soname_spec='${libname}${release}${shared_ext}$major'
12948   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12949   shlibpath_var=LD_LIBRARY_PATH
12950   shlibpath_overrides_runpath=no
12951   hardcode_into_libs=yes
12952   ;;
12953
12954 irix5* | irix6* | nonstopux*)
12955   case $host_os in
12956     nonstopux*) version_type=nonstopux ;;
12957     *)
12958         if test "$lt_cv_prog_gnu_ld" = yes; then
12959                 version_type=linux
12960         else
12961                 version_type=irix
12962         fi ;;
12963   esac
12964   need_lib_prefix=no
12965   need_version=no
12966   soname_spec='${libname}${release}${shared_ext}$major'
12967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12968   case $host_os in
12969   irix5* | nonstopux*)
12970     libsuff= shlibsuff=
12971     ;;
12972   *)
12973     case $LD in # libtool.m4 will add one of these switches to LD
12974     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12975       libsuff= shlibsuff= libmagic=32-bit;;
12976     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12977       libsuff=32 shlibsuff=N32 libmagic=N32;;
12978     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12979       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12980     *) libsuff= shlibsuff= libmagic=never-match;;
12981     esac
12982     ;;
12983   esac
12984   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12985   shlibpath_overrides_runpath=no
12986   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12987   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12988   hardcode_into_libs=yes
12989   ;;
12990
12991 # No shared lib support for Linux oldld, aout, or coff.
12992 linux*oldld* | linux*aout* | linux*coff*)
12993   dynamic_linker=no
12994   ;;
12995
12996 # This must be Linux ELF.
12997 linux*)
12998   version_type=linux
12999   need_lib_prefix=no
13000   need_version=no
13001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13002   soname_spec='${libname}${release}${shared_ext}$major'
13003   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13004   shlibpath_var=LD_LIBRARY_PATH
13005   shlibpath_overrides_runpath=no
13006   # This implies no fast_install, which is unacceptable.
13007   # Some rework will be needed to allow for fast_install
13008   # before this can be enabled.
13009   hardcode_into_libs=yes
13010
13011   # Append ld.so.conf contents to the search path
13012   if test -f /etc/ld.so.conf; then
13013     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13014     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13015   fi
13016
13017   # We used to test for /lib/ld.so.1 and disable shared libraries on
13018   # powerpc, because MkLinux only supported shared libraries with the
13019   # GNU dynamic linker.  Since this was broken with cross compilers,
13020   # most powerpc-linux boxes support dynamic linking these days and
13021   # people can always --disable-shared, the test was removed, and we
13022   # assume the GNU/Linux dynamic linker is in use.
13023   dynamic_linker='GNU/Linux ld.so'
13024   ;;
13025
13026 knetbsd*-gnu)
13027   version_type=linux
13028   need_lib_prefix=no
13029   need_version=no
13030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13031   soname_spec='${libname}${release}${shared_ext}$major'
13032   shlibpath_var=LD_LIBRARY_PATH
13033   shlibpath_overrides_runpath=no
13034   hardcode_into_libs=yes
13035   dynamic_linker='GNU ld.so'
13036   ;;
13037
13038 netbsd*)
13039   version_type=sunos
13040   need_lib_prefix=no
13041   need_version=no
13042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13045     dynamic_linker='NetBSD (a.out) ld.so'
13046   else
13047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13048     soname_spec='${libname}${release}${shared_ext}$major'
13049     dynamic_linker='NetBSD ld.elf_so'
13050   fi
13051   shlibpath_var=LD_LIBRARY_PATH
13052   shlibpath_overrides_runpath=yes
13053   hardcode_into_libs=yes
13054   ;;
13055
13056 newsos6)
13057   version_type=linux
13058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059   shlibpath_var=LD_LIBRARY_PATH
13060   shlibpath_overrides_runpath=yes
13061   ;;
13062
13063 nto-qnx*)
13064   version_type=linux
13065   need_lib_prefix=no
13066   need_version=no
13067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068   soname_spec='${libname}${release}${shared_ext}$major'
13069   shlibpath_var=LD_LIBRARY_PATH
13070   shlibpath_overrides_runpath=yes
13071   ;;
13072
13073 openbsd*)
13074   version_type=sunos
13075   sys_lib_dlsearch_path_spec="/usr/lib"
13076   need_lib_prefix=no
13077   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13078   case $host_os in
13079     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13080     *)                         need_version=no  ;;
13081   esac
13082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13084   shlibpath_var=LD_LIBRARY_PATH
13085   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13086     case $host_os in
13087       openbsd2.[89] | openbsd2.[89].*)
13088         shlibpath_overrides_runpath=no
13089         ;;
13090       *)
13091         shlibpath_overrides_runpath=yes
13092         ;;
13093       esac
13094   else
13095     shlibpath_overrides_runpath=yes
13096   fi
13097   ;;
13098
13099 os2*)
13100   libname_spec='$name'
13101   shrext_cmds=".dll"
13102   need_lib_prefix=no
13103   library_names_spec='$libname${shared_ext} $libname.a'
13104   dynamic_linker='OS/2 ld.exe'
13105   shlibpath_var=LIBPATH
13106   ;;
13107
13108 osf3* | osf4* | osf5*)
13109   version_type=osf
13110   need_lib_prefix=no
13111   need_version=no
13112   soname_spec='${libname}${release}${shared_ext}$major'
13113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13114   shlibpath_var=LD_LIBRARY_PATH
13115   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13116   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13117   ;;
13118
13119 solaris*)
13120   version_type=linux
13121   need_lib_prefix=no
13122   need_version=no
13123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124   soname_spec='${libname}${release}${shared_ext}$major'
13125   shlibpath_var=LD_LIBRARY_PATH
13126   shlibpath_overrides_runpath=yes
13127   hardcode_into_libs=yes
13128   # ldd complains unless libraries are executable
13129   postinstall_cmds='chmod +x $lib'
13130   ;;
13131
13132 sunos4*)
13133   version_type=sunos
13134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13135   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13136   shlibpath_var=LD_LIBRARY_PATH
13137   shlibpath_overrides_runpath=yes
13138   if test "$with_gnu_ld" = yes; then
13139     need_lib_prefix=no
13140   fi
13141   need_version=yes
13142   ;;
13143
13144 sysv4 | sysv4.3*)
13145   version_type=linux
13146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147   soname_spec='${libname}${release}${shared_ext}$major'
13148   shlibpath_var=LD_LIBRARY_PATH
13149   case $host_vendor in
13150     sni)
13151       shlibpath_overrides_runpath=no
13152       need_lib_prefix=no
13153       export_dynamic_flag_spec='${wl}-Blargedynsym'
13154       runpath_var=LD_RUN_PATH
13155       ;;
13156     siemens)
13157       need_lib_prefix=no
13158       ;;
13159     motorola)
13160       need_lib_prefix=no
13161       need_version=no
13162       shlibpath_overrides_runpath=no
13163       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13164       ;;
13165   esac
13166   ;;
13167
13168 sysv4*MP*)
13169   if test -d /usr/nec ;then
13170     version_type=linux
13171     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13172     soname_spec='$libname${shared_ext}.$major'
13173     shlibpath_var=LD_LIBRARY_PATH
13174   fi
13175   ;;
13176
13177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13178   version_type=freebsd-elf
13179   need_lib_prefix=no
13180   need_version=no
13181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13182   soname_spec='${libname}${release}${shared_ext}$major'
13183   shlibpath_var=LD_LIBRARY_PATH
13184   hardcode_into_libs=yes
13185   if test "$with_gnu_ld" = yes; then
13186     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13187     shlibpath_overrides_runpath=no
13188   else
13189     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13190     shlibpath_overrides_runpath=yes
13191     case $host_os in
13192       sco3.2v5*)
13193         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13194         ;;
13195     esac
13196   fi
13197   sys_lib_dlsearch_path_spec='/usr/lib'
13198   ;;
13199
13200 uts4*)
13201   version_type=linux
13202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203   soname_spec='${libname}${release}${shared_ext}$major'
13204   shlibpath_var=LD_LIBRARY_PATH
13205   ;;
13206
13207 *)
13208   dynamic_linker=no
13209   ;;
13210 esac
13211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13212 echo "${ECHO_T}$dynamic_linker" >&6; }
13213 test "$dynamic_linker" = no && can_build_shared=no
13214
13215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13216 if test "$GCC" = yes; then
13217   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13218 fi
13219
13220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13222 hardcode_action_CXX=
13223 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13224    test -n "$runpath_var_CXX" || \
13225    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13226
13227   # We can hardcode non-existant directories.
13228   if test "$hardcode_direct_CXX" != no &&
13229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230      # have to relink, otherwise we might link with an installed library
13231      # when we should be linking with a yet-to-be-installed one
13232      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13233      test "$hardcode_minus_L_CXX" != no; then
13234     # Linking always hardcodes the temporary library directory.
13235     hardcode_action_CXX=relink
13236   else
13237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238     hardcode_action_CXX=immediate
13239   fi
13240 else
13241   # We cannot hardcode anything, or else we can only hardcode existing
13242   # directories.
13243   hardcode_action_CXX=unsupported
13244 fi
13245 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13246 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13247
13248 if test "$hardcode_action_CXX" = relink; then
13249   # Fast installation is not supported
13250   enable_fast_install=no
13251 elif test "$shlibpath_overrides_runpath" = yes ||
13252      test "$enable_shared" = no; then
13253   # Fast installation is not necessary
13254   enable_fast_install=needless
13255 fi
13256
13257
13258 # The else clause should only fire when bootstrapping the
13259 # libtool distribution, otherwise you forgot to ship ltmain.sh
13260 # with your package, and you will get complaints that there are
13261 # no rules to generate ltmain.sh.
13262 if test -f "$ltmain"; then
13263   # See if we are running on zsh, and set the options which allow our commands through
13264   # without removal of \ escapes.
13265   if test -n "${ZSH_VERSION+set}" ; then
13266     setopt NO_GLOB_SUBST
13267   fi
13268   # Now quote all the things that may contain metacharacters while being
13269   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13270   # variables and quote the copies for generation of the libtool script.
13271   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13272     SED SHELL STRIP \
13273     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13274     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13275     deplibs_check_method reload_flag reload_cmds need_locks \
13276     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13277     lt_cv_sys_global_symbol_to_c_name_address \
13278     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13279     old_postinstall_cmds old_postuninstall_cmds \
13280     compiler_CXX \
13281     CC_CXX \
13282     LD_CXX \
13283     lt_prog_compiler_wl_CXX \
13284     lt_prog_compiler_pic_CXX \
13285     lt_prog_compiler_static_CXX \
13286     lt_prog_compiler_no_builtin_flag_CXX \
13287     export_dynamic_flag_spec_CXX \
13288     thread_safe_flag_spec_CXX \
13289     whole_archive_flag_spec_CXX \
13290     enable_shared_with_static_runtimes_CXX \
13291     old_archive_cmds_CXX \
13292     old_archive_from_new_cmds_CXX \
13293     predep_objects_CXX \
13294     postdep_objects_CXX \
13295     predeps_CXX \
13296     postdeps_CXX \
13297     compiler_lib_search_path_CXX \
13298     archive_cmds_CXX \
13299     archive_expsym_cmds_CXX \
13300     postinstall_cmds_CXX \
13301     postuninstall_cmds_CXX \
13302     old_archive_from_expsyms_cmds_CXX \
13303     allow_undefined_flag_CXX \
13304     no_undefined_flag_CXX \
13305     export_symbols_cmds_CXX \
13306     hardcode_libdir_flag_spec_CXX \
13307     hardcode_libdir_flag_spec_ld_CXX \
13308     hardcode_libdir_separator_CXX \
13309     hardcode_automatic_CXX \
13310     module_cmds_CXX \
13311     module_expsym_cmds_CXX \
13312     lt_cv_prog_compiler_c_o_CXX \
13313     exclude_expsyms_CXX \
13314     include_expsyms_CXX; do
13315
13316     case $var in
13317     old_archive_cmds_CXX | \
13318     old_archive_from_new_cmds_CXX | \
13319     archive_cmds_CXX | \
13320     archive_expsym_cmds_CXX | \
13321     module_cmds_CXX | \
13322     module_expsym_cmds_CXX | \
13323     old_archive_from_expsyms_cmds_CXX | \
13324     export_symbols_cmds_CXX | \
13325     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13326     postinstall_cmds | postuninstall_cmds | \
13327     old_postinstall_cmds | old_postuninstall_cmds | \
13328     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13329       # Double-quote double-evaled strings.
13330       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13331       ;;
13332     *)
13333       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13334       ;;
13335     esac
13336   done
13337
13338   case $lt_echo in
13339   *'\$0 --fallback-echo"')
13340     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13341     ;;
13342   esac
13343
13344 cfgfile="$ofile"
13345
13346   cat <<__EOF__ >> "$cfgfile"
13347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13348
13349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13350
13351 # Shell to use when invoking shell scripts.
13352 SHELL=$lt_SHELL
13353
13354 # Whether or not to build shared libraries.
13355 build_libtool_libs=$enable_shared
13356
13357 # Whether or not to build static libraries.
13358 build_old_libs=$enable_static
13359
13360 # Whether or not to add -lc for building shared libraries.
13361 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13362
13363 # Whether or not to disallow shared libs when runtime libs are static
13364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13365
13366 # Whether or not to optimize for fast installation.
13367 fast_install=$enable_fast_install
13368
13369 # The host system.
13370 host_alias=$host_alias
13371 host=$host
13372 host_os=$host_os
13373
13374 # The build system.
13375 build_alias=$build_alias
13376 build=$build
13377 build_os=$build_os
13378
13379 # An echo program that does not interpret backslashes.
13380 echo=$lt_echo
13381
13382 # The archiver.
13383 AR=$lt_AR
13384 AR_FLAGS=$lt_AR_FLAGS
13385
13386 # A C compiler.
13387 LTCC=$lt_LTCC
13388
13389 # LTCC compiler flags.
13390 LTCFLAGS=$lt_LTCFLAGS
13391
13392 # A language-specific compiler.
13393 CC=$lt_compiler_CXX
13394
13395 # Is the compiler the GNU C compiler?
13396 with_gcc=$GCC_CXX
13397
13398 # An ERE matcher.
13399 EGREP=$lt_EGREP
13400
13401 # The linker used to build libraries.
13402 LD=$lt_LD_CXX
13403
13404 # Whether we need hard or soft links.
13405 LN_S=$lt_LN_S
13406
13407 # A BSD-compatible nm program.
13408 NM=$lt_NM
13409
13410 # A symbol stripping program
13411 STRIP=$lt_STRIP
13412
13413 # Used to examine libraries when file_magic_cmd begins "file"
13414 MAGIC_CMD=$MAGIC_CMD
13415
13416 # Used on cygwin: DLL creation program.
13417 DLLTOOL="$DLLTOOL"
13418
13419 # Used on cygwin: object dumper.
13420 OBJDUMP="$OBJDUMP"
13421
13422 # Used on cygwin: assembler.
13423 AS="$AS"
13424
13425 # The name of the directory that contains temporary libtool files.
13426 objdir=$objdir
13427
13428 # How to create reloadable object files.
13429 reload_flag=$lt_reload_flag
13430 reload_cmds=$lt_reload_cmds
13431
13432 # How to pass a linker flag through the compiler.
13433 wl=$lt_lt_prog_compiler_wl_CXX
13434
13435 # Object file suffix (normally "o").
13436 objext="$ac_objext"
13437
13438 # Old archive suffix (normally "a").
13439 libext="$libext"
13440
13441 # Shared library suffix (normally ".so").
13442 shrext_cmds='$shrext_cmds'
13443
13444 # Executable file suffix (normally "").
13445 exeext="$exeext"
13446
13447 # Additional compiler flags for building library objects.
13448 pic_flag=$lt_lt_prog_compiler_pic_CXX
13449 pic_mode=$pic_mode
13450
13451 # What is the maximum length of a command?
13452 max_cmd_len=$lt_cv_sys_max_cmd_len
13453
13454 # Does compiler simultaneously support -c and -o options?
13455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13456
13457 # Must we lock files when doing compilation?
13458 need_locks=$lt_need_locks
13459
13460 # Do we need the lib prefix for modules?
13461 need_lib_prefix=$need_lib_prefix
13462
13463 # Do we need a version for libraries?
13464 need_version=$need_version
13465
13466 # Whether dlopen is supported.
13467 dlopen_support=$enable_dlopen
13468
13469 # Whether dlopen of programs is supported.
13470 dlopen_self=$enable_dlopen_self
13471
13472 # Whether dlopen of statically linked programs is supported.
13473 dlopen_self_static=$enable_dlopen_self_static
13474
13475 # Compiler flag to prevent dynamic linking.
13476 link_static_flag=$lt_lt_prog_compiler_static_CXX
13477
13478 # Compiler flag to turn off builtin functions.
13479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13480
13481 # Compiler flag to allow reflexive dlopens.
13482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13483
13484 # Compiler flag to generate shared objects directly from archives.
13485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13486
13487 # Compiler flag to generate thread-safe objects.
13488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13489
13490 # Library versioning type.
13491 version_type=$version_type
13492
13493 # Format of library name prefix.
13494 libname_spec=$lt_libname_spec
13495
13496 # List of archive names.  First name is the real one, the rest are links.
13497 # The last name is the one that the linker finds with -lNAME.
13498 library_names_spec=$lt_library_names_spec
13499
13500 # The coded name of the library, if different from the real name.
13501 soname_spec=$lt_soname_spec
13502
13503 # Commands used to build and install an old-style archive.
13504 RANLIB=$lt_RANLIB
13505 old_archive_cmds=$lt_old_archive_cmds_CXX
13506 old_postinstall_cmds=$lt_old_postinstall_cmds
13507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13508
13509 # Create an old-style archive from a shared archive.
13510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13511
13512 # Create a temporary old-style archive to link instead of a shared archive.
13513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13514
13515 # Commands used to build and install a shared archive.
13516 archive_cmds=$lt_archive_cmds_CXX
13517 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13518 postinstall_cmds=$lt_postinstall_cmds
13519 postuninstall_cmds=$lt_postuninstall_cmds
13520
13521 # Commands used to build a loadable module (assumed same as above if empty)
13522 module_cmds=$lt_module_cmds_CXX
13523 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13524
13525 # Commands to strip libraries.
13526 old_striplib=$lt_old_striplib
13527 striplib=$lt_striplib
13528
13529 # Dependencies to place before the objects being linked to create a
13530 # shared library.
13531 predep_objects=$lt_predep_objects_CXX
13532
13533 # Dependencies to place after the objects being linked to create a
13534 # shared library.
13535 postdep_objects=$lt_postdep_objects_CXX
13536
13537 # Dependencies to place before the objects being linked to create a
13538 # shared library.
13539 predeps=$lt_predeps_CXX
13540
13541 # Dependencies to place after the objects being linked to create a
13542 # shared library.
13543 postdeps=$lt_postdeps_CXX
13544
13545 # The library search path used internally by the compiler when linking
13546 # a shared library.
13547 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13548
13549 # Method to check whether dependent libraries are shared objects.
13550 deplibs_check_method=$lt_deplibs_check_method
13551
13552 # Command to use when deplibs_check_method == file_magic.
13553 file_magic_cmd=$lt_file_magic_cmd
13554
13555 # Flag that allows shared libraries with undefined symbols to be built.
13556 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13557
13558 # Flag that forces no undefined symbols.
13559 no_undefined_flag=$lt_no_undefined_flag_CXX
13560
13561 # Commands used to finish a libtool library installation in a directory.
13562 finish_cmds=$lt_finish_cmds
13563
13564 # Same as above, but a single script fragment to be evaled but not shown.
13565 finish_eval=$lt_finish_eval
13566
13567 # Take the output of nm and produce a listing of raw symbols and C names.
13568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13569
13570 # Transform the output of nm in a proper C declaration
13571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13572
13573 # Transform the output of nm in a C name address pair
13574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13575
13576 # This is the shared library runtime path variable.
13577 runpath_var=$runpath_var
13578
13579 # This is the shared library path variable.
13580 shlibpath_var=$shlibpath_var
13581
13582 # Is shlibpath searched before the hard-coded library search path?
13583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13584
13585 # How to hardcode a shared library path into an executable.
13586 hardcode_action=$hardcode_action_CXX
13587
13588 # Whether we should hardcode library paths into libraries.
13589 hardcode_into_libs=$hardcode_into_libs
13590
13591 # Flag to hardcode \$libdir into a binary during linking.
13592 # This must work even if \$libdir does not exist.
13593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13594
13595 # If ld is used when linking, flag to hardcode \$libdir into
13596 # a binary during linking. This must work even if \$libdir does
13597 # not exist.
13598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13599
13600 # Whether we need a single -rpath flag with a separated argument.
13601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13602
13603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13604 # resulting binary.
13605 hardcode_direct=$hardcode_direct_CXX
13606
13607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13608 # resulting binary.
13609 hardcode_minus_L=$hardcode_minus_L_CXX
13610
13611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13612 # the resulting binary.
13613 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13614
13615 # Set to yes if building a shared library automatically hardcodes DIR into the library
13616 # and all subsequent libraries and executables linked against it.
13617 hardcode_automatic=$hardcode_automatic_CXX
13618
13619 # Variables whose values should be saved in libtool wrapper scripts and
13620 # restored at relink time.
13621 variables_saved_for_relink="$variables_saved_for_relink"
13622
13623 # Whether libtool must link a program against all its dependency libraries.
13624 link_all_deplibs=$link_all_deplibs_CXX
13625
13626 # Compile-time system search path for libraries
13627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13628
13629 # Run-time system search path for libraries
13630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13631
13632 # Fix the shell variable \$srcfile for the compiler.
13633 fix_srcfile_path="$fix_srcfile_path_CXX"
13634
13635 # Set to yes if exported symbols are required.
13636 always_export_symbols=$always_export_symbols_CXX
13637
13638 # The commands to list exported symbols.
13639 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13640
13641 # The commands to extract the exported symbol list from a shared archive.
13642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13643
13644 # Symbols that should not be listed in the preloaded symbols.
13645 exclude_expsyms=$lt_exclude_expsyms_CXX
13646
13647 # Symbols that must always be exported.
13648 include_expsyms=$lt_include_expsyms_CXX
13649
13650 # ### END LIBTOOL TAG CONFIG: $tagname
13651
13652 __EOF__
13653
13654
13655 else
13656   # If there is no Makefile yet, we rely on a make rule to execute
13657   # `config.status --recheck' to rerun these tests and create the
13658   # libtool script then.
13659   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13660   if test -f "$ltmain_in"; then
13661     test -f Makefile && make "$ltmain"
13662   fi
13663 fi
13664
13665
13666 ac_ext=c
13667 ac_cpp='$CPP $CPPFLAGS'
13668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13671
13672 CC=$lt_save_CC
13673 LDCXX=$LD
13674 LD=$lt_save_LD
13675 GCC=$lt_save_GCC
13676 with_gnu_ldcxx=$with_gnu_ld
13677 with_gnu_ld=$lt_save_with_gnu_ld
13678 lt_cv_path_LDCXX=$lt_cv_path_LD
13679 lt_cv_path_LD=$lt_save_path_LD
13680 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13681 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13682
13683         else
13684           tagname=""
13685         fi
13686         ;;
13687
13688       F77)
13689         if test -n "$F77" && test "X$F77" != "Xno"; then
13690
13691 ac_ext=f
13692 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13693 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13695
13696
13697 archive_cmds_need_lc_F77=no
13698 allow_undefined_flag_F77=
13699 always_export_symbols_F77=no
13700 archive_expsym_cmds_F77=
13701 export_dynamic_flag_spec_F77=
13702 hardcode_direct_F77=no
13703 hardcode_libdir_flag_spec_F77=
13704 hardcode_libdir_flag_spec_ld_F77=
13705 hardcode_libdir_separator_F77=
13706 hardcode_minus_L_F77=no
13707 hardcode_automatic_F77=no
13708 module_cmds_F77=
13709 module_expsym_cmds_F77=
13710 link_all_deplibs_F77=unknown
13711 old_archive_cmds_F77=$old_archive_cmds
13712 no_undefined_flag_F77=
13713 whole_archive_flag_spec_F77=
13714 enable_shared_with_static_runtimes_F77=no
13715
13716 # Source file extension for f77 test sources.
13717 ac_ext=f
13718
13719 # Object file extension for compiled f77 test sources.
13720 objext=o
13721 objext_F77=$objext
13722
13723 # Code to be used in simple compile tests
13724 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13725
13726 # Code to be used in simple link tests
13727 lt_simple_link_test_code="      program t\n      end\n"
13728
13729 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13730
13731 # If no C compiler was specified, use CC.
13732 LTCC=${LTCC-"$CC"}
13733
13734 # If no C compiler flags were specified, use CFLAGS.
13735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13736
13737 # Allow CC to be a program name with arguments.
13738 compiler=$CC
13739
13740
13741 # save warnings/boilerplate of simple test code
13742 ac_outfile=conftest.$ac_objext
13743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13745 _lt_compiler_boilerplate=`cat conftest.err`
13746 $rm conftest*
13747
13748 ac_outfile=conftest.$ac_objext
13749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13751 _lt_linker_boilerplate=`cat conftest.err`
13752 $rm conftest*
13753
13754
13755 # Allow CC to be a program name with arguments.
13756 lt_save_CC="$CC"
13757 CC=${F77-"f77"}
13758 compiler=$CC
13759 compiler_F77=$CC
13760 for cc_temp in $compiler""; do
13761   case $cc_temp in
13762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13764     \-*) ;;
13765     *) break;;
13766   esac
13767 done
13768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13769
13770
13771 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13772 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13773 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13774 echo "${ECHO_T}$can_build_shared" >&6; }
13775
13776 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13777 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13778 test "$can_build_shared" = "no" && enable_shared=no
13779
13780 # On AIX, shared libraries and static libraries use the same namespace, and
13781 # are all built from PIC.
13782 case $host_os in
13783 aix3*)
13784   test "$enable_shared" = yes && enable_static=no
13785   if test -n "$RANLIB"; then
13786     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13787     postinstall_cmds='$RANLIB $lib'
13788   fi
13789   ;;
13790 aix4* | aix5*)
13791   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13792     test "$enable_shared" = yes && enable_static=no
13793   fi
13794   ;;
13795 esac
13796 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13797 echo "${ECHO_T}$enable_shared" >&6; }
13798
13799 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13800 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13801 # Make sure either enable_shared or enable_static is yes.
13802 test "$enable_shared" = yes || enable_static=yes
13803 { echo "$as_me:$LINENO: result: $enable_static" >&5
13804 echo "${ECHO_T}$enable_static" >&6; }
13805
13806 GCC_F77="$G77"
13807 LD_F77="$LD"
13808
13809 lt_prog_compiler_wl_F77=
13810 lt_prog_compiler_pic_F77=
13811 lt_prog_compiler_static_F77=
13812
13813 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13814 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13815
13816   if test "$GCC" = yes; then
13817     lt_prog_compiler_wl_F77='-Wl,'
13818     lt_prog_compiler_static_F77='-static'
13819
13820     case $host_os in
13821       aix*)
13822       # All AIX code is PIC.
13823       if test "$host_cpu" = ia64; then
13824         # AIX 5 now supports IA64 processor
13825         lt_prog_compiler_static_F77='-Bstatic'
13826       fi
13827       ;;
13828
13829     amigaos*)
13830       # FIXME: we need at least 68020 code to build shared libraries, but
13831       # adding the `-m68020' flag to GCC prevents building anything better,
13832       # like `-m68040'.
13833       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13834       ;;
13835
13836     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13837       # PIC is the default for these OSes.
13838       ;;
13839
13840     mingw* | pw32* | os2*)
13841       # This hack is so that the source file can tell whether it is being
13842       # built for inclusion in a dll (and should export symbols for example).
13843       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13844       ;;
13845
13846     darwin* | rhapsody*)
13847       # PIC is the default on this platform
13848       # Common symbols not allowed in MH_DYLIB files
13849       lt_prog_compiler_pic_F77='-fno-common'
13850       ;;
13851
13852     interix3*)
13853       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13854       # Instead, we relocate shared libraries at runtime.
13855       ;;
13856
13857     msdosdjgpp*)
13858       # Just because we use GCC doesn't mean we suddenly get shared libraries
13859       # on systems that don't support them.
13860       lt_prog_compiler_can_build_shared_F77=no
13861       enable_shared=no
13862       ;;
13863
13864     sysv4*MP*)
13865       if test -d /usr/nec; then
13866         lt_prog_compiler_pic_F77=-Kconform_pic
13867       fi
13868       ;;
13869
13870     hpux*)
13871       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13872       # not for PA HP-UX.
13873       case $host_cpu in
13874       hppa*64*|ia64*)
13875         # +Z the default
13876         ;;
13877       *)
13878         lt_prog_compiler_pic_F77='-fPIC'
13879         ;;
13880       esac
13881       ;;
13882
13883     *)
13884       lt_prog_compiler_pic_F77='-fPIC'
13885       ;;
13886     esac
13887   else
13888     # PORTME Check for flag to pass linker flags through the system compiler.
13889     case $host_os in
13890     aix*)
13891       lt_prog_compiler_wl_F77='-Wl,'
13892       if test "$host_cpu" = ia64; then
13893         # AIX 5 now supports IA64 processor
13894         lt_prog_compiler_static_F77='-Bstatic'
13895       else
13896         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13897       fi
13898       ;;
13899       darwin*)
13900         # PIC is the default on this platform
13901         # Common symbols not allowed in MH_DYLIB files
13902        case $cc_basename in
13903          xlc*)
13904          lt_prog_compiler_pic_F77='-qnocommon'
13905          lt_prog_compiler_wl_F77='-Wl,'
13906          ;;
13907        esac
13908        ;;
13909
13910     mingw* | pw32* | os2*)
13911       # This hack is so that the source file can tell whether it is being
13912       # built for inclusion in a dll (and should export symbols for example).
13913       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13914       ;;
13915
13916     hpux9* | hpux10* | hpux11*)
13917       lt_prog_compiler_wl_F77='-Wl,'
13918       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13919       # not for PA HP-UX.
13920       case $host_cpu in
13921       hppa*64*|ia64*)
13922         # +Z the default
13923         ;;
13924       *)
13925         lt_prog_compiler_pic_F77='+Z'
13926         ;;
13927       esac
13928       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13929       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13930       ;;
13931
13932     irix5* | irix6* | nonstopux*)
13933       lt_prog_compiler_wl_F77='-Wl,'
13934       # PIC (with -KPIC) is the default.
13935       lt_prog_compiler_static_F77='-non_shared'
13936       ;;
13937
13938     newsos6)
13939       lt_prog_compiler_pic_F77='-KPIC'
13940       lt_prog_compiler_static_F77='-Bstatic'
13941       ;;
13942
13943     linux*)
13944       case $cc_basename in
13945       icc* | ecc*)
13946         lt_prog_compiler_wl_F77='-Wl,'
13947         lt_prog_compiler_pic_F77='-KPIC'
13948         lt_prog_compiler_static_F77='-static'
13949         ;;
13950       pgcc* | pgf77* | pgf90* | pgf95*)
13951         # Portland Group compilers (*not* the Pentium gcc compiler,
13952         # which looks to be a dead project)
13953         lt_prog_compiler_wl_F77='-Wl,'
13954         lt_prog_compiler_pic_F77='-fpic'
13955         lt_prog_compiler_static_F77='-Bstatic'
13956         ;;
13957       ccc*)
13958         lt_prog_compiler_wl_F77='-Wl,'
13959         # All Alpha code is PIC.
13960         lt_prog_compiler_static_F77='-non_shared'
13961         ;;
13962       esac
13963       ;;
13964
13965     osf3* | osf4* | osf5*)
13966       lt_prog_compiler_wl_F77='-Wl,'
13967       # All OSF/1 code is PIC.
13968       lt_prog_compiler_static_F77='-non_shared'
13969       ;;
13970
13971     solaris*)
13972       lt_prog_compiler_pic_F77='-KPIC'
13973       lt_prog_compiler_static_F77='-Bstatic'
13974       case $cc_basename in
13975       f77* | f90* | f95*)
13976         lt_prog_compiler_wl_F77='-Qoption ld ';;
13977       *)
13978         lt_prog_compiler_wl_F77='-Wl,';;
13979       esac
13980       ;;
13981
13982     sunos4*)
13983       lt_prog_compiler_wl_F77='-Qoption ld '
13984       lt_prog_compiler_pic_F77='-PIC'
13985       lt_prog_compiler_static_F77='-Bstatic'
13986       ;;
13987
13988     sysv4 | sysv4.2uw2* | sysv4.3*)
13989       lt_prog_compiler_wl_F77='-Wl,'
13990       lt_prog_compiler_pic_F77='-KPIC'
13991       lt_prog_compiler_static_F77='-Bstatic'
13992       ;;
13993
13994     sysv4*MP*)
13995       if test -d /usr/nec ;then
13996         lt_prog_compiler_pic_F77='-Kconform_pic'
13997         lt_prog_compiler_static_F77='-Bstatic'
13998       fi
13999       ;;
14000
14001     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14002       lt_prog_compiler_wl_F77='-Wl,'
14003       lt_prog_compiler_pic_F77='-KPIC'
14004       lt_prog_compiler_static_F77='-Bstatic'
14005       ;;
14006
14007     unicos*)
14008       lt_prog_compiler_wl_F77='-Wl,'
14009       lt_prog_compiler_can_build_shared_F77=no
14010       ;;
14011
14012     uts4*)
14013       lt_prog_compiler_pic_F77='-pic'
14014       lt_prog_compiler_static_F77='-Bstatic'
14015       ;;
14016
14017     *)
14018       lt_prog_compiler_can_build_shared_F77=no
14019       ;;
14020     esac
14021   fi
14022
14023 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14024 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14025
14026 #
14027 # Check to make sure the PIC flag actually works.
14028 #
14029 if test -n "$lt_prog_compiler_pic_F77"; then
14030
14031 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14032 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14033 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   lt_prog_compiler_pic_works_F77=no
14037   ac_outfile=conftest.$ac_objext
14038    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14039    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14040    # Insert the option either (1) after the last *FLAGS variable, or
14041    # (2) before a word containing "conftest.", or (3) at the end.
14042    # Note that $ac_compile itself does not contain backslashes and begins
14043    # with a dollar sign (not a hyphen), so the echo should work correctly.
14044    # The option is referenced via a variable to avoid confusing sed.
14045    lt_compile=`echo "$ac_compile" | $SED \
14046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048    -e 's:$: $lt_compiler_flag:'`
14049    (eval echo "\"\$as_me:14049: $lt_compile\"" >&5)
14050    (eval "$lt_compile" 2>conftest.err)
14051    ac_status=$?
14052    cat conftest.err >&5
14053    echo "$as_me:14053: \$? = $ac_status" >&5
14054    if (exit $ac_status) && test -s "$ac_outfile"; then
14055      # The compiler can only warn and ignore the option if not recognized
14056      # So say no if there are warnings other than the usual output.
14057      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14058      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14059      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14060        lt_prog_compiler_pic_works_F77=yes
14061      fi
14062    fi
14063    $rm conftest*
14064
14065 fi
14066 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14067 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14068
14069 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14070     case $lt_prog_compiler_pic_F77 in
14071      "" | " "*) ;;
14072      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14073      esac
14074 else
14075     lt_prog_compiler_pic_F77=
14076      lt_prog_compiler_can_build_shared_F77=no
14077 fi
14078
14079 fi
14080 case $host_os in
14081   # For platforms which do not support PIC, -DPIC is meaningless:
14082   *djgpp*)
14083     lt_prog_compiler_pic_F77=
14084     ;;
14085   *)
14086     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14087     ;;
14088 esac
14089
14090 #
14091 # Check to make sure the static flag actually works.
14092 #
14093 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14094 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14095 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14096 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   lt_prog_compiler_static_works_F77=no
14100    save_LDFLAGS="$LDFLAGS"
14101    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14102    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14103    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14104      # The linker can only warn and ignore the option if not recognized
14105      # So say no if there are warnings
14106      if test -s conftest.err; then
14107        # Append any errors to the config.log.
14108        cat conftest.err 1>&5
14109        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14110        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14111        if diff conftest.exp conftest.er2 >/dev/null; then
14112          lt_prog_compiler_static_works_F77=yes
14113        fi
14114      else
14115        lt_prog_compiler_static_works_F77=yes
14116      fi
14117    fi
14118    $rm conftest*
14119    LDFLAGS="$save_LDFLAGS"
14120
14121 fi
14122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14123 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14124
14125 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14126     :
14127 else
14128     lt_prog_compiler_static_F77=
14129 fi
14130
14131
14132 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14133 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14134 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   lt_cv_prog_compiler_c_o_F77=no
14138    $rm -r conftest 2>/dev/null
14139    mkdir conftest
14140    cd conftest
14141    mkdir out
14142    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14143
14144    lt_compiler_flag="-o out/conftest2.$ac_objext"
14145    # Insert the option either (1) after the last *FLAGS variable, or
14146    # (2) before a word containing "conftest.", or (3) at the end.
14147    # Note that $ac_compile itself does not contain backslashes and begins
14148    # with a dollar sign (not a hyphen), so the echo should work correctly.
14149    lt_compile=`echo "$ac_compile" | $SED \
14150    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14151    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14152    -e 's:$: $lt_compiler_flag:'`
14153    (eval echo "\"\$as_me:14153: $lt_compile\"" >&5)
14154    (eval "$lt_compile" 2>out/conftest.err)
14155    ac_status=$?
14156    cat out/conftest.err >&5
14157    echo "$as_me:14157: \$? = $ac_status" >&5
14158    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14159    then
14160      # The compiler can only warn and ignore the option if not recognized
14161      # So say no if there are warnings
14162      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14163      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14164      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14165        lt_cv_prog_compiler_c_o_F77=yes
14166      fi
14167    fi
14168    chmod u+w . 2>&5
14169    $rm conftest*
14170    # SGI C++ compiler will create directory out/ii_files/ for
14171    # template instantiation
14172    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14173    $rm out/* && rmdir out
14174    cd ..
14175    rmdir conftest
14176    $rm conftest*
14177
14178 fi
14179 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14180 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14181
14182
14183 hard_links="nottested"
14184 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14185   # do not overwrite the value of need_locks provided by the user
14186   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14187 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14188   hard_links=yes
14189   $rm conftest*
14190   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14191   touch conftest.a
14192   ln conftest.a conftest.b 2>&5 || hard_links=no
14193   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14194   { echo "$as_me:$LINENO: result: $hard_links" >&5
14195 echo "${ECHO_T}$hard_links" >&6; }
14196   if test "$hard_links" = no; then
14197     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14198 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14199     need_locks=warn
14200   fi
14201 else
14202   need_locks=no
14203 fi
14204
14205 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14206 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14207
14208   runpath_var=
14209   allow_undefined_flag_F77=
14210   enable_shared_with_static_runtimes_F77=no
14211   archive_cmds_F77=
14212   archive_expsym_cmds_F77=
14213   old_archive_From_new_cmds_F77=
14214   old_archive_from_expsyms_cmds_F77=
14215   export_dynamic_flag_spec_F77=
14216   whole_archive_flag_spec_F77=
14217   thread_safe_flag_spec_F77=
14218   hardcode_libdir_flag_spec_F77=
14219   hardcode_libdir_flag_spec_ld_F77=
14220   hardcode_libdir_separator_F77=
14221   hardcode_direct_F77=no
14222   hardcode_minus_L_F77=no
14223   hardcode_shlibpath_var_F77=unsupported
14224   link_all_deplibs_F77=unknown
14225   hardcode_automatic_F77=no
14226   module_cmds_F77=
14227   module_expsym_cmds_F77=
14228   always_export_symbols_F77=no
14229   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14230   # include_expsyms should be a list of space-separated symbols to be *always*
14231   # included in the symbol list
14232   include_expsyms_F77=
14233   # exclude_expsyms can be an extended regexp of symbols to exclude
14234   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14235   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14236   # as well as any symbol that contains `d'.
14237   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14238   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14239   # platforms (ab)use it in PIC code, but their linkers get confused if
14240   # the symbol is explicitly referenced.  Since portable code cannot
14241   # rely on this symbol name, it's probably fine to never include it in
14242   # preloaded symbol tables.
14243   extract_expsyms_cmds=
14244   # Just being paranoid about ensuring that cc_basename is set.
14245   for cc_temp in $compiler""; do
14246   case $cc_temp in
14247     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14248     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14249     \-*) ;;
14250     *) break;;
14251   esac
14252 done
14253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14254
14255   case $host_os in
14256   cygwin* | mingw* | pw32*)
14257     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14258     # When not using gcc, we currently assume that we are using
14259     # Microsoft Visual C++.
14260     if test "$GCC" != yes; then
14261       with_gnu_ld=no
14262     fi
14263     ;;
14264   interix*)
14265     # we just hope/assume this is gcc and not c89 (= MSVC++)
14266     with_gnu_ld=yes
14267     ;;
14268   openbsd*)
14269     with_gnu_ld=no
14270     ;;
14271   esac
14272
14273   ld_shlibs_F77=yes
14274   if test "$with_gnu_ld" = yes; then
14275     # If archive_cmds runs LD, not CC, wlarc should be empty
14276     wlarc='${wl}'
14277
14278     # Set some defaults for GNU ld with shared library support. These
14279     # are reset later if shared libraries are not supported. Putting them
14280     # here allows them to be overridden if necessary.
14281     runpath_var=LD_RUN_PATH
14282     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14283     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14284     # ancient GNU ld didn't support --whole-archive et. al.
14285     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14286         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14287       else
14288         whole_archive_flag_spec_F77=
14289     fi
14290     supports_anon_versioning=no
14291     case `$LD -v 2>/dev/null` in
14292       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14293       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14294       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14295       *\ 2.11.*) ;; # other 2.11 versions
14296       *) supports_anon_versioning=yes ;;
14297     esac
14298
14299     # See if GNU ld supports shared libraries.
14300     case $host_os in
14301     aix3* | aix4* | aix5*)
14302       # On AIX/PPC, the GNU linker is very broken
14303       if test "$host_cpu" != ia64; then
14304         ld_shlibs_F77=no
14305         cat <<EOF 1>&2
14306
14307 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14308 *** to be unable to reliably create shared libraries on AIX.
14309 *** Therefore, libtool is disabling shared libraries support.  If you
14310 *** really care for shared libraries, you may want to modify your PATH
14311 *** so that a non-GNU linker is found, and then restart.
14312
14313 EOF
14314       fi
14315       ;;
14316
14317     amigaos*)
14318       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)'
14319       hardcode_libdir_flag_spec_F77='-L$libdir'
14320       hardcode_minus_L_F77=yes
14321
14322       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14323       # that the semantics of dynamic libraries on AmigaOS, at least up
14324       # to version 4, is to share data among multiple programs linked
14325       # with the same dynamic library.  Since this doesn't match the
14326       # behavior of shared libraries on other platforms, we can't use
14327       # them.
14328       ld_shlibs_F77=no
14329       ;;
14330
14331     beos*)
14332       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14333         allow_undefined_flag_F77=unsupported
14334         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14335         # support --undefined.  This deserves some investigation.  FIXME
14336         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14337       else
14338         ld_shlibs_F77=no
14339       fi
14340       ;;
14341
14342     cygwin* | mingw* | pw32*)
14343       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14344       # as there is no search path for DLLs.
14345       hardcode_libdir_flag_spec_F77='-L$libdir'
14346       allow_undefined_flag_F77=unsupported
14347       always_export_symbols_F77=no
14348       enable_shared_with_static_runtimes_F77=yes
14349       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14350
14351       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14352         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14353         # If the export-symbols file already is a .def file (1st line
14354         # is EXPORTS), use it as is; otherwise, prepend...
14355         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14356           cp $export_symbols $output_objdir/$soname.def;
14357         else
14358           echo EXPORTS > $output_objdir/$soname.def;
14359           cat $export_symbols >> $output_objdir/$soname.def;
14360         fi~
14361         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14362       else
14363         ld_shlibs_F77=no
14364       fi
14365       ;;
14366
14367     interix3*)
14368       hardcode_direct_F77=no
14369       hardcode_shlibpath_var_F77=no
14370       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14371       export_dynamic_flag_spec_F77='${wl}-E'
14372       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14373       # Instead, shared libraries are loaded at an image base (0x10000000 by
14374       # default) and relocated if they conflict, which is a slow very memory
14375       # consuming and fragmenting process.  To avoid this, we pick a random,
14376       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14377       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14378       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'
14379       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'
14380       ;;
14381
14382     linux*)
14383       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14384         tmp_addflag=
14385         case $cc_basename,$host_cpu in
14386         pgcc*)                          # Portland Group C compiler
14387           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'
14388           tmp_addflag=' $pic_flag'
14389           ;;
14390         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14391           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'
14392           tmp_addflag=' $pic_flag -Mnomain' ;;
14393         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14394           tmp_addflag=' -i_dynamic' ;;
14395         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14396           tmp_addflag=' -i_dynamic -nofor_main' ;;
14397         ifc* | ifort*)                  # Intel Fortran compiler
14398           tmp_addflag=' -nofor_main' ;;
14399         esac
14400         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14401
14402         if test $supports_anon_versioning = yes; then
14403           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14404   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14405   $echo "local: *; };" >> $output_objdir/$libname.ver~
14406           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14407         fi
14408       else
14409         ld_shlibs_F77=no
14410       fi
14411       ;;
14412
14413     netbsd*)
14414       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14415         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14416         wlarc=
14417       else
14418         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14420       fi
14421       ;;
14422
14423     solaris*)
14424       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14425         ld_shlibs_F77=no
14426         cat <<EOF 1>&2
14427
14428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14429 *** create shared libraries on Solaris systems.  Therefore, libtool
14430 *** is disabling shared libraries support.  We urge you to upgrade GNU
14431 *** binutils to release 2.9.1 or newer.  Another option is to modify
14432 *** your PATH or compiler configuration so that the native linker is
14433 *** used, and then restart.
14434
14435 EOF
14436       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14438         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14439       else
14440         ld_shlibs_F77=no
14441       fi
14442       ;;
14443
14444     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14445       case `$LD -v 2>&1` in
14446         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14447         ld_shlibs_F77=no
14448         cat <<_LT_EOF 1>&2
14449
14450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14451 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14452 *** is disabling shared libraries support.  We urge you to upgrade GNU
14453 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14454 *** your PATH or compiler configuration so that the native linker is
14455 *** used, and then restart.
14456
14457 _LT_EOF
14458         ;;
14459         *)
14460           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14461             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14462             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14463             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14464           else
14465             ld_shlibs_F77=no
14466           fi
14467         ;;
14468       esac
14469       ;;
14470
14471     sunos4*)
14472       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14473       wlarc=
14474       hardcode_direct_F77=yes
14475       hardcode_shlibpath_var_F77=no
14476       ;;
14477
14478     *)
14479       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14480         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14482       else
14483         ld_shlibs_F77=no
14484       fi
14485       ;;
14486     esac
14487
14488     if test "$ld_shlibs_F77" = no; then
14489       runpath_var=
14490       hardcode_libdir_flag_spec_F77=
14491       export_dynamic_flag_spec_F77=
14492       whole_archive_flag_spec_F77=
14493     fi
14494   else
14495     # PORTME fill in a description of your system's linker (not GNU ld)
14496     case $host_os in
14497     aix3*)
14498       allow_undefined_flag_F77=unsupported
14499       always_export_symbols_F77=yes
14500       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'
14501       # Note: this linker hardcodes the directories in LIBPATH if there
14502       # are no directories specified by -L.
14503       hardcode_minus_L_F77=yes
14504       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14505         # Neither direct hardcoding nor static linking is supported with a
14506         # broken collect2.
14507         hardcode_direct_F77=unsupported
14508       fi
14509       ;;
14510
14511     aix4* | aix5*)
14512       if test "$host_cpu" = ia64; then
14513         # On IA64, the linker does run time linking by default, so we don't
14514         # have to do anything special.
14515         aix_use_runtimelinking=no
14516         exp_sym_flag='-Bexport'
14517         no_entry_flag=""
14518       else
14519         # If we're using GNU nm, then we don't want the "-C" option.
14520         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14521         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14522           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'
14523         else
14524           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'
14525         fi
14526         aix_use_runtimelinking=no
14527
14528         # Test if we are trying to use run time linking or normal
14529         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14530         # need to do runtime linking.
14531         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14532           for ld_flag in $LDFLAGS; do
14533           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14534             aix_use_runtimelinking=yes
14535             break
14536           fi
14537           done
14538           ;;
14539         esac
14540
14541         exp_sym_flag='-bexport'
14542         no_entry_flag='-bnoentry'
14543       fi
14544
14545       # When large executables or shared objects are built, AIX ld can
14546       # have problems creating the table of contents.  If linking a library
14547       # or program results in "error TOC overflow" add -mminimal-toc to
14548       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14549       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14550
14551       archive_cmds_F77=''
14552       hardcode_direct_F77=yes
14553       hardcode_libdir_separator_F77=':'
14554       link_all_deplibs_F77=yes
14555
14556       if test "$GCC" = yes; then
14557         case $host_os in aix4.[012]|aix4.[012].*)
14558         # We only want to do this on AIX 4.2 and lower, the check
14559         # below for broken collect2 doesn't work under 4.3+
14560           collect2name=`${CC} -print-prog-name=collect2`
14561           if test -f "$collect2name" && \
14562            strings "$collect2name" | grep resolve_lib_name >/dev/null
14563           then
14564           # We have reworked collect2
14565           hardcode_direct_F77=yes
14566           else
14567           # We have old collect2
14568           hardcode_direct_F77=unsupported
14569           # It fails to find uninstalled libraries when the uninstalled
14570           # path is not listed in the libpath.  Setting hardcode_minus_L
14571           # to unsupported forces relinking
14572           hardcode_minus_L_F77=yes
14573           hardcode_libdir_flag_spec_F77='-L$libdir'
14574           hardcode_libdir_separator_F77=
14575           fi
14576           ;;
14577         esac
14578         shared_flag='-shared'
14579         if test "$aix_use_runtimelinking" = yes; then
14580           shared_flag="$shared_flag "'${wl}-G'
14581         fi
14582       else
14583         # not using gcc
14584         if test "$host_cpu" = ia64; then
14585         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14586         # chokes on -Wl,-G. The following line is correct:
14587           shared_flag='-G'
14588         else
14589           if test "$aix_use_runtimelinking" = yes; then
14590             shared_flag='${wl}-G'
14591           else
14592             shared_flag='${wl}-bM:SRE'
14593           fi
14594         fi
14595       fi
14596
14597       # It seems that -bexpall does not export symbols beginning with
14598       # underscore (_), so it is better to generate a list of symbols to export.
14599       always_export_symbols_F77=yes
14600       if test "$aix_use_runtimelinking" = yes; then
14601         # Warning - without using the other runtime loading flags (-brtl),
14602         # -berok will link without error, but may produce a broken library.
14603         allow_undefined_flag_F77='-berok'
14604        # Determine the default libpath from the value encoded in an empty executable.
14605        cat >conftest.$ac_ext <<_ACEOF
14606       program main
14607
14608       end
14609 _ACEOF
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (ac_try="$ac_link"
14612 case "(($ac_try" in
14613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614   *) ac_try_echo=$ac_try;;
14615 esac
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617   (eval "$ac_link") 2>conftest.er1
14618   ac_status=$?
14619   grep -v '^ *+' conftest.er1 >conftest.err
14620   rm -f conftest.er1
14621   cat conftest.err >&5
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } &&
14624          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14625   { (case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_try") 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; } &&
14634          { ac_try='test -s conftest$ac_exeext'
14635   { (case "(($ac_try" in
14636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637   *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640   (eval "$ac_try") 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644
14645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14646 }'`
14647 # Check for a 64-bit object if we didn't find anything.
14648 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; }
14649 }'`; fi
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654
14655 fi
14656
14657 rm -f core conftest.err conftest.$ac_objext \
14658       conftest$ac_exeext conftest.$ac_ext
14659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14660
14661        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14662         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"
14663        else
14664         if test "$host_cpu" = ia64; then
14665           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14666           allow_undefined_flag_F77="-z nodefs"
14667           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"
14668         else
14669          # Determine the default libpath from the value encoded in an empty executable.
14670          cat >conftest.$ac_ext <<_ACEOF
14671       program main
14672
14673       end
14674 _ACEOF
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (ac_try="$ac_link"
14677 case "(($ac_try" in
14678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679   *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682   (eval "$ac_link") 2>conftest.er1
14683   ac_status=$?
14684   grep -v '^ *+' conftest.er1 >conftest.err
14685   rm -f conftest.er1
14686   cat conftest.err >&5
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); } &&
14689          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14690   { (case "(($ac_try" in
14691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692   *) ac_try_echo=$ac_try;;
14693 esac
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695   (eval "$ac_try") 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); }; } &&
14699          { ac_try='test -s conftest$ac_exeext'
14700   { (case "(($ac_try" in
14701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702   *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705   (eval "$ac_try") 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; }; then
14709
14710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14711 }'`
14712 # Check for a 64-bit object if we didn't find anything.
14713 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; }
14714 }'`; fi
14715 else
14716   echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719
14720 fi
14721
14722 rm -f core conftest.err conftest.$ac_objext \
14723       conftest$ac_exeext conftest.$ac_ext
14724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14725
14726          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14727           # Warning - without using the other run time loading flags,
14728           # -berok will link without error, but may produce a broken library.
14729           no_undefined_flag_F77=' ${wl}-bernotok'
14730           allow_undefined_flag_F77=' ${wl}-berok'
14731           # Exported symbols can be pulled into shared objects from archives
14732           whole_archive_flag_spec_F77='$convenience'
14733           archive_cmds_need_lc_F77=yes
14734           # This is similar to how AIX traditionally builds its shared libraries.
14735           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'
14736         fi
14737       fi
14738       ;;
14739
14740     amigaos*)
14741       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)'
14742       hardcode_libdir_flag_spec_F77='-L$libdir'
14743       hardcode_minus_L_F77=yes
14744       # see comment about different semantics on the GNU ld section
14745       ld_shlibs_F77=no
14746       ;;
14747
14748     bsdi[45]*)
14749       export_dynamic_flag_spec_F77=-rdynamic
14750       ;;
14751
14752     cygwin* | mingw* | pw32*)
14753       # When not using gcc, we currently assume that we are using
14754       # Microsoft Visual C++.
14755       # hardcode_libdir_flag_spec is actually meaningless, as there is
14756       # no search path for DLLs.
14757       hardcode_libdir_flag_spec_F77=' '
14758       allow_undefined_flag_F77=unsupported
14759       # Tell ltmain to make .lib files, not .a files.
14760       libext=lib
14761       # Tell ltmain to make .dll files, not .so files.
14762       shrext_cmds=".dll"
14763       # FIXME: Setting linknames here is a bad hack.
14764       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14765       # The linker will automatically build a .lib file if we build a DLL.
14766       old_archive_From_new_cmds_F77='true'
14767       # FIXME: Should let the user specify the lib program.
14768       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14769       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14770       enable_shared_with_static_runtimes_F77=yes
14771       ;;
14772
14773     darwin* | rhapsody*)
14774       case $host_os in
14775         rhapsody* | darwin1.[012])
14776          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14777          ;;
14778        *) # Darwin 1.3 on
14779          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14780            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14781          else
14782            case ${MACOSX_DEPLOYMENT_TARGET} in
14783              10.[012])
14784                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14785                ;;
14786              10.*)
14787                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14788                ;;
14789            esac
14790          fi
14791          ;;
14792       esac
14793       archive_cmds_need_lc_F77=no
14794       hardcode_direct_F77=no
14795       hardcode_automatic_F77=yes
14796       hardcode_shlibpath_var_F77=unsupported
14797       whole_archive_flag_spec_F77=''
14798       link_all_deplibs_F77=yes
14799     if test "$GCC" = yes ; then
14800         output_verbose_link_cmd='echo'
14801         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14802       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14803       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14804       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}'
14805       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}'
14806     else
14807       case $cc_basename in
14808         xlc*)
14809          output_verbose_link_cmd='echo'
14810          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14811          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14812           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14813          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}'
14814           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}'
14815           ;;
14816        *)
14817          ld_shlibs_F77=no
14818           ;;
14819       esac
14820     fi
14821       ;;
14822
14823     dgux*)
14824       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14825       hardcode_libdir_flag_spec_F77='-L$libdir'
14826       hardcode_shlibpath_var_F77=no
14827       ;;
14828
14829     freebsd1*)
14830       ld_shlibs_F77=no
14831       ;;
14832
14833     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14834     # support.  Future versions do this automatically, but an explicit c++rt0.o
14835     # does not break anything, and helps significantly (at the cost of a little
14836     # extra space).
14837     freebsd2.2*)
14838       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14839       hardcode_libdir_flag_spec_F77='-R$libdir'
14840       hardcode_direct_F77=yes
14841       hardcode_shlibpath_var_F77=no
14842       ;;
14843
14844     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14845     freebsd2*)
14846       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14847       hardcode_direct_F77=yes
14848       hardcode_minus_L_F77=yes
14849       hardcode_shlibpath_var_F77=no
14850       ;;
14851
14852     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14853     freebsd* | kfreebsd*-gnu | dragonfly*)
14854       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14855       hardcode_libdir_flag_spec_F77='-R$libdir'
14856       hardcode_direct_F77=yes
14857       hardcode_shlibpath_var_F77=no
14858       ;;
14859
14860     hpux9*)
14861       if test "$GCC" = yes; then
14862         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'
14863       else
14864         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'
14865       fi
14866       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14867       hardcode_libdir_separator_F77=:
14868       hardcode_direct_F77=yes
14869
14870       # hardcode_minus_L: Not really in the search PATH,
14871       # but as the default location of the library.
14872       hardcode_minus_L_F77=yes
14873       export_dynamic_flag_spec_F77='${wl}-E'
14874       ;;
14875
14876     hpux10*)
14877       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14878         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14879       else
14880         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14881       fi
14882       if test "$with_gnu_ld" = no; then
14883         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14884         hardcode_libdir_separator_F77=:
14885
14886         hardcode_direct_F77=yes
14887         export_dynamic_flag_spec_F77='${wl}-E'
14888
14889         # hardcode_minus_L: Not really in the search PATH,
14890         # but as the default location of the library.
14891         hardcode_minus_L_F77=yes
14892       fi
14893       ;;
14894
14895     hpux11*)
14896       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14897         case $host_cpu in
14898         hppa*64*)
14899           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14900           ;;
14901         ia64*)
14902           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14903           ;;
14904         *)
14905           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14906           ;;
14907         esac
14908       else
14909         case $host_cpu in
14910         hppa*64*)
14911           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14912           ;;
14913         ia64*)
14914           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14915           ;;
14916         *)
14917           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14918           ;;
14919         esac
14920       fi
14921       if test "$with_gnu_ld" = no; then
14922         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14923         hardcode_libdir_separator_F77=:
14924
14925         case $host_cpu in
14926         hppa*64*|ia64*)
14927           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14928           hardcode_direct_F77=no
14929           hardcode_shlibpath_var_F77=no
14930           ;;
14931         *)
14932           hardcode_direct_F77=yes
14933           export_dynamic_flag_spec_F77='${wl}-E'
14934
14935           # hardcode_minus_L: Not really in the search PATH,
14936           # but as the default location of the library.
14937           hardcode_minus_L_F77=yes
14938           ;;
14939         esac
14940       fi
14941       ;;
14942
14943     irix5* | irix6* | nonstopux*)
14944       if test "$GCC" = yes; then
14945         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'
14946       else
14947         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'
14948         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14949       fi
14950       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14951       hardcode_libdir_separator_F77=:
14952       link_all_deplibs_F77=yes
14953       ;;
14954
14955     netbsd*)
14956       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14957         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14958       else
14959         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14960       fi
14961       hardcode_libdir_flag_spec_F77='-R$libdir'
14962       hardcode_direct_F77=yes
14963       hardcode_shlibpath_var_F77=no
14964       ;;
14965
14966     newsos6)
14967       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14968       hardcode_direct_F77=yes
14969       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14970       hardcode_libdir_separator_F77=:
14971       hardcode_shlibpath_var_F77=no
14972       ;;
14973
14974     openbsd*)
14975       hardcode_direct_F77=yes
14976       hardcode_shlibpath_var_F77=no
14977       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14978         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14979         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14980         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14981         export_dynamic_flag_spec_F77='${wl}-E'
14982       else
14983        case $host_os in
14984          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14985            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14986            hardcode_libdir_flag_spec_F77='-R$libdir'
14987            ;;
14988          *)
14989            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14990            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14991            ;;
14992        esac
14993       fi
14994       ;;
14995
14996     os2*)
14997       hardcode_libdir_flag_spec_F77='-L$libdir'
14998       hardcode_minus_L_F77=yes
14999       allow_undefined_flag_F77=unsupported
15000       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'
15001       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15002       ;;
15003
15004     osf3*)
15005       if test "$GCC" = yes; then
15006         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15007         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'
15008       else
15009         allow_undefined_flag_F77=' -expect_unresolved \*'
15010         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'
15011       fi
15012       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15013       hardcode_libdir_separator_F77=:
15014       ;;
15015
15016     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15017       if test "$GCC" = yes; then
15018         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15019         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'
15020         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15021       else
15022         allow_undefined_flag_F77=' -expect_unresolved \*'
15023         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'
15024         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~
15025         $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'
15026
15027         # Both c and cxx compiler support -rpath directly
15028         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15029       fi
15030       hardcode_libdir_separator_F77=:
15031       ;;
15032
15033     solaris*)
15034       no_undefined_flag_F77=' -z text'
15035       if test "$GCC" = yes; then
15036         wlarc='${wl}'
15037         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15039           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15040       else
15041         wlarc=''
15042         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15044         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15045       fi
15046       hardcode_libdir_flag_spec_F77='-R$libdir'
15047       hardcode_shlibpath_var_F77=no
15048       case $host_os in
15049       solaris2.[0-5] | solaris2.[0-5].*) ;;
15050       *)
15051         # The compiler driver will combine linker options so we
15052         # cannot just pass the convience library names through
15053         # without $wl, iff we do not link with $LD.
15054         # Luckily, gcc supports the same syntax we need for Sun Studio.
15055         # Supported since Solaris 2.6 (maybe 2.5.1?)
15056         case $wlarc in
15057         '')
15058           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15059         *)
15060           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' ;;
15061         esac ;;
15062       esac
15063       link_all_deplibs_F77=yes
15064       ;;
15065
15066     sunos4*)
15067       if test "x$host_vendor" = xsequent; then
15068         # Use $CC to link under sequent, because it throws in some extra .o
15069         # files that make .init and .fini sections work.
15070         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15071       else
15072         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15073       fi
15074       hardcode_libdir_flag_spec_F77='-L$libdir'
15075       hardcode_direct_F77=yes
15076       hardcode_minus_L_F77=yes
15077       hardcode_shlibpath_var_F77=no
15078       ;;
15079
15080     sysv4)
15081       case $host_vendor in
15082         sni)
15083           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084           hardcode_direct_F77=yes # is this really true???
15085         ;;
15086         siemens)
15087           ## LD is ld it makes a PLAMLIB
15088           ## CC just makes a GrossModule.
15089           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15090           reload_cmds_F77='$CC -r -o $output$reload_objs'
15091           hardcode_direct_F77=no
15092         ;;
15093         motorola)
15094           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15096         ;;
15097       esac
15098       runpath_var='LD_RUN_PATH'
15099       hardcode_shlibpath_var_F77=no
15100       ;;
15101
15102     sysv4.3*)
15103       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104       hardcode_shlibpath_var_F77=no
15105       export_dynamic_flag_spec_F77='-Bexport'
15106       ;;
15107
15108     sysv4*MP*)
15109       if test -d /usr/nec; then
15110         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15111         hardcode_shlibpath_var_F77=no
15112         runpath_var=LD_RUN_PATH
15113         hardcode_runpath_var=yes
15114         ld_shlibs_F77=yes
15115       fi
15116       ;;
15117
15118     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15119       no_undefined_flag_F77='${wl}-z,text'
15120       archive_cmds_need_lc_F77=no
15121       hardcode_shlibpath_var_F77=no
15122       runpath_var='LD_RUN_PATH'
15123
15124       if test "$GCC" = yes; then
15125         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15127       else
15128         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15130       fi
15131       ;;
15132
15133     sysv5* | sco3.2v5* | sco5v6*)
15134       # Note: We can NOT use -z defs as we might desire, because we do not
15135       # link with -lc, and that would cause any symbols used from libc to
15136       # always be unresolved, which means just about no library would
15137       # ever link correctly.  If we're not using GNU ld we use -z text
15138       # though, which does catch some bad symbols but isn't as heavy-handed
15139       # as -z defs.
15140       no_undefined_flag_F77='${wl}-z,text'
15141       allow_undefined_flag_F77='${wl}-z,nodefs'
15142       archive_cmds_need_lc_F77=no
15143       hardcode_shlibpath_var_F77=no
15144       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15145       hardcode_libdir_separator_F77=':'
15146       link_all_deplibs_F77=yes
15147       export_dynamic_flag_spec_F77='${wl}-Bexport'
15148       runpath_var='LD_RUN_PATH'
15149
15150       if test "$GCC" = yes; then
15151         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15152         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15153       else
15154         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15156       fi
15157       ;;
15158
15159     uts4*)
15160       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161       hardcode_libdir_flag_spec_F77='-L$libdir'
15162       hardcode_shlibpath_var_F77=no
15163       ;;
15164
15165     *)
15166       ld_shlibs_F77=no
15167       ;;
15168     esac
15169   fi
15170
15171 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15172 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15173 test "$ld_shlibs_F77" = no && can_build_shared=no
15174
15175 #
15176 # Do we need to explicitly link libc?
15177 #
15178 case "x$archive_cmds_need_lc_F77" in
15179 x|xyes)
15180   # Assume -lc should be added
15181   archive_cmds_need_lc_F77=yes
15182
15183   if test "$enable_shared" = yes && test "$GCC" = yes; then
15184     case $archive_cmds_F77 in
15185     *'~'*)
15186       # FIXME: we may have to deal with multi-command sequences.
15187       ;;
15188     '$CC '*)
15189       # Test whether the compiler implicitly links with -lc since on some
15190       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15191       # to ld, don't add -lc before -lgcc.
15192       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15193 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15194       $rm conftest*
15195       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15196
15197       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15198   (eval $ac_compile) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } 2>conftest.err; then
15202         soname=conftest
15203         lib=conftest
15204         libobjs=conftest.$ac_objext
15205         deplibs=
15206         wl=$lt_prog_compiler_wl_F77
15207         pic_flag=$lt_prog_compiler_pic_F77
15208         compiler_flags=-v
15209         linker_flags=-v
15210         verstring=
15211         output_objdir=.
15212         libname=conftest
15213         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15214         allow_undefined_flag_F77=
15215         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15216   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }
15220         then
15221           archive_cmds_need_lc_F77=no
15222         else
15223           archive_cmds_need_lc_F77=yes
15224         fi
15225         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15226       else
15227         cat conftest.err 1>&5
15228       fi
15229       $rm conftest*
15230       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15231 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15232       ;;
15233     esac
15234   fi
15235   ;;
15236 esac
15237
15238 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15239 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15240 library_names_spec=
15241 libname_spec='lib$name'
15242 soname_spec=
15243 shrext_cmds=".so"
15244 postinstall_cmds=
15245 postuninstall_cmds=
15246 finish_cmds=
15247 finish_eval=
15248 shlibpath_var=
15249 shlibpath_overrides_runpath=unknown
15250 version_type=none
15251 dynamic_linker="$host_os ld.so"
15252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15253 if test "$GCC" = yes; then
15254   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15256     # if the path contains ";" then we assume it to be the separator
15257     # otherwise default to the standard path separator (i.e. ":") - it is
15258     # assumed that no part of a normal pathname contains ";" but that should
15259     # okay in the real world where ";" in dirpaths is itself problematic.
15260     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15261   else
15262     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15263   fi
15264 else
15265   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15266 fi
15267 need_lib_prefix=unknown
15268 hardcode_into_libs=no
15269
15270 # when you set need_version to no, make sure it does not cause -set_version
15271 # flags to be left without arguments
15272 need_version=unknown
15273
15274 case $host_os in
15275 aix3*)
15276   version_type=linux
15277   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15278   shlibpath_var=LIBPATH
15279
15280   # AIX 3 has no versioning support, so we append a major version to the name.
15281   soname_spec='${libname}${release}${shared_ext}$major'
15282   ;;
15283
15284 aix4* | aix5*)
15285   version_type=linux
15286   need_lib_prefix=no
15287   need_version=no
15288   hardcode_into_libs=yes
15289   if test "$host_cpu" = ia64; then
15290     # AIX 5 supports IA64
15291     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15292     shlibpath_var=LD_LIBRARY_PATH
15293   else
15294     # With GCC up to 2.95.x, collect2 would create an import file
15295     # for dependence libraries.  The import file would start with
15296     # the line `#! .'.  This would cause the generated library to
15297     # depend on `.', always an invalid library.  This was fixed in
15298     # development snapshots of GCC prior to 3.0.
15299     case $host_os in
15300       aix4 | aix4.[01] | aix4.[01].*)
15301       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15302            echo ' yes '
15303            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15304         :
15305       else
15306         can_build_shared=no
15307       fi
15308       ;;
15309     esac
15310     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15311     # soname into executable. Probably we can add versioning support to
15312     # collect2, so additional links can be useful in future.
15313     if test "$aix_use_runtimelinking" = yes; then
15314       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15315       # instead of lib<name>.a to let people know that these are not
15316       # typical AIX shared libraries.
15317       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318     else
15319       # We preserve .a as extension for shared libraries through AIX4.2
15320       # and later when we are not doing run time linking.
15321       library_names_spec='${libname}${release}.a $libname.a'
15322       soname_spec='${libname}${release}${shared_ext}$major'
15323     fi
15324     shlibpath_var=LIBPATH
15325   fi
15326   ;;
15327
15328 amigaos*)
15329   library_names_spec='$libname.ixlibrary $libname.a'
15330   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15331   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'
15332   ;;
15333
15334 beos*)
15335   library_names_spec='${libname}${shared_ext}'
15336   dynamic_linker="$host_os ld.so"
15337   shlibpath_var=LIBRARY_PATH
15338   ;;
15339
15340 bsdi[45]*)
15341   version_type=linux
15342   need_version=no
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344   soname_spec='${libname}${release}${shared_ext}$major'
15345   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15346   shlibpath_var=LD_LIBRARY_PATH
15347   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15348   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15349   # the default ld.so.conf also contains /usr/contrib/lib and
15350   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15351   # libtool to hard-code these into programs
15352   ;;
15353
15354 cygwin* | mingw* | pw32*)
15355   version_type=windows
15356   shrext_cmds=".dll"
15357   need_version=no
15358   need_lib_prefix=no
15359
15360   case $GCC,$host_os in
15361   yes,cygwin* | yes,mingw* | yes,pw32*)
15362     library_names_spec='$libname.dll.a'
15363     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15364     postinstall_cmds='base_file=`basename \${file}`~
15365       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15366       dldir=$destdir/`dirname \$dlpath`~
15367       test -d \$dldir || mkdir -p \$dldir~
15368       $install_prog $dir/$dlname \$dldir/$dlname~
15369       chmod a+x \$dldir/$dlname'
15370     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15371       dlpath=$dir/\$dldll~
15372        $rm \$dlpath'
15373     shlibpath_overrides_runpath=yes
15374
15375     case $host_os in
15376     cygwin*)
15377       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15378       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15379       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15380       ;;
15381     mingw*)
15382       # MinGW DLLs use traditional 'lib' prefix
15383       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15384       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15385       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15386         # It is most probably a Windows format PATH printed by
15387         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15388         # path with ; separators, and with drive letters. We can handle the
15389         # drive letters (cygwin fileutils understands them), so leave them,
15390         # especially as we might pass files found there to a mingw objdump,
15391         # which wouldn't understand a cygwinified path. Ahh.
15392         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15393       else
15394         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15395       fi
15396       ;;
15397     pw32*)
15398       # pw32 DLLs use 'pw' prefix rather than 'lib'
15399       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15400       ;;
15401     esac
15402     ;;
15403
15404   linux*)
15405     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15406       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15407       supports_anon_versioning=no
15408       case `$LD -v 2>/dev/null` in
15409         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15410         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15411         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15412         *\ 2.11.*) ;; # other 2.11 versions
15413         *) supports_anon_versioning=yes ;;
15414       esac
15415       if test $supports_anon_versioning = yes; then
15416         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15418 $echo "local: *; };" >> $output_objdir/$libname.ver~
15419         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15420       else
15421         $archive_expsym_cmds="$archive_cmds"
15422       fi
15423     else
15424       ld_shlibs=no
15425     fi
15426     ;;
15427
15428   *)
15429     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15430     ;;
15431   esac
15432   dynamic_linker='Win32 ld.exe'
15433   # FIXME: first we should search . and the directory the executable is in
15434   shlibpath_var=PATH
15435   ;;
15436
15437 darwin* | rhapsody*)
15438   dynamic_linker="$host_os dyld"
15439   version_type=darwin
15440   need_lib_prefix=no
15441   need_version=no
15442   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15443   soname_spec='${libname}${release}${major}$shared_ext'
15444   shlibpath_overrides_runpath=yes
15445   shlibpath_var=DYLD_LIBRARY_PATH
15446   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15447   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15448   if test "$GCC" = yes; then
15449     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"`
15450   else
15451     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15452   fi
15453   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15454   ;;
15455
15456 dgux*)
15457   version_type=linux
15458   need_lib_prefix=no
15459   need_version=no
15460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15461   soname_spec='${libname}${release}${shared_ext}$major'
15462   shlibpath_var=LD_LIBRARY_PATH
15463   ;;
15464
15465 freebsd1*)
15466   dynamic_linker=no
15467   ;;
15468
15469 kfreebsd*-gnu)
15470   version_type=linux
15471   need_lib_prefix=no
15472   need_version=no
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15474   soname_spec='${libname}${release}${shared_ext}$major'
15475   shlibpath_var=LD_LIBRARY_PATH
15476   shlibpath_overrides_runpath=no
15477   hardcode_into_libs=yes
15478   dynamic_linker='GNU ld.so'
15479   ;;
15480
15481 freebsd* | dragonfly*)
15482   # DragonFly does not have aout.  When/if they implement a new
15483   # versioning mechanism, adjust this.
15484   if test -x /usr/bin/objformat; then
15485     objformat=`/usr/bin/objformat`
15486   else
15487     case $host_os in
15488     freebsd[123]*) objformat=aout ;;
15489     *) objformat=elf ;;
15490     esac
15491   fi
15492   # Handle Gentoo/FreeBSD as it was Linux
15493   case $host_vendor in
15494     gentoo)
15495       version_type=linux ;;
15496     *)
15497       version_type=freebsd-$objformat ;;
15498   esac
15499
15500   case $version_type in
15501     freebsd-elf*)
15502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15503       need_version=no
15504       need_lib_prefix=no
15505       ;;
15506     freebsd-*)
15507       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15508       need_version=yes
15509       ;;
15510     linux)
15511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15512       soname_spec='${libname}${release}${shared_ext}$major'
15513       need_lib_prefix=no
15514       need_version=no
15515       ;;
15516   esac
15517   shlibpath_var=LD_LIBRARY_PATH
15518   case $host_os in
15519   freebsd2*)
15520     shlibpath_overrides_runpath=yes
15521     ;;
15522   freebsd3.[01]* | freebsdelf3.[01]*)
15523     shlibpath_overrides_runpath=yes
15524     hardcode_into_libs=yes
15525     ;;
15526   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15527   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15528     shlibpath_overrides_runpath=no
15529     hardcode_into_libs=yes
15530     ;;
15531   freebsd*) # from 4.6 on
15532     shlibpath_overrides_runpath=yes
15533     hardcode_into_libs=yes
15534     ;;
15535   esac
15536   ;;
15537
15538 gnu*)
15539   version_type=linux
15540   need_lib_prefix=no
15541   need_version=no
15542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15543   soname_spec='${libname}${release}${shared_ext}$major'
15544   shlibpath_var=LD_LIBRARY_PATH
15545   hardcode_into_libs=yes
15546   ;;
15547
15548 hpux9* | hpux10* | hpux11*)
15549   # Give a soname corresponding to the major version so that dld.sl refuses to
15550   # link against other versions.
15551   version_type=sunos
15552   need_lib_prefix=no
15553   need_version=no
15554   case $host_cpu in
15555   ia64*)
15556     shrext_cmds='.so'
15557     hardcode_into_libs=yes
15558     dynamic_linker="$host_os dld.so"
15559     shlibpath_var=LD_LIBRARY_PATH
15560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562     soname_spec='${libname}${release}${shared_ext}$major'
15563     if test "X$HPUX_IA64_MODE" = X32; then
15564       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15565     else
15566       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15567     fi
15568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15569     ;;
15570    hppa*64*)
15571      shrext_cmds='.sl'
15572      hardcode_into_libs=yes
15573      dynamic_linker="$host_os dld.sl"
15574      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15575      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15579      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15580      ;;
15581    *)
15582     shrext_cmds='.sl'
15583     dynamic_linker="$host_os dld.sl"
15584     shlibpath_var=SHLIB_PATH
15585     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587     soname_spec='${libname}${release}${shared_ext}$major'
15588     ;;
15589   esac
15590   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15591   postinstall_cmds='chmod 555 $lib'
15592   ;;
15593
15594 interix3*)
15595   version_type=linux
15596   need_lib_prefix=no
15597   need_version=no
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15599   soname_spec='${libname}${release}${shared_ext}$major'
15600   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15601   shlibpath_var=LD_LIBRARY_PATH
15602   shlibpath_overrides_runpath=no
15603   hardcode_into_libs=yes
15604   ;;
15605
15606 irix5* | irix6* | nonstopux*)
15607   case $host_os in
15608     nonstopux*) version_type=nonstopux ;;
15609     *)
15610         if test "$lt_cv_prog_gnu_ld" = yes; then
15611                 version_type=linux
15612         else
15613                 version_type=irix
15614         fi ;;
15615   esac
15616   need_lib_prefix=no
15617   need_version=no
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15620   case $host_os in
15621   irix5* | nonstopux*)
15622     libsuff= shlibsuff=
15623     ;;
15624   *)
15625     case $LD in # libtool.m4 will add one of these switches to LD
15626     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15627       libsuff= shlibsuff= libmagic=32-bit;;
15628     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15629       libsuff=32 shlibsuff=N32 libmagic=N32;;
15630     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15631       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15632     *) libsuff= shlibsuff= libmagic=never-match;;
15633     esac
15634     ;;
15635   esac
15636   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15637   shlibpath_overrides_runpath=no
15638   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15639   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15640   hardcode_into_libs=yes
15641   ;;
15642
15643 # No shared lib support for Linux oldld, aout, or coff.
15644 linux*oldld* | linux*aout* | linux*coff*)
15645   dynamic_linker=no
15646   ;;
15647
15648 # This must be Linux ELF.
15649 linux*)
15650   version_type=linux
15651   need_lib_prefix=no
15652   need_version=no
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654   soname_spec='${libname}${release}${shared_ext}$major'
15655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=no
15658   # This implies no fast_install, which is unacceptable.
15659   # Some rework will be needed to allow for fast_install
15660   # before this can be enabled.
15661   hardcode_into_libs=yes
15662
15663   # Append ld.so.conf contents to the search path
15664   if test -f /etc/ld.so.conf; then
15665     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15666     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15667   fi
15668
15669   # We used to test for /lib/ld.so.1 and disable shared libraries on
15670   # powerpc, because MkLinux only supported shared libraries with the
15671   # GNU dynamic linker.  Since this was broken with cross compilers,
15672   # most powerpc-linux boxes support dynamic linking these days and
15673   # people can always --disable-shared, the test was removed, and we
15674   # assume the GNU/Linux dynamic linker is in use.
15675   dynamic_linker='GNU/Linux ld.so'
15676   ;;
15677
15678 knetbsd*-gnu)
15679   version_type=linux
15680   need_lib_prefix=no
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   shlibpath_overrides_runpath=no
15686   hardcode_into_libs=yes
15687   dynamic_linker='GNU ld.so'
15688   ;;
15689
15690 netbsd*)
15691   version_type=sunos
15692   need_lib_prefix=no
15693   need_version=no
15694   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15696     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15697     dynamic_linker='NetBSD (a.out) ld.so'
15698   else
15699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15700     soname_spec='${libname}${release}${shared_ext}$major'
15701     dynamic_linker='NetBSD ld.elf_so'
15702   fi
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=yes
15705   hardcode_into_libs=yes
15706   ;;
15707
15708 newsos6)
15709   version_type=linux
15710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711   shlibpath_var=LD_LIBRARY_PATH
15712   shlibpath_overrides_runpath=yes
15713   ;;
15714
15715 nto-qnx*)
15716   version_type=linux
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   soname_spec='${libname}${release}${shared_ext}$major'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   shlibpath_overrides_runpath=yes
15723   ;;
15724
15725 openbsd*)
15726   version_type=sunos
15727   sys_lib_dlsearch_path_spec="/usr/lib"
15728   need_lib_prefix=no
15729   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15730   case $host_os in
15731     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15732     *)                         need_version=no  ;;
15733   esac
15734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15736   shlibpath_var=LD_LIBRARY_PATH
15737   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15738     case $host_os in
15739       openbsd2.[89] | openbsd2.[89].*)
15740         shlibpath_overrides_runpath=no
15741         ;;
15742       *)
15743         shlibpath_overrides_runpath=yes
15744         ;;
15745       esac
15746   else
15747     shlibpath_overrides_runpath=yes
15748   fi
15749   ;;
15750
15751 os2*)
15752   libname_spec='$name'
15753   shrext_cmds=".dll"
15754   need_lib_prefix=no
15755   library_names_spec='$libname${shared_ext} $libname.a'
15756   dynamic_linker='OS/2 ld.exe'
15757   shlibpath_var=LIBPATH
15758   ;;
15759
15760 osf3* | osf4* | osf5*)
15761   version_type=osf
15762   need_lib_prefix=no
15763   need_version=no
15764   soname_spec='${libname}${release}${shared_ext}$major'
15765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766   shlibpath_var=LD_LIBRARY_PATH
15767   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15768   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15769   ;;
15770
15771 solaris*)
15772   version_type=linux
15773   need_lib_prefix=no
15774   need_version=no
15775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776   soname_spec='${libname}${release}${shared_ext}$major'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   shlibpath_overrides_runpath=yes
15779   hardcode_into_libs=yes
15780   # ldd complains unless libraries are executable
15781   postinstall_cmds='chmod +x $lib'
15782   ;;
15783
15784 sunos4*)
15785   version_type=sunos
15786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15787   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15788   shlibpath_var=LD_LIBRARY_PATH
15789   shlibpath_overrides_runpath=yes
15790   if test "$with_gnu_ld" = yes; then
15791     need_lib_prefix=no
15792   fi
15793   need_version=yes
15794   ;;
15795
15796 sysv4 | sysv4.3*)
15797   version_type=linux
15798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799   soname_spec='${libname}${release}${shared_ext}$major'
15800   shlibpath_var=LD_LIBRARY_PATH
15801   case $host_vendor in
15802     sni)
15803       shlibpath_overrides_runpath=no
15804       need_lib_prefix=no
15805       export_dynamic_flag_spec='${wl}-Blargedynsym'
15806       runpath_var=LD_RUN_PATH
15807       ;;
15808     siemens)
15809       need_lib_prefix=no
15810       ;;
15811     motorola)
15812       need_lib_prefix=no
15813       need_version=no
15814       shlibpath_overrides_runpath=no
15815       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15816       ;;
15817   esac
15818   ;;
15819
15820 sysv4*MP*)
15821   if test -d /usr/nec ;then
15822     version_type=linux
15823     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15824     soname_spec='$libname${shared_ext}.$major'
15825     shlibpath_var=LD_LIBRARY_PATH
15826   fi
15827   ;;
15828
15829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15830   version_type=freebsd-elf
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   shlibpath_var=LD_LIBRARY_PATH
15836   hardcode_into_libs=yes
15837   if test "$with_gnu_ld" = yes; then
15838     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15839     shlibpath_overrides_runpath=no
15840   else
15841     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15842     shlibpath_overrides_runpath=yes
15843     case $host_os in
15844       sco3.2v5*)
15845         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15846         ;;
15847     esac
15848   fi
15849   sys_lib_dlsearch_path_spec='/usr/lib'
15850   ;;
15851
15852 uts4*)
15853   version_type=linux
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855   soname_spec='${libname}${release}${shared_ext}$major'
15856   shlibpath_var=LD_LIBRARY_PATH
15857   ;;
15858
15859 *)
15860   dynamic_linker=no
15861   ;;
15862 esac
15863 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15864 echo "${ECHO_T}$dynamic_linker" >&6; }
15865 test "$dynamic_linker" = no && can_build_shared=no
15866
15867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15868 if test "$GCC" = yes; then
15869   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15870 fi
15871
15872 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15874 hardcode_action_F77=
15875 if test -n "$hardcode_libdir_flag_spec_F77" || \
15876    test -n "$runpath_var_F77" || \
15877    test "X$hardcode_automatic_F77" = "Xyes" ; then
15878
15879   # We can hardcode non-existant directories.
15880   if test "$hardcode_direct_F77" != no &&
15881      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15882      # have to relink, otherwise we might link with an installed library
15883      # when we should be linking with a yet-to-be-installed one
15884      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15885      test "$hardcode_minus_L_F77" != no; then
15886     # Linking always hardcodes the temporary library directory.
15887     hardcode_action_F77=relink
15888   else
15889     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15890     hardcode_action_F77=immediate
15891   fi
15892 else
15893   # We cannot hardcode anything, or else we can only hardcode existing
15894   # directories.
15895   hardcode_action_F77=unsupported
15896 fi
15897 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15898 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15899
15900 if test "$hardcode_action_F77" = relink; then
15901   # Fast installation is not supported
15902   enable_fast_install=no
15903 elif test "$shlibpath_overrides_runpath" = yes ||
15904      test "$enable_shared" = no; then
15905   # Fast installation is not necessary
15906   enable_fast_install=needless
15907 fi
15908
15909
15910 # The else clause should only fire when bootstrapping the
15911 # libtool distribution, otherwise you forgot to ship ltmain.sh
15912 # with your package, and you will get complaints that there are
15913 # no rules to generate ltmain.sh.
15914 if test -f "$ltmain"; then
15915   # See if we are running on zsh, and set the options which allow our commands through
15916   # without removal of \ escapes.
15917   if test -n "${ZSH_VERSION+set}" ; then
15918     setopt NO_GLOB_SUBST
15919   fi
15920   # Now quote all the things that may contain metacharacters while being
15921   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15922   # variables and quote the copies for generation of the libtool script.
15923   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15924     SED SHELL STRIP \
15925     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15926     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15927     deplibs_check_method reload_flag reload_cmds need_locks \
15928     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15929     lt_cv_sys_global_symbol_to_c_name_address \
15930     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15931     old_postinstall_cmds old_postuninstall_cmds \
15932     compiler_F77 \
15933     CC_F77 \
15934     LD_F77 \
15935     lt_prog_compiler_wl_F77 \
15936     lt_prog_compiler_pic_F77 \
15937     lt_prog_compiler_static_F77 \
15938     lt_prog_compiler_no_builtin_flag_F77 \
15939     export_dynamic_flag_spec_F77 \
15940     thread_safe_flag_spec_F77 \
15941     whole_archive_flag_spec_F77 \
15942     enable_shared_with_static_runtimes_F77 \
15943     old_archive_cmds_F77 \
15944     old_archive_from_new_cmds_F77 \
15945     predep_objects_F77 \
15946     postdep_objects_F77 \
15947     predeps_F77 \
15948     postdeps_F77 \
15949     compiler_lib_search_path_F77 \
15950     archive_cmds_F77 \
15951     archive_expsym_cmds_F77 \
15952     postinstall_cmds_F77 \
15953     postuninstall_cmds_F77 \
15954     old_archive_from_expsyms_cmds_F77 \
15955     allow_undefined_flag_F77 \
15956     no_undefined_flag_F77 \
15957     export_symbols_cmds_F77 \
15958     hardcode_libdir_flag_spec_F77 \
15959     hardcode_libdir_flag_spec_ld_F77 \
15960     hardcode_libdir_separator_F77 \
15961     hardcode_automatic_F77 \
15962     module_cmds_F77 \
15963     module_expsym_cmds_F77 \
15964     lt_cv_prog_compiler_c_o_F77 \
15965     exclude_expsyms_F77 \
15966     include_expsyms_F77; do
15967
15968     case $var in
15969     old_archive_cmds_F77 | \
15970     old_archive_from_new_cmds_F77 | \
15971     archive_cmds_F77 | \
15972     archive_expsym_cmds_F77 | \
15973     module_cmds_F77 | \
15974     module_expsym_cmds_F77 | \
15975     old_archive_from_expsyms_cmds_F77 | \
15976     export_symbols_cmds_F77 | \
15977     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15978     postinstall_cmds | postuninstall_cmds | \
15979     old_postinstall_cmds | old_postuninstall_cmds | \
15980     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15981       # Double-quote double-evaled strings.
15982       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15983       ;;
15984     *)
15985       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15986       ;;
15987     esac
15988   done
15989
15990   case $lt_echo in
15991   *'\$0 --fallback-echo"')
15992     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15993     ;;
15994   esac
15995
15996 cfgfile="$ofile"
15997
15998   cat <<__EOF__ >> "$cfgfile"
15999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16000
16001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16002
16003 # Shell to use when invoking shell scripts.
16004 SHELL=$lt_SHELL
16005
16006 # Whether or not to build shared libraries.
16007 build_libtool_libs=$enable_shared
16008
16009 # Whether or not to build static libraries.
16010 build_old_libs=$enable_static
16011
16012 # Whether or not to add -lc for building shared libraries.
16013 build_libtool_need_lc=$archive_cmds_need_lc_F77
16014
16015 # Whether or not to disallow shared libs when runtime libs are static
16016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16017
16018 # Whether or not to optimize for fast installation.
16019 fast_install=$enable_fast_install
16020
16021 # The host system.
16022 host_alias=$host_alias
16023 host=$host
16024 host_os=$host_os
16025
16026 # The build system.
16027 build_alias=$build_alias
16028 build=$build
16029 build_os=$build_os
16030
16031 # An echo program that does not interpret backslashes.
16032 echo=$lt_echo
16033
16034 # The archiver.
16035 AR=$lt_AR
16036 AR_FLAGS=$lt_AR_FLAGS
16037
16038 # A C compiler.
16039 LTCC=$lt_LTCC
16040
16041 # LTCC compiler flags.
16042 LTCFLAGS=$lt_LTCFLAGS
16043
16044 # A language-specific compiler.
16045 CC=$lt_compiler_F77
16046
16047 # Is the compiler the GNU C compiler?
16048 with_gcc=$GCC_F77
16049
16050 # An ERE matcher.
16051 EGREP=$lt_EGREP
16052
16053 # The linker used to build libraries.
16054 LD=$lt_LD_F77
16055
16056 # Whether we need hard or soft links.
16057 LN_S=$lt_LN_S
16058
16059 # A BSD-compatible nm program.
16060 NM=$lt_NM
16061
16062 # A symbol stripping program
16063 STRIP=$lt_STRIP
16064
16065 # Used to examine libraries when file_magic_cmd begins "file"
16066 MAGIC_CMD=$MAGIC_CMD
16067
16068 # Used on cygwin: DLL creation program.
16069 DLLTOOL="$DLLTOOL"
16070
16071 # Used on cygwin: object dumper.
16072 OBJDUMP="$OBJDUMP"
16073
16074 # Used on cygwin: assembler.
16075 AS="$AS"
16076
16077 # The name of the directory that contains temporary libtool files.
16078 objdir=$objdir
16079
16080 # How to create reloadable object files.
16081 reload_flag=$lt_reload_flag
16082 reload_cmds=$lt_reload_cmds
16083
16084 # How to pass a linker flag through the compiler.
16085 wl=$lt_lt_prog_compiler_wl_F77
16086
16087 # Object file suffix (normally "o").
16088 objext="$ac_objext"
16089
16090 # Old archive suffix (normally "a").
16091 libext="$libext"
16092
16093 # Shared library suffix (normally ".so").
16094 shrext_cmds='$shrext_cmds'
16095
16096 # Executable file suffix (normally "").
16097 exeext="$exeext"
16098
16099 # Additional compiler flags for building library objects.
16100 pic_flag=$lt_lt_prog_compiler_pic_F77
16101 pic_mode=$pic_mode
16102
16103 # What is the maximum length of a command?
16104 max_cmd_len=$lt_cv_sys_max_cmd_len
16105
16106 # Does compiler simultaneously support -c and -o options?
16107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16108
16109 # Must we lock files when doing compilation?
16110 need_locks=$lt_need_locks
16111
16112 # Do we need the lib prefix for modules?
16113 need_lib_prefix=$need_lib_prefix
16114
16115 # Do we need a version for libraries?
16116 need_version=$need_version
16117
16118 # Whether dlopen is supported.
16119 dlopen_support=$enable_dlopen
16120
16121 # Whether dlopen of programs is supported.
16122 dlopen_self=$enable_dlopen_self
16123
16124 # Whether dlopen of statically linked programs is supported.
16125 dlopen_self_static=$enable_dlopen_self_static
16126
16127 # Compiler flag to prevent dynamic linking.
16128 link_static_flag=$lt_lt_prog_compiler_static_F77
16129
16130 # Compiler flag to turn off builtin functions.
16131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16132
16133 # Compiler flag to allow reflexive dlopens.
16134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16135
16136 # Compiler flag to generate shared objects directly from archives.
16137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16138
16139 # Compiler flag to generate thread-safe objects.
16140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16141
16142 # Library versioning type.
16143 version_type=$version_type
16144
16145 # Format of library name prefix.
16146 libname_spec=$lt_libname_spec
16147
16148 # List of archive names.  First name is the real one, the rest are links.
16149 # The last name is the one that the linker finds with -lNAME.
16150 library_names_spec=$lt_library_names_spec
16151
16152 # The coded name of the library, if different from the real name.
16153 soname_spec=$lt_soname_spec
16154
16155 # Commands used to build and install an old-style archive.
16156 RANLIB=$lt_RANLIB
16157 old_archive_cmds=$lt_old_archive_cmds_F77
16158 old_postinstall_cmds=$lt_old_postinstall_cmds
16159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16160
16161 # Create an old-style archive from a shared archive.
16162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16163
16164 # Create a temporary old-style archive to link instead of a shared archive.
16165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16166
16167 # Commands used to build and install a shared archive.
16168 archive_cmds=$lt_archive_cmds_F77
16169 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16170 postinstall_cmds=$lt_postinstall_cmds
16171 postuninstall_cmds=$lt_postuninstall_cmds
16172
16173 # Commands used to build a loadable module (assumed same as above if empty)
16174 module_cmds=$lt_module_cmds_F77
16175 module_expsym_cmds=$lt_module_expsym_cmds_F77
16176
16177 # Commands to strip libraries.
16178 old_striplib=$lt_old_striplib
16179 striplib=$lt_striplib
16180
16181 # Dependencies to place before the objects being linked to create a
16182 # shared library.
16183 predep_objects=$lt_predep_objects_F77
16184
16185 # Dependencies to place after the objects being linked to create a
16186 # shared library.
16187 postdep_objects=$lt_postdep_objects_F77
16188
16189 # Dependencies to place before the objects being linked to create a
16190 # shared library.
16191 predeps=$lt_predeps_F77
16192
16193 # Dependencies to place after the objects being linked to create a
16194 # shared library.
16195 postdeps=$lt_postdeps_F77
16196
16197 # The library search path used internally by the compiler when linking
16198 # a shared library.
16199 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16200
16201 # Method to check whether dependent libraries are shared objects.
16202 deplibs_check_method=$lt_deplibs_check_method
16203
16204 # Command to use when deplibs_check_method == file_magic.
16205 file_magic_cmd=$lt_file_magic_cmd
16206
16207 # Flag that allows shared libraries with undefined symbols to be built.
16208 allow_undefined_flag=$lt_allow_undefined_flag_F77
16209
16210 # Flag that forces no undefined symbols.
16211 no_undefined_flag=$lt_no_undefined_flag_F77
16212
16213 # Commands used to finish a libtool library installation in a directory.
16214 finish_cmds=$lt_finish_cmds
16215
16216 # Same as above, but a single script fragment to be evaled but not shown.
16217 finish_eval=$lt_finish_eval
16218
16219 # Take the output of nm and produce a listing of raw symbols and C names.
16220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16221
16222 # Transform the output of nm in a proper C declaration
16223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16224
16225 # Transform the output of nm in a C name address pair
16226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16227
16228 # This is the shared library runtime path variable.
16229 runpath_var=$runpath_var
16230
16231 # This is the shared library path variable.
16232 shlibpath_var=$shlibpath_var
16233
16234 # Is shlibpath searched before the hard-coded library search path?
16235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16236
16237 # How to hardcode a shared library path into an executable.
16238 hardcode_action=$hardcode_action_F77
16239
16240 # Whether we should hardcode library paths into libraries.
16241 hardcode_into_libs=$hardcode_into_libs
16242
16243 # Flag to hardcode \$libdir into a binary during linking.
16244 # This must work even if \$libdir does not exist.
16245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16246
16247 # If ld is used when linking, flag to hardcode \$libdir into
16248 # a binary during linking. This must work even if \$libdir does
16249 # not exist.
16250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16251
16252 # Whether we need a single -rpath flag with a separated argument.
16253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16254
16255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16256 # resulting binary.
16257 hardcode_direct=$hardcode_direct_F77
16258
16259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16260 # resulting binary.
16261 hardcode_minus_L=$hardcode_minus_L_F77
16262
16263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16264 # the resulting binary.
16265 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16266
16267 # Set to yes if building a shared library automatically hardcodes DIR into the library
16268 # and all subsequent libraries and executables linked against it.
16269 hardcode_automatic=$hardcode_automatic_F77
16270
16271 # Variables whose values should be saved in libtool wrapper scripts and
16272 # restored at relink time.
16273 variables_saved_for_relink="$variables_saved_for_relink"
16274
16275 # Whether libtool must link a program against all its dependency libraries.
16276 link_all_deplibs=$link_all_deplibs_F77
16277
16278 # Compile-time system search path for libraries
16279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16280
16281 # Run-time system search path for libraries
16282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16283
16284 # Fix the shell variable \$srcfile for the compiler.
16285 fix_srcfile_path="$fix_srcfile_path_F77"
16286
16287 # Set to yes if exported symbols are required.
16288 always_export_symbols=$always_export_symbols_F77
16289
16290 # The commands to list exported symbols.
16291 export_symbols_cmds=$lt_export_symbols_cmds_F77
16292
16293 # The commands to extract the exported symbol list from a shared archive.
16294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16295
16296 # Symbols that should not be listed in the preloaded symbols.
16297 exclude_expsyms=$lt_exclude_expsyms_F77
16298
16299 # Symbols that must always be exported.
16300 include_expsyms=$lt_include_expsyms_F77
16301
16302 # ### END LIBTOOL TAG CONFIG: $tagname
16303
16304 __EOF__
16305
16306
16307 else
16308   # If there is no Makefile yet, we rely on a make rule to execute
16309   # `config.status --recheck' to rerun these tests and create the
16310   # libtool script then.
16311   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16312   if test -f "$ltmain_in"; then
16313     test -f Makefile && make "$ltmain"
16314   fi
16315 fi
16316
16317
16318 ac_ext=c
16319 ac_cpp='$CPP $CPPFLAGS'
16320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16323
16324 CC="$lt_save_CC"
16325
16326         else
16327           tagname=""
16328         fi
16329         ;;
16330
16331       GCJ)
16332         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16333
16334
16335 # Source file extension for Java test sources.
16336 ac_ext=java
16337
16338 # Object file extension for compiled Java test sources.
16339 objext=o
16340 objext_GCJ=$objext
16341
16342 # Code to be used in simple compile tests
16343 lt_simple_compile_test_code="class foo {}\n"
16344
16345 # Code to be used in simple link tests
16346 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16347
16348 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16349
16350 # If no C compiler was specified, use CC.
16351 LTCC=${LTCC-"$CC"}
16352
16353 # If no C compiler flags were specified, use CFLAGS.
16354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16355
16356 # Allow CC to be a program name with arguments.
16357 compiler=$CC
16358
16359
16360 # save warnings/boilerplate of simple test code
16361 ac_outfile=conftest.$ac_objext
16362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_compiler_boilerplate=`cat conftest.err`
16365 $rm conftest*
16366
16367 ac_outfile=conftest.$ac_objext
16368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16370 _lt_linker_boilerplate=`cat conftest.err`
16371 $rm conftest*
16372
16373
16374 # Allow CC to be a program name with arguments.
16375 lt_save_CC="$CC"
16376 CC=${GCJ-"gcj"}
16377 compiler=$CC
16378 compiler_GCJ=$CC
16379 for cc_temp in $compiler""; do
16380   case $cc_temp in
16381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16383     \-*) ;;
16384     *) break;;
16385   esac
16386 done
16387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16388
16389
16390 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16391 archive_cmds_need_lc_GCJ=no
16392
16393 old_archive_cmds_GCJ=$old_archive_cmds
16394
16395
16396 lt_prog_compiler_no_builtin_flag_GCJ=
16397
16398 if test "$GCC" = yes; then
16399   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16400
16401
16402 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16403 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16404 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16405   echo $ECHO_N "(cached) $ECHO_C" >&6
16406 else
16407   lt_cv_prog_compiler_rtti_exceptions=no
16408   ac_outfile=conftest.$ac_objext
16409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16410    lt_compiler_flag="-fno-rtti -fno-exceptions"
16411    # Insert the option either (1) after the last *FLAGS variable, or
16412    # (2) before a word containing "conftest.", or (3) at the end.
16413    # Note that $ac_compile itself does not contain backslashes and begins
16414    # with a dollar sign (not a hyphen), so the echo should work correctly.
16415    # The option is referenced via a variable to avoid confusing sed.
16416    lt_compile=`echo "$ac_compile" | $SED \
16417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16419    -e 's:$: $lt_compiler_flag:'`
16420    (eval echo "\"\$as_me:16420: $lt_compile\"" >&5)
16421    (eval "$lt_compile" 2>conftest.err)
16422    ac_status=$?
16423    cat conftest.err >&5
16424    echo "$as_me:16424: \$? = $ac_status" >&5
16425    if (exit $ac_status) && test -s "$ac_outfile"; then
16426      # The compiler can only warn and ignore the option if not recognized
16427      # So say no if there are warnings other than the usual output.
16428      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16429      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16430      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16431        lt_cv_prog_compiler_rtti_exceptions=yes
16432      fi
16433    fi
16434    $rm conftest*
16435
16436 fi
16437 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16438 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16439
16440 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16441     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16442 else
16443     :
16444 fi
16445
16446 fi
16447
16448 lt_prog_compiler_wl_GCJ=
16449 lt_prog_compiler_pic_GCJ=
16450 lt_prog_compiler_static_GCJ=
16451
16452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16454
16455   if test "$GCC" = yes; then
16456     lt_prog_compiler_wl_GCJ='-Wl,'
16457     lt_prog_compiler_static_GCJ='-static'
16458
16459     case $host_os in
16460       aix*)
16461       # All AIX code is PIC.
16462       if test "$host_cpu" = ia64; then
16463         # AIX 5 now supports IA64 processor
16464         lt_prog_compiler_static_GCJ='-Bstatic'
16465       fi
16466       ;;
16467
16468     amigaos*)
16469       # FIXME: we need at least 68020 code to build shared libraries, but
16470       # adding the `-m68020' flag to GCC prevents building anything better,
16471       # like `-m68040'.
16472       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16473       ;;
16474
16475     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16476       # PIC is the default for these OSes.
16477       ;;
16478
16479     mingw* | pw32* | os2*)
16480       # This hack is so that the source file can tell whether it is being
16481       # built for inclusion in a dll (and should export symbols for example).
16482       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16483       ;;
16484
16485     darwin* | rhapsody*)
16486       # PIC is the default on this platform
16487       # Common symbols not allowed in MH_DYLIB files
16488       lt_prog_compiler_pic_GCJ='-fno-common'
16489       ;;
16490
16491     interix3*)
16492       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16493       # Instead, we relocate shared libraries at runtime.
16494       ;;
16495
16496     msdosdjgpp*)
16497       # Just because we use GCC doesn't mean we suddenly get shared libraries
16498       # on systems that don't support them.
16499       lt_prog_compiler_can_build_shared_GCJ=no
16500       enable_shared=no
16501       ;;
16502
16503     sysv4*MP*)
16504       if test -d /usr/nec; then
16505         lt_prog_compiler_pic_GCJ=-Kconform_pic
16506       fi
16507       ;;
16508
16509     hpux*)
16510       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16511       # not for PA HP-UX.
16512       case $host_cpu in
16513       hppa*64*|ia64*)
16514         # +Z the default
16515         ;;
16516       *)
16517         lt_prog_compiler_pic_GCJ='-fPIC'
16518         ;;
16519       esac
16520       ;;
16521
16522     *)
16523       lt_prog_compiler_pic_GCJ='-fPIC'
16524       ;;
16525     esac
16526   else
16527     # PORTME Check for flag to pass linker flags through the system compiler.
16528     case $host_os in
16529     aix*)
16530       lt_prog_compiler_wl_GCJ='-Wl,'
16531       if test "$host_cpu" = ia64; then
16532         # AIX 5 now supports IA64 processor
16533         lt_prog_compiler_static_GCJ='-Bstatic'
16534       else
16535         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16536       fi
16537       ;;
16538       darwin*)
16539         # PIC is the default on this platform
16540         # Common symbols not allowed in MH_DYLIB files
16541        case $cc_basename in
16542          xlc*)
16543          lt_prog_compiler_pic_GCJ='-qnocommon'
16544          lt_prog_compiler_wl_GCJ='-Wl,'
16545          ;;
16546        esac
16547        ;;
16548
16549     mingw* | pw32* | os2*)
16550       # This hack is so that the source file can tell whether it is being
16551       # built for inclusion in a dll (and should export symbols for example).
16552       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16553       ;;
16554
16555     hpux9* | hpux10* | hpux11*)
16556       lt_prog_compiler_wl_GCJ='-Wl,'
16557       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16558       # not for PA HP-UX.
16559       case $host_cpu in
16560       hppa*64*|ia64*)
16561         # +Z the default
16562         ;;
16563       *)
16564         lt_prog_compiler_pic_GCJ='+Z'
16565         ;;
16566       esac
16567       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16568       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16569       ;;
16570
16571     irix5* | irix6* | nonstopux*)
16572       lt_prog_compiler_wl_GCJ='-Wl,'
16573       # PIC (with -KPIC) is the default.
16574       lt_prog_compiler_static_GCJ='-non_shared'
16575       ;;
16576
16577     newsos6)
16578       lt_prog_compiler_pic_GCJ='-KPIC'
16579       lt_prog_compiler_static_GCJ='-Bstatic'
16580       ;;
16581
16582     linux*)
16583       case $cc_basename in
16584       icc* | ecc*)
16585         lt_prog_compiler_wl_GCJ='-Wl,'
16586         lt_prog_compiler_pic_GCJ='-KPIC'
16587         lt_prog_compiler_static_GCJ='-static'
16588         ;;
16589       pgcc* | pgf77* | pgf90* | pgf95*)
16590         # Portland Group compilers (*not* the Pentium gcc compiler,
16591         # which looks to be a dead project)
16592         lt_prog_compiler_wl_GCJ='-Wl,'
16593         lt_prog_compiler_pic_GCJ='-fpic'
16594         lt_prog_compiler_static_GCJ='-Bstatic'
16595         ;;
16596       ccc*)
16597         lt_prog_compiler_wl_GCJ='-Wl,'
16598         # All Alpha code is PIC.
16599         lt_prog_compiler_static_GCJ='-non_shared'
16600         ;;
16601       esac
16602       ;;
16603
16604     osf3* | osf4* | osf5*)
16605       lt_prog_compiler_wl_GCJ='-Wl,'
16606       # All OSF/1 code is PIC.
16607       lt_prog_compiler_static_GCJ='-non_shared'
16608       ;;
16609
16610     solaris*)
16611       lt_prog_compiler_pic_GCJ='-KPIC'
16612       lt_prog_compiler_static_GCJ='-Bstatic'
16613       case $cc_basename in
16614       f77* | f90* | f95*)
16615         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16616       *)
16617         lt_prog_compiler_wl_GCJ='-Wl,';;
16618       esac
16619       ;;
16620
16621     sunos4*)
16622       lt_prog_compiler_wl_GCJ='-Qoption ld '
16623       lt_prog_compiler_pic_GCJ='-PIC'
16624       lt_prog_compiler_static_GCJ='-Bstatic'
16625       ;;
16626
16627     sysv4 | sysv4.2uw2* | sysv4.3*)
16628       lt_prog_compiler_wl_GCJ='-Wl,'
16629       lt_prog_compiler_pic_GCJ='-KPIC'
16630       lt_prog_compiler_static_GCJ='-Bstatic'
16631       ;;
16632
16633     sysv4*MP*)
16634       if test -d /usr/nec ;then
16635         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16636         lt_prog_compiler_static_GCJ='-Bstatic'
16637       fi
16638       ;;
16639
16640     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16641       lt_prog_compiler_wl_GCJ='-Wl,'
16642       lt_prog_compiler_pic_GCJ='-KPIC'
16643       lt_prog_compiler_static_GCJ='-Bstatic'
16644       ;;
16645
16646     unicos*)
16647       lt_prog_compiler_wl_GCJ='-Wl,'
16648       lt_prog_compiler_can_build_shared_GCJ=no
16649       ;;
16650
16651     uts4*)
16652       lt_prog_compiler_pic_GCJ='-pic'
16653       lt_prog_compiler_static_GCJ='-Bstatic'
16654       ;;
16655
16656     *)
16657       lt_prog_compiler_can_build_shared_GCJ=no
16658       ;;
16659     esac
16660   fi
16661
16662 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16663 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16664
16665 #
16666 # Check to make sure the PIC flag actually works.
16667 #
16668 if test -n "$lt_prog_compiler_pic_GCJ"; then
16669
16670 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16671 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16672 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16673   echo $ECHO_N "(cached) $ECHO_C" >&6
16674 else
16675   lt_prog_compiler_pic_works_GCJ=no
16676   ac_outfile=conftest.$ac_objext
16677    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16678    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16679    # Insert the option either (1) after the last *FLAGS variable, or
16680    # (2) before a word containing "conftest.", or (3) at the end.
16681    # Note that $ac_compile itself does not contain backslashes and begins
16682    # with a dollar sign (not a hyphen), so the echo should work correctly.
16683    # The option is referenced via a variable to avoid confusing sed.
16684    lt_compile=`echo "$ac_compile" | $SED \
16685    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16686    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16687    -e 's:$: $lt_compiler_flag:'`
16688    (eval echo "\"\$as_me:16688: $lt_compile\"" >&5)
16689    (eval "$lt_compile" 2>conftest.err)
16690    ac_status=$?
16691    cat conftest.err >&5
16692    echo "$as_me:16692: \$? = $ac_status" >&5
16693    if (exit $ac_status) && test -s "$ac_outfile"; then
16694      # The compiler can only warn and ignore the option if not recognized
16695      # So say no if there are warnings other than the usual output.
16696      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16697      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16698      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16699        lt_prog_compiler_pic_works_GCJ=yes
16700      fi
16701    fi
16702    $rm conftest*
16703
16704 fi
16705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16706 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16707
16708 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16709     case $lt_prog_compiler_pic_GCJ in
16710      "" | " "*) ;;
16711      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16712      esac
16713 else
16714     lt_prog_compiler_pic_GCJ=
16715      lt_prog_compiler_can_build_shared_GCJ=no
16716 fi
16717
16718 fi
16719 case $host_os in
16720   # For platforms which do not support PIC, -DPIC is meaningless:
16721   *djgpp*)
16722     lt_prog_compiler_pic_GCJ=
16723     ;;
16724   *)
16725     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16726     ;;
16727 esac
16728
16729 #
16730 # Check to make sure the static flag actually works.
16731 #
16732 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16733 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16734 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16735 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16736   echo $ECHO_N "(cached) $ECHO_C" >&6
16737 else
16738   lt_prog_compiler_static_works_GCJ=no
16739    save_LDFLAGS="$LDFLAGS"
16740    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16741    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16742    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16743      # The linker can only warn and ignore the option if not recognized
16744      # So say no if there are warnings
16745      if test -s conftest.err; then
16746        # Append any errors to the config.log.
16747        cat conftest.err 1>&5
16748        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16749        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16750        if diff conftest.exp conftest.er2 >/dev/null; then
16751          lt_prog_compiler_static_works_GCJ=yes
16752        fi
16753      else
16754        lt_prog_compiler_static_works_GCJ=yes
16755      fi
16756    fi
16757    $rm conftest*
16758    LDFLAGS="$save_LDFLAGS"
16759
16760 fi
16761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16762 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16763
16764 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16765     :
16766 else
16767     lt_prog_compiler_static_GCJ=
16768 fi
16769
16770
16771 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16772 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16773 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16774   echo $ECHO_N "(cached) $ECHO_C" >&6
16775 else
16776   lt_cv_prog_compiler_c_o_GCJ=no
16777    $rm -r conftest 2>/dev/null
16778    mkdir conftest
16779    cd conftest
16780    mkdir out
16781    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16782
16783    lt_compiler_flag="-o out/conftest2.$ac_objext"
16784    # Insert the option either (1) after the last *FLAGS variable, or
16785    # (2) before a word containing "conftest.", or (3) at the end.
16786    # Note that $ac_compile itself does not contain backslashes and begins
16787    # with a dollar sign (not a hyphen), so the echo should work correctly.
16788    lt_compile=`echo "$ac_compile" | $SED \
16789    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16790    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16791    -e 's:$: $lt_compiler_flag:'`
16792    (eval echo "\"\$as_me:16792: $lt_compile\"" >&5)
16793    (eval "$lt_compile" 2>out/conftest.err)
16794    ac_status=$?
16795    cat out/conftest.err >&5
16796    echo "$as_me:16796: \$? = $ac_status" >&5
16797    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16798    then
16799      # The compiler can only warn and ignore the option if not recognized
16800      # So say no if there are warnings
16801      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16802      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16803      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16804        lt_cv_prog_compiler_c_o_GCJ=yes
16805      fi
16806    fi
16807    chmod u+w . 2>&5
16808    $rm conftest*
16809    # SGI C++ compiler will create directory out/ii_files/ for
16810    # template instantiation
16811    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16812    $rm out/* && rmdir out
16813    cd ..
16814    rmdir conftest
16815    $rm conftest*
16816
16817 fi
16818 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16819 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16820
16821
16822 hard_links="nottested"
16823 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16824   # do not overwrite the value of need_locks provided by the user
16825   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16826 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16827   hard_links=yes
16828   $rm conftest*
16829   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16830   touch conftest.a
16831   ln conftest.a conftest.b 2>&5 || hard_links=no
16832   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16833   { echo "$as_me:$LINENO: result: $hard_links" >&5
16834 echo "${ECHO_T}$hard_links" >&6; }
16835   if test "$hard_links" = no; then
16836     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16837 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16838     need_locks=warn
16839   fi
16840 else
16841   need_locks=no
16842 fi
16843
16844 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16846
16847   runpath_var=
16848   allow_undefined_flag_GCJ=
16849   enable_shared_with_static_runtimes_GCJ=no
16850   archive_cmds_GCJ=
16851   archive_expsym_cmds_GCJ=
16852   old_archive_From_new_cmds_GCJ=
16853   old_archive_from_expsyms_cmds_GCJ=
16854   export_dynamic_flag_spec_GCJ=
16855   whole_archive_flag_spec_GCJ=
16856   thread_safe_flag_spec_GCJ=
16857   hardcode_libdir_flag_spec_GCJ=
16858   hardcode_libdir_flag_spec_ld_GCJ=
16859   hardcode_libdir_separator_GCJ=
16860   hardcode_direct_GCJ=no
16861   hardcode_minus_L_GCJ=no
16862   hardcode_shlibpath_var_GCJ=unsupported
16863   link_all_deplibs_GCJ=unknown
16864   hardcode_automatic_GCJ=no
16865   module_cmds_GCJ=
16866   module_expsym_cmds_GCJ=
16867   always_export_symbols_GCJ=no
16868   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16869   # include_expsyms should be a list of space-separated symbols to be *always*
16870   # included in the symbol list
16871   include_expsyms_GCJ=
16872   # exclude_expsyms can be an extended regexp of symbols to exclude
16873   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16874   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16875   # as well as any symbol that contains `d'.
16876   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16877   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16878   # platforms (ab)use it in PIC code, but their linkers get confused if
16879   # the symbol is explicitly referenced.  Since portable code cannot
16880   # rely on this symbol name, it's probably fine to never include it in
16881   # preloaded symbol tables.
16882   extract_expsyms_cmds=
16883   # Just being paranoid about ensuring that cc_basename is set.
16884   for cc_temp in $compiler""; do
16885   case $cc_temp in
16886     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16887     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16888     \-*) ;;
16889     *) break;;
16890   esac
16891 done
16892 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16893
16894   case $host_os in
16895   cygwin* | mingw* | pw32*)
16896     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16897     # When not using gcc, we currently assume that we are using
16898     # Microsoft Visual C++.
16899     if test "$GCC" != yes; then
16900       with_gnu_ld=no
16901     fi
16902     ;;
16903   interix*)
16904     # we just hope/assume this is gcc and not c89 (= MSVC++)
16905     with_gnu_ld=yes
16906     ;;
16907   openbsd*)
16908     with_gnu_ld=no
16909     ;;
16910   esac
16911
16912   ld_shlibs_GCJ=yes
16913   if test "$with_gnu_ld" = yes; then
16914     # If archive_cmds runs LD, not CC, wlarc should be empty
16915     wlarc='${wl}'
16916
16917     # Set some defaults for GNU ld with shared library support. These
16918     # are reset later if shared libraries are not supported. Putting them
16919     # here allows them to be overridden if necessary.
16920     runpath_var=LD_RUN_PATH
16921     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16922     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16923     # ancient GNU ld didn't support --whole-archive et. al.
16924     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16925         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16926       else
16927         whole_archive_flag_spec_GCJ=
16928     fi
16929     supports_anon_versioning=no
16930     case `$LD -v 2>/dev/null` in
16931       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16932       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16933       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16934       *\ 2.11.*) ;; # other 2.11 versions
16935       *) supports_anon_versioning=yes ;;
16936     esac
16937
16938     # See if GNU ld supports shared libraries.
16939     case $host_os in
16940     aix3* | aix4* | aix5*)
16941       # On AIX/PPC, the GNU linker is very broken
16942       if test "$host_cpu" != ia64; then
16943         ld_shlibs_GCJ=no
16944         cat <<EOF 1>&2
16945
16946 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16947 *** to be unable to reliably create shared libraries on AIX.
16948 *** Therefore, libtool is disabling shared libraries support.  If you
16949 *** really care for shared libraries, you may want to modify your PATH
16950 *** so that a non-GNU linker is found, and then restart.
16951
16952 EOF
16953       fi
16954       ;;
16955
16956     amigaos*)
16957       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)'
16958       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16959       hardcode_minus_L_GCJ=yes
16960
16961       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16962       # that the semantics of dynamic libraries on AmigaOS, at least up
16963       # to version 4, is to share data among multiple programs linked
16964       # with the same dynamic library.  Since this doesn't match the
16965       # behavior of shared libraries on other platforms, we can't use
16966       # them.
16967       ld_shlibs_GCJ=no
16968       ;;
16969
16970     beos*)
16971       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16972         allow_undefined_flag_GCJ=unsupported
16973         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16974         # support --undefined.  This deserves some investigation.  FIXME
16975         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16976       else
16977         ld_shlibs_GCJ=no
16978       fi
16979       ;;
16980
16981     cygwin* | mingw* | pw32*)
16982       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16983       # as there is no search path for DLLs.
16984       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985       allow_undefined_flag_GCJ=unsupported
16986       always_export_symbols_GCJ=no
16987       enable_shared_with_static_runtimes_GCJ=yes
16988       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16989
16990       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16991         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16992         # If the export-symbols file already is a .def file (1st line
16993         # is EXPORTS), use it as is; otherwise, prepend...
16994         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16995           cp $export_symbols $output_objdir/$soname.def;
16996         else
16997           echo EXPORTS > $output_objdir/$soname.def;
16998           cat $export_symbols >> $output_objdir/$soname.def;
16999         fi~
17000         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17001       else
17002         ld_shlibs_GCJ=no
17003       fi
17004       ;;
17005
17006     interix3*)
17007       hardcode_direct_GCJ=no
17008       hardcode_shlibpath_var_GCJ=no
17009       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17010       export_dynamic_flag_spec_GCJ='${wl}-E'
17011       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17012       # Instead, shared libraries are loaded at an image base (0x10000000 by
17013       # default) and relocated if they conflict, which is a slow very memory
17014       # consuming and fragmenting process.  To avoid this, we pick a random,
17015       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17016       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17017       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'
17018       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'
17019       ;;
17020
17021     linux*)
17022       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17023         tmp_addflag=
17024         case $cc_basename,$host_cpu in
17025         pgcc*)                          # Portland Group C compiler
17026           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'
17027           tmp_addflag=' $pic_flag'
17028           ;;
17029         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17030           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'
17031           tmp_addflag=' $pic_flag -Mnomain' ;;
17032         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17033           tmp_addflag=' -i_dynamic' ;;
17034         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17035           tmp_addflag=' -i_dynamic -nofor_main' ;;
17036         ifc* | ifort*)                  # Intel Fortran compiler
17037           tmp_addflag=' -nofor_main' ;;
17038         esac
17039         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17040
17041         if test $supports_anon_versioning = yes; then
17042           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17043   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17044   $echo "local: *; };" >> $output_objdir/$libname.ver~
17045           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17046         fi
17047       else
17048         ld_shlibs_GCJ=no
17049       fi
17050       ;;
17051
17052     netbsd*)
17053       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17054         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17055         wlarc=
17056       else
17057         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17058         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17059       fi
17060       ;;
17061
17062     solaris*)
17063       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17064         ld_shlibs_GCJ=no
17065         cat <<EOF 1>&2
17066
17067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17068 *** create shared libraries on Solaris systems.  Therefore, libtool
17069 *** is disabling shared libraries support.  We urge you to upgrade GNU
17070 *** binutils to release 2.9.1 or newer.  Another option is to modify
17071 *** your PATH or compiler configuration so that the native linker is
17072 *** used, and then restart.
17073
17074 EOF
17075       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17076         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17078       else
17079         ld_shlibs_GCJ=no
17080       fi
17081       ;;
17082
17083     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17084       case `$LD -v 2>&1` in
17085         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17086         ld_shlibs_GCJ=no
17087         cat <<_LT_EOF 1>&2
17088
17089 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17090 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17091 *** is disabling shared libraries support.  We urge you to upgrade GNU
17092 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17093 *** your PATH or compiler configuration so that the native linker is
17094 *** used, and then restart.
17095
17096 _LT_EOF
17097         ;;
17098         *)
17099           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17100             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17101             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17102             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17103           else
17104             ld_shlibs_GCJ=no
17105           fi
17106         ;;
17107       esac
17108       ;;
17109
17110     sunos4*)
17111       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17112       wlarc=
17113       hardcode_direct_GCJ=yes
17114       hardcode_shlibpath_var_GCJ=no
17115       ;;
17116
17117     *)
17118       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17120         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17121       else
17122         ld_shlibs_GCJ=no
17123       fi
17124       ;;
17125     esac
17126
17127     if test "$ld_shlibs_GCJ" = no; then
17128       runpath_var=
17129       hardcode_libdir_flag_spec_GCJ=
17130       export_dynamic_flag_spec_GCJ=
17131       whole_archive_flag_spec_GCJ=
17132     fi
17133   else
17134     # PORTME fill in a description of your system's linker (not GNU ld)
17135     case $host_os in
17136     aix3*)
17137       allow_undefined_flag_GCJ=unsupported
17138       always_export_symbols_GCJ=yes
17139       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'
17140       # Note: this linker hardcodes the directories in LIBPATH if there
17141       # are no directories specified by -L.
17142       hardcode_minus_L_GCJ=yes
17143       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17144         # Neither direct hardcoding nor static linking is supported with a
17145         # broken collect2.
17146         hardcode_direct_GCJ=unsupported
17147       fi
17148       ;;
17149
17150     aix4* | aix5*)
17151       if test "$host_cpu" = ia64; then
17152         # On IA64, the linker does run time linking by default, so we don't
17153         # have to do anything special.
17154         aix_use_runtimelinking=no
17155         exp_sym_flag='-Bexport'
17156         no_entry_flag=""
17157       else
17158         # If we're using GNU nm, then we don't want the "-C" option.
17159         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17160         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17161           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'
17162         else
17163           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'
17164         fi
17165         aix_use_runtimelinking=no
17166
17167         # Test if we are trying to use run time linking or normal
17168         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17169         # need to do runtime linking.
17170         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17171           for ld_flag in $LDFLAGS; do
17172           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17173             aix_use_runtimelinking=yes
17174             break
17175           fi
17176           done
17177           ;;
17178         esac
17179
17180         exp_sym_flag='-bexport'
17181         no_entry_flag='-bnoentry'
17182       fi
17183
17184       # When large executables or shared objects are built, AIX ld can
17185       # have problems creating the table of contents.  If linking a library
17186       # or program results in "error TOC overflow" add -mminimal-toc to
17187       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17188       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17189
17190       archive_cmds_GCJ=''
17191       hardcode_direct_GCJ=yes
17192       hardcode_libdir_separator_GCJ=':'
17193       link_all_deplibs_GCJ=yes
17194
17195       if test "$GCC" = yes; then
17196         case $host_os in aix4.[012]|aix4.[012].*)
17197         # We only want to do this on AIX 4.2 and lower, the check
17198         # below for broken collect2 doesn't work under 4.3+
17199           collect2name=`${CC} -print-prog-name=collect2`
17200           if test -f "$collect2name" && \
17201            strings "$collect2name" | grep resolve_lib_name >/dev/null
17202           then
17203           # We have reworked collect2
17204           hardcode_direct_GCJ=yes
17205           else
17206           # We have old collect2
17207           hardcode_direct_GCJ=unsupported
17208           # It fails to find uninstalled libraries when the uninstalled
17209           # path is not listed in the libpath.  Setting hardcode_minus_L
17210           # to unsupported forces relinking
17211           hardcode_minus_L_GCJ=yes
17212           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17213           hardcode_libdir_separator_GCJ=
17214           fi
17215           ;;
17216         esac
17217         shared_flag='-shared'
17218         if test "$aix_use_runtimelinking" = yes; then
17219           shared_flag="$shared_flag "'${wl}-G'
17220         fi
17221       else
17222         # not using gcc
17223         if test "$host_cpu" = ia64; then
17224         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17225         # chokes on -Wl,-G. The following line is correct:
17226           shared_flag='-G'
17227         else
17228           if test "$aix_use_runtimelinking" = yes; then
17229             shared_flag='${wl}-G'
17230           else
17231             shared_flag='${wl}-bM:SRE'
17232           fi
17233         fi
17234       fi
17235
17236       # It seems that -bexpall does not export symbols beginning with
17237       # underscore (_), so it is better to generate a list of symbols to export.
17238       always_export_symbols_GCJ=yes
17239       if test "$aix_use_runtimelinking" = yes; then
17240         # Warning - without using the other runtime loading flags (-brtl),
17241         # -berok will link without error, but may produce a broken library.
17242         allow_undefined_flag_GCJ='-berok'
17243        # Determine the default libpath from the value encoded in an empty executable.
17244        cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250
17251 int
17252 main ()
17253 {
17254
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263   *) ac_try_echo=$ac_try;;
17264 esac
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266   (eval "$ac_link") 2>conftest.er1
17267   ac_status=$?
17268   grep -v '^ *+' conftest.er1 >conftest.err
17269   rm -f conftest.er1
17270   cat conftest.err >&5
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); } &&
17273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17274   { (case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_try") 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); }; } &&
17283          { ac_try='test -s conftest$ac_exeext'
17284   { (case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289   (eval "$ac_try") 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; }; then
17293
17294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17295 }'`
17296 # Check for a 64-bit object if we didn't find anything.
17297 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; }
17298 }'`; fi
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303
17304 fi
17305
17306 rm -f core conftest.err conftest.$ac_objext \
17307       conftest$ac_exeext conftest.$ac_ext
17308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17309
17310        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17311         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"
17312        else
17313         if test "$host_cpu" = ia64; then
17314           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17315           allow_undefined_flag_GCJ="-z nodefs"
17316           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"
17317         else
17318          # Determine the default libpath from the value encoded in an empty executable.
17319          cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h.  */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h.  */
17325
17326 int
17327 main ()
17328 {
17329
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341   (eval "$ac_link") 2>conftest.er1
17342   ac_status=$?
17343   grep -v '^ *+' conftest.er1 >conftest.err
17344   rm -f conftest.er1
17345   cat conftest.err >&5
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); } &&
17348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349   { (case "(($ac_try" in
17350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351   *) ac_try_echo=$ac_try;;
17352 esac
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354   (eval "$ac_try") 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; } &&
17358          { ac_try='test -s conftest$ac_exeext'
17359   { (case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_try") 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; }; then
17368
17369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17370 }'`
17371 # Check for a 64-bit object if we didn't find anything.
17372 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; }
17373 }'`; fi
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext \
17382       conftest$ac_exeext conftest.$ac_ext
17383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17384
17385          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17386           # Warning - without using the other run time loading flags,
17387           # -berok will link without error, but may produce a broken library.
17388           no_undefined_flag_GCJ=' ${wl}-bernotok'
17389           allow_undefined_flag_GCJ=' ${wl}-berok'
17390           # Exported symbols can be pulled into shared objects from archives
17391           whole_archive_flag_spec_GCJ='$convenience'
17392           archive_cmds_need_lc_GCJ=yes
17393           # This is similar to how AIX traditionally builds its shared libraries.
17394           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'
17395         fi
17396       fi
17397       ;;
17398
17399     amigaos*)
17400       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)'
17401       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17402       hardcode_minus_L_GCJ=yes
17403       # see comment about different semantics on the GNU ld section
17404       ld_shlibs_GCJ=no
17405       ;;
17406
17407     bsdi[45]*)
17408       export_dynamic_flag_spec_GCJ=-rdynamic
17409       ;;
17410
17411     cygwin* | mingw* | pw32*)
17412       # When not using gcc, we currently assume that we are using
17413       # Microsoft Visual C++.
17414       # hardcode_libdir_flag_spec is actually meaningless, as there is
17415       # no search path for DLLs.
17416       hardcode_libdir_flag_spec_GCJ=' '
17417       allow_undefined_flag_GCJ=unsupported
17418       # Tell ltmain to make .lib files, not .a files.
17419       libext=lib
17420       # Tell ltmain to make .dll files, not .so files.
17421       shrext_cmds=".dll"
17422       # FIXME: Setting linknames here is a bad hack.
17423       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17424       # The linker will automatically build a .lib file if we build a DLL.
17425       old_archive_From_new_cmds_GCJ='true'
17426       # FIXME: Should let the user specify the lib program.
17427       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17428       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17429       enable_shared_with_static_runtimes_GCJ=yes
17430       ;;
17431
17432     darwin* | rhapsody*)
17433       case $host_os in
17434         rhapsody* | darwin1.[012])
17435          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17436          ;;
17437        *) # Darwin 1.3 on
17438          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17439            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17440          else
17441            case ${MACOSX_DEPLOYMENT_TARGET} in
17442              10.[012])
17443                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17444                ;;
17445              10.*)
17446                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17447                ;;
17448            esac
17449          fi
17450          ;;
17451       esac
17452       archive_cmds_need_lc_GCJ=no
17453       hardcode_direct_GCJ=no
17454       hardcode_automatic_GCJ=yes
17455       hardcode_shlibpath_var_GCJ=unsupported
17456       whole_archive_flag_spec_GCJ=''
17457       link_all_deplibs_GCJ=yes
17458     if test "$GCC" = yes ; then
17459         output_verbose_link_cmd='echo'
17460         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17461       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17462       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17463       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}'
17464       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}'
17465     else
17466       case $cc_basename in
17467         xlc*)
17468          output_verbose_link_cmd='echo'
17469          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17470          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17471           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17472          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}'
17473           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}'
17474           ;;
17475        *)
17476          ld_shlibs_GCJ=no
17477           ;;
17478       esac
17479     fi
17480       ;;
17481
17482     dgux*)
17483       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17484       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17485       hardcode_shlibpath_var_GCJ=no
17486       ;;
17487
17488     freebsd1*)
17489       ld_shlibs_GCJ=no
17490       ;;
17491
17492     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17493     # support.  Future versions do this automatically, but an explicit c++rt0.o
17494     # does not break anything, and helps significantly (at the cost of a little
17495     # extra space).
17496     freebsd2.2*)
17497       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17498       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17499       hardcode_direct_GCJ=yes
17500       hardcode_shlibpath_var_GCJ=no
17501       ;;
17502
17503     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17504     freebsd2*)
17505       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17506       hardcode_direct_GCJ=yes
17507       hardcode_minus_L_GCJ=yes
17508       hardcode_shlibpath_var_GCJ=no
17509       ;;
17510
17511     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17512     freebsd* | kfreebsd*-gnu | dragonfly*)
17513       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17514       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17515       hardcode_direct_GCJ=yes
17516       hardcode_shlibpath_var_GCJ=no
17517       ;;
17518
17519     hpux9*)
17520       if test "$GCC" = yes; then
17521         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'
17522       else
17523         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'
17524       fi
17525       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17526       hardcode_libdir_separator_GCJ=:
17527       hardcode_direct_GCJ=yes
17528
17529       # hardcode_minus_L: Not really in the search PATH,
17530       # but as the default location of the library.
17531       hardcode_minus_L_GCJ=yes
17532       export_dynamic_flag_spec_GCJ='${wl}-E'
17533       ;;
17534
17535     hpux10*)
17536       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17537         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17538       else
17539         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17540       fi
17541       if test "$with_gnu_ld" = no; then
17542         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17543         hardcode_libdir_separator_GCJ=:
17544
17545         hardcode_direct_GCJ=yes
17546         export_dynamic_flag_spec_GCJ='${wl}-E'
17547
17548         # hardcode_minus_L: Not really in the search PATH,
17549         # but as the default location of the library.
17550         hardcode_minus_L_GCJ=yes
17551       fi
17552       ;;
17553
17554     hpux11*)
17555       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17556         case $host_cpu in
17557         hppa*64*)
17558           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17559           ;;
17560         ia64*)
17561           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17562           ;;
17563         *)
17564           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17565           ;;
17566         esac
17567       else
17568         case $host_cpu in
17569         hppa*64*)
17570           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17571           ;;
17572         ia64*)
17573           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17574           ;;
17575         *)
17576           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17577           ;;
17578         esac
17579       fi
17580       if test "$with_gnu_ld" = no; then
17581         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17582         hardcode_libdir_separator_GCJ=:
17583
17584         case $host_cpu in
17585         hppa*64*|ia64*)
17586           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17587           hardcode_direct_GCJ=no
17588           hardcode_shlibpath_var_GCJ=no
17589           ;;
17590         *)
17591           hardcode_direct_GCJ=yes
17592           export_dynamic_flag_spec_GCJ='${wl}-E'
17593
17594           # hardcode_minus_L: Not really in the search PATH,
17595           # but as the default location of the library.
17596           hardcode_minus_L_GCJ=yes
17597           ;;
17598         esac
17599       fi
17600       ;;
17601
17602     irix5* | irix6* | nonstopux*)
17603       if test "$GCC" = yes; then
17604         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'
17605       else
17606         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'
17607         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17608       fi
17609       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17610       hardcode_libdir_separator_GCJ=:
17611       link_all_deplibs_GCJ=yes
17612       ;;
17613
17614     netbsd*)
17615       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17616         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17617       else
17618         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17619       fi
17620       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17621       hardcode_direct_GCJ=yes
17622       hardcode_shlibpath_var_GCJ=no
17623       ;;
17624
17625     newsos6)
17626       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17627       hardcode_direct_GCJ=yes
17628       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17629       hardcode_libdir_separator_GCJ=:
17630       hardcode_shlibpath_var_GCJ=no
17631       ;;
17632
17633     openbsd*)
17634       hardcode_direct_GCJ=yes
17635       hardcode_shlibpath_var_GCJ=no
17636       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17637         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17638         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17639         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17640         export_dynamic_flag_spec_GCJ='${wl}-E'
17641       else
17642        case $host_os in
17643          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17644            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17645            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17646            ;;
17647          *)
17648            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17649            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17650            ;;
17651        esac
17652       fi
17653       ;;
17654
17655     os2*)
17656       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657       hardcode_minus_L_GCJ=yes
17658       allow_undefined_flag_GCJ=unsupported
17659       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'
17660       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17661       ;;
17662
17663     osf3*)
17664       if test "$GCC" = yes; then
17665         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17666         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'
17667       else
17668         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17669         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'
17670       fi
17671       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17672       hardcode_libdir_separator_GCJ=:
17673       ;;
17674
17675     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17676       if test "$GCC" = yes; then
17677         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17678         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'
17679         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17680       else
17681         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17682         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'
17683         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~
17684         $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'
17685
17686         # Both c and cxx compiler support -rpath directly
17687         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17688       fi
17689       hardcode_libdir_separator_GCJ=:
17690       ;;
17691
17692     solaris*)
17693       no_undefined_flag_GCJ=' -z text'
17694       if test "$GCC" = yes; then
17695         wlarc='${wl}'
17696         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17697         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17698           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17699       else
17700         wlarc=''
17701         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17702         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17703         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17704       fi
17705       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17706       hardcode_shlibpath_var_GCJ=no
17707       case $host_os in
17708       solaris2.[0-5] | solaris2.[0-5].*) ;;
17709       *)
17710         # The compiler driver will combine linker options so we
17711         # cannot just pass the convience library names through
17712         # without $wl, iff we do not link with $LD.
17713         # Luckily, gcc supports the same syntax we need for Sun Studio.
17714         # Supported since Solaris 2.6 (maybe 2.5.1?)
17715         case $wlarc in
17716         '')
17717           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17718         *)
17719           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' ;;
17720         esac ;;
17721       esac
17722       link_all_deplibs_GCJ=yes
17723       ;;
17724
17725     sunos4*)
17726       if test "x$host_vendor" = xsequent; then
17727         # Use $CC to link under sequent, because it throws in some extra .o
17728         # files that make .init and .fini sections work.
17729         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17730       else
17731         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17732       fi
17733       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17734       hardcode_direct_GCJ=yes
17735       hardcode_minus_L_GCJ=yes
17736       hardcode_shlibpath_var_GCJ=no
17737       ;;
17738
17739     sysv4)
17740       case $host_vendor in
17741         sni)
17742           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743           hardcode_direct_GCJ=yes # is this really true???
17744         ;;
17745         siemens)
17746           ## LD is ld it makes a PLAMLIB
17747           ## CC just makes a GrossModule.
17748           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17749           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17750           hardcode_direct_GCJ=no
17751         ;;
17752         motorola)
17753           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17754           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17755         ;;
17756       esac
17757       runpath_var='LD_RUN_PATH'
17758       hardcode_shlibpath_var_GCJ=no
17759       ;;
17760
17761     sysv4.3*)
17762       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17763       hardcode_shlibpath_var_GCJ=no
17764       export_dynamic_flag_spec_GCJ='-Bexport'
17765       ;;
17766
17767     sysv4*MP*)
17768       if test -d /usr/nec; then
17769         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770         hardcode_shlibpath_var_GCJ=no
17771         runpath_var=LD_RUN_PATH
17772         hardcode_runpath_var=yes
17773         ld_shlibs_GCJ=yes
17774       fi
17775       ;;
17776
17777     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17778       no_undefined_flag_GCJ='${wl}-z,text'
17779       archive_cmds_need_lc_GCJ=no
17780       hardcode_shlibpath_var_GCJ=no
17781       runpath_var='LD_RUN_PATH'
17782
17783       if test "$GCC" = yes; then
17784         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17785         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17786       else
17787         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17788         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17789       fi
17790       ;;
17791
17792     sysv5* | sco3.2v5* | sco5v6*)
17793       # Note: We can NOT use -z defs as we might desire, because we do not
17794       # link with -lc, and that would cause any symbols used from libc to
17795       # always be unresolved, which means just about no library would
17796       # ever link correctly.  If we're not using GNU ld we use -z text
17797       # though, which does catch some bad symbols but isn't as heavy-handed
17798       # as -z defs.
17799       no_undefined_flag_GCJ='${wl}-z,text'
17800       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17801       archive_cmds_need_lc_GCJ=no
17802       hardcode_shlibpath_var_GCJ=no
17803       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17804       hardcode_libdir_separator_GCJ=':'
17805       link_all_deplibs_GCJ=yes
17806       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17807       runpath_var='LD_RUN_PATH'
17808
17809       if test "$GCC" = yes; then
17810         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17811         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17812       else
17813         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17814         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17815       fi
17816       ;;
17817
17818     uts4*)
17819       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17820       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17821       hardcode_shlibpath_var_GCJ=no
17822       ;;
17823
17824     *)
17825       ld_shlibs_GCJ=no
17826       ;;
17827     esac
17828   fi
17829
17830 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17831 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17832 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17833
17834 #
17835 # Do we need to explicitly link libc?
17836 #
17837 case "x$archive_cmds_need_lc_GCJ" in
17838 x|xyes)
17839   # Assume -lc should be added
17840   archive_cmds_need_lc_GCJ=yes
17841
17842   if test "$enable_shared" = yes && test "$GCC" = yes; then
17843     case $archive_cmds_GCJ in
17844     *'~'*)
17845       # FIXME: we may have to deal with multi-command sequences.
17846       ;;
17847     '$CC '*)
17848       # Test whether the compiler implicitly links with -lc since on some
17849       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17850       # to ld, don't add -lc before -lgcc.
17851       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17852 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17853       $rm conftest*
17854       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17855
17856       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857   (eval $ac_compile) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } 2>conftest.err; then
17861         soname=conftest
17862         lib=conftest
17863         libobjs=conftest.$ac_objext
17864         deplibs=
17865         wl=$lt_prog_compiler_wl_GCJ
17866         pic_flag=$lt_prog_compiler_pic_GCJ
17867         compiler_flags=-v
17868         linker_flags=-v
17869         verstring=
17870         output_objdir=.
17871         libname=conftest
17872         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17873         allow_undefined_flag_GCJ=
17874         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17875   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17876   ac_status=$?
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); }
17879         then
17880           archive_cmds_need_lc_GCJ=no
17881         else
17882           archive_cmds_need_lc_GCJ=yes
17883         fi
17884         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17885       else
17886         cat conftest.err 1>&5
17887       fi
17888       $rm conftest*
17889       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17890 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17891       ;;
17892     esac
17893   fi
17894   ;;
17895 esac
17896
17897 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17898 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17899 library_names_spec=
17900 libname_spec='lib$name'
17901 soname_spec=
17902 shrext_cmds=".so"
17903 postinstall_cmds=
17904 postuninstall_cmds=
17905 finish_cmds=
17906 finish_eval=
17907 shlibpath_var=
17908 shlibpath_overrides_runpath=unknown
17909 version_type=none
17910 dynamic_linker="$host_os ld.so"
17911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17912 if test "$GCC" = yes; then
17913   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17914   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17915     # if the path contains ";" then we assume it to be the separator
17916     # otherwise default to the standard path separator (i.e. ":") - it is
17917     # assumed that no part of a normal pathname contains ";" but that should
17918     # okay in the real world where ";" in dirpaths is itself problematic.
17919     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17920   else
17921     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17922   fi
17923 else
17924   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17925 fi
17926 need_lib_prefix=unknown
17927 hardcode_into_libs=no
17928
17929 # when you set need_version to no, make sure it does not cause -set_version
17930 # flags to be left without arguments
17931 need_version=unknown
17932
17933 case $host_os in
17934 aix3*)
17935   version_type=linux
17936   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17937   shlibpath_var=LIBPATH
17938
17939   # AIX 3 has no versioning support, so we append a major version to the name.
17940   soname_spec='${libname}${release}${shared_ext}$major'
17941   ;;
17942
17943 aix4* | aix5*)
17944   version_type=linux
17945   need_lib_prefix=no
17946   need_version=no
17947   hardcode_into_libs=yes
17948   if test "$host_cpu" = ia64; then
17949     # AIX 5 supports IA64
17950     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17951     shlibpath_var=LD_LIBRARY_PATH
17952   else
17953     # With GCC up to 2.95.x, collect2 would create an import file
17954     # for dependence libraries.  The import file would start with
17955     # the line `#! .'.  This would cause the generated library to
17956     # depend on `.', always an invalid library.  This was fixed in
17957     # development snapshots of GCC prior to 3.0.
17958     case $host_os in
17959       aix4 | aix4.[01] | aix4.[01].*)
17960       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17961            echo ' yes '
17962            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17963         :
17964       else
17965         can_build_shared=no
17966       fi
17967       ;;
17968     esac
17969     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17970     # soname into executable. Probably we can add versioning support to
17971     # collect2, so additional links can be useful in future.
17972     if test "$aix_use_runtimelinking" = yes; then
17973       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17974       # instead of lib<name>.a to let people know that these are not
17975       # typical AIX shared libraries.
17976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977     else
17978       # We preserve .a as extension for shared libraries through AIX4.2
17979       # and later when we are not doing run time linking.
17980       library_names_spec='${libname}${release}.a $libname.a'
17981       soname_spec='${libname}${release}${shared_ext}$major'
17982     fi
17983     shlibpath_var=LIBPATH
17984   fi
17985   ;;
17986
17987 amigaos*)
17988   library_names_spec='$libname.ixlibrary $libname.a'
17989   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17990   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'
17991   ;;
17992
17993 beos*)
17994   library_names_spec='${libname}${shared_ext}'
17995   dynamic_linker="$host_os ld.so"
17996   shlibpath_var=LIBRARY_PATH
17997   ;;
17998
17999 bsdi[45]*)
18000   version_type=linux
18001   need_version=no
18002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003   soname_spec='${libname}${release}${shared_ext}$major'
18004   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18005   shlibpath_var=LD_LIBRARY_PATH
18006   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18007   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18008   # the default ld.so.conf also contains /usr/contrib/lib and
18009   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18010   # libtool to hard-code these into programs
18011   ;;
18012
18013 cygwin* | mingw* | pw32*)
18014   version_type=windows
18015   shrext_cmds=".dll"
18016   need_version=no
18017   need_lib_prefix=no
18018
18019   case $GCC,$host_os in
18020   yes,cygwin* | yes,mingw* | yes,pw32*)
18021     library_names_spec='$libname.dll.a'
18022     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18023     postinstall_cmds='base_file=`basename \${file}`~
18024       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18025       dldir=$destdir/`dirname \$dlpath`~
18026       test -d \$dldir || mkdir -p \$dldir~
18027       $install_prog $dir/$dlname \$dldir/$dlname~
18028       chmod a+x \$dldir/$dlname'
18029     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18030       dlpath=$dir/\$dldll~
18031        $rm \$dlpath'
18032     shlibpath_overrides_runpath=yes
18033
18034     case $host_os in
18035     cygwin*)
18036       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18037       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18039       ;;
18040     mingw*)
18041       # MinGW DLLs use traditional 'lib' prefix
18042       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18043       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18044       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18045         # It is most probably a Windows format PATH printed by
18046         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18047         # path with ; separators, and with drive letters. We can handle the
18048         # drive letters (cygwin fileutils understands them), so leave them,
18049         # especially as we might pass files found there to a mingw objdump,
18050         # which wouldn't understand a cygwinified path. Ahh.
18051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18052       else
18053         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18054       fi
18055       ;;
18056     pw32*)
18057       # pw32 DLLs use 'pw' prefix rather than 'lib'
18058       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18059       ;;
18060     esac
18061     ;;
18062
18063   linux*)
18064     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
18065       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18066       supports_anon_versioning=no
18067       case `$LD -v 2>/dev/null` in
18068         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18069         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18070         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18071         *\ 2.11.*) ;; # other 2.11 versions
18072         *) supports_anon_versioning=yes ;;
18073       esac
18074       if test $supports_anon_versioning = yes; then
18075         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
18076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18077 $echo "local: *; };" >> $output_objdir/$libname.ver~
18078         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18079       else
18080         $archive_expsym_cmds="$archive_cmds"
18081       fi
18082     else
18083       ld_shlibs=no
18084     fi
18085     ;;
18086
18087   *)
18088     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18089     ;;
18090   esac
18091   dynamic_linker='Win32 ld.exe'
18092   # FIXME: first we should search . and the directory the executable is in
18093   shlibpath_var=PATH
18094   ;;
18095
18096 darwin* | rhapsody*)
18097   dynamic_linker="$host_os dyld"
18098   version_type=darwin
18099   need_lib_prefix=no
18100   need_version=no
18101   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18102   soname_spec='${libname}${release}${major}$shared_ext'
18103   shlibpath_overrides_runpath=yes
18104   shlibpath_var=DYLD_LIBRARY_PATH
18105   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18106   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18107   if test "$GCC" = yes; then
18108     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"`
18109   else
18110     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18111   fi
18112   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18113   ;;
18114
18115 dgux*)
18116   version_type=linux
18117   need_lib_prefix=no
18118   need_version=no
18119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18120   soname_spec='${libname}${release}${shared_ext}$major'
18121   shlibpath_var=LD_LIBRARY_PATH
18122   ;;
18123
18124 freebsd1*)
18125   dynamic_linker=no
18126   ;;
18127
18128 kfreebsd*-gnu)
18129   version_type=linux
18130   need_lib_prefix=no
18131   need_version=no
18132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18133   soname_spec='${libname}${release}${shared_ext}$major'
18134   shlibpath_var=LD_LIBRARY_PATH
18135   shlibpath_overrides_runpath=no
18136   hardcode_into_libs=yes
18137   dynamic_linker='GNU ld.so'
18138   ;;
18139
18140 freebsd* | dragonfly*)
18141   # DragonFly does not have aout.  When/if they implement a new
18142   # versioning mechanism, adjust this.
18143   if test -x /usr/bin/objformat; then
18144     objformat=`/usr/bin/objformat`
18145   else
18146     case $host_os in
18147     freebsd[123]*) objformat=aout ;;
18148     *) objformat=elf ;;
18149     esac
18150   fi
18151   # Handle Gentoo/FreeBSD as it was Linux
18152   case $host_vendor in
18153     gentoo)
18154       version_type=linux ;;
18155     *)
18156       version_type=freebsd-$objformat ;;
18157   esac
18158
18159   case $version_type in
18160     freebsd-elf*)
18161       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18162       need_version=no
18163       need_lib_prefix=no
18164       ;;
18165     freebsd-*)
18166       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18167       need_version=yes
18168       ;;
18169     linux)
18170       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18171       soname_spec='${libname}${release}${shared_ext}$major'
18172       need_lib_prefix=no
18173       need_version=no
18174       ;;
18175   esac
18176   shlibpath_var=LD_LIBRARY_PATH
18177   case $host_os in
18178   freebsd2*)
18179     shlibpath_overrides_runpath=yes
18180     ;;
18181   freebsd3.[01]* | freebsdelf3.[01]*)
18182     shlibpath_overrides_runpath=yes
18183     hardcode_into_libs=yes
18184     ;;
18185   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18186   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18187     shlibpath_overrides_runpath=no
18188     hardcode_into_libs=yes
18189     ;;
18190   freebsd*) # from 4.6 on
18191     shlibpath_overrides_runpath=yes
18192     hardcode_into_libs=yes
18193     ;;
18194   esac
18195   ;;
18196
18197 gnu*)
18198   version_type=linux
18199   need_lib_prefix=no
18200   need_version=no
18201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18202   soname_spec='${libname}${release}${shared_ext}$major'
18203   shlibpath_var=LD_LIBRARY_PATH
18204   hardcode_into_libs=yes
18205   ;;
18206
18207 hpux9* | hpux10* | hpux11*)
18208   # Give a soname corresponding to the major version so that dld.sl refuses to
18209   # link against other versions.
18210   version_type=sunos
18211   need_lib_prefix=no
18212   need_version=no
18213   case $host_cpu in
18214   ia64*)
18215     shrext_cmds='.so'
18216     hardcode_into_libs=yes
18217     dynamic_linker="$host_os dld.so"
18218     shlibpath_var=LD_LIBRARY_PATH
18219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221     soname_spec='${libname}${release}${shared_ext}$major'
18222     if test "X$HPUX_IA64_MODE" = X32; then
18223       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18224     else
18225       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18226     fi
18227     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18228     ;;
18229    hppa*64*)
18230      shrext_cmds='.sl'
18231      hardcode_into_libs=yes
18232      dynamic_linker="$host_os dld.sl"
18233      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18234      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18238      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18239      ;;
18240    *)
18241     shrext_cmds='.sl'
18242     dynamic_linker="$host_os dld.sl"
18243     shlibpath_var=SHLIB_PATH
18244     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246     soname_spec='${libname}${release}${shared_ext}$major'
18247     ;;
18248   esac
18249   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18250   postinstall_cmds='chmod 555 $lib'
18251   ;;
18252
18253 interix3*)
18254   version_type=linux
18255   need_lib_prefix=no
18256   need_version=no
18257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258   soname_spec='${libname}${release}${shared_ext}$major'
18259   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18260   shlibpath_var=LD_LIBRARY_PATH
18261   shlibpath_overrides_runpath=no
18262   hardcode_into_libs=yes
18263   ;;
18264
18265 irix5* | irix6* | nonstopux*)
18266   case $host_os in
18267     nonstopux*) version_type=nonstopux ;;
18268     *)
18269         if test "$lt_cv_prog_gnu_ld" = yes; then
18270                 version_type=linux
18271         else
18272                 version_type=irix
18273         fi ;;
18274   esac
18275   need_lib_prefix=no
18276   need_version=no
18277   soname_spec='${libname}${release}${shared_ext}$major'
18278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18279   case $host_os in
18280   irix5* | nonstopux*)
18281     libsuff= shlibsuff=
18282     ;;
18283   *)
18284     case $LD in # libtool.m4 will add one of these switches to LD
18285     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18286       libsuff= shlibsuff= libmagic=32-bit;;
18287     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18288       libsuff=32 shlibsuff=N32 libmagic=N32;;
18289     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18290       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18291     *) libsuff= shlibsuff= libmagic=never-match;;
18292     esac
18293     ;;
18294   esac
18295   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18296   shlibpath_overrides_runpath=no
18297   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18298   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18299   hardcode_into_libs=yes
18300   ;;
18301
18302 # No shared lib support for Linux oldld, aout, or coff.
18303 linux*oldld* | linux*aout* | linux*coff*)
18304   dynamic_linker=no
18305   ;;
18306
18307 # This must be Linux ELF.
18308 linux*)
18309   version_type=linux
18310   need_lib_prefix=no
18311   need_version=no
18312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18313   soname_spec='${libname}${release}${shared_ext}$major'
18314   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18315   shlibpath_var=LD_LIBRARY_PATH
18316   shlibpath_overrides_runpath=no
18317   # This implies no fast_install, which is unacceptable.
18318   # Some rework will be needed to allow for fast_install
18319   # before this can be enabled.
18320   hardcode_into_libs=yes
18321
18322   # Append ld.so.conf contents to the search path
18323   if test -f /etc/ld.so.conf; then
18324     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18325     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18326   fi
18327
18328   # We used to test for /lib/ld.so.1 and disable shared libraries on
18329   # powerpc, because MkLinux only supported shared libraries with the
18330   # GNU dynamic linker.  Since this was broken with cross compilers,
18331   # most powerpc-linux boxes support dynamic linking these days and
18332   # people can always --disable-shared, the test was removed, and we
18333   # assume the GNU/Linux dynamic linker is in use.
18334   dynamic_linker='GNU/Linux ld.so'
18335   ;;
18336
18337 knetbsd*-gnu)
18338   version_type=linux
18339   need_lib_prefix=no
18340   need_version=no
18341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18342   soname_spec='${libname}${release}${shared_ext}$major'
18343   shlibpath_var=LD_LIBRARY_PATH
18344   shlibpath_overrides_runpath=no
18345   hardcode_into_libs=yes
18346   dynamic_linker='GNU ld.so'
18347   ;;
18348
18349 netbsd*)
18350   version_type=sunos
18351   need_lib_prefix=no
18352   need_version=no
18353   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18355     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18356     dynamic_linker='NetBSD (a.out) ld.so'
18357   else
18358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18359     soname_spec='${libname}${release}${shared_ext}$major'
18360     dynamic_linker='NetBSD ld.elf_so'
18361   fi
18362   shlibpath_var=LD_LIBRARY_PATH
18363   shlibpath_overrides_runpath=yes
18364   hardcode_into_libs=yes
18365   ;;
18366
18367 newsos6)
18368   version_type=linux
18369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370   shlibpath_var=LD_LIBRARY_PATH
18371   shlibpath_overrides_runpath=yes
18372   ;;
18373
18374 nto-qnx*)
18375   version_type=linux
18376   need_lib_prefix=no
18377   need_version=no
18378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379   soname_spec='${libname}${release}${shared_ext}$major'
18380   shlibpath_var=LD_LIBRARY_PATH
18381   shlibpath_overrides_runpath=yes
18382   ;;
18383
18384 openbsd*)
18385   version_type=sunos
18386   sys_lib_dlsearch_path_spec="/usr/lib"
18387   need_lib_prefix=no
18388   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18389   case $host_os in
18390     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18391     *)                         need_version=no  ;;
18392   esac
18393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18394   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18395   shlibpath_var=LD_LIBRARY_PATH
18396   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18397     case $host_os in
18398       openbsd2.[89] | openbsd2.[89].*)
18399         shlibpath_overrides_runpath=no
18400         ;;
18401       *)
18402         shlibpath_overrides_runpath=yes
18403         ;;
18404       esac
18405   else
18406     shlibpath_overrides_runpath=yes
18407   fi
18408   ;;
18409
18410 os2*)
18411   libname_spec='$name'
18412   shrext_cmds=".dll"
18413   need_lib_prefix=no
18414   library_names_spec='$libname${shared_ext} $libname.a'
18415   dynamic_linker='OS/2 ld.exe'
18416   shlibpath_var=LIBPATH
18417   ;;
18418
18419 osf3* | osf4* | osf5*)
18420   version_type=osf
18421   need_lib_prefix=no
18422   need_version=no
18423   soname_spec='${libname}${release}${shared_ext}$major'
18424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425   shlibpath_var=LD_LIBRARY_PATH
18426   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18427   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18428   ;;
18429
18430 solaris*)
18431   version_type=linux
18432   need_lib_prefix=no
18433   need_version=no
18434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435   soname_spec='${libname}${release}${shared_ext}$major'
18436   shlibpath_var=LD_LIBRARY_PATH
18437   shlibpath_overrides_runpath=yes
18438   hardcode_into_libs=yes
18439   # ldd complains unless libraries are executable
18440   postinstall_cmds='chmod +x $lib'
18441   ;;
18442
18443 sunos4*)
18444   version_type=sunos
18445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18446   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18447   shlibpath_var=LD_LIBRARY_PATH
18448   shlibpath_overrides_runpath=yes
18449   if test "$with_gnu_ld" = yes; then
18450     need_lib_prefix=no
18451   fi
18452   need_version=yes
18453   ;;
18454
18455 sysv4 | sysv4.3*)
18456   version_type=linux
18457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18458   soname_spec='${libname}${release}${shared_ext}$major'
18459   shlibpath_var=LD_LIBRARY_PATH
18460   case $host_vendor in
18461     sni)
18462       shlibpath_overrides_runpath=no
18463       need_lib_prefix=no
18464       export_dynamic_flag_spec='${wl}-Blargedynsym'
18465       runpath_var=LD_RUN_PATH
18466       ;;
18467     siemens)
18468       need_lib_prefix=no
18469       ;;
18470     motorola)
18471       need_lib_prefix=no
18472       need_version=no
18473       shlibpath_overrides_runpath=no
18474       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18475       ;;
18476   esac
18477   ;;
18478
18479 sysv4*MP*)
18480   if test -d /usr/nec ;then
18481     version_type=linux
18482     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18483     soname_spec='$libname${shared_ext}.$major'
18484     shlibpath_var=LD_LIBRARY_PATH
18485   fi
18486   ;;
18487
18488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18489   version_type=freebsd-elf
18490   need_lib_prefix=no
18491   need_version=no
18492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18493   soname_spec='${libname}${release}${shared_ext}$major'
18494   shlibpath_var=LD_LIBRARY_PATH
18495   hardcode_into_libs=yes
18496   if test "$with_gnu_ld" = yes; then
18497     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18498     shlibpath_overrides_runpath=no
18499   else
18500     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18501     shlibpath_overrides_runpath=yes
18502     case $host_os in
18503       sco3.2v5*)
18504         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18505         ;;
18506     esac
18507   fi
18508   sys_lib_dlsearch_path_spec='/usr/lib'
18509   ;;
18510
18511 uts4*)
18512   version_type=linux
18513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514   soname_spec='${libname}${release}${shared_ext}$major'
18515   shlibpath_var=LD_LIBRARY_PATH
18516   ;;
18517
18518 *)
18519   dynamic_linker=no
18520   ;;
18521 esac
18522 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18523 echo "${ECHO_T}$dynamic_linker" >&6; }
18524 test "$dynamic_linker" = no && can_build_shared=no
18525
18526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18527 if test "$GCC" = yes; then
18528   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18529 fi
18530
18531 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18532 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18533 hardcode_action_GCJ=
18534 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18535    test -n "$runpath_var_GCJ" || \
18536    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18537
18538   # We can hardcode non-existant directories.
18539   if test "$hardcode_direct_GCJ" != no &&
18540      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18541      # have to relink, otherwise we might link with an installed library
18542      # when we should be linking with a yet-to-be-installed one
18543      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18544      test "$hardcode_minus_L_GCJ" != no; then
18545     # Linking always hardcodes the temporary library directory.
18546     hardcode_action_GCJ=relink
18547   else
18548     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18549     hardcode_action_GCJ=immediate
18550   fi
18551 else
18552   # We cannot hardcode anything, or else we can only hardcode existing
18553   # directories.
18554   hardcode_action_GCJ=unsupported
18555 fi
18556 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18557 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18558
18559 if test "$hardcode_action_GCJ" = relink; then
18560   # Fast installation is not supported
18561   enable_fast_install=no
18562 elif test "$shlibpath_overrides_runpath" = yes ||
18563      test "$enable_shared" = no; then
18564   # Fast installation is not necessary
18565   enable_fast_install=needless
18566 fi
18567
18568
18569 # The else clause should only fire when bootstrapping the
18570 # libtool distribution, otherwise you forgot to ship ltmain.sh
18571 # with your package, and you will get complaints that there are
18572 # no rules to generate ltmain.sh.
18573 if test -f "$ltmain"; then
18574   # See if we are running on zsh, and set the options which allow our commands through
18575   # without removal of \ escapes.
18576   if test -n "${ZSH_VERSION+set}" ; then
18577     setopt NO_GLOB_SUBST
18578   fi
18579   # Now quote all the things that may contain metacharacters while being
18580   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18581   # variables and quote the copies for generation of the libtool script.
18582   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18583     SED SHELL STRIP \
18584     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18585     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18586     deplibs_check_method reload_flag reload_cmds need_locks \
18587     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18588     lt_cv_sys_global_symbol_to_c_name_address \
18589     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18590     old_postinstall_cmds old_postuninstall_cmds \
18591     compiler_GCJ \
18592     CC_GCJ \
18593     LD_GCJ \
18594     lt_prog_compiler_wl_GCJ \
18595     lt_prog_compiler_pic_GCJ \
18596     lt_prog_compiler_static_GCJ \
18597     lt_prog_compiler_no_builtin_flag_GCJ \
18598     export_dynamic_flag_spec_GCJ \
18599     thread_safe_flag_spec_GCJ \
18600     whole_archive_flag_spec_GCJ \
18601     enable_shared_with_static_runtimes_GCJ \
18602     old_archive_cmds_GCJ \
18603     old_archive_from_new_cmds_GCJ \
18604     predep_objects_GCJ \
18605     postdep_objects_GCJ \
18606     predeps_GCJ \
18607     postdeps_GCJ \
18608     compiler_lib_search_path_GCJ \
18609     archive_cmds_GCJ \
18610     archive_expsym_cmds_GCJ \
18611     postinstall_cmds_GCJ \
18612     postuninstall_cmds_GCJ \
18613     old_archive_from_expsyms_cmds_GCJ \
18614     allow_undefined_flag_GCJ \
18615     no_undefined_flag_GCJ \
18616     export_symbols_cmds_GCJ \
18617     hardcode_libdir_flag_spec_GCJ \
18618     hardcode_libdir_flag_spec_ld_GCJ \
18619     hardcode_libdir_separator_GCJ \
18620     hardcode_automatic_GCJ \
18621     module_cmds_GCJ \
18622     module_expsym_cmds_GCJ \
18623     lt_cv_prog_compiler_c_o_GCJ \
18624     exclude_expsyms_GCJ \
18625     include_expsyms_GCJ; do
18626
18627     case $var in
18628     old_archive_cmds_GCJ | \
18629     old_archive_from_new_cmds_GCJ | \
18630     archive_cmds_GCJ | \
18631     archive_expsym_cmds_GCJ | \
18632     module_cmds_GCJ | \
18633     module_expsym_cmds_GCJ | \
18634     old_archive_from_expsyms_cmds_GCJ | \
18635     export_symbols_cmds_GCJ | \
18636     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18637     postinstall_cmds | postuninstall_cmds | \
18638     old_postinstall_cmds | old_postuninstall_cmds | \
18639     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18640       # Double-quote double-evaled strings.
18641       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18642       ;;
18643     *)
18644       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18645       ;;
18646     esac
18647   done
18648
18649   case $lt_echo in
18650   *'\$0 --fallback-echo"')
18651     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18652     ;;
18653   esac
18654
18655 cfgfile="$ofile"
18656
18657   cat <<__EOF__ >> "$cfgfile"
18658 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18659
18660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18661
18662 # Shell to use when invoking shell scripts.
18663 SHELL=$lt_SHELL
18664
18665 # Whether or not to build shared libraries.
18666 build_libtool_libs=$enable_shared
18667
18668 # Whether or not to build static libraries.
18669 build_old_libs=$enable_static
18670
18671 # Whether or not to add -lc for building shared libraries.
18672 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18673
18674 # Whether or not to disallow shared libs when runtime libs are static
18675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18676
18677 # Whether or not to optimize for fast installation.
18678 fast_install=$enable_fast_install
18679
18680 # The host system.
18681 host_alias=$host_alias
18682 host=$host
18683 host_os=$host_os
18684
18685 # The build system.
18686 build_alias=$build_alias
18687 build=$build
18688 build_os=$build_os
18689
18690 # An echo program that does not interpret backslashes.
18691 echo=$lt_echo
18692
18693 # The archiver.
18694 AR=$lt_AR
18695 AR_FLAGS=$lt_AR_FLAGS
18696
18697 # A C compiler.
18698 LTCC=$lt_LTCC
18699
18700 # LTCC compiler flags.
18701 LTCFLAGS=$lt_LTCFLAGS
18702
18703 # A language-specific compiler.
18704 CC=$lt_compiler_GCJ
18705
18706 # Is the compiler the GNU C compiler?
18707 with_gcc=$GCC_GCJ
18708
18709 # An ERE matcher.
18710 EGREP=$lt_EGREP
18711
18712 # The linker used to build libraries.
18713 LD=$lt_LD_GCJ
18714
18715 # Whether we need hard or soft links.
18716 LN_S=$lt_LN_S
18717
18718 # A BSD-compatible nm program.
18719 NM=$lt_NM
18720
18721 # A symbol stripping program
18722 STRIP=$lt_STRIP
18723
18724 # Used to examine libraries when file_magic_cmd begins "file"
18725 MAGIC_CMD=$MAGIC_CMD
18726
18727 # Used on cygwin: DLL creation program.
18728 DLLTOOL="$DLLTOOL"
18729
18730 # Used on cygwin: object dumper.
18731 OBJDUMP="$OBJDUMP"
18732
18733 # Used on cygwin: assembler.
18734 AS="$AS"
18735
18736 # The name of the directory that contains temporary libtool files.
18737 objdir=$objdir
18738
18739 # How to create reloadable object files.
18740 reload_flag=$lt_reload_flag
18741 reload_cmds=$lt_reload_cmds
18742
18743 # How to pass a linker flag through the compiler.
18744 wl=$lt_lt_prog_compiler_wl_GCJ
18745
18746 # Object file suffix (normally "o").
18747 objext="$ac_objext"
18748
18749 # Old archive suffix (normally "a").
18750 libext="$libext"
18751
18752 # Shared library suffix (normally ".so").
18753 shrext_cmds='$shrext_cmds'
18754
18755 # Executable file suffix (normally "").
18756 exeext="$exeext"
18757
18758 # Additional compiler flags for building library objects.
18759 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18760 pic_mode=$pic_mode
18761
18762 # What is the maximum length of a command?
18763 max_cmd_len=$lt_cv_sys_max_cmd_len
18764
18765 # Does compiler simultaneously support -c and -o options?
18766 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18767
18768 # Must we lock files when doing compilation?
18769 need_locks=$lt_need_locks
18770
18771 # Do we need the lib prefix for modules?
18772 need_lib_prefix=$need_lib_prefix
18773
18774 # Do we need a version for libraries?
18775 need_version=$need_version
18776
18777 # Whether dlopen is supported.
18778 dlopen_support=$enable_dlopen
18779
18780 # Whether dlopen of programs is supported.
18781 dlopen_self=$enable_dlopen_self
18782
18783 # Whether dlopen of statically linked programs is supported.
18784 dlopen_self_static=$enable_dlopen_self_static
18785
18786 # Compiler flag to prevent dynamic linking.
18787 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18788
18789 # Compiler flag to turn off builtin functions.
18790 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18791
18792 # Compiler flag to allow reflexive dlopens.
18793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18794
18795 # Compiler flag to generate shared objects directly from archives.
18796 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18797
18798 # Compiler flag to generate thread-safe objects.
18799 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18800
18801 # Library versioning type.
18802 version_type=$version_type
18803
18804 # Format of library name prefix.
18805 libname_spec=$lt_libname_spec
18806
18807 # List of archive names.  First name is the real one, the rest are links.
18808 # The last name is the one that the linker finds with -lNAME.
18809 library_names_spec=$lt_library_names_spec
18810
18811 # The coded name of the library, if different from the real name.
18812 soname_spec=$lt_soname_spec
18813
18814 # Commands used to build and install an old-style archive.
18815 RANLIB=$lt_RANLIB
18816 old_archive_cmds=$lt_old_archive_cmds_GCJ
18817 old_postinstall_cmds=$lt_old_postinstall_cmds
18818 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18819
18820 # Create an old-style archive from a shared archive.
18821 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18822
18823 # Create a temporary old-style archive to link instead of a shared archive.
18824 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18825
18826 # Commands used to build and install a shared archive.
18827 archive_cmds=$lt_archive_cmds_GCJ
18828 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18829 postinstall_cmds=$lt_postinstall_cmds
18830 postuninstall_cmds=$lt_postuninstall_cmds
18831
18832 # Commands used to build a loadable module (assumed same as above if empty)
18833 module_cmds=$lt_module_cmds_GCJ
18834 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18835
18836 # Commands to strip libraries.
18837 old_striplib=$lt_old_striplib
18838 striplib=$lt_striplib
18839
18840 # Dependencies to place before the objects being linked to create a
18841 # shared library.
18842 predep_objects=$lt_predep_objects_GCJ
18843
18844 # Dependencies to place after the objects being linked to create a
18845 # shared library.
18846 postdep_objects=$lt_postdep_objects_GCJ
18847
18848 # Dependencies to place before the objects being linked to create a
18849 # shared library.
18850 predeps=$lt_predeps_GCJ
18851
18852 # Dependencies to place after the objects being linked to create a
18853 # shared library.
18854 postdeps=$lt_postdeps_GCJ
18855
18856 # The library search path used internally by the compiler when linking
18857 # a shared library.
18858 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18859
18860 # Method to check whether dependent libraries are shared objects.
18861 deplibs_check_method=$lt_deplibs_check_method
18862
18863 # Command to use when deplibs_check_method == file_magic.
18864 file_magic_cmd=$lt_file_magic_cmd
18865
18866 # Flag that allows shared libraries with undefined symbols to be built.
18867 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18868
18869 # Flag that forces no undefined symbols.
18870 no_undefined_flag=$lt_no_undefined_flag_GCJ
18871
18872 # Commands used to finish a libtool library installation in a directory.
18873 finish_cmds=$lt_finish_cmds
18874
18875 # Same as above, but a single script fragment to be evaled but not shown.
18876 finish_eval=$lt_finish_eval
18877
18878 # Take the output of nm and produce a listing of raw symbols and C names.
18879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18880
18881 # Transform the output of nm in a proper C declaration
18882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18883
18884 # Transform the output of nm in a C name address pair
18885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18886
18887 # This is the shared library runtime path variable.
18888 runpath_var=$runpath_var
18889
18890 # This is the shared library path variable.
18891 shlibpath_var=$shlibpath_var
18892
18893 # Is shlibpath searched before the hard-coded library search path?
18894 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18895
18896 # How to hardcode a shared library path into an executable.
18897 hardcode_action=$hardcode_action_GCJ
18898
18899 # Whether we should hardcode library paths into libraries.
18900 hardcode_into_libs=$hardcode_into_libs
18901
18902 # Flag to hardcode \$libdir into a binary during linking.
18903 # This must work even if \$libdir does not exist.
18904 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18905
18906 # If ld is used when linking, flag to hardcode \$libdir into
18907 # a binary during linking. This must work even if \$libdir does
18908 # not exist.
18909 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18910
18911 # Whether we need a single -rpath flag with a separated argument.
18912 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18913
18914 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18915 # resulting binary.
18916 hardcode_direct=$hardcode_direct_GCJ
18917
18918 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18919 # resulting binary.
18920 hardcode_minus_L=$hardcode_minus_L_GCJ
18921
18922 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18923 # the resulting binary.
18924 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18925
18926 # Set to yes if building a shared library automatically hardcodes DIR into the library
18927 # and all subsequent libraries and executables linked against it.
18928 hardcode_automatic=$hardcode_automatic_GCJ
18929
18930 # Variables whose values should be saved in libtool wrapper scripts and
18931 # restored at relink time.
18932 variables_saved_for_relink="$variables_saved_for_relink"
18933
18934 # Whether libtool must link a program against all its dependency libraries.
18935 link_all_deplibs=$link_all_deplibs_GCJ
18936
18937 # Compile-time system search path for libraries
18938 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18939
18940 # Run-time system search path for libraries
18941 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18942
18943 # Fix the shell variable \$srcfile for the compiler.
18944 fix_srcfile_path="$fix_srcfile_path_GCJ"
18945
18946 # Set to yes if exported symbols are required.
18947 always_export_symbols=$always_export_symbols_GCJ
18948
18949 # The commands to list exported symbols.
18950 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18951
18952 # The commands to extract the exported symbol list from a shared archive.
18953 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18954
18955 # Symbols that should not be listed in the preloaded symbols.
18956 exclude_expsyms=$lt_exclude_expsyms_GCJ
18957
18958 # Symbols that must always be exported.
18959 include_expsyms=$lt_include_expsyms_GCJ
18960
18961 # ### END LIBTOOL TAG CONFIG: $tagname
18962
18963 __EOF__
18964
18965
18966 else
18967   # If there is no Makefile yet, we rely on a make rule to execute
18968   # `config.status --recheck' to rerun these tests and create the
18969   # libtool script then.
18970   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18971   if test -f "$ltmain_in"; then
18972     test -f Makefile && make "$ltmain"
18973   fi
18974 fi
18975
18976
18977 ac_ext=c
18978 ac_cpp='$CPP $CPPFLAGS'
18979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18982
18983 CC="$lt_save_CC"
18984
18985         else
18986           tagname=""
18987         fi
18988         ;;
18989
18990       RC)
18991
18992
18993 # Source file extension for RC test sources.
18994 ac_ext=rc
18995
18996 # Object file extension for compiled RC test sources.
18997 objext=o
18998 objext_RC=$objext
18999
19000 # Code to be used in simple compile tests
19001 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19002
19003 # Code to be used in simple link tests
19004 lt_simple_link_test_code="$lt_simple_compile_test_code"
19005
19006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19007
19008 # If no C compiler was specified, use CC.
19009 LTCC=${LTCC-"$CC"}
19010
19011 # If no C compiler flags were specified, use CFLAGS.
19012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19013
19014 # Allow CC to be a program name with arguments.
19015 compiler=$CC
19016
19017
19018 # save warnings/boilerplate of simple test code
19019 ac_outfile=conftest.$ac_objext
19020 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19022 _lt_compiler_boilerplate=`cat conftest.err`
19023 $rm conftest*
19024
19025 ac_outfile=conftest.$ac_objext
19026 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19028 _lt_linker_boilerplate=`cat conftest.err`
19029 $rm conftest*
19030
19031
19032 # Allow CC to be a program name with arguments.
19033 lt_save_CC="$CC"
19034 CC=${RC-"windres"}
19035 compiler=$CC
19036 compiler_RC=$CC
19037 for cc_temp in $compiler""; do
19038   case $cc_temp in
19039     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19040     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19041     \-*) ;;
19042     *) break;;
19043   esac
19044 done
19045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19046
19047 lt_cv_prog_compiler_c_o_RC=yes
19048
19049 # The else clause should only fire when bootstrapping the
19050 # libtool distribution, otherwise you forgot to ship ltmain.sh
19051 # with your package, and you will get complaints that there are
19052 # no rules to generate ltmain.sh.
19053 if test -f "$ltmain"; then
19054   # See if we are running on zsh, and set the options which allow our commands through
19055   # without removal of \ escapes.
19056   if test -n "${ZSH_VERSION+set}" ; then
19057     setopt NO_GLOB_SUBST
19058   fi
19059   # Now quote all the things that may contain metacharacters while being
19060   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19061   # variables and quote the copies for generation of the libtool script.
19062   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19063     SED SHELL STRIP \
19064     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19065     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19066     deplibs_check_method reload_flag reload_cmds need_locks \
19067     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19068     lt_cv_sys_global_symbol_to_c_name_address \
19069     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19070     old_postinstall_cmds old_postuninstall_cmds \
19071     compiler_RC \
19072     CC_RC \
19073     LD_RC \
19074     lt_prog_compiler_wl_RC \
19075     lt_prog_compiler_pic_RC \
19076     lt_prog_compiler_static_RC \
19077     lt_prog_compiler_no_builtin_flag_RC \
19078     export_dynamic_flag_spec_RC \
19079     thread_safe_flag_spec_RC \
19080     whole_archive_flag_spec_RC \
19081     enable_shared_with_static_runtimes_RC \
19082     old_archive_cmds_RC \
19083     old_archive_from_new_cmds_RC \
19084     predep_objects_RC \
19085     postdep_objects_RC \
19086     predeps_RC \
19087     postdeps_RC \
19088     compiler_lib_search_path_RC \
19089     archive_cmds_RC \
19090     archive_expsym_cmds_RC \
19091     postinstall_cmds_RC \
19092     postuninstall_cmds_RC \
19093     old_archive_from_expsyms_cmds_RC \
19094     allow_undefined_flag_RC \
19095     no_undefined_flag_RC \
19096     export_symbols_cmds_RC \
19097     hardcode_libdir_flag_spec_RC \
19098     hardcode_libdir_flag_spec_ld_RC \
19099     hardcode_libdir_separator_RC \
19100     hardcode_automatic_RC \
19101     module_cmds_RC \
19102     module_expsym_cmds_RC \
19103     lt_cv_prog_compiler_c_o_RC \
19104     exclude_expsyms_RC \
19105     include_expsyms_RC; do
19106
19107     case $var in
19108     old_archive_cmds_RC | \
19109     old_archive_from_new_cmds_RC | \
19110     archive_cmds_RC | \
19111     archive_expsym_cmds_RC | \
19112     module_cmds_RC | \
19113     module_expsym_cmds_RC | \
19114     old_archive_from_expsyms_cmds_RC | \
19115     export_symbols_cmds_RC | \
19116     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19117     postinstall_cmds | postuninstall_cmds | \
19118     old_postinstall_cmds | old_postuninstall_cmds | \
19119     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19120       # Double-quote double-evaled strings.
19121       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19122       ;;
19123     *)
19124       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19125       ;;
19126     esac
19127   done
19128
19129   case $lt_echo in
19130   *'\$0 --fallback-echo"')
19131     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19132     ;;
19133   esac
19134
19135 cfgfile="$ofile"
19136
19137   cat <<__EOF__ >> "$cfgfile"
19138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19139
19140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19141
19142 # Shell to use when invoking shell scripts.
19143 SHELL=$lt_SHELL
19144
19145 # Whether or not to build shared libraries.
19146 build_libtool_libs=$enable_shared
19147
19148 # Whether or not to build static libraries.
19149 build_old_libs=$enable_static
19150
19151 # Whether or not to add -lc for building shared libraries.
19152 build_libtool_need_lc=$archive_cmds_need_lc_RC
19153
19154 # Whether or not to disallow shared libs when runtime libs are static
19155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19156
19157 # Whether or not to optimize for fast installation.
19158 fast_install=$enable_fast_install
19159
19160 # The host system.
19161 host_alias=$host_alias
19162 host=$host
19163 host_os=$host_os
19164
19165 # The build system.
19166 build_alias=$build_alias
19167 build=$build
19168 build_os=$build_os
19169
19170 # An echo program that does not interpret backslashes.
19171 echo=$lt_echo
19172
19173 # The archiver.
19174 AR=$lt_AR
19175 AR_FLAGS=$lt_AR_FLAGS
19176
19177 # A C compiler.
19178 LTCC=$lt_LTCC
19179
19180 # LTCC compiler flags.
19181 LTCFLAGS=$lt_LTCFLAGS
19182
19183 # A language-specific compiler.
19184 CC=$lt_compiler_RC
19185
19186 # Is the compiler the GNU C compiler?
19187 with_gcc=$GCC_RC
19188
19189 # An ERE matcher.
19190 EGREP=$lt_EGREP
19191
19192 # The linker used to build libraries.
19193 LD=$lt_LD_RC
19194
19195 # Whether we need hard or soft links.
19196 LN_S=$lt_LN_S
19197
19198 # A BSD-compatible nm program.
19199 NM=$lt_NM
19200
19201 # A symbol stripping program
19202 STRIP=$lt_STRIP
19203
19204 # Used to examine libraries when file_magic_cmd begins "file"
19205 MAGIC_CMD=$MAGIC_CMD
19206
19207 # Used on cygwin: DLL creation program.
19208 DLLTOOL="$DLLTOOL"
19209
19210 # Used on cygwin: object dumper.
19211 OBJDUMP="$OBJDUMP"
19212
19213 # Used on cygwin: assembler.
19214 AS="$AS"
19215
19216 # The name of the directory that contains temporary libtool files.
19217 objdir=$objdir
19218
19219 # How to create reloadable object files.
19220 reload_flag=$lt_reload_flag
19221 reload_cmds=$lt_reload_cmds
19222
19223 # How to pass a linker flag through the compiler.
19224 wl=$lt_lt_prog_compiler_wl_RC
19225
19226 # Object file suffix (normally "o").
19227 objext="$ac_objext"
19228
19229 # Old archive suffix (normally "a").
19230 libext="$libext"
19231
19232 # Shared library suffix (normally ".so").
19233 shrext_cmds='$shrext_cmds'
19234
19235 # Executable file suffix (normally "").
19236 exeext="$exeext"
19237
19238 # Additional compiler flags for building library objects.
19239 pic_flag=$lt_lt_prog_compiler_pic_RC
19240 pic_mode=$pic_mode
19241
19242 # What is the maximum length of a command?
19243 max_cmd_len=$lt_cv_sys_max_cmd_len
19244
19245 # Does compiler simultaneously support -c and -o options?
19246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19247
19248 # Must we lock files when doing compilation?
19249 need_locks=$lt_need_locks
19250
19251 # Do we need the lib prefix for modules?
19252 need_lib_prefix=$need_lib_prefix
19253
19254 # Do we need a version for libraries?
19255 need_version=$need_version
19256
19257 # Whether dlopen is supported.
19258 dlopen_support=$enable_dlopen
19259
19260 # Whether dlopen of programs is supported.
19261 dlopen_self=$enable_dlopen_self
19262
19263 # Whether dlopen of statically linked programs is supported.
19264 dlopen_self_static=$enable_dlopen_self_static
19265
19266 # Compiler flag to prevent dynamic linking.
19267 link_static_flag=$lt_lt_prog_compiler_static_RC
19268
19269 # Compiler flag to turn off builtin functions.
19270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19271
19272 # Compiler flag to allow reflexive dlopens.
19273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19274
19275 # Compiler flag to generate shared objects directly from archives.
19276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19277
19278 # Compiler flag to generate thread-safe objects.
19279 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19280
19281 # Library versioning type.
19282 version_type=$version_type
19283
19284 # Format of library name prefix.
19285 libname_spec=$lt_libname_spec
19286
19287 # List of archive names.  First name is the real one, the rest are links.
19288 # The last name is the one that the linker finds with -lNAME.
19289 library_names_spec=$lt_library_names_spec
19290
19291 # The coded name of the library, if different from the real name.
19292 soname_spec=$lt_soname_spec
19293
19294 # Commands used to build and install an old-style archive.
19295 RANLIB=$lt_RANLIB
19296 old_archive_cmds=$lt_old_archive_cmds_RC
19297 old_postinstall_cmds=$lt_old_postinstall_cmds
19298 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19299
19300 # Create an old-style archive from a shared archive.
19301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19302
19303 # Create a temporary old-style archive to link instead of a shared archive.
19304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19305
19306 # Commands used to build and install a shared archive.
19307 archive_cmds=$lt_archive_cmds_RC
19308 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19309 postinstall_cmds=$lt_postinstall_cmds
19310 postuninstall_cmds=$lt_postuninstall_cmds
19311
19312 # Commands used to build a loadable module (assumed same as above if empty)
19313 module_cmds=$lt_module_cmds_RC
19314 module_expsym_cmds=$lt_module_expsym_cmds_RC
19315
19316 # Commands to strip libraries.
19317 old_striplib=$lt_old_striplib
19318 striplib=$lt_striplib
19319
19320 # Dependencies to place before the objects being linked to create a
19321 # shared library.
19322 predep_objects=$lt_predep_objects_RC
19323
19324 # Dependencies to place after the objects being linked to create a
19325 # shared library.
19326 postdep_objects=$lt_postdep_objects_RC
19327
19328 # Dependencies to place before the objects being linked to create a
19329 # shared library.
19330 predeps=$lt_predeps_RC
19331
19332 # Dependencies to place after the objects being linked to create a
19333 # shared library.
19334 postdeps=$lt_postdeps_RC
19335
19336 # The library search path used internally by the compiler when linking
19337 # a shared library.
19338 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19339
19340 # Method to check whether dependent libraries are shared objects.
19341 deplibs_check_method=$lt_deplibs_check_method
19342
19343 # Command to use when deplibs_check_method == file_magic.
19344 file_magic_cmd=$lt_file_magic_cmd
19345
19346 # Flag that allows shared libraries with undefined symbols to be built.
19347 allow_undefined_flag=$lt_allow_undefined_flag_RC
19348
19349 # Flag that forces no undefined symbols.
19350 no_undefined_flag=$lt_no_undefined_flag_RC
19351
19352 # Commands used to finish a libtool library installation in a directory.
19353 finish_cmds=$lt_finish_cmds
19354
19355 # Same as above, but a single script fragment to be evaled but not shown.
19356 finish_eval=$lt_finish_eval
19357
19358 # Take the output of nm and produce a listing of raw symbols and C names.
19359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19360
19361 # Transform the output of nm in a proper C declaration
19362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19363
19364 # Transform the output of nm in a C name address pair
19365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19366
19367 # This is the shared library runtime path variable.
19368 runpath_var=$runpath_var
19369
19370 # This is the shared library path variable.
19371 shlibpath_var=$shlibpath_var
19372
19373 # Is shlibpath searched before the hard-coded library search path?
19374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19375
19376 # How to hardcode a shared library path into an executable.
19377 hardcode_action=$hardcode_action_RC
19378
19379 # Whether we should hardcode library paths into libraries.
19380 hardcode_into_libs=$hardcode_into_libs
19381
19382 # Flag to hardcode \$libdir into a binary during linking.
19383 # This must work even if \$libdir does not exist.
19384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19385
19386 # If ld is used when linking, flag to hardcode \$libdir into
19387 # a binary during linking. This must work even if \$libdir does
19388 # not exist.
19389 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19390
19391 # Whether we need a single -rpath flag with a separated argument.
19392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19393
19394 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19395 # resulting binary.
19396 hardcode_direct=$hardcode_direct_RC
19397
19398 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19399 # resulting binary.
19400 hardcode_minus_L=$hardcode_minus_L_RC
19401
19402 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19403 # the resulting binary.
19404 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19405
19406 # Set to yes if building a shared library automatically hardcodes DIR into the library
19407 # and all subsequent libraries and executables linked against it.
19408 hardcode_automatic=$hardcode_automatic_RC
19409
19410 # Variables whose values should be saved in libtool wrapper scripts and
19411 # restored at relink time.
19412 variables_saved_for_relink="$variables_saved_for_relink"
19413
19414 # Whether libtool must link a program against all its dependency libraries.
19415 link_all_deplibs=$link_all_deplibs_RC
19416
19417 # Compile-time system search path for libraries
19418 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19419
19420 # Run-time system search path for libraries
19421 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19422
19423 # Fix the shell variable \$srcfile for the compiler.
19424 fix_srcfile_path="$fix_srcfile_path_RC"
19425
19426 # Set to yes if exported symbols are required.
19427 always_export_symbols=$always_export_symbols_RC
19428
19429 # The commands to list exported symbols.
19430 export_symbols_cmds=$lt_export_symbols_cmds_RC
19431
19432 # The commands to extract the exported symbol list from a shared archive.
19433 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19434
19435 # Symbols that should not be listed in the preloaded symbols.
19436 exclude_expsyms=$lt_exclude_expsyms_RC
19437
19438 # Symbols that must always be exported.
19439 include_expsyms=$lt_include_expsyms_RC
19440
19441 # ### END LIBTOOL TAG CONFIG: $tagname
19442
19443 __EOF__
19444
19445
19446 else
19447   # If there is no Makefile yet, we rely on a make rule to execute
19448   # `config.status --recheck' to rerun these tests and create the
19449   # libtool script then.
19450   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19451   if test -f "$ltmain_in"; then
19452     test -f Makefile && make "$ltmain"
19453   fi
19454 fi
19455
19456
19457 ac_ext=c
19458 ac_cpp='$CPP $CPPFLAGS'
19459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19462
19463 CC="$lt_save_CC"
19464
19465         ;;
19466
19467       *)
19468         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19469 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19470    { (exit 1); exit 1; }; }
19471         ;;
19472       esac
19473
19474       # Append the new tag name to the list of available tags.
19475       if test -n "$tagname" ; then
19476       available_tags="$available_tags $tagname"
19477     fi
19478     fi
19479   done
19480   IFS="$lt_save_ifs"
19481
19482   # Now substitute the updated list of available tags.
19483   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19484     mv "${ofile}T" "$ofile"
19485     chmod +x "$ofile"
19486   else
19487     rm -f "${ofile}T"
19488     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19489 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19490    { (exit 1); exit 1; }; }
19491   fi
19492 fi
19493
19494
19495
19496 # This can be used to rebuild libtool when needed
19497 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19498
19499 # Always use our own libtool.
19500 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19501
19502 # Prevent multiple expansion
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523  for ac_prog in gzip uncompress compress
19524 do
19525   # Extract the first word of "$ac_prog", so it can be a program name with args.
19526 set dummy $ac_prog; ac_word=$2
19527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19529 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532   if test -n "$UNCOMPRESS"; then
19533   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
19534 else
19535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19536 for as_dir in $PATH
19537 do
19538   IFS=$as_save_IFS
19539   test -z "$as_dir" && as_dir=.
19540   for ac_exec_ext in '' $ac_executable_extensions; do
19541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19542     ac_cv_prog_UNCOMPRESS="$ac_prog"
19543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19544     break 2
19545   fi
19546 done
19547 done
19548 IFS=$as_save_IFS
19549
19550 fi
19551 fi
19552 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
19553 if test -n "$UNCOMPRESS"; then
19554   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
19555 echo "${ECHO_T}$UNCOMPRESS" >&6; }
19556 else
19557   { echo "$as_me:$LINENO: result: no" >&5
19558 echo "${ECHO_T}no" >&6; }
19559 fi
19560
19561
19562   test -n "$UNCOMPRESS" && break
19563 done
19564
19565
19566 OBJEXT="o"
19567 AREXT=".a"
19568 CXXLIBS="-lstdc++"
19569
19570
19571
19572 if test "x$EXEEXT" = "x.exe";then
19573     OBJEXT="obj"
19574     AREXT=".lib"
19575     CXXLIBS=""
19576 fi
19577
19578
19579
19580
19581 { echo "$as_me:$LINENO: checking host system type" >&5
19582 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19583 if test "${ac_cv_host+set}" = set; then
19584   echo $ECHO_N "(cached) $ECHO_C" >&6
19585 else
19586   if test "x$host_alias" = x; then
19587   ac_cv_host=$ac_cv_build
19588 else
19589   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19590     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19592    { (exit 1); exit 1; }; }
19593 fi
19594
19595 fi
19596 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19597 echo "${ECHO_T}$ac_cv_host" >&6; }
19598 case $ac_cv_host in
19599 *-*-*) ;;
19600 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19601 echo "$as_me: error: invalid value of canonical host" >&2;}
19602    { (exit 1); exit 1; }; };;
19603 esac
19604 host=$ac_cv_host
19605 ac_save_IFS=$IFS; IFS='-'
19606 set x $ac_cv_host
19607 shift
19608 host_cpu=$1
19609 host_vendor=$2
19610 shift; shift
19611 # Remember, the first character of IFS is used to create $*,
19612 # except with old shells:
19613 host_os=$*
19614 IFS=$ac_save_IFS
19615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19616
19617
19618
19619
19620 { echo "$as_me:$LINENO: checking for target system" >&5
19621 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
19622 CYGWIN=
19623 MINGW=
19624 case $host_os in
19625     *cygwin* ) CYGWIN=yes;;
19626     *mingw* ) MINGW=yes;;
19627 esac
19628
19629 AR=ar
19630 if test "x$MINGW" = "xyes"; then
19631     #fix for the debian distribution of mingw
19632     if test -x "/usr/i586-mingw32msvc/bin/ar";then
19633         AR="/usr/i586-mingw32msvc/bin/ar"
19634     fi
19635     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
19636         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
19637     fi
19638     #fix for the gentoo distribution of mingw
19639     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
19640         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
19641     fi
19642     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
19643         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
19644     fi
19645     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
19646         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
19647     fi
19648 fi
19649
19650
19651
19652 if test "x${CYGWIN}" = "xyes"; then
19653     cat >>confdefs.h <<_ACEOF
19654 #define CYGWIN 1
19655 _ACEOF
19656
19657     { echo "$as_me:$LINENO: result: cygwin" >&5
19658 echo "${ECHO_T}cygwin" >&6; }
19659 else
19660     if test "x${MINGW}" = "xyes"; then
19661         cat >>confdefs.h <<_ACEOF
19662 #define MINGW 1
19663 _ACEOF
19664
19665         WIN32=1
19666         cat >>confdefs.h <<_ACEOF
19667 #define WIN32 1
19668 _ACEOF
19669
19670         LIBS="$LIBS -lws2_32 -lgdi32"
19671         { echo "$as_me:$LINENO: result: mingw" >&5
19672 echo "${ECHO_T}mingw" >&6; }
19673     else
19674         LINUX=1
19675         export LINUX
19676         cat >>confdefs.h <<_ACEOF
19677 #define LINUX 1
19678 _ACEOF
19679
19680         { echo "$as_me:$LINENO: result: " >&5
19681 echo "${ECHO_T}" >&6; }
19682     fi
19683 fi
19684
19685
19686 SLEXT="so"
19687 if test "x${MINGW}" != "xyes"; then
19688     # no mingW
19689     cat >>confdefs.h <<_ACEOF
19690 #define O_BINARY 0
19691 _ACEOF
19692
19693 else
19694     # mingW
19695     SLEXT="dll"
19696     CXXLIBS=""
19697 fi
19698 export SLEXT
19699
19700
19701
19702 # The following tries to make use of includes and libraries in
19703 # /usr/local, too. Notice: A -I/usr/local/include might break
19704 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19705 # especially on systems which link /usr/local to /usr, so it has yet
19706 # to be seen how useful this is.
19707 if test -d /usr/local/lib; then
19708     LDFLAGS="$LDFLAGS -L/usr/local/lib"
19709 fi
19710 if test -d /usr/local/include; then
19711 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19712 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19713     echo > /dev/null
19714 fi
19715 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19716     # if the user has a special prefix (like /opt), there might also be $prefix/lib
19717     # and $prefix/include, which should be included in our search paths for libraries
19718     # and includes.
19719     LDFLAGS="$LDFLAGS -L${libdir}"
19720     CPPFLAGS="$CPPFLAGS -I${includedir}"
19721     # TODO- test whether gcc still works after this
19722 fi
19723
19724 #Mac OS:
19725 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
19726
19727
19728 # this must be done after (I believe) AC_PROG_MAKE_SET
19729 if test "x$DEBUG" '!=' "x";then
19730     STRIP="@echo debug enabled, not stripping "
19731     export STRIP
19732
19733 fi
19734
19735
19736 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
19737 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
19738 if test "${ac_cv_lib_m_sin+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-lm  $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749
19750 /* Override any GCC internal prototype to avoid an error.
19751    Use char because int might match the return type of a GCC
19752    builtin and then its argument prototype would still apply.  */
19753 #ifdef __cplusplus
19754 extern "C"
19755 #endif
19756 char sin ();
19757 int
19758 main ()
19759 {
19760 return sin ();
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769   *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772   (eval "$ac_link") 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19780   { (case "(($ac_try" in
19781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782   *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785   (eval "$ac_try") 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); }; } &&
19789          { ac_try='test -s conftest$ac_exeext'
19790   { (case "(($ac_try" in
19791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792   *) ac_try_echo=$ac_try;;
19793 esac
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795   (eval "$ac_try") 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_cv_lib_m_sin=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804         ac_cv_lib_m_sin=no
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext \
19808       conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19810 fi
19811 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19812 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
19813 if test $ac_cv_lib_m_sin = yes; then
19814   cat >>confdefs.h <<_ACEOF
19815 #define HAVE_LIBM 1
19816 _ACEOF
19817
19818   LIBS="-lm $LIBS"
19819
19820 else
19821   echo "Error: Math library not found.";
19822  exit;
19823
19824 fi
19825
19826
19827 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19828 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
19829 if test "${ac_cv_lib_z_deflate+set}" = set; then
19830   echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832   ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lz  $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840
19841 /* Override any GCC internal prototype to avoid an error.
19842    Use char because int might match the return type of a GCC
19843    builtin and then its argument prototype would still apply.  */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 char deflate ();
19848 int
19849 main ()
19850 {
19851 return deflate ();
19852   ;
19853   return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_link") 2>conftest.er1
19864   ac_status=$?
19865   grep -v '^ *+' conftest.er1 >conftest.err
19866   rm -f conftest.er1
19867   cat conftest.err >&5
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } &&
19870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871   { (case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_try") 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; } &&
19880          { ac_try='test -s conftest$ac_exeext'
19881   { (case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_try") 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_cv_lib_z_deflate=yes
19891 else
19892   echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895         ac_cv_lib_z_deflate=no
19896 fi
19897
19898 rm -f core conftest.err conftest.$ac_objext \
19899       conftest$ac_exeext conftest.$ac_ext
19900 LIBS=$ac_check_lib_save_LIBS
19901 fi
19902 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19903 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
19904 if test $ac_cv_lib_z_deflate = yes; then
19905   cat >>confdefs.h <<_ACEOF
19906 #define HAVE_LIBZ 1
19907 _ACEOF
19908
19909   LIBS="-lz $LIBS"
19910
19911 else
19912   ZLIBMISSING=true
19913 fi
19914
19915
19916 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19917 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
19918 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19919   echo $ECHO_N "(cached) $ECHO_C" >&6
19920 else
19921   ac_check_lib_save_LIBS=$LIBS
19922 LIBS="-ljpeg  $LIBS"
19923 cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929
19930 /* Override any GCC internal prototype to avoid an error.
19931    Use char because int might match the return type of a GCC
19932    builtin and then its argument prototype would still apply.  */
19933 #ifdef __cplusplus
19934 extern "C"
19935 #endif
19936 char jpeg_write_raw_data ();
19937 int
19938 main ()
19939 {
19940 return jpeg_write_raw_data ();
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 rm -f conftest.$ac_objext conftest$ac_exeext
19946 if { (ac_try="$ac_link"
19947 case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_link") 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } &&
19959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19960   { (case "(($ac_try" in
19961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962   *) ac_try_echo=$ac_try;;
19963 esac
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965   (eval "$ac_try") 2>&5
19966   ac_status=$?
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); }; } &&
19969          { ac_try='test -s conftest$ac_exeext'
19970   { (case "(($ac_try" in
19971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972   *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975   (eval "$ac_try") 2>&5
19976   ac_status=$?
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); }; }; then
19979   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19980 else
19981   echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19983
19984         ac_cv_lib_jpeg_jpeg_write_raw_data=no
19985 fi
19986
19987 rm -f core conftest.err conftest.$ac_objext \
19988       conftest$ac_exeext conftest.$ac_ext
19989 LIBS=$ac_check_lib_save_LIBS
19990 fi
19991 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19992 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
19993 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19994   cat >>confdefs.h <<_ACEOF
19995 #define HAVE_LIBJPEG 1
19996 _ACEOF
19997
19998   LIBS="-ljpeg $LIBS"
19999
20000 else
20001   JPEGLIBMISSING=true
20002 fi
20003
20004
20005 { echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
20006 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6; }
20007 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
20008   echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010   ac_check_lib_save_LIBS=$LIBS
20011 LIBS="-lt1  $LIBS"
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018
20019 /* Override any GCC internal prototype to avoid an error.
20020    Use char because int might match the return type of a GCC
20021    builtin and then its argument prototype would still apply.  */
20022 #ifdef __cplusplus
20023 extern "C"
20024 #endif
20025 char T1_LoadFont ();
20026 int
20027 main ()
20028 {
20029 return T1_LoadFont ();
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (ac_try="$ac_link"
20036 case "(($ac_try" in
20037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038   *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041   (eval "$ac_link") 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20049   { (case "(($ac_try" in
20050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051   *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054   (eval "$ac_try") 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; } &&
20058          { ac_try='test -s conftest$ac_exeext'
20059   { (case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_try") 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; }; then
20068   ac_cv_lib_t1_T1_LoadFont=yes
20069 else
20070   echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
20073         ac_cv_lib_t1_T1_LoadFont=no
20074 fi
20075
20076 rm -f core conftest.err conftest.$ac_objext \
20077       conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20079 fi
20080 { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
20081 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6; }
20082 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
20083   cat >>confdefs.h <<_ACEOF
20084 #define HAVE_LIBT1 1
20085 _ACEOF
20086
20087   LIBS="-lt1 $LIBS"
20088
20089 else
20090   T1LIBMISSING=true
20091 fi
20092
20093
20094 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
20095 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
20096 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   ac_check_lib_save_LIBS=$LIBS
20100 LIBS="-lungif  $LIBS"
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107
20108 /* Override any GCC internal prototype to avoid an error.
20109    Use char because int might match the return type of a GCC
20110    builtin and then its argument prototype would still apply.  */
20111 #ifdef __cplusplus
20112 extern "C"
20113 #endif
20114 char DGifOpen ();
20115 int
20116 main ()
20117 {
20118 return DGifOpen ();
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest.$ac_objext conftest$ac_exeext
20124 if { (ac_try="$ac_link"
20125 case "(($ac_try" in
20126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127   *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130   (eval "$ac_link") 2>conftest.er1
20131   ac_status=$?
20132   grep -v '^ *+' conftest.er1 >conftest.err
20133   rm -f conftest.er1
20134   cat conftest.err >&5
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); } &&
20137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20138   { (case "(($ac_try" in
20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140   *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143   (eval "$ac_try") 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; } &&
20147          { ac_try='test -s conftest$ac_exeext'
20148   { (case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153   (eval "$ac_try") 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; }; then
20157   ac_cv_lib_ungif_DGifOpen=yes
20158 else
20159   echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20161
20162         ac_cv_lib_ungif_DGifOpen=no
20163 fi
20164
20165 rm -f core conftest.err conftest.$ac_objext \
20166       conftest$ac_exeext conftest.$ac_ext
20167 LIBS=$ac_check_lib_save_LIBS
20168 fi
20169 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
20170 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
20171 if test $ac_cv_lib_ungif_DGifOpen = yes; then
20172   cat >>confdefs.h <<_ACEOF
20173 #define HAVE_LIBUNGIF 1
20174 _ACEOF
20175
20176   LIBS="-lungif $LIBS"
20177
20178 else
20179   UNGIFMISSING=true
20180 fi
20181
20182
20183
20184 { echo "$as_me:$LINENO: checking for byte order" >&5
20185 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
20186 if test "$cross_compiling" = yes; then
20187   CROSSCOMPILE=1
20188 else
20189   cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h.  */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h.  */
20195
20196 int main (int argc, char *argv[])
20197 {
20198     int i = 1;
20199     return *(char*)&i;
20200 }
20201
20202 _ACEOF
20203 rm -f conftest$ac_exeext
20204 if { (ac_try="$ac_link"
20205 case "(($ac_try" in
20206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207   *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210   (eval "$ac_link") 2>&5
20211   ac_status=$?
20212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20214   { (case "(($ac_try" in
20215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216   *) ac_try_echo=$ac_try;;
20217 esac
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219   (eval "$ac_try") 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; }; then
20223   BIGENDIAN=1
20224 else
20225   echo "$as_me: program exited with status $ac_status" >&5
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229 ( exit $ac_status )
20230 LITTLEENDIAN=1
20231 fi
20232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20233 fi
20234
20235
20236 export CROSSCOMPILE
20237
20238 if test "x${CROSSCOMPILE}" = "x1"; then
20239  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
20240 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
20241  { echo "$as_me:$LINENO: checking target system type" >&5
20242 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
20243 if test "${ac_cv_target+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246   if test "x$target_alias" = x; then
20247   ac_cv_target=$ac_cv_host
20248 else
20249   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
20250     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
20251 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
20252    { (exit 1); exit 1; }; }
20253 fi
20254
20255 fi
20256 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
20257 echo "${ECHO_T}$ac_cv_target" >&6; }
20258 case $ac_cv_target in
20259 *-*-*) ;;
20260 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
20261 echo "$as_me: error: invalid value of canonical target" >&2;}
20262    { (exit 1); exit 1; }; };;
20263 esac
20264 target=$ac_cv_target
20265 ac_save_IFS=$IFS; IFS='-'
20266 set x $ac_cv_target
20267 shift
20268 target_cpu=$1
20269 target_vendor=$2
20270 shift; shift
20271 # Remember, the first character of IFS is used to create $*,
20272 # except with old shells:
20273 target_os=$*
20274 IFS=$ac_save_IFS
20275 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
20276
20277
20278 # The aliases save the names the user supplied, while $host etc.
20279 # will get canonicalized.
20280 test -n "$target_alias" &&
20281   test "$program_prefix$program_suffix$program_transform_name" = \
20282     NONENONEs,x,x, &&
20283   program_prefix=${target_alias}-
20284  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
20285 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
20286  case "${target}" in
20287   *86* | *-pc-* )
20288      LITTLEENDIAN=1
20289      ;;
20290   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
20291      BIGENDIAN=1
20292      ;;
20293  esac
20294 fi
20295
20296 export LITTLEENDIAN
20297 if test "x${LITTLEENDIAN}" = "x1"; then
20298 { echo "$as_me:$LINENO: result: little endian" >&5
20299 echo "${ECHO_T}little endian" >&6; }
20300 BYTEORDERCHECKOK=1
20301 fi
20302 export BIGENDIAN
20303 if test "x${BIGENDIAN}" = "x1"; then
20304 { echo "$as_me:$LINENO: result: big endian" >&5
20305 echo "${ECHO_T}big endian" >&6; }
20306 BYTEORDERCHECKOK=1
20307 WORDS_BIGENDIAN=1
20308 export WORDS_BIGENDIAN
20309 cat >>confdefs.h <<_ACEOF
20310 #define WORDS_BIGENDIAN 1
20311 _ACEOF
20312
20313 fi
20314 if test "x${BYTEORDERCHECKOK}" != "x1"; then
20315 { echo "$as_me:$LINENO: result: unknown" >&5
20316 echo "${ECHO_T}unknown" >&6; }
20317 echo Byte order could not determined.
20318 exit 1
20319 fi
20320
20321
20322
20323 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
20324 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
20325 if test "$cross_compiling" = yes; then
20326   CROSSCOMPILE=1
20327 else
20328   cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334
20335 #include "stdlib.h"
20336 int main (int argc, char*argv[])
20337 {
20338     return system("test `touch config.tmp2`");
20339 }
20340
20341 _ACEOF
20342 rm -f conftest$ac_exeext
20343 if { (ac_try="$ac_link"
20344 case "(($ac_try" in
20345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346   *) ac_try_echo=$ac_try;;
20347 esac
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349   (eval "$ac_link") 2>&5
20350   ac_status=$?
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20353   { (case "(($ac_try" in
20354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355   *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358   (eval "$ac_try") 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; }; then
20362   OK=OK
20363 else
20364   echo "$as_me: program exited with status $ac_status" >&5
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 fi
20369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20370 fi
20371
20372
20373
20374 if test "x${OK}" = "xOK";then
20375     test -f config.tmp2 || OK=
20376 fi
20377
20378 if test "x${CROSSCOMPILE}" = "x1";then
20379     OK=no;
20380 fi
20381 if test "x${OK}" = "xOK";then
20382 rm -f config.tmp2
20383 { echo "$as_me:$LINENO: result: yes" >&5
20384 echo "${ECHO_T}yes" >&6; }
20385 SYSTEM_BACKTICKS=1
20386 export SYSTEM_BACKTICKS
20387 cat >>confdefs.h <<_ACEOF
20388 #define SYSTEM_BACKTICKS 1
20389 _ACEOF
20390
20391 else
20392 { echo "$as_me:$LINENO: result: no" >&5
20393 echo "${ECHO_T}no" >&6; }
20394 fi
20395
20396
20397
20398 test "$program_prefix" != NONE &&
20399   program_transform_name="s&^&$program_prefix&;$program_transform_name"
20400 # Use a double $ so make ignores it.
20401 test "$program_suffix" != NONE &&
20402   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
20403 # Double any \ or $.  echo might interpret backslashes.
20404 # By default was `s,x,x', remove it if useless.
20405 cat <<\_ACEOF >conftest.sed
20406 s/[\\$]/&&/g;s/;s,x,x,$//
20407 _ACEOF
20408 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
20409 rm -f conftest.sed
20410
20411
20412  ac_config_headers="$ac_config_headers config.h"
20413
20414
20415
20416
20417
20418
20419 ac_header_dirent=no
20420 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20421   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20422 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20423 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20425   echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427   cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h.  */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h.  */
20433 #include <sys/types.h>
20434 #include <$ac_hdr>
20435
20436 int
20437 main ()
20438 {
20439 if ((DIR *) 0)
20440 return 0;
20441   ;
20442   return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452   (eval "$ac_compile") 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } &&
20459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20460   { (case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_try") 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; } &&
20469          { ac_try='test -s conftest.$ac_objext'
20470   { (case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_try") 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; }; then
20479   eval "$as_ac_Header=yes"
20480 else
20481   echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484         eval "$as_ac_Header=no"
20485 fi
20486
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20488 fi
20489 ac_res=`eval echo '${'$as_ac_Header'}'`
20490                { echo "$as_me:$LINENO: result: $ac_res" >&5
20491 echo "${ECHO_T}$ac_res" >&6; }
20492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20493   cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20495 _ACEOF
20496
20497 ac_header_dirent=$ac_hdr; break
20498 fi
20499
20500 done
20501 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20502 if test $ac_header_dirent = dirent.h; then
20503   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20504 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20505 if test "${ac_cv_search_opendir+set}" = set; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508   ac_func_search_save_LIBS=$LIBS
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515
20516 /* Override any GCC internal prototype to avoid an error.
20517    Use char because int might match the return type of a GCC
20518    builtin and then its argument prototype would still apply.  */
20519 #ifdef __cplusplus
20520 extern "C"
20521 #endif
20522 char opendir ();
20523 int
20524 main ()
20525 {
20526 return opendir ();
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 for ac_lib in '' dir; do
20532   if test -z "$ac_lib"; then
20533     ac_res="none required"
20534   else
20535     ac_res=-l$ac_lib
20536     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20537   fi
20538   rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542   *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545   (eval "$ac_link") 2>conftest.er1
20546   ac_status=$?
20547   grep -v '^ *+' conftest.er1 >conftest.err
20548   rm -f conftest.er1
20549   cat conftest.err >&5
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } &&
20552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20553   { (case "(($ac_try" in
20554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555   *) ac_try_echo=$ac_try;;
20556 esac
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558   (eval "$ac_try") 2>&5
20559   ac_status=$?
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); }; } &&
20562          { ac_try='test -s conftest$ac_exeext'
20563   { (case "(($ac_try" in
20564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565   *) ac_try_echo=$ac_try;;
20566 esac
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568   (eval "$ac_try") 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; }; then
20572   ac_cv_search_opendir=$ac_res
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext \
20581       conftest$ac_exeext
20582   if test "${ac_cv_search_opendir+set}" = set; then
20583   break
20584 fi
20585 done
20586 if test "${ac_cv_search_opendir+set}" = set; then
20587   :
20588 else
20589   ac_cv_search_opendir=no
20590 fi
20591 rm conftest.$ac_ext
20592 LIBS=$ac_func_search_save_LIBS
20593 fi
20594 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20595 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20596 ac_res=$ac_cv_search_opendir
20597 if test "$ac_res" != no; then
20598   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20599
20600 fi
20601
20602 else
20603   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20605 if test "${ac_cv_search_opendir+set}" = set; then
20606   echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608   ac_func_search_save_LIBS=$LIBS
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615
20616 /* Override any GCC internal prototype to avoid an error.
20617    Use char because int might match the return type of a GCC
20618    builtin and then its argument prototype would still apply.  */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char opendir ();
20623 int
20624 main ()
20625 {
20626 return opendir ();
20627   ;
20628   return 0;
20629 }
20630 _ACEOF
20631 for ac_lib in '' x; do
20632   if test -z "$ac_lib"; then
20633     ac_res="none required"
20634   else
20635     ac_res=-l$ac_lib
20636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20637   fi
20638   rm -f conftest.$ac_objext conftest$ac_exeext
20639 if { (ac_try="$ac_link"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_link") 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } &&
20652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653   { (case "(($ac_try" in
20654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655   *) ac_try_echo=$ac_try;;
20656 esac
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658   (eval "$ac_try") 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; } &&
20662          { ac_try='test -s conftest$ac_exeext'
20663   { (case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_try") 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; }; then
20672   ac_cv_search_opendir=$ac_res
20673 else
20674   echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677
20678 fi
20679
20680 rm -f core conftest.err conftest.$ac_objext \
20681       conftest$ac_exeext
20682   if test "${ac_cv_search_opendir+set}" = set; then
20683   break
20684 fi
20685 done
20686 if test "${ac_cv_search_opendir+set}" = set; then
20687   :
20688 else
20689   ac_cv_search_opendir=no
20690 fi
20691 rm conftest.$ac_ext
20692 LIBS=$ac_func_search_save_LIBS
20693 fi
20694 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20695 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20696 ac_res=$ac_cv_search_opendir
20697 if test "$ac_res" != no; then
20698   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20699
20700 fi
20701
20702 fi
20703
20704  { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20705 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20706 if test "${ac_cv_header_stdc+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709   cat >conftest.$ac_ext <<_ACEOF
20710 /* confdefs.h.  */
20711 _ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h.  */
20715 #include <stdlib.h>
20716 #include <stdarg.h>
20717 #include <string.h>
20718 #include <float.h>
20719
20720 int
20721 main ()
20722 {
20723
20724   ;
20725   return 0;
20726 }
20727 _ACEOF
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732   *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735   (eval "$ac_compile") 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } &&
20742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20743   { (case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_try") 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; } &&
20752          { ac_try='test -s conftest.$ac_objext'
20753   { (case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_try") 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; }; then
20762   ac_cv_header_stdc=yes
20763 else
20764   echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.$ac_ext >&5
20766
20767         ac_cv_header_stdc=no
20768 fi
20769
20770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771
20772 if test $ac_cv_header_stdc = yes; then
20773   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20774   cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h.  */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h.  */
20780 #include <string.h>
20781
20782 _ACEOF
20783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20784   $EGREP "memchr" >/dev/null 2>&1; then
20785   :
20786 else
20787   ac_cv_header_stdc=no
20788 fi
20789 rm -f conftest*
20790
20791 fi
20792
20793 if test $ac_cv_header_stdc = yes; then
20794   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20795   cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 #include <stdlib.h>
20802
20803 _ACEOF
20804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20805   $EGREP "free" >/dev/null 2>&1; then
20806   :
20807 else
20808   ac_cv_header_stdc=no
20809 fi
20810 rm -f conftest*
20811
20812 fi
20813
20814 if test $ac_cv_header_stdc = yes; then
20815   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20816   if test "$cross_compiling" = yes; then
20817   :
20818 else
20819   cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825 #include <ctype.h>
20826 #include <stdlib.h>
20827 #if ((' ' & 0x0FF) == 0x020)
20828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20830 #else
20831 # define ISLOWER(c) \
20832                    (('a' <= (c) && (c) <= 'i') \
20833                      || ('j' <= (c) && (c) <= 'r') \
20834                      || ('s' <= (c) && (c) <= 'z'))
20835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20836 #endif
20837
20838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20839 int
20840 main ()
20841 {
20842   int i;
20843   for (i = 0; i < 256; i++)
20844     if (XOR (islower (i), ISLOWER (i))
20845         || toupper (i) != TOUPPER (i))
20846       return 2;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest$ac_exeext
20851 if { (ac_try="$ac_link"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857   (eval "$ac_link") 2>&5
20858   ac_status=$?
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20861   { (case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866   (eval "$ac_try") 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   :
20871 else
20872   echo "$as_me: program exited with status $ac_status" >&5
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876 ( exit $ac_status )
20877 ac_cv_header_stdc=no
20878 fi
20879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20880 fi
20881
20882
20883 fi
20884 fi
20885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20887 if test $ac_cv_header_stdc = yes; then
20888
20889 cat >>confdefs.h <<\_ACEOF
20890 #define STDC_HEADERS 1
20891 _ACEOF
20892
20893 fi
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
20911 do
20912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20917   echo $ECHO_N "(cached) $ECHO_C" >&6
20918 fi
20919 ac_res=`eval echo '${'$as_ac_Header'}'`
20920                { echo "$as_me:$LINENO: result: $ac_res" >&5
20921 echo "${ECHO_T}$ac_res" >&6; }
20922 else
20923   # Is the header compilable?
20924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h.  */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h.  */
20932 $ac_includes_default
20933 #include <$ac_header>
20934 _ACEOF
20935 rm -f conftest.$ac_objext
20936 if { (ac_try="$ac_compile"
20937 case "(($ac_try" in
20938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939   *) ac_try_echo=$ac_try;;
20940 esac
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942   (eval "$ac_compile") 2>conftest.er1
20943   ac_status=$?
20944   grep -v '^ *+' conftest.er1 >conftest.err
20945   rm -f conftest.er1
20946   cat conftest.err >&5
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); } &&
20949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20950   { (case "(($ac_try" in
20951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952   *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955   (eval "$ac_try") 2>&5
20956   ac_status=$?
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); }; } &&
20959          { ac_try='test -s conftest.$ac_objext'
20960   { (case "(($ac_try" in
20961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962   *) ac_try_echo=$ac_try;;
20963 esac
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965   (eval "$ac_try") 2>&5
20966   ac_status=$?
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); }; }; then
20969   ac_header_compiler=yes
20970 else
20971   echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20973
20974         ac_header_compiler=no
20975 fi
20976
20977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20979 echo "${ECHO_T}$ac_header_compiler" >&6; }
20980
20981 # Is the header present?
20982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20984 cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h.  */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h.  */
20990 #include <$ac_header>
20991 _ACEOF
20992 if { (ac_try="$ac_cpp conftest.$ac_ext"
20993 case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } >/dev/null; then
21005   if test -s conftest.err; then
21006     ac_cpp_err=$ac_c_preproc_warn_flag
21007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21008   else
21009     ac_cpp_err=
21010   fi
21011 else
21012   ac_cpp_err=yes
21013 fi
21014 if test -z "$ac_cpp_err"; then
21015   ac_header_preproc=yes
21016 else
21017   echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020   ac_header_preproc=no
21021 fi
21022
21023 rm -f conftest.err conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21025 echo "${ECHO_T}$ac_header_preproc" >&6; }
21026
21027 # So?  What about this header?
21028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21029   yes:no: )
21030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21034     ac_header_preproc=yes
21035     ;;
21036   no:yes:* )
21037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21049
21050     ;;
21051 esac
21052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055   echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057   eval "$as_ac_Header=\$ac_header_preproc"
21058 fi
21059 ac_res=`eval echo '${'$as_ac_Header'}'`
21060                { echo "$as_me:$LINENO: result: $ac_res" >&5
21061 echo "${ECHO_T}$ac_res" >&6; }
21062
21063 fi
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065   cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21067 _ACEOF
21068
21069 fi
21070
21071 done
21072
21073
21074 cat >>confdefs.h <<_ACEOF
21075 #define PACKAGE "$PACKAGE"
21076 _ACEOF
21077
21078 cat >>confdefs.h <<_ACEOF
21079 #define VERSION "$VERSION"
21080 _ACEOF
21081
21082
21083
21084
21085
21086
21087
21088  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21090 if test "${ac_cv_c_const+set}" = set; then
21091   echo $ECHO_N "(cached) $ECHO_C" >&6
21092 else
21093   cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099
21100 int
21101 main ()
21102 {
21103 /* FIXME: Include the comments suggested by Paul. */
21104 #ifndef __cplusplus
21105   /* Ultrix mips cc rejects this.  */
21106   typedef int charset[2];
21107   const charset x;
21108   /* SunOS 4.1.1 cc rejects this.  */
21109   char const *const *ccp;
21110   char **p;
21111   /* NEC SVR4.0.2 mips cc rejects this.  */
21112   struct point {int x, y;};
21113   static struct point const zero = {0,0};
21114   /* AIX XL C 1.02.0.0 rejects this.
21115      It does not let you subtract one const X* pointer from another in
21116      an arm of an if-expression whose if-part is not a constant
21117      expression */
21118   const char *g = "string";
21119   ccp = &g + (g ? g-g : 0);
21120   /* HPUX 7.0 cc rejects these. */
21121   ++ccp;
21122   p = (char**) ccp;
21123   ccp = (char const *const *) p;
21124   { /* SCO 3.2v4 cc rejects this.  */
21125     char *t;
21126     char const *s = 0 ? (char *) 0 : (char const *) 0;
21127
21128     *t++ = 0;
21129     if (s) return 0;
21130   }
21131   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21132     int x[] = {25, 17};
21133     const int *foo = &x[0];
21134     ++foo;
21135   }
21136   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21137     typedef const int *iptr;
21138     iptr p = 0;
21139     ++p;
21140   }
21141   { /* AIX XL C 1.02.0.0 rejects this saying
21142        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21143     struct s { int j; const int *ap[3]; };
21144     struct s *b; b->j = 5;
21145   }
21146   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21147     const int foo = 10;
21148     if (!foo) return 0;
21149   }
21150   return !x[0] && !zero.x;
21151 #endif
21152
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164   (eval "$ac_compile") 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } &&
21171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21172   { (case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_try") 2>&5
21178   ac_status=$?
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); }; } &&
21181          { ac_try='test -s conftest.$ac_objext'
21182   { (case "(($ac_try" in
21183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184   *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187   (eval "$ac_try") 2>&5
21188   ac_status=$?
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); }; }; then
21191   ac_cv_c_const=yes
21192 else
21193   echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21195
21196         ac_cv_c_const=no
21197 fi
21198
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 fi
21201 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21202 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21203 if test $ac_cv_c_const = no; then
21204
21205 cat >>confdefs.h <<\_ACEOF
21206 #define const
21207 _ACEOF
21208
21209 fi
21210
21211  { echo "$as_me:$LINENO: checking for inline" >&5
21212 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21213 if test "${ac_cv_c_inline+set}" = set; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216   ac_cv_c_inline=no
21217 for ac_kw in inline __inline__ __inline; do
21218   cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 #ifndef __cplusplus
21225 typedef int foo_t;
21226 static $ac_kw foo_t static_foo () {return 0; }
21227 $ac_kw foo_t foo () {return 0; }
21228 #endif
21229
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235   *) ac_try_echo=$ac_try;;
21236 esac
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238   (eval "$ac_compile") 2>conftest.er1
21239   ac_status=$?
21240   grep -v '^ *+' conftest.er1 >conftest.err
21241   rm -f conftest.er1
21242   cat conftest.err >&5
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } &&
21245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21246   { (case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251   (eval "$ac_try") 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; } &&
21255          { ac_try='test -s conftest.$ac_objext'
21256   { (case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261   (eval "$ac_try") 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; }; then
21265   ac_cv_c_inline=$ac_kw
21266 else
21267   echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270
21271 fi
21272
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274   test "$ac_cv_c_inline" != no && break
21275 done
21276
21277 fi
21278 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21279 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21280
21281
21282 case $ac_cv_c_inline in
21283   inline | yes) ;;
21284   *)
21285     case $ac_cv_c_inline in
21286       no) ac_val=;;
21287       *) ac_val=$ac_cv_c_inline;;
21288     esac
21289     cat >>confdefs.h <<_ACEOF
21290 #ifndef __cplusplus
21291 #define inline $ac_val
21292 #endif
21293 _ACEOF
21294     ;;
21295 esac
21296
21297  { echo "$as_me:$LINENO: checking for off_t" >&5
21298 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21299 if test "${ac_cv_type_off_t+set}" = set; then
21300   echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302   cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h.  */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h.  */
21308 $ac_includes_default
21309 typedef off_t ac__type_new_;
21310 int
21311 main ()
21312 {
21313 if ((ac__type_new_ *) 0)
21314   return 0;
21315 if (sizeof (ac__type_new_))
21316   return 0;
21317   ;
21318   return 0;
21319 }
21320 _ACEOF
21321 rm -f conftest.$ac_objext
21322 if { (ac_try="$ac_compile"
21323 case "(($ac_try" in
21324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325   *) ac_try_echo=$ac_try;;
21326 esac
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328   (eval "$ac_compile") 2>conftest.er1
21329   ac_status=$?
21330   grep -v '^ *+' conftest.er1 >conftest.err
21331   rm -f conftest.er1
21332   cat conftest.err >&5
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); } &&
21335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21336   { (case "(($ac_try" in
21337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338   *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341   (eval "$ac_try") 2>&5
21342   ac_status=$?
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); }; } &&
21345          { ac_try='test -s conftest.$ac_objext'
21346   { (case "(($ac_try" in
21347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348   *) ac_try_echo=$ac_try;;
21349 esac
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351   (eval "$ac_try") 2>&5
21352   ac_status=$?
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); }; }; then
21355   ac_cv_type_off_t=yes
21356 else
21357   echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360         ac_cv_type_off_t=no
21361 fi
21362
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364 fi
21365 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21366 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21367 if test $ac_cv_type_off_t = yes; then
21368   :
21369 else
21370
21371 cat >>confdefs.h <<_ACEOF
21372 #define off_t long int
21373 _ACEOF
21374
21375 fi
21376
21377  { echo "$as_me:$LINENO: checking for size_t" >&5
21378 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21379 if test "${ac_cv_type_size_t+set}" = set; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 $ac_includes_default
21389 typedef size_t ac__type_new_;
21390 int
21391 main ()
21392 {
21393 if ((ac__type_new_ *) 0)
21394   return 0;
21395 if (sizeof (ac__type_new_))
21396   return 0;
21397   ;
21398   return 0;
21399 }
21400 _ACEOF
21401 rm -f conftest.$ac_objext
21402 if { (ac_try="$ac_compile"
21403 case "(($ac_try" in
21404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405   *) ac_try_echo=$ac_try;;
21406 esac
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408   (eval "$ac_compile") 2>conftest.er1
21409   ac_status=$?
21410   grep -v '^ *+' conftest.er1 >conftest.err
21411   rm -f conftest.er1
21412   cat conftest.err >&5
21413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414   (exit $ac_status); } &&
21415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21416   { (case "(($ac_try" in
21417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418   *) ac_try_echo=$ac_try;;
21419 esac
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421   (eval "$ac_try") 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; } &&
21425          { ac_try='test -s conftest.$ac_objext'
21426   { (case "(($ac_try" in
21427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428   *) ac_try_echo=$ac_try;;
21429 esac
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431   (eval "$ac_try") 2>&5
21432   ac_status=$?
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); }; }; then
21435   ac_cv_type_size_t=yes
21436 else
21437   echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440         ac_cv_type_size_t=no
21441 fi
21442
21443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21444 fi
21445 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21446 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21447 if test $ac_cv_type_size_t = yes; then
21448   :
21449 else
21450
21451 cat >>confdefs.h <<_ACEOF
21452 #define size_t unsigned int
21453 _ACEOF
21454
21455 fi
21456
21457  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21458 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21459 if test "${ac_cv_struct_tm+set}" = set; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <sys/types.h>
21469 #include <time.h>
21470
21471 int
21472 main ()
21473 {
21474 struct tm *tp; tp->tm_sec;
21475   ;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (ac_try="$ac_compile"
21481 case "(($ac_try" in
21482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483   *) ac_try_echo=$ac_try;;
21484 esac
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486   (eval "$ac_compile") 2>conftest.er1
21487   ac_status=$?
21488   grep -v '^ *+' conftest.er1 >conftest.err
21489   rm -f conftest.er1
21490   cat conftest.err >&5
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } &&
21493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21494   { (case "(($ac_try" in
21495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496   *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499   (eval "$ac_try") 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; } &&
21503          { ac_try='test -s conftest.$ac_objext'
21504   { (case "(($ac_try" in
21505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506   *) ac_try_echo=$ac_try;;
21507 esac
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509   (eval "$ac_try") 2>&5
21510   ac_status=$?
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); }; }; then
21513   ac_cv_struct_tm=time.h
21514 else
21515   echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21517
21518         ac_cv_struct_tm=sys/time.h
21519 fi
21520
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21522 fi
21523 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21524 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21525 if test $ac_cv_struct_tm = sys/time.h; then
21526
21527 cat >>confdefs.h <<\_ACEOF
21528 #define TM_IN_SYS_TIME 1
21529 _ACEOF
21530
21531 fi
21532
21533  { echo "$as_me:$LINENO: checking for boolean" >&5
21534 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
21535 if test "${ac_cv_type_boolean+set}" = set; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 $ac_includes_default
21545 typedef boolean ac__type_new_;
21546 int
21547 main ()
21548 {
21549 if ((ac__type_new_ *) 0)
21550   return 0;
21551 if (sizeof (ac__type_new_))
21552   return 0;
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561   *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564   (eval "$ac_compile") 2>conftest.er1
21565   ac_status=$?
21566   grep -v '^ *+' conftest.er1 >conftest.err
21567   rm -f conftest.er1
21568   cat conftest.err >&5
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } &&
21571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21572   { (case "(($ac_try" in
21573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574   *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577   (eval "$ac_try") 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); }; } &&
21581          { ac_try='test -s conftest.$ac_objext'
21582   { (case "(($ac_try" in
21583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584   *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587   (eval "$ac_try") 2>&5
21588   ac_status=$?
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); }; }; then
21591   ac_cv_type_boolean=yes
21592 else
21593   echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596         ac_cv_type_boolean=no
21597 fi
21598
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 fi
21601 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
21602 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
21603 if test $ac_cv_type_boolean = yes; then
21604   :
21605 else
21606
21607 cat >>confdefs.h <<_ACEOF
21608 #define boolean int
21609 _ACEOF
21610
21611 fi
21612  #needed for jpeglib
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
21625 do
21626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21630   echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632   cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h.  */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h.  */
21638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21640 #define $ac_func innocuous_$ac_func
21641
21642 /* System header to define __stub macros and hopefully few prototypes,
21643     which can conflict with char $ac_func (); below.
21644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21645     <limits.h> exists even on freestanding compilers.  */
21646
21647 #ifdef __STDC__
21648 # include <limits.h>
21649 #else
21650 # include <assert.h>
21651 #endif
21652
21653 #undef $ac_func
21654
21655 /* Override any GCC internal prototype to avoid an error.
21656    Use char because int might match the return type of a GCC
21657    builtin and then its argument prototype would still apply.  */
21658 #ifdef __cplusplus
21659 extern "C"
21660 #endif
21661 char $ac_func ();
21662 /* The GNU C library defines this for functions which it implements
21663     to always fail with ENOSYS.  Some functions are actually named
21664     something starting with __ and the normal name is an alias.  */
21665 #if defined __stub_$ac_func || defined __stub___$ac_func
21666 choke me
21667 #endif
21668
21669 int
21670 main ()
21671 {
21672 return $ac_func ();
21673   ;
21674   return 0;
21675 }
21676 _ACEOF
21677 rm -f conftest.$ac_objext conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681   *) ac_try_echo=$ac_try;;
21682 esac
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684   (eval "$ac_link") 2>conftest.er1
21685   ac_status=$?
21686   grep -v '^ *+' conftest.er1 >conftest.err
21687   rm -f conftest.er1
21688   cat conftest.err >&5
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); } &&
21691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21692   { (case "(($ac_try" in
21693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694   *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697   (eval "$ac_try") 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; } &&
21701          { ac_try='test -s conftest$ac_exeext'
21702   { (case "(($ac_try" in
21703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704   *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707   (eval "$ac_try") 2>&5
21708   ac_status=$?
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); }; }; then
21711   eval "$as_ac_var=yes"
21712 else
21713   echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716         eval "$as_ac_var=no"
21717 fi
21718
21719 rm -f core conftest.err conftest.$ac_objext \
21720       conftest$ac_exeext conftest.$ac_ext
21721 fi
21722 ac_res=`eval echo '${'$as_ac_var'}'`
21723                { echo "$as_me:$LINENO: result: $ac_res" >&5
21724 echo "${ECHO_T}$ac_res" >&6; }
21725 if test `eval echo '${'$as_ac_var'}'` = yes; then
21726   cat >>confdefs.h <<_ACEOF
21727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21728 _ACEOF
21729
21730 fi
21731 done
21732
21733
21734 # ------------------------------------------------------------------
21735
21736
21737
21738 # Extract the first word of "freetype-config", so it can be a program name with args.
21739 set dummy freetype-config; ac_word=$2
21740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21742 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   case $FREETYPE_CONFIG in
21746   [\\/]* | ?:[\\/]*)
21747   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
21748   ;;
21749   *)
21750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
21752 for as_dir in $as_dummy
21753 do
21754   IFS=$as_save_IFS
21755   test -z "$as_dir" && as_dir=.
21756   for ac_exec_ext in '' $ac_executable_extensions; do
21757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21758     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21760     break 2
21761   fi
21762 done
21763 done
21764 IFS=$as_save_IFS
21765
21766   ;;
21767 esac
21768 fi
21769 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
21770 if test -n "$FREETYPE_CONFIG"; then
21771   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
21772 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
21773 else
21774   { echo "$as_me:$LINENO: result: no" >&5
21775 echo "${ECHO_T}no" >&6; }
21776 fi
21777
21778
21779
21780 OLDCPPFLAGS="${CPPFLAGS}"
21781 OLDLIBS="${LIBS}"
21782 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
21783     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
21784 else if test -d /usr/include/freetype2; then
21785     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
21786 else if test -d /usr/local/include/freetype2; then
21787     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
21788 fi
21789 fi
21790 fi
21791
21792 if test "x${FREETYPE_CONFIG}" '=' "x";then
21793     # if we didn't find the freetype-config program, we won't
21794     # know where the libs are expected to be. So just blindly
21795     # try to link against them.
21796     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
21797 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
21798 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
21799   echo $ECHO_N "(cached) $ECHO_C" >&6
21800 else
21801   ac_check_lib_save_LIBS=$LIBS
21802 LIBS="-lfreetype  $LIBS"
21803 cat >conftest.$ac_ext <<_ACEOF
21804 /* confdefs.h.  */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h.  */
21809
21810 /* Override any GCC internal prototype to avoid an error.
21811    Use char because int might match the return type of a GCC
21812    builtin and then its argument prototype would still apply.  */
21813 #ifdef __cplusplus
21814 extern "C"
21815 #endif
21816 char FT_Init_FreeType ();
21817 int
21818 main ()
21819 {
21820 return FT_Init_FreeType ();
21821   ;
21822   return 0;
21823 }
21824 _ACEOF
21825 rm -f conftest.$ac_objext conftest$ac_exeext
21826 if { (ac_try="$ac_link"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_link") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } &&
21839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21840   { (case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_try") 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; } &&
21849          { ac_try='test -s conftest$ac_exeext'
21850   { (case "(($ac_try" in
21851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852   *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855   (eval "$ac_try") 2>&5
21856   ac_status=$?
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); }; }; then
21859   ac_cv_lib_freetype_FT_Init_FreeType=yes
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864         ac_cv_lib_freetype_FT_Init_FreeType=no
21865 fi
21866
21867 rm -f core conftest.err conftest.$ac_objext \
21868       conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21870 fi
21871 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
21872 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
21873 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
21874   HAVE_LIB_FREETYPE=1
21875 fi
21876
21877 fi
21878
21879
21880 for ac_header in ft2build.h
21881 do
21882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21884   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21887   echo $ECHO_N "(cached) $ECHO_C" >&6
21888 fi
21889 ac_res=`eval echo '${'$as_ac_Header'}'`
21890                { echo "$as_me:$LINENO: result: $ac_res" >&5
21891 echo "${ECHO_T}$ac_res" >&6; }
21892 else
21893   # Is the header compilable?
21894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21896 cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902 $ac_includes_default
21903 #include <$ac_header>
21904 _ACEOF
21905 rm -f conftest.$ac_objext
21906 if { (ac_try="$ac_compile"
21907 case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_compile") 2>conftest.er1
21913   ac_status=$?
21914   grep -v '^ *+' conftest.er1 >conftest.err
21915   rm -f conftest.er1
21916   cat conftest.err >&5
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } &&
21919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21920   { (case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_try") 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; } &&
21929          { ac_try='test -s conftest.$ac_objext'
21930   { (case "(($ac_try" in
21931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932   *) ac_try_echo=$ac_try;;
21933 esac
21934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935   (eval "$ac_try") 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; }; then
21939   ac_header_compiler=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944         ac_header_compiler=no
21945 fi
21946
21947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21949 echo "${ECHO_T}$ac_header_compiler" >&6; }
21950
21951 # Is the header present?
21952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h.  */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h.  */
21960 #include <$ac_header>
21961 _ACEOF
21962 if { (ac_try="$ac_cpp conftest.$ac_ext"
21963 case "(($ac_try" in
21964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965   *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } >/dev/null; then
21975   if test -s conftest.err; then
21976     ac_cpp_err=$ac_c_preproc_warn_flag
21977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21978   else
21979     ac_cpp_err=
21980   fi
21981 else
21982   ac_cpp_err=yes
21983 fi
21984 if test -z "$ac_cpp_err"; then
21985   ac_header_preproc=yes
21986 else
21987   echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990   ac_header_preproc=no
21991 fi
21992
21993 rm -f conftest.err conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21995 echo "${ECHO_T}$ac_header_preproc" >&6; }
21996
21997 # So?  What about this header?
21998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21999   yes:no: )
22000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22004     ac_header_preproc=yes
22005     ;;
22006   no:yes:* )
22007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22019
22020     ;;
22021 esac
22022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22025   echo $ECHO_N "(cached) $ECHO_C" >&6
22026 else
22027   eval "$as_ac_Header=\$ac_header_preproc"
22028 fi
22029 ac_res=`eval echo '${'$as_ac_Header'}'`
22030                { echo "$as_me:$LINENO: result: $ac_res" >&5
22031 echo "${ECHO_T}$ac_res" >&6; }
22032
22033 fi
22034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22035   cat >>confdefs.h <<_ACEOF
22036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22037 _ACEOF
22038  HAVE_FT2BUILD_H=1
22039 fi
22040
22041 done
22042
22043 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
22044
22045 for ac_header in freetype/freetype.h
22046 do
22047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22052   echo $ECHO_N "(cached) $ECHO_C" >&6
22053 fi
22054 ac_res=`eval echo '${'$as_ac_Header'}'`
22055                { echo "$as_me:$LINENO: result: $ac_res" >&5
22056 echo "${ECHO_T}$ac_res" >&6; }
22057 else
22058   # Is the header compilable?
22059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 $ac_includes_default
22068 #include <$ac_header>
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074   *) ac_try_echo=$ac_try;;
22075 esac
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077   (eval "$ac_compile") 2>conftest.er1
22078   ac_status=$?
22079   grep -v '^ *+' conftest.er1 >conftest.err
22080   rm -f conftest.er1
22081   cat conftest.err >&5
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); } &&
22084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22085   { (case "(($ac_try" in
22086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087   *) ac_try_echo=$ac_try;;
22088 esac
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090   (eval "$ac_try") 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); }; } &&
22094          { ac_try='test -s conftest.$ac_objext'
22095   { (case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_try") 2>&5
22101   ac_status=$?
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); }; }; then
22104   ac_header_compiler=yes
22105 else
22106   echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109         ac_header_compiler=no
22110 fi
22111
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22114 echo "${ECHO_T}$ac_header_compiler" >&6; }
22115
22116 # Is the header present?
22117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22119 cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h.  */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h.  */
22125 #include <$ac_header>
22126 _ACEOF
22127 if { (ac_try="$ac_cpp conftest.$ac_ext"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } >/dev/null; then
22140   if test -s conftest.err; then
22141     ac_cpp_err=$ac_c_preproc_warn_flag
22142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22143   else
22144     ac_cpp_err=
22145   fi
22146 else
22147   ac_cpp_err=yes
22148 fi
22149 if test -z "$ac_cpp_err"; then
22150   ac_header_preproc=yes
22151 else
22152   echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22154
22155   ac_header_preproc=no
22156 fi
22157
22158 rm -f conftest.err conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22160 echo "${ECHO_T}$ac_header_preproc" >&6; }
22161
22162 # So?  What about this header?
22163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22164   yes:no: )
22165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22169     ac_header_preproc=yes
22170     ;;
22171   no:yes:* )
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22184
22185     ;;
22186 esac
22187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192   eval "$as_ac_Header=\$ac_header_preproc"
22193 fi
22194 ac_res=`eval echo '${'$as_ac_Header'}'`
22195                { echo "$as_me:$LINENO: result: $ac_res" >&5
22196 echo "${ECHO_T}$ac_res" >&6; }
22197
22198 fi
22199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22200   cat >>confdefs.h <<_ACEOF
22201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22202 _ACEOF
22203  HAVE_FREETYPE_FREETYPE_H=1
22204 fi
22205
22206 done
22207
22208 fi
22209
22210 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
22211         "x${FREETYPE_CONFIG}" '!=' "x";then
22212     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
22213         HAVE_FREETYPE=1
22214     fi
22215     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
22216         HAVE_FREETYPE=1
22217     fi
22218 fi
22219
22220 if test "x${HAVE_FREETYPE}" = "x1"; then
22221     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
22222         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
22223     else
22224         LIBS="$LIBS -lfreetype"
22225     fi
22226
22227     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
22228         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
22229     fi
22230
22231     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
22232 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
22233
22234     cat > conftest.c << EOF
22235 $HAVE_FT2BUILD_H_DEFINE
22236
22237 #ifdef HAVE_FT2BUILD_H
22238 #include <ft2build.h>
22239 #include FT_FREETYPE_H
22240 #include FT_GLYPH_H
22241 #include FT_SIZES_H
22242 #include FT_SFNT_NAMES_H
22243 #include FT_TRUETYPE_IDS_H
22244 #include FT_OUTLINE_H
22245 #else
22246 #include <freetype/freetype.h>
22247 #include <freetype/ftglyph.h>
22248 #include <freetype/ftsizes.h>
22249 #include <freetype/ftsnames.h>
22250 #include <freetype/ttnameid.h>
22251 #include <freetype/ftoutln.h>
22252 #endif
22253
22254 int main()
22255 {
22256     FT_Library ftlibrary;
22257     FT_Face face;
22258     FT_Error error;
22259     FT_ULong charcode;
22260     FT_UInt gindex;
22261     FT_Glyph glyph;
22262     FT_BBox bbox;
22263     FT_Matrix matrix;
22264     FT_UInt i;
22265     char* name = 0;
22266     char italic, bold;
22267
22268     FT_Init_FreeType(&ftlibrary);
22269     FT_New_Face(ftlibrary, "filename", 0, &face);
22270     i = face->num_glyphs - 1;
22271     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
22272     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
22273     FT_Get_Postscript_Name(face);
22274     FT_Get_Char_Index(face, 33);
22275     FT_Get_First_Char(face, &i);
22276     FT_Get_Next_Char(face, 33, &i);
22277     if(FT_HAS_GLYPH_NAMES(face)) {
22278         FT_Get_Glyph_Name(face, 33, name, 127);
22279     }
22280     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
22281     FT_Get_Glyph(face->glyph, &glyph);
22282     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
22283     FT_Done_Glyph(glyph);
22284     FT_Done_Face(face);
22285     FT_Done_FreeType(ftlibrary);
22286     return 0;
22287 }
22288 EOF
22289
22290     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
22291     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22292         { echo "$as_me:$LINENO: result: yes" >&5
22293 echo "${ECHO_T}yes" >&6; }
22294         cat >>confdefs.h <<_ACEOF
22295 #define HAVE_FREETYPE 1
22296 _ACEOF
22297
22298         cat >>confdefs.h <<_ACEOF
22299 #define HAVE_FREETYPE_FREETYPE_H 1
22300 _ACEOF
22301
22302         cat >>confdefs.h <<_ACEOF
22303 #define USE_FREETYPE 1
22304 _ACEOF
22305   # for ttf2tp1
22306     else
22307         echo "configure: failed program was:" >&5
22308         cat conftest.c >&5
22309         HAVE_FREETYPE=0
22310         { echo "$as_me:$LINENO: result: no" >&5
22311 echo "${ECHO_T}no" >&6; }
22312     fi
22313     rm -f conftest*
22314 fi
22315
22316 # if the above didn't work out, reset all changes to the compiler variables.
22317 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
22318     CPPFLAGS=$OLDCPPFLAGS
22319     LIBS=$OLDLIBS
22320 fi
22321
22322
22323 #RFX_CHECK_FONTCONFIG
22324
22325 # ------------------------------------------------------------------
22326
22327 lame_objects=
22328 lame_makefile=
22329 if test "x${DISABLE_LAME}" = "xtrue"; then
22330     echo "*" Disabling lame support...
22331 else
22332     # old lame code at lib/lame
22333     if test -f lib/lame/Makefile.in; then
22334         lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
22335         lame_makefile="lib/lame/Makefile"
22336         CPPFLAGS="$CPPFLAGS -Ilame"
22337         cat >>confdefs.h <<_ACEOF
22338 #define HAVE_LAME 1
22339 _ACEOF
22340
22341     else
22342         if test -d /usr/include/lame; then
22343             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
22344         else
22345             if test -d /usr/local/include/lame; then
22346                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
22347             fi
22348         fi
22349
22350 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
22351 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
22352 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
22353   echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355   ac_check_lib_save_LIBS=$LIBS
22356 LIBS="-lmp3lame  $LIBS"
22357 cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h.  */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h.  */
22363
22364 /* Override any GCC internal prototype to avoid an error.
22365    Use char because int might match the return type of a GCC
22366    builtin and then its argument prototype would still apply.  */
22367 #ifdef __cplusplus
22368 extern "C"
22369 #endif
22370 char lame_init ();
22371 int
22372 main ()
22373 {
22374 return lame_init ();
22375   ;
22376   return 0;
22377 }
22378 _ACEOF
22379 rm -f conftest.$ac_objext conftest$ac_exeext
22380 if { (ac_try="$ac_link"
22381 case "(($ac_try" in
22382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383   *) ac_try_echo=$ac_try;;
22384 esac
22385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386   (eval "$ac_link") 2>conftest.er1
22387   ac_status=$?
22388   grep -v '^ *+' conftest.er1 >conftest.err
22389   rm -f conftest.er1
22390   cat conftest.err >&5
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); } &&
22393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22394   { (case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399   (eval "$ac_try") 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; } &&
22403          { ac_try='test -s conftest$ac_exeext'
22404   { (case "(($ac_try" in
22405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406   *) ac_try_echo=$ac_try;;
22407 esac
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409   (eval "$ac_try") 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); }; }; then
22413   ac_cv_lib_mp3lame_lame_init=yes
22414 else
22415   echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22417
22418         ac_cv_lib_mp3lame_lame_init=no
22419 fi
22420
22421 rm -f core conftest.err conftest.$ac_objext \
22422       conftest$ac_exeext conftest.$ac_ext
22423 LIBS=$ac_check_lib_save_LIBS
22424 fi
22425 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
22426 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
22427 if test $ac_cv_lib_mp3lame_lame_init = yes; then
22428   cat >>confdefs.h <<_ACEOF
22429 #define HAVE_LIBMP3LAME 1
22430 _ACEOF
22431
22432   LIBS="-lmp3lame $LIBS"
22433
22434 else
22435   NO_LIBMP3LAME=1
22436 fi
22437
22438
22439 for ac_header in lame.h
22440 do
22441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22443   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 fi
22448 ac_res=`eval echo '${'$as_ac_Header'}'`
22449                { echo "$as_me:$LINENO: result: $ac_res" >&5
22450 echo "${ECHO_T}$ac_res" >&6; }
22451 else
22452   # Is the header compilable?
22453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h.  */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h.  */
22461 $ac_includes_default
22462 #include <$ac_header>
22463 _ACEOF
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468   *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471   (eval "$ac_compile") 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } &&
22478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22479   { (case "(($ac_try" in
22480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481   *) ac_try_echo=$ac_try;;
22482 esac
22483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22484   (eval "$ac_try") 2>&5
22485   ac_status=$?
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); }; } &&
22488          { ac_try='test -s conftest.$ac_objext'
22489   { (case "(($ac_try" in
22490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491   *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494   (eval "$ac_try") 2>&5
22495   ac_status=$?
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); }; }; then
22498   ac_header_compiler=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503         ac_header_compiler=no
22504 fi
22505
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22508 echo "${ECHO_T}$ac_header_compiler" >&6; }
22509
22510 # Is the header present?
22511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22513 cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 #include <$ac_header>
22520 _ACEOF
22521 if { (ac_try="$ac_cpp conftest.$ac_ext"
22522 case "(($ac_try" in
22523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524   *) ac_try_echo=$ac_try;;
22525 esac
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22528   ac_status=$?
22529   grep -v '^ *+' conftest.er1 >conftest.err
22530   rm -f conftest.er1
22531   cat conftest.err >&5
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); } >/dev/null; then
22534   if test -s conftest.err; then
22535     ac_cpp_err=$ac_c_preproc_warn_flag
22536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22537   else
22538     ac_cpp_err=
22539   fi
22540 else
22541   ac_cpp_err=yes
22542 fi
22543 if test -z "$ac_cpp_err"; then
22544   ac_header_preproc=yes
22545 else
22546   echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549   ac_header_preproc=no
22550 fi
22551
22552 rm -f conftest.err conftest.$ac_ext
22553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22554 echo "${ECHO_T}$ac_header_preproc" >&6; }
22555
22556 # So?  What about this header?
22557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22558   yes:no: )
22559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22563     ac_header_preproc=yes
22564     ;;
22565   no:yes:* )
22566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22578
22579     ;;
22580 esac
22581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22584   echo $ECHO_N "(cached) $ECHO_C" >&6
22585 else
22586   eval "$as_ac_Header=\$ac_header_preproc"
22587 fi
22588 ac_res=`eval echo '${'$as_ac_Header'}'`
22589                { echo "$as_me:$LINENO: result: $ac_res" >&5
22590 echo "${ECHO_T}$ac_res" >&6; }
22591
22592 fi
22593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22594   cat >>confdefs.h <<_ACEOF
22595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22596 _ACEOF
22597
22598 fi
22599
22600 done
22601
22602         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
22603             cat >>confdefs.h <<_ACEOF
22604 #define HAVE_LAME 1
22605 _ACEOF
22606
22607         fi
22608     fi
22609 fi
22610
22611
22612 # ------------------------------------------------------------------
22613
22614
22615
22616 for ac_prog in avifile-config
22617 do
22618   # Extract the first word of "$ac_prog", so it can be a program name with args.
22619 set dummy $ac_prog; ac_word=$2
22620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22622 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625   if test -n "$AVIFILE_CONFIG"; then
22626   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
22627 else
22628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22629 for as_dir in $PATH
22630 do
22631   IFS=$as_save_IFS
22632   test -z "$as_dir" && as_dir=.
22633   for ac_exec_ext in '' $ac_executable_extensions; do
22634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22635     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
22636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22637     break 2
22638   fi
22639 done
22640 done
22641 IFS=$as_save_IFS
22642
22643 fi
22644 fi
22645 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
22646 if test -n "$AVIFILE_CONFIG"; then
22647   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
22648 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
22649 else
22650   { echo "$as_me:$LINENO: result: no" >&5
22651 echo "${ECHO_T}no" >&6; }
22652 fi
22653
22654
22655   test -n "$AVIFILE_CONFIG" && break
22656 done
22657
22658
22659 if test "x$AVIFILE_CONFIG" '!=' "x";then
22660     OLDCPPFLAGS="$CPPFLAGS"
22661     # temporarily add avifile paths to CPPFLAGS...
22662     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
22663
22664
22665 for ac_header in avifile/version.h version.h
22666 do
22667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22672   echo $ECHO_N "(cached) $ECHO_C" >&6
22673 fi
22674 ac_res=`eval echo '${'$as_ac_Header'}'`
22675                { echo "$as_me:$LINENO: result: $ac_res" >&5
22676 echo "${ECHO_T}$ac_res" >&6; }
22677 else
22678   # Is the header compilable?
22679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22681 cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 $ac_includes_default
22688 #include <$ac_header>
22689 _ACEOF
22690 rm -f conftest.$ac_objext
22691 if { (ac_try="$ac_compile"
22692 case "(($ac_try" in
22693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694   *) ac_try_echo=$ac_try;;
22695 esac
22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697   (eval "$ac_compile") 2>conftest.er1
22698   ac_status=$?
22699   grep -v '^ *+' conftest.er1 >conftest.err
22700   rm -f conftest.er1
22701   cat conftest.err >&5
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); } &&
22704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22705   { (case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_try") 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest.$ac_objext'
22715   { (case "(($ac_try" in
22716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717   *) ac_try_echo=$ac_try;;
22718 esac
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720   (eval "$ac_try") 2>&5
22721   ac_status=$?
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); }; }; then
22724   ac_header_compiler=yes
22725 else
22726   echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729         ac_header_compiler=no
22730 fi
22731
22732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22734 echo "${ECHO_T}$ac_header_compiler" >&6; }
22735
22736 # Is the header present?
22737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745 #include <$ac_header>
22746 _ACEOF
22747 if { (ac_try="$ac_cpp conftest.$ac_ext"
22748 case "(($ac_try" in
22749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750   *) ac_try_echo=$ac_try;;
22751 esac
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22754   ac_status=$?
22755   grep -v '^ *+' conftest.er1 >conftest.err
22756   rm -f conftest.er1
22757   cat conftest.err >&5
22758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759   (exit $ac_status); } >/dev/null; then
22760   if test -s conftest.err; then
22761     ac_cpp_err=$ac_c_preproc_warn_flag
22762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22763   else
22764     ac_cpp_err=
22765   fi
22766 else
22767   ac_cpp_err=yes
22768 fi
22769 if test -z "$ac_cpp_err"; then
22770   ac_header_preproc=yes
22771 else
22772   echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22774
22775   ac_header_preproc=no
22776 fi
22777
22778 rm -f conftest.err conftest.$ac_ext
22779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22780 echo "${ECHO_T}$ac_header_preproc" >&6; }
22781
22782 # So?  What about this header?
22783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22784   yes:no: )
22785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22789     ac_header_preproc=yes
22790     ;;
22791   no:yes:* )
22792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22804
22805     ;;
22806 esac
22807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22810   echo $ECHO_N "(cached) $ECHO_C" >&6
22811 else
22812   eval "$as_ac_Header=\$ac_header_preproc"
22813 fi
22814 ac_res=`eval echo '${'$as_ac_Header'}'`
22815                { echo "$as_me:$LINENO: result: $ac_res" >&5
22816 echo "${ECHO_T}$ac_res" >&6; }
22817
22818 fi
22819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22820   cat >>confdefs.h <<_ACEOF
22821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22822 _ACEOF
22823
22824 fi
22825
22826 done
22827
22828     # ... and reset
22829     CPPFLAGS="$OLDCPPFLAGS"
22830 fi
22831
22832 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22833 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
22834
22835 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22836     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22837 fi
22838 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22839     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22840 fi
22841
22842 cat > conftest.cpp << EOF
22843
22844 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22845 // so we have to introduce them this way
22846 $HAVE_VERSION_H_DEFINE
22847 $HAVE_AVIFILE_VERSION_H_DEFINE
22848
22849 #ifdef HAVE_VERSION_H
22850   #include <version.h>
22851 #endif
22852 #ifdef HAVE_AVIFILE_VERSION_H
22853   #include <avifile/version.h>
22854 #endif
22855
22856 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22857    #include <avifile.h>
22858    #include <aviplay.h>
22859    #include <avm_fourcc.h>
22860    #include <avm_creators.h>
22861    #include <StreamInfo.h>
22862    #define VERSION6
22863 #else
22864    #include <avifile.h>
22865    #include <aviplay.h>
22866    #include <aviutil.h>
22867    #define Width width
22868    #define Height height
22869    #define Data data
22870    #define Bpp bpp
22871 #endif
22872
22873 void test()
22874 {
22875   IAviReadFile* player;
22876   IAviReadStream* astream;
22877   IAviReadStream* vstream;
22878   player = CreateIAviReadFile(0);
22879   astream = player->GetStream(0, AviStream::Audio);
22880   vstream = player->GetStream(0, AviStream::Video);
22881   vstream -> StartStreaming();
22882   astream -> StartStreaming();
22883 #ifndef VERSION6
22884   MainAVIHeader head;
22885   player->GetFileHeader(&head);
22886   head.dwMicroSecPerFrame;
22887   head.dwTotalFrames;
22888   head.dwStreams;
22889   head.dwWidth;
22890   head.dwHeight;
22891   head.dwMicroSecPerFrame;
22892   astream->GetEndPos(),
22893   astream->GetEndTime());
22894   player->StreamCount();
22895 #else
22896   StreamInfo*audioinfo;
22897   StreamInfo*videoinfo;
22898   audioinfo = astream->GetStreamInfo();
22899   videoinfo = vstream->GetStreamInfo();
22900   videoinfo->GetVideoWidth();
22901   videoinfo->GetVideoHeight();
22902   audioinfo->GetAudioSamplesPerSec();
22903   videoinfo->GetFps();
22904 #endif
22905   CImage*img = vstream->GetFrame();
22906   img->ToRGB();
22907   img->Data();
22908   img->Bpp();
22909   img->Width();
22910   img->Height();
22911   WAVEFORMATEX wave;
22912   astream->GetAudioFormatInfo(&wave,0);
22913   uint_t a,b;
22914   astream->ReadFrames(0,0,0,a,b);
22915 }
22916 int main (int argc, char*argv)
22917 {
22918     return 0;
22919 }
22920 EOF
22921
22922 if test "x$AVIFILE_CONFIG" '!=' "x";then
22923     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
22924     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
22925     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
22926     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22927       { echo "$as_me:$LINENO: result: yes" >&5
22928 echo "${ECHO_T}yes" >&6; }
22929       AVIFILE=true
22930       export AVIFILE
22931       cat >>confdefs.h <<_ACEOF
22932 #define AVIFILE true
22933 _ACEOF
22934
22935     else
22936       echo "configure: failed program was:" >&5
22937       cat conftest.cpp >&5
22938       { echo "$as_me:$LINENO: result: no" >&5
22939 echo "${ECHO_T}no" >&6; }
22940     fi
22941 else
22942     { echo "$as_me:$LINENO: result: no" >&5
22943 echo "${ECHO_T}no" >&6; }
22944 fi
22945 rm -f conftest*
22946
22947 if test "x${AVIFILE}" = "xtrue"; then
22948     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
22949     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
22950     cat >>confdefs.h <<_ACEOF
22951 #define HAVE_AVIFILE 1
22952 _ACEOF
22953
22954 fi
22955
22956 if test "x${WIN32}" != "x"; then
22957     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
22958     #if test "x${AVIFIL32}" != "x"; then
22959     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22960     #fi
22961     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22962     AVIFIL32=true
22963 fi
22964
22965
22966
22967 # ------------------------------------------------------------------
22968
22969 if test "x${UNCOMPRESS}" = "xgzip"; then
22970     cat >>confdefs.h <<_ACEOF
22971 #define USE_GZIP 1
22972 _ACEOF
22973
22974 fi
22975
22976
22977 # ------------------------------------------------------------------
22978
22979
22980 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22981 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
22982
22983 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
22984     PY_VERSION=unknown
22985 else
22986     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
22987         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
22988     fi
22989     # iterate through version 2.2 to 2.4
22990     for v in 2 3 4; do
22991         # Linux
22992         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
22993             PY_VERSION=2.$v
22994             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
22995             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
22996         # Mac OS X
22997         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
22998             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
22999             PY_VERSION=2.$v
23000             PYTHON_LIB="-framework Python"
23001             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
23002                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
23003             else
23004                 PYTHON_LIB2="$PYTHON_LIB"
23005             fi
23006             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
23007         # Mac OS X [Fink]:
23008         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
23009                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
23010                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
23011                   ")" \
23012                -a -f "/sw/include/python2.$v/Python.h" \
23013                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
23014             PY_VERSION=2.$v
23015             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
23016             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
23017         fi
23018     done
23019 fi
23020
23021 if test "x$PY_VERSION" "!=" "x"; then
23022     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
23023 echo "${ECHO_T}$PY_VERSION" >&6; }
23024     export PYTHON_INCLUDES PYTHON_LIB
23025
23026
23027     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
23028 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
23029
23030     cat > conftest.c << EOF
23031 #include <Python.h>
23032 #include <Imaging.h>
23033
23034 int main()
23035 {
23036     int ret;
23037     ret = Py_Main(0, 0);
23038     int x; // check also for gcc 2.95.x incompatibilities
23039     return ret;
23040 }
23041 EOF
23042     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
23043     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23044         { echo "$as_me:$LINENO: result: yes" >&5
23045 echo "${ECHO_T}yes" >&6; }
23046         PYTHON_OK=yes
23047     else
23048         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
23049         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23050             { echo "$as_me:$LINENO: result: yes" >&5
23051 echo "${ECHO_T}yes" >&6; }
23052             PYTHON_LIB="${PYTHON_LIB2}"
23053             PYTHON_OK=yes
23054         else
23055             echo "configure: failed program was:" >&5
23056             cat conftest.c >&5
23057             { echo "$as_me:$LINENO: result: no" >&5
23058 echo "${ECHO_T}no" >&6; }
23059         fi
23060     fi
23061     rm -f conftest*
23062 else
23063     { echo "$as_me:$LINENO: result: nope" >&5
23064 echo "${ECHO_T}nope" >&6; }
23065 fi
23066
23067
23068 if test "x$PYTHON_OK" '!=' "xyes";then
23069     echo all install uninstall clean: > lib/python/Makefile
23070     # fail silently- the most users won't have any need for the
23071     # python interface anyway
23072 else
23073     pythonrfxswf="lib/python/Makefile"
23074 fi
23075
23076 # ------------------------------------------------------------------
23077
23078 { echo "$as_me:$LINENO: checking for missing libraries" >&5
23079 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
23080
23081 if test "x$ZLIBMISSING" = "xtrue";then
23082     MISSINGLIBS="${MISSINGLIBS} zlib"
23083     DISABLEPNG2SWF=true
23084     PARTIAL=true
23085 fi
23086 if test "x$JPEGLIBMISSING" = "xtrue";then
23087     MISSINGLIBS="${MISSINGLIBS} jpeglib"
23088     DISABLEPDF2SWF=true
23089     DISABLEJPEG2SWF=true
23090     PARTIAL=true
23091 fi
23092 if test "x$T1LIBMISSING" = "xtrue";then
23093     MISSINGLIBS="${MISSINGLIBS} t1lib"
23094 fi
23095 if test "x$UNGIFMISSING" = "xtrue";then
23096     DISABLEGIF2SWF=true
23097     MISSINGLIBS="${MISSINGLIBS} ungif"
23098     PARTIAL=true
23099 fi
23100
23101 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
23102     DISABLEPDF2SWF=true;
23103     DISABLEJPEG2SWF=true;
23104     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
23105     PARTIAL=true
23106 fi
23107 if test "x$HAVE_FREETYPE" '!=' "x1"; then
23108     DISABLEPDF2SWF=true;
23109     MISSINGLIBS="${MISSINGLIBS} freetype"
23110     PARTIAL=true
23111 fi
23112 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
23113     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
23114 fi
23115 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
23116     DISABLEGIF2SWF=true
23117     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
23118     PARTIAL=true
23119 fi
23120 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
23121     DISABLEPNG2SWF=true;
23122     MISSINGLIBS="${MISSINGLIBS} zlib.h"
23123     PARTIAL=true
23124 fi
23125 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
23126     MISSINGLIBS="${MISSINGLIBS} avifile"
23127     PARTIAL=true
23128 fi
23129
23130 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
23131 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
23132
23133 # ------------------------------------------------------------------
23134
23135 if test "x${MISSINGLIBS}" '!=' "x"; then
23136   echo "***************************************************"
23137   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
23138 fi
23139
23140 avi2swf="avi2swf/Makefile"
23141 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
23142  echo "* Disabling avi2swf tool..."
23143  echo all install uninstall clean: > avi2swf/Makefile
23144  avi2swf=
23145 fi
23146
23147 pdf2swf_makefile="lib/pdf/Makefile"
23148 PDF2SWF='pdf2swf$(E)'
23149 LIBPDF='libpdf$(A)'
23150
23151 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
23152   echo "* Disabling pdf2swf tool..."
23153   rm -f lib/pdf/Makefile
23154   echo all install uninstall clean: > lib/pdf/Makefile
23155   pdf2swf_makefile=""
23156   PDF2SWF=
23157   LIBPDF=
23158 fi
23159
23160
23161
23162 if test "x${ZLIBMISSING}" = "xtrue"; then
23163   echo
23164   echo "* Warning! Without zlib, you will not be able to read"
23165   echo "* or write compressed Flash MX files!"
23166 fi
23167
23168 JPEG2SWF='jpeg2swf$(E)'
23169 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
23170   echo "* Disabling jpeg2swf tool..."
23171   JPEG2SWF=
23172 fi
23173 export JPEG2SWF
23174
23175
23176 GIF2SWF='gif2swf$(E)'
23177 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
23178   echo "* Disabling gif2swf tool..."
23179   GIF2SWF=
23180 fi
23181 export GIF2SWF
23182
23183
23184 PNG2SWF='png2swf$(E)'
23185 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
23186   echo "* Disabling png2swf tool..."
23187   PNG2SWF=
23188 fi
23189 export PNG2SWF
23190
23191
23192 if test "x${MISSINGLIBS}" '!=' "x"; then
23193   if test "x${PARTIAL}" '=' "x"; then
23194     echo "* (never mind)"
23195   fi
23196   echo "***************************************************"
23197 fi
23198
23199 # ------------------------------------------------------------------
23200
23201 if test -f "release.in"; then release_in="./release"; fi
23202 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
23203
23204 ac_config_files="$ac_config_files ${FILES}"
23205
23206 cat >confcache <<\_ACEOF
23207 # This file is a shell script that caches the results of configure
23208 # tests run on this system so they can be shared between configure
23209 # scripts and configure runs, see configure's option --config-cache.
23210 # It is not useful on other systems.  If it contains results you don't
23211 # want to keep, you may remove or edit it.
23212 #
23213 # config.status only pays attention to the cache file if you give it
23214 # the --recheck option to rerun configure.
23215 #
23216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23218 # following values.
23219
23220 _ACEOF
23221
23222 # The following way of writing the cache mishandles newlines in values,
23223 # but we know of no workaround that is simple, portable, and efficient.
23224 # So, we kill variables containing newlines.
23225 # Ultrix sh set writes to stderr and can't be redirected directly,
23226 # and sets the high bit in the cache file unless we assign to the vars.
23227 (
23228   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23229     eval ac_val=\$$ac_var
23230     case $ac_val in #(
23231     *${as_nl}*)
23232       case $ac_var in #(
23233       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23234 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23235       esac
23236       case $ac_var in #(
23237       _ | IFS | as_nl) ;; #(
23238       *) $as_unset $ac_var ;;
23239       esac ;;
23240     esac
23241   done
23242
23243   (set) 2>&1 |
23244     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23245     *${as_nl}ac_space=\ *)
23246       # `set' does not quote correctly, so add quotes (double-quote
23247       # substitution turns \\\\ into \\, and sed turns \\ into \).
23248       sed -n \
23249         "s/'/'\\\\''/g;
23250           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23251       ;; #(
23252     *)
23253       # `set' quotes correctly as required by POSIX, so do not add quotes.
23254       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23255       ;;
23256     esac |
23257     sort
23258 ) |
23259   sed '
23260      /^ac_cv_env_/b end
23261      t clear
23262      :clear
23263      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23264      t end
23265      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23266      :end' >>confcache
23267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23268   if test -w "$cache_file"; then
23269     test "x$cache_file" != "x/dev/null" &&
23270       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23271 echo "$as_me: updating cache $cache_file" >&6;}
23272     cat confcache >$cache_file
23273   else
23274     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23275 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23276   fi
23277 fi
23278 rm -f confcache
23279
23280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23281 # Let make expand exec_prefix.
23282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23283
23284 DEFS=-DHAVE_CONFIG_H
23285
23286 ac_libobjs=
23287 ac_ltlibobjs=
23288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23289   # 1. Remove the extension, and $U if already installed.
23290   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23291   ac_i=`echo "$ac_i" | sed "$ac_script"`
23292   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23293   #    will be set to the directory where LIBOBJS objects are built.
23294   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23295   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23296 done
23297 LIBOBJS=$ac_libobjs
23298
23299 LTLIBOBJS=$ac_ltlibobjs
23300
23301
23302
23303 : ${CONFIG_STATUS=./config.status}
23304 ac_clean_files_save=$ac_clean_files
23305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23306 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23307 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23308 cat >$CONFIG_STATUS <<_ACEOF
23309 #! $SHELL
23310 # Generated by $as_me.
23311 # Run this file to recreate the current configuration.
23312 # Compiler output produced by configure, useful for debugging
23313 # configure, is in config.log if it exists.
23314
23315 debug=false
23316 ac_cs_recheck=false
23317 ac_cs_silent=false
23318 SHELL=\${CONFIG_SHELL-$SHELL}
23319 _ACEOF
23320
23321 cat >>$CONFIG_STATUS <<\_ACEOF
23322 ## --------------------- ##
23323 ## M4sh Initialization.  ##
23324 ## --------------------- ##
23325
23326 # Be Bourne compatible
23327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23328   emulate sh
23329   NULLCMD=:
23330   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23331   # is contrary to our usage.  Disable this feature.
23332   alias -g '${1+"$@"}'='"$@"'
23333   setopt NO_GLOB_SUBST
23334 else
23335   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23336 fi
23337 BIN_SH=xpg4; export BIN_SH # for Tru64
23338 DUALCASE=1; export DUALCASE # for MKS sh
23339
23340
23341 # PATH needs CR
23342 # Avoid depending upon Character Ranges.
23343 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23344 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23345 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23346 as_cr_digits='0123456789'
23347 as_cr_alnum=$as_cr_Letters$as_cr_digits
23348
23349 # The user is always right.
23350 if test "${PATH_SEPARATOR+set}" != set; then
23351   echo "#! /bin/sh" >conf$$.sh
23352   echo  "exit 0"   >>conf$$.sh
23353   chmod +x conf$$.sh
23354   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23355     PATH_SEPARATOR=';'
23356   else
23357     PATH_SEPARATOR=:
23358   fi
23359   rm -f conf$$.sh
23360 fi
23361
23362 # Support unset when possible.
23363 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23364   as_unset=unset
23365 else
23366   as_unset=false
23367 fi
23368
23369
23370 # IFS
23371 # We need space, tab and new line, in precisely that order.  Quoting is
23372 # there to prevent editors from complaining about space-tab.
23373 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23374 # splitting by setting IFS to empty value.)
23375 as_nl='
23376 '
23377 IFS=" ""        $as_nl"
23378
23379 # Find who we are.  Look in the path if we contain no directory separator.
23380 case $0 in
23381   *[\\/]* ) as_myself=$0 ;;
23382   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23383 for as_dir in $PATH
23384 do
23385   IFS=$as_save_IFS
23386   test -z "$as_dir" && as_dir=.
23387   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23388 done
23389 IFS=$as_save_IFS
23390
23391      ;;
23392 esac
23393 # We did not find ourselves, most probably we were run as `sh COMMAND'
23394 # in which case we are not to be found in the path.
23395 if test "x$as_myself" = x; then
23396   as_myself=$0
23397 fi
23398 if test ! -f "$as_myself"; then
23399   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23400   { (exit 1); exit 1; }
23401 fi
23402
23403 # Work around bugs in pre-3.0 UWIN ksh.
23404 for as_var in ENV MAIL MAILPATH
23405 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23406 done
23407 PS1='$ '
23408 PS2='> '
23409 PS4='+ '
23410
23411 # NLS nuisances.
23412 for as_var in \
23413   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23414   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23415   LC_TELEPHONE LC_TIME
23416 do
23417   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23418     eval $as_var=C; export $as_var
23419   else
23420     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23421   fi
23422 done
23423
23424 # Required to use basename.
23425 if expr a : '\(a\)' >/dev/null 2>&1 &&
23426    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23427   as_expr=expr
23428 else
23429   as_expr=false
23430 fi
23431
23432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23433   as_basename=basename
23434 else
23435   as_basename=false
23436 fi
23437
23438
23439 # Name of the executable.
23440 as_me=`$as_basename -- "$0" ||
23441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23442          X"$0" : 'X\(//\)$' \| \
23443          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23444 echo X/"$0" |
23445     sed '/^.*\/\([^/][^/]*\)\/*$/{
23446             s//\1/
23447             q
23448           }
23449           /^X\/\(\/\/\)$/{
23450             s//\1/
23451             q
23452           }
23453           /^X\/\(\/\).*/{
23454             s//\1/
23455             q
23456           }
23457           s/.*/./; q'`
23458
23459 # CDPATH.
23460 $as_unset CDPATH
23461
23462
23463
23464   as_lineno_1=$LINENO
23465   as_lineno_2=$LINENO
23466   test "x$as_lineno_1" != "x$as_lineno_2" &&
23467   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23468
23469   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23470   # uniformly replaced by the line number.  The first 'sed' inserts a
23471   # line-number line after each line using $LINENO; the second 'sed'
23472   # does the real work.  The second script uses 'N' to pair each
23473   # line-number line with the line containing $LINENO, and appends
23474   # trailing '-' during substitution so that $LINENO is not a special
23475   # case at line end.
23476   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23477   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23478   # E. McMahon (1931-1989) for sed's syntax.  :-)
23479   sed -n '
23480     p
23481     /[$]LINENO/=
23482   ' <$as_myself |
23483     sed '
23484       s/[$]LINENO.*/&-/
23485       t lineno
23486       b
23487       :lineno
23488       N
23489       :loop
23490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23491       t loop
23492       s/-\n.*//
23493     ' >$as_me.lineno &&
23494   chmod +x "$as_me.lineno" ||
23495     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23496    { (exit 1); exit 1; }; }
23497
23498   # Don't try to exec as it changes $[0], causing all sort of problems
23499   # (the dirname of $[0] is not the place where we might find the
23500   # original and so on.  Autoconf is especially sensitive to this).
23501   . "./$as_me.lineno"
23502   # Exit status is that of the last command.
23503   exit
23504 }
23505
23506
23507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23508   as_dirname=dirname
23509 else
23510   as_dirname=false
23511 fi
23512
23513 ECHO_C= ECHO_N= ECHO_T=
23514 case `echo -n x` in
23515 -n*)
23516   case `echo 'x\c'` in
23517   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23518   *)   ECHO_C='\c';;
23519   esac;;
23520 *)
23521   ECHO_N='-n';;
23522 esac
23523
23524 if expr a : '\(a\)' >/dev/null 2>&1 &&
23525    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23526   as_expr=expr
23527 else
23528   as_expr=false
23529 fi
23530
23531 rm -f conf$$ conf$$.exe conf$$.file
23532 if test -d conf$$.dir; then
23533   rm -f conf$$.dir/conf$$.file
23534 else
23535   rm -f conf$$.dir
23536   mkdir conf$$.dir
23537 fi
23538 echo >conf$$.file
23539 if ln -s conf$$.file conf$$ 2>/dev/null; then
23540   as_ln_s='ln -s'
23541   # ... but there are two gotchas:
23542   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23543   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23544   # In both cases, we have to default to `cp -p'.
23545   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23546     as_ln_s='cp -p'
23547 elif ln conf$$.file conf$$ 2>/dev/null; then
23548   as_ln_s=ln
23549 else
23550   as_ln_s='cp -p'
23551 fi
23552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23553 rmdir conf$$.dir 2>/dev/null
23554
23555 if mkdir -p . 2>/dev/null; then
23556   as_mkdir_p=:
23557 else
23558   test -d ./-p && rmdir ./-p
23559   as_mkdir_p=false
23560 fi
23561
23562 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23563 # systems may use methods other than mode bits to determine executability.
23564 cat >conf$$.file <<_ASEOF
23565 #! /bin/sh
23566 exit 0
23567 _ASEOF
23568 chmod +x conf$$.file
23569 if test -x conf$$.file >/dev/null 2>&1; then
23570   as_executable_p="test -x"
23571 else
23572   as_executable_p=:
23573 fi
23574 rm -f conf$$.file
23575
23576 # Sed expression to map a string onto a valid CPP name.
23577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23578
23579 # Sed expression to map a string onto a valid variable name.
23580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23581
23582
23583 exec 6>&1
23584
23585 # Save the log message, to keep $[0] and so on meaningful, and to
23586 # report actual input values of CONFIG_FILES etc. instead of their
23587 # values after options handling.
23588 ac_log="
23589 This file was extended by $as_me, which was
23590 generated by GNU Autoconf 2.60.  Invocation command line was
23591
23592   CONFIG_FILES    = $CONFIG_FILES
23593   CONFIG_HEADERS  = $CONFIG_HEADERS
23594   CONFIG_LINKS    = $CONFIG_LINKS
23595   CONFIG_COMMANDS = $CONFIG_COMMANDS
23596   $ $0 $@
23597
23598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23599 "
23600
23601 _ACEOF
23602
23603 cat >>$CONFIG_STATUS <<_ACEOF
23604 # Files that config.status was made for.
23605 config_files="$ac_config_files"
23606 config_headers="$ac_config_headers"
23607
23608 _ACEOF
23609
23610 cat >>$CONFIG_STATUS <<\_ACEOF
23611 ac_cs_usage="\
23612 \`$as_me' instantiates files from templates according to the
23613 current configuration.
23614
23615 Usage: $0 [OPTIONS] [FILE]...
23616
23617   -h, --help       print this help, then exit
23618   -V, --version    print version number, then exit
23619   -q, --quiet      do not print progress messages
23620   -d, --debug      don't remove temporary files
23621       --recheck    update $as_me by reconfiguring in the same conditions
23622   --file=FILE[:TEMPLATE]
23623                    instantiate the configuration file FILE
23624   --header=FILE[:TEMPLATE]
23625                    instantiate the configuration header FILE
23626
23627 Configuration files:
23628 $config_files
23629
23630 Configuration headers:
23631 $config_headers
23632
23633 Report bugs to <bug-autoconf@gnu.org>."
23634
23635 _ACEOF
23636 cat >>$CONFIG_STATUS <<_ACEOF
23637 ac_cs_version="\\
23638 config.status
23639 configured by $0, generated by GNU Autoconf 2.60,
23640   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23641
23642 Copyright (C) 2006 Free Software Foundation, Inc.
23643 This config.status script is free software; the Free Software Foundation
23644 gives unlimited permission to copy, distribute and modify it."
23645
23646 ac_pwd='$ac_pwd'
23647 srcdir='$srcdir'
23648 INSTALL='$INSTALL'
23649 _ACEOF
23650
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23652 # If no file are specified by the user, then we need to provide default
23653 # value.  By we need to know if files were specified by the user.
23654 ac_need_defaults=:
23655 while test $# != 0
23656 do
23657   case $1 in
23658   --*=*)
23659     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23660     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23661     ac_shift=:
23662     ;;
23663   *)
23664     ac_option=$1
23665     ac_optarg=$2
23666     ac_shift=shift
23667     ;;
23668   esac
23669
23670   case $ac_option in
23671   # Handling of the options.
23672   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23673     ac_cs_recheck=: ;;
23674   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23675     echo "$ac_cs_version"; exit ;;
23676   --debug | --debu | --deb | --de | --d | -d )
23677     debug=: ;;
23678   --file | --fil | --fi | --f )
23679     $ac_shift
23680     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23681     ac_need_defaults=false;;
23682   --header | --heade | --head | --hea )
23683     $ac_shift
23684     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23685     ac_need_defaults=false;;
23686   --he | --h)
23687     # Conflict between --help and --header
23688     { echo "$as_me: error: ambiguous option: $1
23689 Try \`$0 --help' for more information." >&2
23690    { (exit 1); exit 1; }; };;
23691   --help | --hel | -h )
23692     echo "$ac_cs_usage"; exit ;;
23693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23694   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23695     ac_cs_silent=: ;;
23696
23697   # This is an error.
23698   -*) { echo "$as_me: error: unrecognized option: $1
23699 Try \`$0 --help' for more information." >&2
23700    { (exit 1); exit 1; }; } ;;
23701
23702   *) ac_config_targets="$ac_config_targets $1"
23703      ac_need_defaults=false ;;
23704
23705   esac
23706   shift
23707 done
23708
23709 ac_configure_extra_args=
23710
23711 if $ac_cs_silent; then
23712   exec 6>/dev/null
23713   ac_configure_extra_args="$ac_configure_extra_args --silent"
23714 fi
23715
23716 _ACEOF
23717 cat >>$CONFIG_STATUS <<_ACEOF
23718 if \$ac_cs_recheck; then
23719   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23720   CONFIG_SHELL=$SHELL
23721   export CONFIG_SHELL
23722   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23723 fi
23724
23725 _ACEOF
23726 cat >>$CONFIG_STATUS <<\_ACEOF
23727 exec 5>>config.log
23728 {
23729   echo
23730   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23731 ## Running $as_me. ##
23732 _ASBOX
23733   echo "$ac_log"
23734 } >&5
23735
23736 _ACEOF
23737 cat >>$CONFIG_STATUS <<_ACEOF
23738 _ACEOF
23739
23740 cat >>$CONFIG_STATUS <<\_ACEOF
23741
23742 # Handling of arguments.
23743 for ac_config_target in $ac_config_targets
23744 do
23745   case $ac_config_target in
23746     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23747     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
23748
23749   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23751    { (exit 1); exit 1; }; };;
23752   esac
23753 done
23754
23755
23756 # If the user did not use the arguments to specify the items to instantiate,
23757 # then the envvar interface is used.  Set only those that are not.
23758 # We use the long form for the default assignment because of an extremely
23759 # bizarre bug on SunOS 4.1.3.
23760 if $ac_need_defaults; then
23761   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23762   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23763 fi
23764
23765 # Have a temporary directory for convenience.  Make it in the build tree
23766 # simply because there is no reason against having it here, and in addition,
23767 # creating and moving files from /tmp can sometimes cause problems.
23768 # Hook for its removal unless debugging.
23769 # Note that there is a small window in which the directory will not be cleaned:
23770 # after its creation but before its name has been assigned to `$tmp'.
23771 $debug ||
23772 {
23773   tmp=
23774   trap 'exit_status=$?
23775   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23776 ' 0
23777   trap '{ (exit 1); exit 1; }' 1 2 13 15
23778 }
23779 # Create a (secure) tmp directory for tmp files.
23780
23781 {
23782   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23783   test -n "$tmp" && test -d "$tmp"
23784 }  ||
23785 {
23786   tmp=./conf$$-$RANDOM
23787   (umask 077 && mkdir "$tmp")
23788 } ||
23789 {
23790    echo "$me: cannot create a temporary directory in ." >&2
23791    { (exit 1); exit 1; }
23792 }
23793
23794 #
23795 # Set up the sed scripts for CONFIG_FILES section.
23796 #
23797
23798 # No need to generate the scripts if there are no CONFIG_FILES.
23799 # This happens for instance when ./config.status config.h
23800 if test -n "$CONFIG_FILES"; then
23801
23802 _ACEOF
23803
23804
23805
23806 ac_delim='%!_!# '
23807 for ac_last_try in false false false false false :; do
23808   cat >conf$$subs.sed <<_ACEOF
23809 SHELL!$SHELL$ac_delim
23810 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23811 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23812 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23813 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23814 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23815 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23816 exec_prefix!$exec_prefix$ac_delim
23817 prefix!$prefix$ac_delim
23818 program_transform_name!$program_transform_name$ac_delim
23819 bindir!$bindir$ac_delim
23820 sbindir!$sbindir$ac_delim
23821 libexecdir!$libexecdir$ac_delim
23822 datarootdir!$datarootdir$ac_delim
23823 datadir!$datadir$ac_delim
23824 sysconfdir!$sysconfdir$ac_delim
23825 sharedstatedir!$sharedstatedir$ac_delim
23826 localstatedir!$localstatedir$ac_delim
23827 includedir!$includedir$ac_delim
23828 oldincludedir!$oldincludedir$ac_delim
23829 docdir!$docdir$ac_delim
23830 infodir!$infodir$ac_delim
23831 htmldir!$htmldir$ac_delim
23832 dvidir!$dvidir$ac_delim
23833 pdfdir!$pdfdir$ac_delim
23834 psdir!$psdir$ac_delim
23835 libdir!$libdir$ac_delim
23836 localedir!$localedir$ac_delim
23837 mandir!$mandir$ac_delim
23838 DEFS!$DEFS$ac_delim
23839 ECHO_C!$ECHO_C$ac_delim
23840 ECHO_N!$ECHO_N$ac_delim
23841 ECHO_T!$ECHO_T$ac_delim
23842 LIBS!$LIBS$ac_delim
23843 build_alias!$build_alias$ac_delim
23844 host_alias!$host_alias$ac_delim
23845 target_alias!$target_alias$ac_delim
23846 build!$build$ac_delim
23847 build_cpu!$build_cpu$ac_delim
23848 build_vendor!$build_vendor$ac_delim
23849 build_os!$build_os$ac_delim
23850 host!$host$ac_delim
23851 host_cpu!$host_cpu$ac_delim
23852 host_vendor!$host_vendor$ac_delim
23853 host_os!$host_os$ac_delim
23854 SHARED!$SHARED$ac_delim
23855 CC!$CC$ac_delim
23856 CFLAGS!$CFLAGS$ac_delim
23857 LDFLAGS!$LDFLAGS$ac_delim
23858 CPPFLAGS!$CPPFLAGS$ac_delim
23859 ac_ct_CC!$ac_ct_CC$ac_delim
23860 EXEEXT!$EXEEXT$ac_delim
23861 OBJEXT!$OBJEXT$ac_delim
23862 CXX!$CXX$ac_delim
23863 CXXFLAGS!$CXXFLAGS$ac_delim
23864 ac_ct_CXX!$ac_ct_CXX$ac_delim
23865 CPP!$CPP$ac_delim
23866 RANLIB!$RANLIB$ac_delim
23867 SET_MAKE!$SET_MAKE$ac_delim
23868 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23869 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23870 INSTALL_DATA!$INSTALL_DATA$ac_delim
23871 LN_S!$LN_S$ac_delim
23872 GREP!$GREP$ac_delim
23873 EGREP!$EGREP$ac_delim
23874 ECHO!$ECHO$ac_delim
23875 AR!$AR$ac_delim
23876 STRIP!$STRIP$ac_delim
23877 CXXCPP!$CXXCPP$ac_delim
23878 F77!$F77$ac_delim
23879 FFLAGS!$FFLAGS$ac_delim
23880 ac_ct_F77!$ac_ct_F77$ac_delim
23881 LIBTOOL!$LIBTOOL$ac_delim
23882 UNCOMPRESS!$UNCOMPRESS$ac_delim
23883 AREXT!$AREXT$ac_delim
23884 SLEXT!$SLEXT$ac_delim
23885 CXXLIBS!$CXXLIBS$ac_delim
23886 target!$target$ac_delim
23887 target_cpu!$target_cpu$ac_delim
23888 target_vendor!$target_vendor$ac_delim
23889 target_os!$target_os$ac_delim
23890 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
23891 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
23892 PACKAGE!$PACKAGE$ac_delim
23893 VERSION!$VERSION$ac_delim
23894 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
23895 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
23896 lame_objects!$lame_objects$ac_delim
23897 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
23898 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
23899 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
23900 USE_GZIP!$USE_GZIP$ac_delim
23901 PYTHON_LIB!$PYTHON_LIB$ac_delim
23902 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
23903 PDF2SWF!$PDF2SWF$ac_delim
23904 LIBPDF!$LIBPDF$ac_delim
23905 JPEG2SWF!$JPEG2SWF$ac_delim
23906 _ACEOF
23907
23908   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23909     break
23910   elif $ac_last_try; then
23911     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23912 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23913    { (exit 1); exit 1; }; }
23914   else
23915     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23916   fi
23917 done
23918
23919 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23920 if test -n "$ac_eof"; then
23921   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23922   ac_eof=`expr $ac_eof + 1`
23923 fi
23924
23925 cat >>$CONFIG_STATUS <<_ACEOF
23926 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23928 _ACEOF
23929 sed '
23930 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23931 s/^/s,@/; s/!/@,|#_!!_#|/
23932 :n
23933 t n
23934 s/'"$ac_delim"'$/,g/; t
23935 s/$/\\/; p
23936 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23937 ' >>$CONFIG_STATUS <conf$$subs.sed
23938 rm -f conf$$subs.sed
23939 cat >>$CONFIG_STATUS <<_ACEOF
23940 CEOF$ac_eof
23941 _ACEOF
23942
23943
23944 ac_delim='%!_!# '
23945 for ac_last_try in false false false false false :; do
23946   cat >conf$$subs.sed <<_ACEOF
23947 GIF2SWF!$GIF2SWF$ac_delim
23948 PNG2SWF!$PNG2SWF$ac_delim
23949 LIBOBJS!$LIBOBJS$ac_delim
23950 LTLIBOBJS!$LTLIBOBJS$ac_delim
23951 _ACEOF
23952
23953   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
23954     break
23955   elif $ac_last_try; then
23956     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23957 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23958    { (exit 1); exit 1; }; }
23959   else
23960     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23961   fi
23962 done
23963
23964 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23965 if test -n "$ac_eof"; then
23966   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23967   ac_eof=`expr $ac_eof + 1`
23968 fi
23969
23970 cat >>$CONFIG_STATUS <<_ACEOF
23971 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23973 _ACEOF
23974 sed '
23975 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23976 s/^/s,@/; s/!/@,|#_!!_#|/
23977 :n
23978 t n
23979 s/'"$ac_delim"'$/,g/; t
23980 s/$/\\/; p
23981 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23982 ' >>$CONFIG_STATUS <conf$$subs.sed
23983 rm -f conf$$subs.sed
23984 cat >>$CONFIG_STATUS <<_ACEOF
23985 :end
23986 s/|#_!!_#|//g
23987 CEOF$ac_eof
23988 _ACEOF
23989
23990
23991 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23992 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23993 # trailing colons and then remove the whole line if VPATH becomes empty
23994 # (actually we leave an empty line to preserve line numbers).
23995 if test "x$srcdir" = x.; then
23996   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23997 s/:*\$(srcdir):*/:/
23998 s/:*\${srcdir}:*/:/
23999 s/:*@srcdir@:*/:/
24000 s/^\([^=]*=[     ]*\):*/\1/
24001 s/:*$//
24002 s/^[^=]*=[       ]*$//
24003 }'
24004 fi
24005
24006 cat >>$CONFIG_STATUS <<\_ACEOF
24007 fi # test -n "$CONFIG_FILES"
24008
24009
24010 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
24011 do
24012   case $ac_tag in
24013   :[FHLC]) ac_mode=$ac_tag; continue;;
24014   esac
24015   case $ac_mode$ac_tag in
24016   :[FHL]*:*);;
24017   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24018 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24019    { (exit 1); exit 1; }; };;
24020   :[FH]-) ac_tag=-:-;;
24021   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24022   esac
24023   ac_save_IFS=$IFS
24024   IFS=:
24025   set x $ac_tag
24026   IFS=$ac_save_IFS
24027   shift
24028   ac_file=$1
24029   shift
24030
24031   case $ac_mode in
24032   :L) ac_source=$1;;
24033   :[FH])
24034     ac_file_inputs=
24035     for ac_f
24036     do
24037       case $ac_f in
24038       -) ac_f="$tmp/stdin";;
24039       *) # Look for the file first in the build tree, then in the source tree
24040          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24041          # because $ac_f cannot contain `:'.
24042          test -f "$ac_f" ||
24043            case $ac_f in
24044            [\\/$]*) false;;
24045            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24046            esac ||
24047            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24048 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24049    { (exit 1); exit 1; }; };;
24050       esac
24051       ac_file_inputs="$ac_file_inputs $ac_f"
24052     done
24053
24054     # Let's still pretend it is `configure' which instantiates (i.e., don't
24055     # use $as_me), people would be surprised to read:
24056     #    /* config.h.  Generated by config.status.  */
24057     configure_input="Generated from "`IFS=:
24058           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24059     if test x"$ac_file" != x-; then
24060       configure_input="$ac_file.  $configure_input"
24061       { echo "$as_me:$LINENO: creating $ac_file" >&5
24062 echo "$as_me: creating $ac_file" >&6;}
24063     fi
24064
24065     case $ac_tag in
24066     *:-:* | *:-) cat >"$tmp/stdin";;
24067     esac
24068     ;;
24069   esac
24070
24071   ac_dir=`$as_dirname -- "$ac_file" ||
24072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24073          X"$ac_file" : 'X\(//\)[^/]' \| \
24074          X"$ac_file" : 'X\(//\)$' \| \
24075          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24076 echo X"$ac_file" |
24077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24078             s//\1/
24079             q
24080           }
24081           /^X\(\/\/\)[^/].*/{
24082             s//\1/
24083             q
24084           }
24085           /^X\(\/\/\)$/{
24086             s//\1/
24087             q
24088           }
24089           /^X\(\/\).*/{
24090             s//\1/
24091             q
24092           }
24093           s/.*/./; q'`
24094   { as_dir="$ac_dir"
24095   case $as_dir in #(
24096   -*) as_dir=./$as_dir;;
24097   esac
24098   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24099     as_dirs=
24100     while :; do
24101       case $as_dir in #(
24102       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24103       *) as_qdir=$as_dir;;
24104       esac
24105       as_dirs="'$as_qdir' $as_dirs"
24106       as_dir=`$as_dirname -- "$as_dir" ||
24107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108          X"$as_dir" : 'X\(//\)[^/]' \| \
24109          X"$as_dir" : 'X\(//\)$' \| \
24110          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24111 echo X"$as_dir" |
24112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24113             s//\1/
24114             q
24115           }
24116           /^X\(\/\/\)[^/].*/{
24117             s//\1/
24118             q
24119           }
24120           /^X\(\/\/\)$/{
24121             s//\1/
24122             q
24123           }
24124           /^X\(\/\).*/{
24125             s//\1/
24126             q
24127           }
24128           s/.*/./; q'`
24129       test -d "$as_dir" && break
24130     done
24131     test -z "$as_dirs" || eval "mkdir $as_dirs"
24132   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24133 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24134    { (exit 1); exit 1; }; }; }
24135   ac_builddir=.
24136
24137 case "$ac_dir" in
24138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24139 *)
24140   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24141   # A ".." for each directory in $ac_dir_suffix.
24142   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24143   case $ac_top_builddir_sub in
24144   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24145   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24146   esac ;;
24147 esac
24148 ac_abs_top_builddir=$ac_pwd
24149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24150 # for backward compatibility:
24151 ac_top_builddir=$ac_top_build_prefix
24152
24153 case $srcdir in
24154   .)  # We are building in place.
24155     ac_srcdir=.
24156     ac_top_srcdir=$ac_top_builddir_sub
24157     ac_abs_top_srcdir=$ac_pwd ;;
24158   [\\/]* | ?:[\\/]* )  # Absolute name.
24159     ac_srcdir=$srcdir$ac_dir_suffix;
24160     ac_top_srcdir=$srcdir
24161     ac_abs_top_srcdir=$srcdir ;;
24162   *) # Relative name.
24163     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24164     ac_top_srcdir=$ac_top_build_prefix$srcdir
24165     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24166 esac
24167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24168
24169
24170   case $ac_mode in
24171   :F)
24172   #
24173   # CONFIG_FILE
24174   #
24175
24176   case $INSTALL in
24177   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24178   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24179   esac
24180 _ACEOF
24181
24182 cat >>$CONFIG_STATUS <<\_ACEOF
24183 # If the template does not know about datarootdir, expand it.
24184 # FIXME: This hack should be removed a few years after 2.60.
24185 ac_datarootdir_hack=; ac_datarootdir_seen=
24186
24187 case `sed -n '/datarootdir/ {
24188   p
24189   q
24190 }
24191 /@datadir@/p
24192 /@docdir@/p
24193 /@infodir@/p
24194 /@localedir@/p
24195 /@mandir@/p
24196 ' $ac_file_inputs` in
24197 *datarootdir*) ac_datarootdir_seen=yes;;
24198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24199   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24200 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24201 _ACEOF
24202 cat >>$CONFIG_STATUS <<_ACEOF
24203   ac_datarootdir_hack='
24204   s&@datadir@&$datadir&g
24205   s&@docdir@&$docdir&g
24206   s&@infodir@&$infodir&g
24207   s&@localedir@&$localedir&g
24208   s&@mandir@&$mandir&g
24209     s&\\\${datarootdir}&$datarootdir&g' ;;
24210 esac
24211 _ACEOF
24212
24213 # Neutralize VPATH when `$srcdir' = `.'.
24214 # Shell code in configure.ac might set extrasub.
24215 # FIXME: do we really want to maintain this feature?
24216 cat >>$CONFIG_STATUS <<_ACEOF
24217   sed "$ac_vpsub
24218 $extrasub
24219 _ACEOF
24220 cat >>$CONFIG_STATUS <<\_ACEOF
24221 :t
24222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24223 s&@configure_input@&$configure_input&;t t
24224 s&@top_builddir@&$ac_top_builddir_sub&;t t
24225 s&@srcdir@&$ac_srcdir&;t t
24226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24227 s&@top_srcdir@&$ac_top_srcdir&;t t
24228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24229 s&@builddir@&$ac_builddir&;t t
24230 s&@abs_builddir@&$ac_abs_builddir&;t t
24231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24232 s&@INSTALL@&$ac_INSTALL&;t t
24233 $ac_datarootdir_hack
24234 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24235
24236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24237   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24238   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24239   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24240 which seems to be undefined.  Please make sure it is defined." >&5
24241 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24242 which seems to be undefined.  Please make sure it is defined." >&2;}
24243
24244   rm -f "$tmp/stdin"
24245   case $ac_file in
24246   -) cat "$tmp/out"; rm -f "$tmp/out";;
24247   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24248   esac
24249  ;;
24250   :H)
24251   #
24252   # CONFIG_HEADER
24253   #
24254 _ACEOF
24255
24256 # Transform confdefs.h into a sed script `conftest.defines', that
24257 # substitutes the proper values into config.h.in to produce config.h.
24258 rm -f conftest.defines conftest.tail
24259 # First, append a space to every undef/define line, to ease matching.
24260 echo 's/$/ /' >conftest.defines
24261 # Then, protect against being on the right side of a sed subst, or in
24262 # an unquoted here document, in config.status.  If some macros were
24263 # called several times there might be several #defines for the same
24264 # symbol, which is useless.  But do not sort them, since the last
24265 # AC_DEFINE must be honored.
24266 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24267 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24268 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24269 # PARAMS is the parameter list in the macro definition--in most cases, it's
24270 # just an empty string.
24271 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24272 ac_dB='\\)[      (].*,\\1define\\2'
24273 ac_dC=' '
24274 ac_dD=' ,'
24275
24276 uniq confdefs.h |
24277   sed -n '
24278         t rset
24279         :rset
24280         s/^[     ]*#[    ]*define[       ][      ]*//
24281         t ok
24282         d
24283         :ok
24284         s/[\\&,]/\\&/g
24285         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24286         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24287   ' >>conftest.defines
24288
24289 # Remove the space that was appended to ease matching.
24290 # Then replace #undef with comments.  This is necessary, for
24291 # example, in the case of _POSIX_SOURCE, which is predefined and required
24292 # on some systems where configure will not decide to define it.
24293 # (The regexp can be short, since the line contains either #define or #undef.)
24294 echo 's/ $//
24295 s,^[     #]*u.*,/* & */,' >>conftest.defines
24296
24297 # Break up conftest.defines:
24298 ac_max_sed_lines=50
24299
24300 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24301 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24302 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24303 # et cetera.
24304 ac_in='$ac_file_inputs'
24305 ac_out='"$tmp/out1"'
24306 ac_nxt='"$tmp/out2"'
24307
24308 while :
24309 do
24310   # Write a here document:
24311     cat >>$CONFIG_STATUS <<_ACEOF
24312     # First, check the format of the line:
24313     cat >"\$tmp/defines.sed" <<\\CEOF
24314 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24315 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24316 b
24317 :def
24318 _ACEOF
24319   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24320   echo 'CEOF
24321     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24322   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24323   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24324   grep . conftest.tail >/dev/null || break
24325   rm -f conftest.defines
24326   mv conftest.tail conftest.defines
24327 done
24328 rm -f conftest.defines conftest.tail
24329
24330 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24331 cat >>$CONFIG_STATUS <<\_ACEOF
24332   if test x"$ac_file" != x-; then
24333     echo "/* $configure_input  */" >"$tmp/config.h"
24334     cat "$ac_result" >>"$tmp/config.h"
24335     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24336       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24337 echo "$as_me: $ac_file is unchanged" >&6;}
24338     else
24339       rm -f $ac_file
24340       mv "$tmp/config.h" $ac_file
24341     fi
24342   else
24343     echo "/* $configure_input  */"
24344     cat "$ac_result"
24345   fi
24346   rm -f "$tmp/out12"
24347  ;;
24348
24349
24350   esac
24351
24352 done # for ac_tag
24353
24354
24355 { (exit 0); exit 0; }
24356 _ACEOF
24357 chmod +x $CONFIG_STATUS
24358 ac_clean_files=$ac_clean_files_save
24359
24360
24361 # configure is writing to config.log, and then calls config.status.
24362 # config.status does its own redirection, appending to config.log.
24363 # Unfortunately, on DOS this fails, as config.log is still kept open
24364 # by configure, so config.status won't be able to write to it; its
24365 # output is simply discarded.  So we exec the FD to /dev/null,
24366 # effectively closing config.log, so it can be properly (re)opened and
24367 # appended to by config.status.  When coming back to configure, we
24368 # need to make the FD available again.
24369 if test "$no_create" != yes; then
24370   ac_cs_success=:
24371   ac_config_status_args=
24372   test "$silent" = yes &&
24373     ac_config_status_args="$ac_config_status_args --quiet"
24374   exec 5>/dev/null
24375   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24376   exec 5>>config.log
24377   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24378   # would make configure fail if this is the last instruction.
24379   $ac_cs_success || { (exit 1); exit 1; }
24380 fi
24381
24382
24383
24384 #
24385 # On development trees, create snapshots of config.status
24386 #
24387 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
24388     if test "x${MINGW}" = "xyes"; then
24389         echo cp config.status config.status.win32
24390         cp config.status config.status.win32
24391     else
24392         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
24393             echo cp config.status config.status.linux
24394             cp config.status config.status.linux
24395         fi
24396         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
24397             echo cp config.status config.status.debug
24398             cp config.status config.status.debug
24399         fi
24400         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
24401             echo cp config.status config.status.optimize
24402             cp config.status config.status.optimize
24403         fi
24404     fi
24405 fi