bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr-util / xml / expat / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for expat 1.95.7.
4 #
5 # Report bugs to <expat-bugs@mail.libexpat.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $echo works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<EOF
606 $*
607 EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621        echo_test_string=`eval $cmd` &&
622        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623     then
624       break
625     fi
626   done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631    test "X$echo_testing_string" = "X$echo_test_string"; then
632   :
633 else
634   # The Solaris, AIX, and Digital Unix default echo programs unquote
635   # backslashes.  This makes it impossible to quote backslashes using
636   #   echo "$something" | sed 's/\\/\\\\/g'
637   #
638   # So, first we look for a working echo in the user's PATH.
639
640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641   for dir in $PATH /usr/ucb; do
642     IFS="$lt_save_ifs"
643     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646        test "X$echo_testing_string" = "X$echo_test_string"; then
647       echo="$dir/echo"
648       break
649     fi
650   done
651   IFS="$lt_save_ifs"
652
653   if test "X$echo" = Xecho; then
654     # We didn't find a better echo, so look for alternatives.
655     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657        test "X$echo_testing_string" = "X$echo_test_string"; then
658       # This shell has a builtin print -r that does the trick.
659       echo='print -r'
660     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661          test "X$CONFIG_SHELL" != X/bin/ksh; then
662       # If we have ksh, try running configure again with it.
663       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664       export ORIGINAL_CONFIG_SHELL
665       CONFIG_SHELL=/bin/ksh
666       export CONFIG_SHELL
667       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668     else
669       # Try using printf.
670       echo='printf %s\n'
671       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673          test "X$echo_testing_string" = "X$echo_test_string"; then
674         # Cool, printf works
675         :
676       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677            test "X$echo_testing_string" = 'X\t' &&
678            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679            test "X$echo_testing_string" = "X$echo_test_string"; then
680         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681         export CONFIG_SHELL
682         SHELL="$CONFIG_SHELL"
683         export SHELL
684         echo="$CONFIG_SHELL $0 --fallback-echo"
685       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686            test "X$echo_testing_string" = 'X\t' &&
687            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688            test "X$echo_testing_string" = "X$echo_test_string"; then
689         echo="$CONFIG_SHELL $0 --fallback-echo"
690       else
691         # maybe with a smaller string...
692         prev=:
693
694         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696           then
697             break
698           fi
699           prev="$cmd"
700         done
701
702         if test "$prev" != 'sed 50q "$0"'; then
703           echo_test_string=`eval $prev`
704           export echo_test_string
705           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706         else
707           # Oops.  We lost completely, so just stick with echo.
708           echo=echo
709         fi
710       fi
711     fi
712   fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='expat'
752 PACKAGE_TARNAME='expat'
753 PACKAGE_VERSION='1.95.7'
754 PACKAGE_STRING='expat 1.95.7'
755 PACKAGE_BUGREPORT='expat-bugs@mail.libexpat.org'
756
757 ac_unique_file="Makefile.in"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 #  include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #  include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 INSTALL_DATA
797 INSTALL_SCRIPT
798 INSTALL_PROGRAM
799 LIBAGE
800 LIBREVISION
801 LIBCURRENT
802 LIBTOOL
803 ac_ct_F77
804 FFLAGS
805 F77
806 CXXCPP
807 ac_ct_CXX
808 CXXFLAGS
809 CXX
810 CPP
811 OBJDUMP
812 AS
813 DLLTOOL
814 NMEDIT
815 DSYMUTIL
816 STRIP
817 RANLIB
818 AR
819 ECHO
820 LN_S
821 EGREP
822 GREP
823 SED
824 OBJEXT
825 EXEEXT
826 ac_ct_CC
827 CPPFLAGS
828 LDFLAGS
829 CFLAGS
830 CC
831 target_os
832 target_vendor
833 target_cpu
834 target
835 host_os
836 host_vendor
837 host_cpu
838 host
839 build_os
840 build_vendor
841 build_cpu
842 build
843 target_alias
844 host_alias
845 build_alias
846 LIBS
847 ECHO_T
848 ECHO_N
849 ECHO_C
850 DEFS
851 mandir
852 localedir
853 libdir
854 psdir
855 pdfdir
856 dvidir
857 htmldir
858 infodir
859 docdir
860 oldincludedir
861 includedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL'
880 ac_subst_files=''
881 ac_user_opts='
882 enable_option_checking
883 enable_shared
884 enable_static
885 enable_fast_install
886 with_gnu_ld
887 enable_libtool_lock
888 with_pic
889 with_tags
890 '
891       ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 CXX
901 CXXFLAGS
902 CCC
903 CXXCPP
904 F77
905 FFLAGS'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 ac_unrecognized_opts=
912 ac_unrecognized_sep=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960   # If the previous option needs an argument, assign it.
961   if test -n "$ac_prev"; then
962     eval $ac_prev=\$ac_option
963     ac_prev=
964     continue
965   fi
966
967   case $ac_option in
968   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969   *)    ac_optarg=yes ;;
970   esac
971
972   # Accept the important Cygnus configure options, so we can diagnose typos.
973
974   case $ac_dashdash$ac_option in
975   --)
976     ac_dashdash=yes ;;
977
978   -bindir | --bindir | --bindi | --bind | --bin | --bi)
979     ac_prev=bindir ;;
980   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981     bindir=$ac_optarg ;;
982
983   -build | --build | --buil | --bui | --bu)
984     ac_prev=build_alias ;;
985   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986     build_alias=$ac_optarg ;;
987
988   -cache-file | --cache-file | --cache-fil | --cache-fi \
989   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990     ac_prev=cache_file ;;
991   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993     cache_file=$ac_optarg ;;
994
995   --config-cache | -C)
996     cache_file=config.cache ;;
997
998   -datadir | --datadir | --datadi | --datad)
999     ac_prev=datadir ;;
1000   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001     datadir=$ac_optarg ;;
1002
1003   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004   | --dataroo | --dataro | --datar)
1005     ac_prev=datarootdir ;;
1006   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008     datarootdir=$ac_optarg ;;
1009
1010   -disable-* | --disable-*)
1011     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_useropt_orig=$ac_useropt
1017     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018     case $ac_user_opts in
1019       *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023          ac_unrecognized_sep=', ';;
1024     esac
1025     eval enable_$ac_useropt=no ;;
1026
1027   -docdir | --docdir | --docdi | --doc | --do)
1028     ac_prev=docdir ;;
1029   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030     docdir=$ac_optarg ;;
1031
1032   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033     ac_prev=dvidir ;;
1034   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035     dvidir=$ac_optarg ;;
1036
1037   -enable-* | --enable-*)
1038     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1042    { (exit 1); exit 1; }; }
1043     ac_useropt_orig=$ac_useropt
1044     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045     case $ac_user_opts in
1046       *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050          ac_unrecognized_sep=', ';;
1051     esac
1052     eval enable_$ac_useropt=\$ac_optarg ;;
1053
1054   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056   | --exec | --exe | --ex)
1057     ac_prev=exec_prefix ;;
1058   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060   | --exec=* | --exe=* | --ex=*)
1061     exec_prefix=$ac_optarg ;;
1062
1063   -gas | --gas | --ga | --g)
1064     # Obsolete; use --with-gas.
1065     with_gas=yes ;;
1066
1067   -help | --help | --hel | --he | -h)
1068     ac_init_help=long ;;
1069   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070     ac_init_help=recursive ;;
1071   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072     ac_init_help=short ;;
1073
1074   -host | --host | --hos | --ho)
1075     ac_prev=host_alias ;;
1076   -host=* | --host=* | --hos=* | --ho=*)
1077     host_alias=$ac_optarg ;;
1078
1079   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080     ac_prev=htmldir ;;
1081   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082   | --ht=*)
1083     htmldir=$ac_optarg ;;
1084
1085   -includedir | --includedir | --includedi | --included | --include \
1086   | --includ | --inclu | --incl | --inc)
1087     ac_prev=includedir ;;
1088   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089   | --includ=* | --inclu=* | --incl=* | --inc=*)
1090     includedir=$ac_optarg ;;
1091
1092   -infodir | --infodir | --infodi | --infod | --info | --inf)
1093     ac_prev=infodir ;;
1094   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095     infodir=$ac_optarg ;;
1096
1097   -libdir | --libdir | --libdi | --libd)
1098     ac_prev=libdir ;;
1099   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100     libdir=$ac_optarg ;;
1101
1102   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103   | --libexe | --libex | --libe)
1104     ac_prev=libexecdir ;;
1105   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106   | --libexe=* | --libex=* | --libe=*)
1107     libexecdir=$ac_optarg ;;
1108
1109   -localedir | --localedir | --localedi | --localed | --locale)
1110     ac_prev=localedir ;;
1111   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112     localedir=$ac_optarg ;;
1113
1114   -localstatedir | --localstatedir | --localstatedi | --localstated \
1115   | --localstate | --localstat | --localsta | --localst | --locals)
1116     ac_prev=localstatedir ;;
1117   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119     localstatedir=$ac_optarg ;;
1120
1121   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122     ac_prev=mandir ;;
1123   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124     mandir=$ac_optarg ;;
1125
1126   -nfp | --nfp | --nf)
1127     # Obsolete; use --without-fp.
1128     with_fp=no ;;
1129
1130   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131   | --no-cr | --no-c | -n)
1132     no_create=yes ;;
1133
1134   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136     no_recursion=yes ;;
1137
1138   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140   | --oldin | --oldi | --old | --ol | --o)
1141     ac_prev=oldincludedir ;;
1142   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145     oldincludedir=$ac_optarg ;;
1146
1147   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148     ac_prev=prefix ;;
1149   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150     prefix=$ac_optarg ;;
1151
1152   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153   | --program-pre | --program-pr | --program-p)
1154     ac_prev=program_prefix ;;
1155   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157     program_prefix=$ac_optarg ;;
1158
1159   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160   | --program-suf | --program-su | --program-s)
1161     ac_prev=program_suffix ;;
1162   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164     program_suffix=$ac_optarg ;;
1165
1166   -program-transform-name | --program-transform-name \
1167   | --program-transform-nam | --program-transform-na \
1168   | --program-transform-n | --program-transform- \
1169   | --program-transform | --program-transfor \
1170   | --program-transfo | --program-transf \
1171   | --program-trans | --program-tran \
1172   | --progr-tra | --program-tr | --program-t)
1173     ac_prev=program_transform_name ;;
1174   -program-transform-name=* | --program-transform-name=* \
1175   | --program-transform-nam=* | --program-transform-na=* \
1176   | --program-transform-n=* | --program-transform-=* \
1177   | --program-transform=* | --program-transfor=* \
1178   | --program-transfo=* | --program-transf=* \
1179   | --program-trans=* | --program-tran=* \
1180   | --progr-tra=* | --program-tr=* | --program-t=*)
1181     program_transform_name=$ac_optarg ;;
1182
1183   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184     ac_prev=pdfdir ;;
1185   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186     pdfdir=$ac_optarg ;;
1187
1188   -psdir | --psdir | --psdi | --psd | --ps)
1189     ac_prev=psdir ;;
1190   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191     psdir=$ac_optarg ;;
1192
1193   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194   | -silent | --silent | --silen | --sile | --sil)
1195     silent=yes ;;
1196
1197   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198     ac_prev=sbindir ;;
1199   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200   | --sbi=* | --sb=*)
1201     sbindir=$ac_optarg ;;
1202
1203   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205   | --sharedst | --shareds | --shared | --share | --shar \
1206   | --sha | --sh)
1207     ac_prev=sharedstatedir ;;
1208   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211   | --sha=* | --sh=*)
1212     sharedstatedir=$ac_optarg ;;
1213
1214   -site | --site | --sit)
1215     ac_prev=site ;;
1216   -site=* | --site=* | --sit=*)
1217     site=$ac_optarg ;;
1218
1219   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220     ac_prev=srcdir ;;
1221   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222     srcdir=$ac_optarg ;;
1223
1224   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225   | --syscon | --sysco | --sysc | --sys | --sy)
1226     ac_prev=sysconfdir ;;
1227   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229     sysconfdir=$ac_optarg ;;
1230
1231   -target | --target | --targe | --targ | --tar | --ta | --t)
1232     ac_prev=target_alias ;;
1233   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234     target_alias=$ac_optarg ;;
1235
1236   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237     verbose=yes ;;
1238
1239   -version | --version | --versio | --versi | --vers | -V)
1240     ac_init_version=: ;;
1241
1242   -with-* | --with-*)
1243     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1247    { (exit 1); exit 1; }; }
1248     ac_useropt_orig=$ac_useropt
1249     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250     case $ac_user_opts in
1251       *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255          ac_unrecognized_sep=', ';;
1256     esac
1257     eval with_$ac_useropt=\$ac_optarg ;;
1258
1259   -without-* | --without-*)
1260     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1264    { (exit 1); exit 1; }; }
1265     ac_useropt_orig=$ac_useropt
1266     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267     case $ac_user_opts in
1268       *"
1269 "with_$ac_useropt"
1270 "*) ;;
1271       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272          ac_unrecognized_sep=', ';;
1273     esac
1274     eval with_$ac_useropt=no ;;
1275
1276   --x)
1277     # Obsolete; use --with-x.
1278     with_x=yes ;;
1279
1280   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281   | --x-incl | --x-inc | --x-in | --x-i)
1282     ac_prev=x_includes ;;
1283   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285     x_includes=$ac_optarg ;;
1286
1287   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289     ac_prev=x_libraries ;;
1290   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292     x_libraries=$ac_optarg ;;
1293
1294   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1295 Try \`$0 --help' for more information." >&2
1296    { (exit 1); exit 1; }; }
1297     ;;
1298
1299   *=*)
1300     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301     # Reject names that are not valid shell variable names.
1302     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1303       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1304    { (exit 1); exit 1; }; }
1305     eval $ac_envvar=\$ac_optarg
1306     export $ac_envvar ;;
1307
1308   *)
1309     # FIXME: should be removed in autoconf 3.0.
1310     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1314     ;;
1315
1316   esac
1317 done
1318
1319 if test -n "$ac_prev"; then
1320   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1322    { (exit 1); exit 1; }; }
1323 fi
1324
1325 if test -n "$ac_unrecognized_opts"; then
1326   case $enable_option_checking in
1327     no) ;;
1328     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1329    { (exit 1); exit 1; }; } ;;
1330     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331   esac
1332 fi
1333
1334 # Check all directory arguments for consistency.
1335 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336                 datadir sysconfdir sharedstatedir localstatedir includedir \
1337                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338                 libdir localedir mandir
1339 do
1340   eval ac_val=\$$ac_var
1341   # Remove trailing slashes.
1342   case $ac_val in
1343     */ )
1344       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1345       eval $ac_var=\$ac_val;;
1346   esac
1347   # Be sure to have absolute directory names.
1348   case $ac_val in
1349     [\\/$]* | ?:[\\/]* )  continue;;
1350     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1351   esac
1352   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1353    { (exit 1); exit 1; }; }
1354 done
1355
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1359 build=$build_alias
1360 host=$host_alias
1361 target=$target_alias
1362
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x; then
1365   if test "x$build_alias" = x; then
1366     cross_compiling=maybe
1367     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1368     If a cross compiler is detected then cross compile mode will be used." >&2
1369   elif test "x$build_alias" != "x$host_alias"; then
1370     cross_compiling=yes
1371   fi
1372 fi
1373
1374 ac_tool_prefix=
1375 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377 test "$silent" = yes && exec 6>/dev/null
1378
1379
1380 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di=`ls -di .` &&
1382 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1384    { (exit 1); exit 1; }; }
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1387    { (exit 1); exit 1; }; }
1388
1389
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392   ac_srcdir_defaulted=yes
1393   # Try the directory containing this script, then the parent directory.
1394   ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396          X"$as_myself" : 'X\(//\)[^/]' \| \
1397          X"$as_myself" : 'X\(//\)$' \| \
1398          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401             s//\1/
1402             q
1403           }
1404           /^X\(\/\/\)[^/].*/{
1405             s//\1/
1406             q
1407           }
1408           /^X\(\/\/\)$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\).*/{
1413             s//\1/
1414             q
1415           }
1416           s/.*/./; q'`
1417   srcdir=$ac_confdir
1418   if test ! -r "$srcdir/$ac_unique_file"; then
1419     srcdir=..
1420   fi
1421 else
1422   ac_srcdir_defaulted=no
1423 fi
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1427    { (exit 1); exit 1; }; }
1428 fi
1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1432    { (exit 1); exit 1; }; }
1433         pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436   srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446   eval ac_env_${ac_var}_value=\$${ac_var}
1447   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1450
1451 #
1452 # Report the --help message.
1453 #
1454 if test "$ac_init_help" = "long"; then
1455   # Omit some internal or obsolete options to make the list less imposing.
1456   # This message is too long to be a string in the A/UX 3.1 sh.
1457   cat <<_ACEOF
1458 \`configure' configures expat 1.95.7 to adapt to many kinds of systems.
1459
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465 Defaults for the options are specified in brackets.
1466
1467 Configuration:
1468   -h, --help              display this help and exit
1469       --help=short        display options specific to this package
1470       --help=recursive    display the short help of all the included packages
1471   -V, --version           display version information and exit
1472   -q, --quiet, --silent   do not print \`checking...' messages
1473       --cache-file=FILE   cache test results in FILE [disabled]
1474   -C, --config-cache      alias for \`--cache-file=config.cache'
1475   -n, --no-create         do not create output files
1476       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478 Installation directories:
1479   --prefix=PREFIX         install architecture-independent files in PREFIX
1480                           [$ac_default_prefix]
1481   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                           [PREFIX]
1483
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1488
1489 For better control, use the options below.
1490
1491 Fine tuning of the installation directories:
1492   --bindir=DIR            user executables [EPREFIX/bin]
1493   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494   --libexecdir=DIR        program executables [EPREFIX/libexec]
1495   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498   --libdir=DIR            object code libraries [EPREFIX/lib]
1499   --includedir=DIR        C header files [PREFIX/include]
1500   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503   --infodir=DIR           info documentation [DATAROOTDIR/info]
1504   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505   --mandir=DIR            man documentation [DATAROOTDIR/man]
1506   --docdir=DIR            documentation root [DATAROOTDIR/doc/expat]
1507   --htmldir=DIR           html documentation [DOCDIR]
1508   --dvidir=DIR            dvi documentation [DOCDIR]
1509   --pdfdir=DIR            pdf documentation [DOCDIR]
1510   --psdir=DIR             ps documentation [DOCDIR]
1511 _ACEOF
1512
1513   cat <<\_ACEOF
1514
1515 System types:
1516   --build=BUILD     configure for building on BUILD [guessed]
1517   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518   --target=TARGET   configure for building compilers for TARGET [HOST]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523   case $ac_init_help in
1524      short | recursive ) echo "Configuration of expat 1.95.7:";;
1525    esac
1526   cat <<\_ACEOF
1527
1528 Optional Features:
1529   --disable-option-checking  ignore unrecognized --enable/--with options
1530   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532   --enable-shared[=PKGS]  build shared libraries [default=yes]
1533   --enable-static[=PKGS]  build static libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537
1538 Optional Packages:
1539   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1540   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1541   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1542   --with-pic              try to use only PIC/non-PIC objects [default=use
1543                           both]
1544   --with-tags[=TAGS]      include additional configurations [automatic]
1545
1546 Some influential environment variables:
1547   CC          C compiler command
1548   CFLAGS      C compiler flags
1549   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1550               nonstandard directory <lib dir>
1551   LIBS        libraries to pass to the linker, e.g. -l<library>
1552   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553               you have headers in a nonstandard directory <include dir>
1554   CPP         C preprocessor
1555   CXX         C++ compiler command
1556   CXXFLAGS    C++ compiler flags
1557   CXXCPP      C++ preprocessor
1558   F77         Fortran 77 compiler command
1559   FFLAGS      Fortran 77 compiler flags
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <expat-bugs@mail.libexpat.org>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 expat configure 1.95.7
1628 generated by GNU Autoconf 2.63
1629
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635   exit
1636 fi
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1640
1641 It was created by expat $as_me 1.95.7, which was
1642 generated by GNU Autoconf 2.63.  Invocation command line was
1643
1644   $ $0 $@
1645
1646 _ACEOF
1647 exec 5>>config.log
1648 {
1649 cat <<_ASUNAME
1650 ## --------- ##
1651 ## Platform. ##
1652 ## --------- ##
1653
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1662
1663 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1664 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1667 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1668 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1669 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1670
1671 _ASUNAME
1672
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   $as_echo "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1681
1682 } >&5
1683
1684 cat >&5 <<_ACEOF
1685
1686
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1690
1691 _ACEOF
1692
1693
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1704 do
1705   for ac_arg
1706   do
1707     case $ac_arg in
1708     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710     | -silent | --silent | --silen | --sile | --sil)
1711       continue ;;
1712     *\'*)
1713       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714     esac
1715     case $ac_pass in
1716     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717     2)
1718       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719       if test $ac_must_keep_next = true; then
1720         ac_must_keep_next=false # Got value, back to normal.
1721       else
1722         case $ac_arg in
1723           *=* | --config-cache | -C | -disable-* | --disable-* \
1724           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726           | -with-* | --with-* | -without-* | --without-* | --x)
1727             case "$ac_configure_args0 " in
1728               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729             esac
1730             ;;
1731           -* ) ac_must_keep_next=true ;;
1732         esac
1733       fi
1734       ac_configure_args="$ac_configure_args '$ac_arg'"
1735       ;;
1736     esac
1737   done
1738 done
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log.  We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748   # Save into config.log some information that might help in debugging.
1749   {
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1756 _ASBOX
1757     echo
1758     # The following way of writing the cache mishandles newlines in values,
1759 (
1760   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761     eval ac_val=\$$ac_var
1762     case $ac_val in #(
1763     *${as_nl}*)
1764       case $ac_var in #(
1765       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1767       esac
1768       case $ac_var in #(
1769       _ | IFS | as_nl) ;; #(
1770       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771       *) $as_unset $ac_var ;;
1772       esac ;;
1773     esac
1774   done
1775   (set) 2>&1 |
1776     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777     *${as_nl}ac_space=\ *)
1778       sed -n \
1779         "s/'\''/'\''\\\\'\'''\''/g;
1780           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781       ;; #(
1782     *)
1783       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784       ;;
1785     esac |
1786     sort
1787 )
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795     echo
1796     for ac_var in $ac_subst_vars
1797     do
1798       eval ac_val=\$$ac_var
1799       case $ac_val in
1800       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801       esac
1802       $as_echo "$ac_var='\''$ac_val'\''"
1803     done | sort
1804     echo
1805
1806     if test -n "$ac_subst_files"; then
1807       cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812       echo
1813       for ac_var in $ac_subst_files
1814       do
1815         eval ac_val=\$$ac_var
1816         case $ac_val in
1817         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818         esac
1819         $as_echo "$ac_var='\''$ac_val'\''"
1820       done | sort
1821       echo
1822     fi
1823
1824     if test -s confdefs.h; then
1825       cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830       echo
1831       cat confdefs.h
1832       echo
1833     fi
1834     test "$ac_signal" != 0 &&
1835       $as_echo "$as_me: caught signal $ac_signal"
1836     $as_echo "$as_me: exit $exit_status"
1837   } >&5
1838   rm -f core *.core core.conftest.* &&
1839     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840     exit $exit_status
1841 ' 0
1842 for ac_signal in 1 2 13 15; do
1843   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1846
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1849
1850 # Predefined preprocessor variables.
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1875
1876
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1879 ac_site_file1=NONE
1880 ac_site_file2=NONE
1881 if test -n "$CONFIG_SITE"; then
1882   ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884   ac_site_file1=$prefix/share/config.site
1885   ac_site_file2=$prefix/etc/config.site
1886 else
1887   ac_site_file1=$ac_default_prefix/share/config.site
1888   ac_site_file2=$ac_default_prefix/etc/config.site
1889 fi
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 do
1892   test "x$ac_site_file" = xNONE && continue
1893   if test -r "$ac_site_file"; then
1894     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         # differences in whitespace do not lead to failure.
1939         ac_old_val_w=`echo x $ac_old_val`
1940         ac_new_val_w=`echo x $ac_new_val`
1941         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944           ac_cache_corrupted=:
1945         else
1946           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948           eval $ac_var=\$ac_old_val
1949         fi
1950         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1951 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1952         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010
2011 ac_aux_dir=
2012 for ac_dir in conftools "$srcdir"/conftools; do
2013   if test -f "$ac_dir/install-sh"; then
2014     ac_aux_dir=$ac_dir
2015     ac_install_sh="$ac_aux_dir/install-sh -c"
2016     break
2017   elif test -f "$ac_dir/install.sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install.sh -c"
2020     break
2021   elif test -f "$ac_dir/shtool"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/shtool install -c"
2024     break
2025   fi
2026 done
2027 if test -z "$ac_aux_dir"; then
2028   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&5
2029 $as_echo "$as_me: error: cannot find install-sh or install.sh in conftools \"$srcdir\"/conftools" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2038 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2039 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2040
2041
2042
2043
2044
2045 LIBCURRENT=5
2046 LIBREVISION=0
2047 LIBAGE=5
2048
2049 ac_config_headers="$ac_config_headers expat_config.h"
2050
2051
2052
2053
2054
2055 # Make sure we can run config.sub.
2056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2057   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059    { (exit 1); exit 1; }; }
2060
2061 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2062 $as_echo_n "checking build system type... " >&6; }
2063 if test "${ac_cv_build+set}" = set; then
2064   $as_echo_n "(cached) " >&6
2065 else
2066   ac_build_alias=$build_alias
2067 test "x$ac_build_alias" = x &&
2068   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069 test "x$ac_build_alias" = x &&
2070   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072    { (exit 1); exit 1; }; }
2073 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2074   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 fi
2079 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080 $as_echo "$ac_cv_build" >&6; }
2081 case $ac_cv_build in
2082 *-*-*) ;;
2083 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2085    { (exit 1); exit 1; }; };;
2086 esac
2087 build=$ac_cv_build
2088 ac_save_IFS=$IFS; IFS='-'
2089 set x $ac_cv_build
2090 shift
2091 build_cpu=$1
2092 build_vendor=$2
2093 shift; shift
2094 # Remember, the first character of IFS is used to create $*,
2095 # except with old shells:
2096 build_os=$*
2097 IFS=$ac_save_IFS
2098 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2099
2100
2101 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2102 $as_echo_n "checking host system type... " >&6; }
2103 if test "${ac_cv_host+set}" = set; then
2104   $as_echo_n "(cached) " >&6
2105 else
2106   if test "x$host_alias" = x; then
2107   ac_cv_host=$ac_cv_build
2108 else
2109   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2110     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114
2115 fi
2116 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117 $as_echo "$ac_cv_host" >&6; }
2118 case $ac_cv_host in
2119 *-*-*) ;;
2120 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2122    { (exit 1); exit 1; }; };;
2123 esac
2124 host=$ac_cv_host
2125 ac_save_IFS=$IFS; IFS='-'
2126 set x $ac_cv_host
2127 shift
2128 host_cpu=$1
2129 host_vendor=$2
2130 shift; shift
2131 # Remember, the first character of IFS is used to create $*,
2132 # except with old shells:
2133 host_os=$*
2134 IFS=$ac_save_IFS
2135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2136
2137
2138 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2139 $as_echo_n "checking target system type... " >&6; }
2140 if test "${ac_cv_target+set}" = set; then
2141   $as_echo_n "(cached) " >&6
2142 else
2143   if test "x$target_alias" = x; then
2144   ac_cv_target=$ac_cv_host
2145 else
2146   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2147     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2148 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2149    { (exit 1); exit 1; }; }
2150 fi
2151
2152 fi
2153 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2154 $as_echo "$ac_cv_target" >&6; }
2155 case $ac_cv_target in
2156 *-*-*) ;;
2157 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2158 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2159    { (exit 1); exit 1; }; };;
2160 esac
2161 target=$ac_cv_target
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_target
2164 shift
2165 target_cpu=$1
2166 target_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 target_os=$*
2171 IFS=$ac_save_IFS
2172 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2173
2174
2175 # The aliases save the names the user supplied, while $host etc.
2176 # will get canonicalized.
2177 test -n "$target_alias" &&
2178   test "$program_prefix$program_suffix$program_transform_name" = \
2179     NONENONEs,x,x, &&
2180   program_prefix=${target_alias}-
2181
2182 case "$host_os" in
2183 *os2*)
2184     # Use a custom made libtool replacement
2185     echo Using aplibtool
2186     LIBTOOL="$srcdir/../../../apr/build/aplibtool"
2187     ;;
2188 *)
2189
2190
2191 # Check whether --enable-shared was given.
2192 if test "${enable_shared+set}" = set; then
2193   enableval=$enable_shared; p=${PACKAGE-default}
2194     case $enableval in
2195     yes) enable_shared=yes ;;
2196     no) enable_shared=no ;;
2197     *)
2198       enable_shared=no
2199       # Look at the argument we got.  We use all the common list separators.
2200       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2201       for pkg in $enableval; do
2202         IFS="$lt_save_ifs"
2203         if test "X$pkg" = "X$p"; then
2204           enable_shared=yes
2205         fi
2206       done
2207       IFS="$lt_save_ifs"
2208       ;;
2209     esac
2210 else
2211   enable_shared=yes
2212 fi
2213
2214
2215 # Check whether --enable-static was given.
2216 if test "${enable_static+set}" = set; then
2217   enableval=$enable_static; p=${PACKAGE-default}
2218     case $enableval in
2219     yes) enable_static=yes ;;
2220     no) enable_static=no ;;
2221     *)
2222      enable_static=no
2223       # Look at the argument we got.  We use all the common list separators.
2224       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2225       for pkg in $enableval; do
2226         IFS="$lt_save_ifs"
2227         if test "X$pkg" = "X$p"; then
2228           enable_static=yes
2229         fi
2230       done
2231       IFS="$lt_save_ifs"
2232       ;;
2233     esac
2234 else
2235   enable_static=yes
2236 fi
2237
2238
2239 # Check whether --enable-fast-install was given.
2240 if test "${enable_fast_install+set}" = set; then
2241   enableval=$enable_fast_install; p=${PACKAGE-default}
2242     case $enableval in
2243     yes) enable_fast_install=yes ;;
2244     no) enable_fast_install=no ;;
2245     *)
2246       enable_fast_install=no
2247       # Look at the argument we got.  We use all the common list separators.
2248       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2249       for pkg in $enableval; do
2250         IFS="$lt_save_ifs"
2251         if test "X$pkg" = "X$p"; then
2252           enable_fast_install=yes
2253         fi
2254       done
2255       IFS="$lt_save_ifs"
2256       ;;
2257     esac
2258 else
2259   enable_fast_install=yes
2260 fi
2261
2262
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 if test -n "$ac_tool_prefix"; then
2269   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274   $as_echo_n "(cached) " >&6
2275 else
2276   if test -n "$CC"; then
2277   ac_cv_prog_CC="$CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_exec_ext in '' $ac_executable_extensions; do
2285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2287     $as_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 fi
2295 fi
2296 CC=$ac_cv_prog_CC
2297 if test -n "$CC"; then
2298   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2300 else
2301   { $as_echo "$as_me:$LINENO: result: no" >&5
2302 $as_echo "no" >&6; }
2303 fi
2304
2305
2306 fi
2307 if test -z "$ac_cv_prog_CC"; then
2308   ac_ct_CC=$CC
2309   # Extract the first word of "gcc", so it can be a program name with args.
2310 set dummy gcc; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314   $as_echo_n "(cached) " >&6
2315 else
2316   if test -n "$ac_ct_CC"; then
2317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326     ac_cv_prog_ac_ct_CC="gcc"
2327     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328     break 2
2329   fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 $as_echo "$ac_ct_CC" >&6; }
2340 else
2341   { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345   if test "x$ac_ct_CC" = x; then
2346     CC=""
2347   else
2348     case $cross_compiling:$ac_tool_warned in
2349 yes:)
2350 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2352 ac_tool_warned=yes ;;
2353 esac
2354     CC=$ac_ct_CC
2355   fi
2356 else
2357   CC="$ac_cv_prog_CC"
2358 fi
2359
2360 if test -z "$CC"; then
2361           if test -n "$ac_tool_prefix"; then
2362     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}cc; ac_word=$2
2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367   $as_echo_n "(cached) " >&6
2368 else
2369   if test -n "$CC"; then
2370   ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377   for ac_exec_ext in '' $ac_executable_extensions; do
2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379     ac_cv_prog_CC="${ac_tool_prefix}cc"
2380     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2392 $as_echo "$CC" >&6; }
2393 else
2394   { $as_echo "$as_me:$LINENO: result: no" >&5
2395 $as_echo "no" >&6; }
2396 fi
2397
2398
2399   fi
2400 fi
2401 if test -z "$CC"; then
2402   # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407   $as_echo_n "(cached) " >&6
2408 else
2409   if test -n "$CC"; then
2410   ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412   ac_prog_rejected=no
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416   IFS=$as_save_IFS
2417   test -z "$as_dir" && as_dir=.
2418   for ac_exec_ext in '' $ac_executable_extensions; do
2419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2421        ac_prog_rejected=yes
2422        continue
2423      fi
2424     ac_cv_prog_CC="cc"
2425     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429 done
2430 IFS=$as_save_IFS
2431
2432 if test $ac_prog_rejected = yes; then
2433   # We found a bogon in the path, so make sure we never use it.
2434   set dummy $ac_cv_prog_CC
2435   shift
2436   if test $# != 0; then
2437     # We chose a different compiler from the bogus one.
2438     # However, it has the same basename, so the bogon will be chosen
2439     # first if we set CC to just the basename; use the full file name.
2440     shift
2441     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2442   fi
2443 fi
2444 fi
2445 fi
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2450 else
2451   { $as_echo "$as_me:$LINENO: result: no" >&5
2452 $as_echo "no" >&6; }
2453 fi
2454
2455
2456 fi
2457 if test -z "$CC"; then
2458   if test -n "$ac_tool_prefix"; then
2459   for ac_prog in cl.exe
2460   do
2461     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466   $as_echo_n "(cached) " >&6
2467 else
2468   if test -n "$CC"; then
2469   ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2479     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2492 else
2493   { $as_echo "$as_me:$LINENO: result: no" >&5
2494 $as_echo "no" >&6; }
2495 fi
2496
2497
2498     test -n "$CC" && break
2499   done
2500 fi
2501 if test -z "$CC"; then
2502   ac_ct_CC=$CC
2503   for ac_prog in cl.exe
2504 do
2505   # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510   $as_echo_n "(cached) " >&6
2511 else
2512   if test -n "$ac_ct_CC"; then
2513   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520   for ac_exec_ext in '' $ac_executable_extensions; do
2521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522     ac_cv_prog_ac_ct_CC="$ac_prog"
2523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 $as_echo "$ac_ct_CC" >&6; }
2536 else
2537   { $as_echo "$as_me:$LINENO: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2540
2541
2542   test -n "$ac_ct_CC" && break
2543 done
2544
2545   if test "x$ac_ct_CC" = x; then
2546     CC=""
2547   else
2548     case $cross_compiling:$ac_tool_warned in
2549 yes:)
2550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552 ac_tool_warned=yes ;;
2553 esac
2554     CC=$ac_ct_CC
2555   fi
2556 fi
2557
2558 fi
2559
2560
2561 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&5
2565 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details." >&2;}
2567    { (exit 1); exit 1; }; }; }
2568
2569 # Provide some information about the compiler.
2570 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2571 set X $ac_compile
2572 ac_compiler=$2
2573 { (ac_try="$ac_compiler --version >&5"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2579 $as_echo "$ac_try_echo") >&5
2580   (eval "$ac_compiler --version >&5") 2>&5
2581   ac_status=$?
2582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }
2584 { (ac_try="$ac_compiler -v >&5"
2585 case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591   (eval "$ac_compiler -v >&5") 2>&5
2592   ac_status=$?
2593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }
2595 { (ac_try="$ac_compiler -V >&5"
2596 case "(($ac_try" in
2597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598   *) ac_try_echo=$ac_try;;
2599 esac
2600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2601 $as_echo "$ac_try_echo") >&5
2602   (eval "$ac_compiler -V >&5") 2>&5
2603   ac_status=$?
2604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }
2606
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h.  */
2613
2614 int
2615 main ()
2616 {
2617
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 ac_clean_files_save=$ac_clean_files
2623 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2624 # Try to create an executable without -o first, disregard a.out.
2625 # It will help us diagnose broken compilers, and finding out an intuition
2626 # of exeext.
2627 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2628 $as_echo_n "checking for C compiler default output file name... " >&6; }
2629 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2630
2631 # The possible output files:
2632 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2633
2634 ac_rmfiles=
2635 for ac_file in $ac_files
2636 do
2637   case $ac_file in
2638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2639     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2640   esac
2641 done
2642 rm -f $ac_rmfiles
2643
2644 if { (ac_try="$ac_link_default"
2645 case "(($ac_try" in
2646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647   *) ac_try_echo=$ac_try;;
2648 esac
2649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2650 $as_echo "$ac_try_echo") >&5
2651   (eval "$ac_link_default") 2>&5
2652   ac_status=$?
2653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; then
2655   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2656 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2657 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2658 # so that the user can short-circuit this test for compilers unknown to
2659 # Autoconf.
2660 for ac_file in $ac_files ''
2661 do
2662   test -f "$ac_file" || continue
2663   case $ac_file in
2664     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2665         ;;
2666     [ab].out )
2667         # We found the default executable, but exeext='' is most
2668         # certainly right.
2669         break;;
2670     *.* )
2671         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2672         then :; else
2673            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2674         fi
2675         # We set ac_cv_exeext here because the later test for it is not
2676         # safe: cross compilers may not add the suffix if given an `-o'
2677         # argument, so we may need to know it at that point already.
2678         # Even if this section looks crufty: it has the advantage of
2679         # actually working.
2680         break;;
2681     * )
2682         break;;
2683   esac
2684 done
2685 test "$ac_cv_exeext" = no && ac_cv_exeext=
2686
2687 else
2688   ac_file=''
2689 fi
2690
2691 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2692 $as_echo "$ac_file" >&6; }
2693 if test -z "$ac_file"; then
2694   $as_echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2700 See \`config.log' for more details." >&5
2701 $as_echo "$as_me: error: C compiler cannot create executables
2702 See \`config.log' for more details." >&2;}
2703    { (exit 77); exit 77; }; }; }
2704 fi
2705
2706 ac_exeext=$ac_cv_exeext
2707
2708 # Check that the compiler produces executables we can run.  If not, either
2709 # the compiler is broken, or we cross compile.
2710 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2711 $as_echo_n "checking whether the C compiler works... " >&6; }
2712 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2713 # If not cross compiling, check that we can run a simple program.
2714 if test "$cross_compiling" != yes; then
2715   if { ac_try='./$ac_file'
2716   { (case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2721 $as_echo "$ac_try_echo") >&5
2722   (eval "$ac_try") 2>&5
2723   ac_status=$?
2724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726     cross_compiling=no
2727   else
2728     if test "$cross_compiling" = maybe; then
2729         cross_compiling=yes
2730     else
2731         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2733 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2734 If you meant to cross compile, use \`--host'.
2735 See \`config.log' for more details." >&5
2736 $as_echo "$as_me: error: cannot run C compiled programs.
2737 If you meant to cross compile, use \`--host'.
2738 See \`config.log' for more details." >&2;}
2739    { (exit 1); exit 1; }; }; }
2740     fi
2741   fi
2742 fi
2743 { $as_echo "$as_me:$LINENO: result: yes" >&5
2744 $as_echo "yes" >&6; }
2745
2746 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2747 ac_clean_files=$ac_clean_files_save
2748 # Check that the compiler produces executables we can run.  If not, either
2749 # the compiler is broken, or we cross compile.
2750 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2751 $as_echo_n "checking whether we are cross compiling... " >&6; }
2752 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2753 $as_echo "$cross_compiling" >&6; }
2754
2755 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2756 $as_echo_n "checking for suffix of executables... " >&6; }
2757 if { (ac_try="$ac_link"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2763 $as_echo "$ac_try_echo") >&5
2764   (eval "$ac_link") 2>&5
2765   ac_status=$?
2766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; then
2768   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2769 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2770 # work properly (i.e., refer to `conftest.exe'), while it won't with
2771 # `rm'.
2772 for ac_file in conftest.exe conftest conftest.*; do
2773   test -f "$ac_file" || continue
2774   case $ac_file in
2775     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2776     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777           break;;
2778     * ) break;;
2779   esac
2780 done
2781 else
2782   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2785 See \`config.log' for more details." >&5
2786 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2787 See \`config.log' for more details." >&2;}
2788    { (exit 1); exit 1; }; }; }
2789 fi
2790
2791 rm -f conftest$ac_cv_exeext
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2793 $as_echo "$ac_cv_exeext" >&6; }
2794
2795 rm -f conftest.$ac_ext
2796 EXEEXT=$ac_cv_exeext
2797 ac_exeext=$EXEEXT
2798 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2799 $as_echo_n "checking for suffix of object files... " >&6; }
2800 if test "${ac_cv_objext+set}" = set; then
2801   $as_echo_n "(cached) " >&6
2802 else
2803   cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h.  */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h.  */
2809
2810 int
2811 main ()
2812 {
2813
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.o conftest.obj
2819 if { (ac_try="$ac_compile"
2820 case "(($ac_try" in
2821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822   *) ac_try_echo=$ac_try;;
2823 esac
2824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2825 $as_echo "$ac_try_echo") >&5
2826   (eval "$ac_compile") 2>&5
2827   ac_status=$?
2828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829   (exit $ac_status); }; then
2830   for ac_file in conftest.o conftest.obj conftest.*; do
2831   test -f "$ac_file" || continue;
2832   case $ac_file in
2833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2834     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2835        break;;
2836   esac
2837 done
2838 else
2839   $as_echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2845 See \`config.log' for more details." >&5
2846 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2847 See \`config.log' for more details." >&2;}
2848    { (exit 1); exit 1; }; }; }
2849 fi
2850
2851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2852 fi
2853 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2854 $as_echo "$ac_cv_objext" >&6; }
2855 OBJEXT=$ac_cv_objext
2856 ac_objext=$OBJEXT
2857 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2858 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2859 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2860   $as_echo_n "(cached) " >&6
2861 else
2862   cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868
2869 int
2870 main ()
2871 {
2872 #ifndef __GNUC__
2873        choke me
2874 #endif
2875
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2887 $as_echo "$ac_try_echo") >&5
2888   (eval "$ac_compile") 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } && {
2895          test -z "$ac_c_werror_flag" ||
2896          test ! -s conftest.err
2897        } && test -s conftest.$ac_objext; then
2898   ac_compiler_gnu=yes
2899 else
2900   $as_echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903         ac_compiler_gnu=no
2904 fi
2905
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2908
2909 fi
2910 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2911 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2912 if test $ac_compiler_gnu = yes; then
2913   GCC=yes
2914 else
2915   GCC=
2916 fi
2917 ac_test_CFLAGS=${CFLAGS+set}
2918 ac_save_CFLAGS=$CFLAGS
2919 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2920 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2921 if test "${ac_cv_prog_cc_g+set}" = set; then
2922   $as_echo_n "(cached) " >&6
2923 else
2924   ac_save_c_werror_flag=$ac_c_werror_flag
2925    ac_c_werror_flag=yes
2926    ac_cv_prog_cc_g=no
2927    CFLAGS="-g"
2928    cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934
2935 int
2936 main ()
2937 {
2938
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950 $as_echo "$ac_try_echo") >&5
2951   (eval "$ac_compile") 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } && {
2958          test -z "$ac_c_werror_flag" ||
2959          test ! -s conftest.err
2960        } && test -s conftest.$ac_objext; then
2961   ac_cv_prog_cc_g=yes
2962 else
2963   $as_echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966         CFLAGS=""
2967       cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989 $as_echo "$ac_try_echo") >&5
2990   (eval "$ac_compile") 2>conftest.er1
2991   ac_status=$?
2992   grep -v '^ *+' conftest.er1 >conftest.err
2993   rm -f conftest.er1
2994   cat conftest.err >&5
2995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); } && {
2997          test -z "$ac_c_werror_flag" ||
2998          test ! -s conftest.err
2999        } && test -s conftest.$ac_objext; then
3000   :
3001 else
3002   $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005         ac_c_werror_flag=$ac_save_c_werror_flag
3006          CFLAGS="-g"
3007          cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013
3014 int
3015 main ()
3016 {
3017
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3029 $as_echo "$ac_try_echo") >&5
3030   (eval "$ac_compile") 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } && {
3037          test -z "$ac_c_werror_flag" ||
3038          test ! -s conftest.err
3039        } && test -s conftest.$ac_objext; then
3040   ac_cv_prog_cc_g=yes
3041 else
3042   $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045
3046 fi
3047
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 fi
3050
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 fi
3053
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055    ac_c_werror_flag=$ac_save_c_werror_flag
3056 fi
3057 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3058 $as_echo "$ac_cv_prog_cc_g" >&6; }
3059 if test "$ac_test_CFLAGS" = set; then
3060   CFLAGS=$ac_save_CFLAGS
3061 elif test $ac_cv_prog_cc_g = yes; then
3062   if test "$GCC" = yes; then
3063     CFLAGS="-g -O2"
3064   else
3065     CFLAGS="-g"
3066   fi
3067 else
3068   if test "$GCC" = yes; then
3069     CFLAGS="-O2"
3070   else
3071     CFLAGS=
3072   fi
3073 fi
3074 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3075 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3076 if test "${ac_cv_prog_cc_c89+set}" = set; then
3077   $as_echo_n "(cached) " >&6
3078 else
3079   ac_cv_prog_cc_c89=no
3080 ac_save_CC=$CC
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087 #include <stdarg.h>
3088 #include <stdio.h>
3089 #include <sys/types.h>
3090 #include <sys/stat.h>
3091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3092 struct buf { int x; };
3093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3094 static char *e (p, i)
3095      char **p;
3096      int i;
3097 {
3098   return p[i];
3099 }
3100 static char *f (char * (*g) (char **, int), char **p, ...)
3101 {
3102   char *s;
3103   va_list v;
3104   va_start (v,p);
3105   s = g (p, va_arg (v,int));
3106   va_end (v);
3107   return s;
3108 }
3109
3110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3111    function prototypes and stuff, but not '\xHH' hex character constants.
3112    These don't provoke an error unfortunately, instead are silently treated
3113    as 'x'.  The following induces an error, until -std is added to get
3114    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3115    array size at least.  It's necessary to write '\x00'==0 to get something
3116    that's true only with -std.  */
3117 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3118
3119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3120    inside strings and character constants.  */
3121 #define FOO(x) 'x'
3122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3123
3124 int test (int i, double x);
3125 struct s1 {int (*f) (int a);};
3126 struct s2 {int (*f) (double a);};
3127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3128 int argc;
3129 char **argv;
3130 int
3131 main ()
3132 {
3133 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3139         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3140 do
3141   CC="$ac_save_CC $ac_arg"
3142   rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150   (eval "$ac_compile") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } && {
3157          test -z "$ac_c_werror_flag" ||
3158          test ! -s conftest.err
3159        } && test -s conftest.$ac_objext; then
3160   ac_cv_prog_cc_c89=$ac_arg
3161 else
3162   $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext
3169   test "x$ac_cv_prog_cc_c89" != "xno" && break
3170 done
3171 rm -f conftest.$ac_ext
3172 CC=$ac_save_CC
3173
3174 fi
3175 # AC_CACHE_VAL
3176 case "x$ac_cv_prog_cc_c89" in
3177   x)
3178     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3179 $as_echo "none needed" >&6; } ;;
3180   xno)
3181     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3182 $as_echo "unsupported" >&6; } ;;
3183   *)
3184     CC="$CC $ac_cv_prog_cc_c89"
3185     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3186 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3187 esac
3188
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3197 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3198 if test "${lt_cv_path_SED+set}" = set; then
3199   $as_echo_n "(cached) " >&6
3200 else
3201   # Loop through the user's path and test for sed and gsed.
3202 # Then use that list of sed's as ones to test for truncation.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   for lt_ac_prog in sed gsed; do
3209     for ac_exec_ext in '' $ac_executable_extensions; do
3210       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3211         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3212       fi
3213     done
3214   done
3215 done
3216 IFS=$as_save_IFS
3217 lt_ac_max=0
3218 lt_ac_count=0
3219 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3220 # along with /bin/sed that truncates output.
3221 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3222   test ! -f $lt_ac_sed && continue
3223   cat /dev/null > conftest.in
3224   lt_ac_count=0
3225   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3226   # Check for GNU sed and select it if it is found.
3227   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3228     lt_cv_path_SED=$lt_ac_sed
3229     break
3230   fi
3231   while true; do
3232     cat conftest.in conftest.in >conftest.tmp
3233     mv conftest.tmp conftest.in
3234     cp conftest.in conftest.nl
3235     echo >>conftest.nl
3236     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3237     cmp -s conftest.out conftest.nl || break
3238     # 10000 chars as input seems more than enough
3239     test $lt_ac_count -gt 10 && break
3240     lt_ac_count=`expr $lt_ac_count + 1`
3241     if test $lt_ac_count -gt $lt_ac_max; then
3242       lt_ac_max=$lt_ac_count
3243       lt_cv_path_SED=$lt_ac_sed
3244     fi
3245   done
3246 done
3247
3248 fi
3249
3250 SED=$lt_cv_path_SED
3251
3252 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3253 $as_echo "$SED" >&6; }
3254
3255 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3256 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3257 if test "${ac_cv_path_GREP+set}" = set; then
3258   $as_echo_n "(cached) " >&6
3259 else
3260   if test -z "$GREP"; then
3261   ac_path_GREP_found=false
3262   # Loop through the user's path and test for each of PROGNAME-LIST
3263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3265 do
3266   IFS=$as_save_IFS
3267   test -z "$as_dir" && as_dir=.
3268   for ac_prog in grep ggrep; do
3269     for ac_exec_ext in '' $ac_executable_extensions; do
3270       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3271       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3272 # Check for GNU ac_path_GREP and select it if it is found.
3273   # Check for GNU $ac_path_GREP
3274 case `"$ac_path_GREP" --version 2>&1` in
3275 *GNU*)
3276   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3277 *)
3278   ac_count=0
3279   $as_echo_n 0123456789 >"conftest.in"
3280   while :
3281   do
3282     cat "conftest.in" "conftest.in" >"conftest.tmp"
3283     mv "conftest.tmp" "conftest.in"
3284     cp "conftest.in" "conftest.nl"
3285     $as_echo 'GREP' >> "conftest.nl"
3286     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3287     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3288     ac_count=`expr $ac_count + 1`
3289     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3290       # Best one so far, save it but keep looking for a better one
3291       ac_cv_path_GREP="$ac_path_GREP"
3292       ac_path_GREP_max=$ac_count
3293     fi
3294     # 10*(2^10) chars as input seems more than enough
3295     test $ac_count -gt 10 && break
3296   done
3297   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3298 esac
3299
3300       $ac_path_GREP_found && break 3
3301     done
3302   done
3303 done
3304 IFS=$as_save_IFS
3305   if test -z "$ac_cv_path_GREP"; then
3306     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3307 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3308    { (exit 1); exit 1; }; }
3309   fi
3310 else
3311   ac_cv_path_GREP=$GREP
3312 fi
3313
3314 fi
3315 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3316 $as_echo "$ac_cv_path_GREP" >&6; }
3317  GREP="$ac_cv_path_GREP"
3318
3319
3320 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3321 $as_echo_n "checking for egrep... " >&6; }
3322 if test "${ac_cv_path_EGREP+set}" = set; then
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3326    then ac_cv_path_EGREP="$GREP -E"
3327    else
3328      if test -z "$EGREP"; then
3329   ac_path_EGREP_found=false
3330   # Loop through the user's path and test for each of PROGNAME-LIST
3331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336   for ac_prog in egrep; do
3337     for ac_exec_ext in '' $ac_executable_extensions; do
3338       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3339       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3340 # Check for GNU ac_path_EGREP and select it if it is found.
3341   # Check for GNU $ac_path_EGREP
3342 case `"$ac_path_EGREP" --version 2>&1` in
3343 *GNU*)
3344   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3345 *)
3346   ac_count=0
3347   $as_echo_n 0123456789 >"conftest.in"
3348   while :
3349   do
3350     cat "conftest.in" "conftest.in" >"conftest.tmp"
3351     mv "conftest.tmp" "conftest.in"
3352     cp "conftest.in" "conftest.nl"
3353     $as_echo 'EGREP' >> "conftest.nl"
3354     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3355     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3356     ac_count=`expr $ac_count + 1`
3357     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3358       # Best one so far, save it but keep looking for a better one
3359       ac_cv_path_EGREP="$ac_path_EGREP"
3360       ac_path_EGREP_max=$ac_count
3361     fi
3362     # 10*(2^10) chars as input seems more than enough
3363     test $ac_count -gt 10 && break
3364   done
3365   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3366 esac
3367
3368       $ac_path_EGREP_found && break 3
3369     done
3370   done
3371 done
3372 IFS=$as_save_IFS
3373   if test -z "$ac_cv_path_EGREP"; then
3374     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3375 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3376    { (exit 1); exit 1; }; }
3377   fi
3378 else
3379   ac_cv_path_EGREP=$EGREP
3380 fi
3381
3382    fi
3383 fi
3384 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3385 $as_echo "$ac_cv_path_EGREP" >&6; }
3386  EGREP="$ac_cv_path_EGREP"
3387
3388
3389
3390 # Check whether --with-gnu-ld was given.
3391 if test "${with_gnu_ld+set}" = set; then
3392   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3393 else
3394   with_gnu_ld=no
3395 fi
3396
3397 ac_prog=ld
3398 if test "$GCC" = yes; then
3399   # Check if gcc -print-prog-name=ld gives a path.
3400   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3401 $as_echo_n "checking for ld used by $CC... " >&6; }
3402   case $host in
3403   *-*-mingw*)
3404     # gcc leaves a trailing carriage return which upsets mingw
3405     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3406   *)
3407     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3408   esac
3409   case $ac_prog in
3410     # Accept absolute paths.
3411     [\\/]* | ?:[\\/]*)
3412       re_direlt='/[^/][^/]*/\.\./'
3413       # Canonicalize the pathname of ld
3414       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3415       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3416         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3417       done
3418       test -z "$LD" && LD="$ac_prog"
3419       ;;
3420   "")
3421     # If it fails, then pretend we aren't using GCC.
3422     ac_prog=ld
3423     ;;
3424   *)
3425     # If it is relative, then search for the first ld in PATH.
3426     with_gnu_ld=unknown
3427     ;;
3428   esac
3429 elif test "$with_gnu_ld" = yes; then
3430   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3431 $as_echo_n "checking for GNU ld... " >&6; }
3432 else
3433   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3434 $as_echo_n "checking for non-GNU ld... " >&6; }
3435 fi
3436 if test "${lt_cv_path_LD+set}" = set; then
3437   $as_echo_n "(cached) " >&6
3438 else
3439   if test -z "$LD"; then
3440   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3441   for ac_dir in $PATH; do
3442     IFS="$lt_save_ifs"
3443     test -z "$ac_dir" && ac_dir=.
3444     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3445       lt_cv_path_LD="$ac_dir/$ac_prog"
3446       # Check to see if the program is GNU ld.  I'd rather use --version,
3447       # but apparently some variants of GNU ld only accept -v.
3448       # Break only if it was the GNU/non-GNU ld that we prefer.
3449       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3450       *GNU* | *'with BFD'*)
3451         test "$with_gnu_ld" != no && break
3452         ;;
3453       *)
3454         test "$with_gnu_ld" != yes && break
3455         ;;
3456       esac
3457     fi
3458   done
3459   IFS="$lt_save_ifs"
3460 else
3461   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3462 fi
3463 fi
3464
3465 LD="$lt_cv_path_LD"
3466 if test -n "$LD"; then
3467   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3468 $as_echo "$LD" >&6; }
3469 else
3470   { $as_echo "$as_me:$LINENO: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3474 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3475    { (exit 1); exit 1; }; }
3476 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3478 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3479   $as_echo_n "(cached) " >&6
3480 else
3481   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3482 case `$LD -v 2>&1 </dev/null` in
3483 *GNU* | *'with BFD'*)
3484   lt_cv_prog_gnu_ld=yes
3485   ;;
3486 *)
3487   lt_cv_prog_gnu_ld=no
3488   ;;
3489 esac
3490 fi
3491 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3493 with_gnu_ld=$lt_cv_prog_gnu_ld
3494
3495
3496 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3497 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3498 if test "${lt_cv_ld_reload_flag+set}" = set; then
3499   $as_echo_n "(cached) " >&6
3500 else
3501   lt_cv_ld_reload_flag='-r'
3502 fi
3503 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3504 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3505 reload_flag=$lt_cv_ld_reload_flag
3506 case $reload_flag in
3507 "" | " "*) ;;
3508 *) reload_flag=" $reload_flag" ;;
3509 esac
3510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3511 case $host_os in
3512   darwin*)
3513     if test "$GCC" = yes; then
3514       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3515     else
3516       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3517     fi
3518     ;;
3519 esac
3520
3521 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3522 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3523 if test "${lt_cv_path_NM+set}" = set; then
3524   $as_echo_n "(cached) " >&6
3525 else
3526   if test -n "$NM"; then
3527   # Let the user override the test.
3528   lt_cv_path_NM="$NM"
3529 else
3530   lt_nm_to_check="${ac_tool_prefix}nm"
3531   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3532     lt_nm_to_check="$lt_nm_to_check nm"
3533   fi
3534   for lt_tmp_nm in $lt_nm_to_check; do
3535     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3536     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3537       IFS="$lt_save_ifs"
3538       test -z "$ac_dir" && ac_dir=.
3539       tmp_nm="$ac_dir/$lt_tmp_nm"
3540       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3541         # Check to see if the nm accepts a BSD-compat flag.
3542         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3543         #   nm: unknown option "B" ignored
3544         # Tru64's nm complains that /dev/null is an invalid object file
3545         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3546         */dev/null* | *'Invalid file or object type'*)
3547           lt_cv_path_NM="$tmp_nm -B"
3548           break
3549           ;;
3550         *)
3551           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3552           */dev/null*)
3553             lt_cv_path_NM="$tmp_nm -p"
3554             break
3555             ;;
3556           *)
3557             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3558             continue # so that we can try to find one that supports BSD flags
3559             ;;
3560           esac
3561           ;;
3562         esac
3563       fi
3564     done
3565     IFS="$lt_save_ifs"
3566   done
3567   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3568 fi
3569 fi
3570 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3571 $as_echo "$lt_cv_path_NM" >&6; }
3572 NM="$lt_cv_path_NM"
3573
3574 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3575 $as_echo_n "checking whether ln -s works... " >&6; }
3576 LN_S=$as_ln_s
3577 if test "$LN_S" = "ln -s"; then
3578   { $as_echo "$as_me:$LINENO: result: yes" >&5
3579 $as_echo "yes" >&6; }
3580 else
3581   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3582 $as_echo "no, using $LN_S" >&6; }
3583 fi
3584
3585 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3586 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
3587 if test "${lt_cv_deplibs_check_method+set}" = set; then
3588   $as_echo_n "(cached) " >&6
3589 else
3590   lt_cv_file_magic_cmd='$MAGIC_CMD'
3591 lt_cv_file_magic_test_file=
3592 lt_cv_deplibs_check_method='unknown'
3593 # Need to set the preceding variable on all platforms that support
3594 # interlibrary dependencies.
3595 # 'none' -- dependencies not supported.
3596 # `unknown' -- same as none, but documents that we really don't know.
3597 # 'pass_all' -- all dependencies passed with no checks.
3598 # 'test_compile' -- check by making test program.
3599 # 'file_magic [[regex]]' -- check by looking for files in library path
3600 # which responds to the $file_magic_cmd with a given extended regex.
3601 # If you have `file' or equivalent on your system and you're not sure
3602 # whether `pass_all' will *always* work, you probably want this one.
3603
3604 case $host_os in
3605 aix[4-9]*)
3606   lt_cv_deplibs_check_method=pass_all
3607   ;;
3608
3609 beos*)
3610   lt_cv_deplibs_check_method=pass_all
3611   ;;
3612
3613 bsdi[45]*)
3614   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3615   lt_cv_file_magic_cmd='/usr/bin/file -L'
3616   lt_cv_file_magic_test_file=/shlib/libc.so
3617   ;;
3618
3619 cygwin*)
3620   # func_win32_libid is a shell function defined in ltmain.sh
3621   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3622   lt_cv_file_magic_cmd='func_win32_libid'
3623   ;;
3624
3625 mingw* | pw32*)
3626   # Base MSYS/MinGW do not provide the 'file' command needed by
3627   # func_win32_libid shell function, so use a weaker test based on 'objdump',
3628   # unless we find 'file', for example because we are cross-compiling.
3629   if ( file / ) >/dev/null 2>&1; then
3630     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3631     lt_cv_file_magic_cmd='func_win32_libid'
3632   else
3633     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3634     lt_cv_file_magic_cmd='$OBJDUMP -f'
3635   fi
3636   ;;
3637
3638 darwin* | rhapsody*)
3639   lt_cv_deplibs_check_method=pass_all
3640   ;;
3641
3642 freebsd* | dragonfly*)
3643   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3644     case $host_cpu in
3645     i*86 )
3646       # Not sure whether the presence of OpenBSD here was a mistake.
3647       # Let's accept both of them until this is cleared up.
3648       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3649       lt_cv_file_magic_cmd=/usr/bin/file
3650       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3651       ;;
3652     esac
3653   else
3654     lt_cv_deplibs_check_method=pass_all
3655   fi
3656   ;;
3657
3658 gnu*)
3659   lt_cv_deplibs_check_method=pass_all
3660   ;;
3661
3662 hpux10.20* | hpux11*)
3663   lt_cv_file_magic_cmd=/usr/bin/file
3664   case $host_cpu in
3665   ia64*)
3666     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3667     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3668     ;;
3669   hppa*64*)
3670     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]'
3671     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3672     ;;
3673   *)
3674     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3675     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3676     ;;
3677   esac
3678   ;;
3679
3680 interix[3-9]*)
3681   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3682   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3683   ;;
3684
3685 irix5* | irix6* | nonstopux*)
3686   case $LD in
3687   *-32|*"-32 ") libmagic=32-bit;;
3688   *-n32|*"-n32 ") libmagic=N32;;
3689   *-64|*"-64 ") libmagic=64-bit;;
3690   *) libmagic=never-match;;
3691   esac
3692   lt_cv_deplibs_check_method=pass_all
3693   ;;
3694
3695 # This must be Linux ELF.
3696 linux* | k*bsd*-gnu)
3697   lt_cv_deplibs_check_method=pass_all
3698   ;;
3699
3700 netbsd*)
3701   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3702     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3703   else
3704     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3705   fi
3706   ;;
3707
3708 newos6*)
3709   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3710   lt_cv_file_magic_cmd=/usr/bin/file
3711   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3712   ;;
3713
3714 nto-qnx*)
3715   lt_cv_deplibs_check_method=unknown
3716   ;;
3717
3718 openbsd*)
3719   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3720     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3721   else
3722     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3723   fi
3724   ;;
3725
3726 osf3* | osf4* | osf5*)
3727   lt_cv_deplibs_check_method=pass_all
3728   ;;
3729
3730 rdos*)
3731   lt_cv_deplibs_check_method=pass_all
3732   ;;
3733
3734 solaris*)
3735   lt_cv_deplibs_check_method=pass_all
3736   ;;
3737
3738 sysv4 | sysv4.3*)
3739   case $host_vendor in
3740   motorola)
3741     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]'
3742     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3743     ;;
3744   ncr)
3745     lt_cv_deplibs_check_method=pass_all
3746     ;;
3747   sequent)
3748     lt_cv_file_magic_cmd='/bin/file'
3749     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3750     ;;
3751   sni)
3752     lt_cv_file_magic_cmd='/bin/file'
3753     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3754     lt_cv_file_magic_test_file=/lib/libc.so
3755     ;;
3756   siemens)
3757     lt_cv_deplibs_check_method=pass_all
3758     ;;
3759   pc)
3760     lt_cv_deplibs_check_method=pass_all
3761     ;;
3762   esac
3763   ;;
3764
3765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3766   lt_cv_deplibs_check_method=pass_all
3767   ;;
3768 esac
3769
3770 fi
3771 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3772 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3773 file_magic_cmd=$lt_cv_file_magic_cmd
3774 deplibs_check_method=$lt_cv_deplibs_check_method
3775 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3776
3777
3778
3779
3780 # If no C compiler was specified, use CC.
3781 LTCC=${LTCC-"$CC"}
3782
3783 # If no C compiler flags were specified, use CFLAGS.
3784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3785
3786 # Allow CC to be a program name with arguments.
3787 compiler=$CC
3788
3789
3790 # Check whether --enable-libtool-lock was given.
3791 if test "${enable_libtool_lock+set}" = set; then
3792   enableval=$enable_libtool_lock;
3793 fi
3794
3795 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3796
3797 # Some flags need to be propagated to the compiler or linker for good
3798 # libtool support.
3799 case $host in
3800 ia64-*-hpux*)
3801   # Find out which ABI we are using.
3802   echo 'int i;' > conftest.$ac_ext
3803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804   (eval $ac_compile) 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; then
3808     case `/usr/bin/file conftest.$ac_objext` in
3809     *ELF-32*)
3810       HPUX_IA64_MODE="32"
3811       ;;
3812     *ELF-64*)
3813       HPUX_IA64_MODE="64"
3814       ;;
3815     esac
3816   fi
3817   rm -rf conftest*
3818   ;;
3819 *-*-irix6*)
3820   # Find out which ABI we are using.
3821   echo '#line 3821 "configure"' > conftest.$ac_ext
3822   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823   (eval $ac_compile) 2>&5
3824   ac_status=$?
3825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; then
3827    if test "$lt_cv_prog_gnu_ld" = yes; then
3828     case `/usr/bin/file conftest.$ac_objext` in
3829     *32-bit*)
3830       LD="${LD-ld} -melf32bsmip"
3831       ;;
3832     *N32*)
3833       LD="${LD-ld} -melf32bmipn32"
3834       ;;
3835     *64-bit*)
3836       LD="${LD-ld} -melf64bmip"
3837       ;;
3838     esac
3839    else
3840     case `/usr/bin/file conftest.$ac_objext` in
3841     *32-bit*)
3842       LD="${LD-ld} -32"
3843       ;;
3844     *N32*)
3845       LD="${LD-ld} -n32"
3846       ;;
3847     *64-bit*)
3848       LD="${LD-ld} -64"
3849       ;;
3850     esac
3851    fi
3852   fi
3853   rm -rf conftest*
3854   ;;
3855
3856 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3857 s390*-*linux*|sparc*-*linux*)
3858   # Find out which ABI we are using.
3859   echo 'int i;' > conftest.$ac_ext
3860   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861   (eval $ac_compile) 2>&5
3862   ac_status=$?
3863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); }; then
3865     case `/usr/bin/file conftest.o` in
3866     *32-bit*)
3867       case $host in
3868         x86_64-*kfreebsd*-gnu)
3869           LD="${LD-ld} -m elf_i386_fbsd"
3870           ;;
3871         x86_64-*linux*)
3872           LD="${LD-ld} -m elf_i386"
3873           ;;
3874         ppc64-*linux*|powerpc64-*linux*)
3875           LD="${LD-ld} -m elf32ppclinux"
3876           ;;
3877         s390x-*linux*)
3878           LD="${LD-ld} -m elf_s390"
3879           ;;
3880         sparc64-*linux*)
3881           LD="${LD-ld} -m elf32_sparc"
3882           ;;
3883       esac
3884       ;;
3885     *64-bit*)
3886       libsuff=64
3887       case $host in
3888         x86_64-*kfreebsd*-gnu)
3889           LD="${LD-ld} -m elf_x86_64_fbsd"
3890           ;;
3891         x86_64-*linux*)
3892           LD="${LD-ld} -m elf_x86_64"
3893           ;;
3894         ppc*-*linux*|powerpc*-*linux*)
3895           LD="${LD-ld} -m elf64ppc"
3896           ;;
3897         s390*-*linux*)
3898           LD="${LD-ld} -m elf64_s390"
3899           ;;
3900         sparc*-*linux*)
3901           LD="${LD-ld} -m elf64_sparc"
3902           ;;
3903       esac
3904       ;;
3905     esac
3906   fi
3907   rm -rf conftest*
3908   ;;
3909
3910 *-*-sco3.2v5*)
3911   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3912   SAVE_CFLAGS="$CFLAGS"
3913   CFLAGS="$CFLAGS -belf"
3914   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3915 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
3916 if test "${lt_cv_cc_needs_belf+set}" = set; then
3917   $as_echo_n "(cached) " >&6
3918 else
3919   ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925      cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h.  */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext conftest$ac_exeext
3941 if { (ac_try="$ac_link"
3942 case "(($ac_try" in
3943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944   *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3947 $as_echo "$ac_try_echo") >&5
3948   (eval "$ac_link") 2>conftest.er1
3949   ac_status=$?
3950   grep -v '^ *+' conftest.er1 >conftest.err
3951   rm -f conftest.er1
3952   cat conftest.err >&5
3953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); } && {
3955          test -z "$ac_c_werror_flag" ||
3956          test ! -s conftest.err
3957        } && test -s conftest$ac_exeext && {
3958          test "$cross_compiling" = yes ||
3959          $as_test_x conftest$ac_exeext
3960        }; then
3961   lt_cv_cc_needs_belf=yes
3962 else
3963   $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966         lt_cv_cc_needs_belf=no
3967 fi
3968
3969 rm -rf conftest.dSYM
3970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3971       conftest$ac_exeext conftest.$ac_ext
3972      ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
3978 fi
3979 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3980 $as_echo "$lt_cv_cc_needs_belf" >&6; }
3981   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3982     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3983     CFLAGS="$SAVE_CFLAGS"
3984   fi
3985   ;;
3986 sparc*-*solaris*)
3987   # Find out which ABI we are using.
3988   echo 'int i;' > conftest.$ac_ext
3989   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3990   (eval $ac_compile) 2>&5
3991   ac_status=$?
3992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); }; then
3994     case `/usr/bin/file conftest.o` in
3995     *64-bit*)
3996       case $lt_cv_prog_gnu_ld in
3997       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3998       *)
3999         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4000           LD="${LD-ld} -64"
4001         fi
4002         ;;
4003       esac
4004       ;;
4005     esac
4006   fi
4007   rm -rf conftest*
4008   ;;
4009
4010 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4011   if test -n "$ac_tool_prefix"; then
4012   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4013 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4017   $as_echo_n "(cached) " >&6
4018 else
4019   if test -n "$DLLTOOL"; then
4020   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025   IFS=$as_save_IFS
4026   test -z "$as_dir" && as_dir=.
4027   for ac_exec_ext in '' $ac_executable_extensions; do
4028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4030     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031     break 2
4032   fi
4033 done
4034 done
4035 IFS=$as_save_IFS
4036
4037 fi
4038 fi
4039 DLLTOOL=$ac_cv_prog_DLLTOOL
4040 if test -n "$DLLTOOL"; then
4041   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4042 $as_echo "$DLLTOOL" >&6; }
4043 else
4044   { $as_echo "$as_me:$LINENO: result: no" >&5
4045 $as_echo "no" >&6; }
4046 fi
4047
4048
4049 fi
4050 if test -z "$ac_cv_prog_DLLTOOL"; then
4051   ac_ct_DLLTOOL=$DLLTOOL
4052   # Extract the first word of "dlltool", so it can be a program name with args.
4053 set dummy dlltool; ac_word=$2
4054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4057   $as_echo_n "(cached) " >&6
4058 else
4059   if test -n "$ac_ct_DLLTOOL"; then
4060   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067   for ac_exec_ext in '' $ac_executable_extensions; do
4068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4070     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071     break 2
4072   fi
4073 done
4074 done
4075 IFS=$as_save_IFS
4076
4077 fi
4078 fi
4079 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4080 if test -n "$ac_ct_DLLTOOL"; then
4081   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4082 $as_echo "$ac_ct_DLLTOOL" >&6; }
4083 else
4084   { $as_echo "$as_me:$LINENO: result: no" >&5
4085 $as_echo "no" >&6; }
4086 fi
4087
4088   if test "x$ac_ct_DLLTOOL" = x; then
4089     DLLTOOL="false"
4090   else
4091     case $cross_compiling:$ac_tool_warned in
4092 yes:)
4093 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4096 esac
4097     DLLTOOL=$ac_ct_DLLTOOL
4098   fi
4099 else
4100   DLLTOOL="$ac_cv_prog_DLLTOOL"
4101 fi
4102
4103   if test -n "$ac_tool_prefix"; then
4104   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}as; ac_word=$2
4106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if test "${ac_cv_prog_AS+set}" = set; then
4109   $as_echo_n "(cached) " >&6
4110 else
4111   if test -n "$AS"; then
4112   ac_cv_prog_AS="$AS" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119   for ac_exec_ext in '' $ac_executable_extensions; do
4120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121     ac_cv_prog_AS="${ac_tool_prefix}as"
4122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126 done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 AS=$ac_cv_prog_AS
4132 if test -n "$AS"; then
4133   { $as_echo "$as_me:$LINENO: result: $AS" >&5
4134 $as_echo "$AS" >&6; }
4135 else
4136   { $as_echo "$as_me:$LINENO: result: no" >&5
4137 $as_echo "no" >&6; }
4138 fi
4139
4140
4141 fi
4142 if test -z "$ac_cv_prog_AS"; then
4143   ac_ct_AS=$AS
4144   # Extract the first word of "as", so it can be a program name with args.
4145 set dummy as; ac_word=$2
4146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4149   $as_echo_n "(cached) " >&6
4150 else
4151   if test -n "$ac_ct_AS"; then
4152   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161     ac_cv_prog_ac_ct_AS="as"
4162     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167 IFS=$as_save_IFS
4168
4169 fi
4170 fi
4171 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4172 if test -n "$ac_ct_AS"; then
4173   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4174 $as_echo "$ac_ct_AS" >&6; }
4175 else
4176   { $as_echo "$as_me:$LINENO: result: no" >&5
4177 $as_echo "no" >&6; }
4178 fi
4179
4180   if test "x$ac_ct_AS" = x; then
4181     AS="false"
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189     AS=$ac_ct_AS
4190   fi
4191 else
4192   AS="$ac_cv_prog_AS"
4193 fi
4194
4195   if test -n "$ac_tool_prefix"; then
4196   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -n "$OBJDUMP"; then
4204   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 OBJDUMP=$ac_cv_prog_OBJDUMP
4224 if test -n "$OBJDUMP"; then
4225   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4226 $as_echo "$OBJDUMP" >&6; }
4227 else
4228   { $as_echo "$as_me:$LINENO: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 fi
4234 if test -z "$ac_cv_prog_OBJDUMP"; then
4235   ac_ct_OBJDUMP=$OBJDUMP
4236   # Extract the first word of "objdump", so it can be a program name with args.
4237 set dummy objdump; ac_word=$2
4238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if test -n "$ac_ct_OBJDUMP"; then
4244   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261 fi
4262 fi
4263 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4264 if test -n "$ac_ct_OBJDUMP"; then
4265   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4266 $as_echo "$ac_ct_OBJDUMP" >&6; }
4267 else
4268   { $as_echo "$as_me:$LINENO: result: no" >&5
4269 $as_echo "no" >&6; }
4270 fi
4271
4272   if test "x$ac_ct_OBJDUMP" = x; then
4273     OBJDUMP="false"
4274   else
4275     case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4280 esac
4281     OBJDUMP=$ac_ct_OBJDUMP
4282   fi
4283 else
4284   OBJDUMP="$ac_cv_prog_OBJDUMP"
4285 fi
4286
4287   ;;
4288
4289 esac
4290
4291 need_locks="$enable_libtool_lock"
4292
4293
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4301 # On Suns, sometimes $CPP names a directory.
4302 if test -n "$CPP" && test -d "$CPP"; then
4303   CPP=
4304 fi
4305 if test -z "$CPP"; then
4306   if test "${ac_cv_prog_CPP+set}" = set; then
4307   $as_echo_n "(cached) " >&6
4308 else
4309       # Double quotes because CPP needs to be expanded
4310     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4311     do
4312       ac_preproc_ok=false
4313 for ac_c_preproc_warn_flag in '' yes
4314 do
4315   # Use a header file that comes with gcc, so configuring glibc
4316   # with a fresh cross-compiler works.
4317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318   # <limits.h> exists even on freestanding compilers.
4319   # On the NeXT, cc -E runs the code through the compiler's parser,
4320   # not just through cpp. "Syntax error" is here to catch this case.
4321   cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327 #ifdef __STDC__
4328 # include <limits.h>
4329 #else
4330 # include <assert.h>
4331 #endif
4332                      Syntax error
4333 _ACEOF
4334 if { (ac_try="$ac_cpp conftest.$ac_ext"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } >/dev/null && {
4348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4349          test ! -s conftest.err
4350        }; then
4351   :
4352 else
4353   $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4355
4356   # Broken: fails on valid input.
4357 continue
4358 fi
4359
4360 rm -f conftest.err conftest.$ac_ext
4361
4362   # OK, works on sane cases.  Now check whether nonexistent headers
4363   # can be detected and how.
4364   cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 #include <ac_nonexistent.h>
4371 _ACEOF
4372 if { (ac_try="$ac_cpp conftest.$ac_ext"
4373 case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4378 $as_echo "$ac_try_echo") >&5
4379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } >/dev/null && {
4386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4387          test ! -s conftest.err
4388        }; then
4389   # Broken: success on invalid input.
4390 continue
4391 else
4392   $as_echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4394
4395   # Passes both tests.
4396 ac_preproc_ok=:
4397 break
4398 fi
4399
4400 rm -f conftest.err conftest.$ac_ext
4401
4402 done
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then
4406   break
4407 fi
4408
4409     done
4410     ac_cv_prog_CPP=$CPP
4411
4412 fi
4413   CPP=$ac_cv_prog_CPP
4414 else
4415   ac_cv_prog_CPP=$CPP
4416 fi
4417 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4418 $as_echo "$CPP" >&6; }
4419 ac_preproc_ok=false
4420 for ac_c_preproc_warn_flag in '' yes
4421 do
4422   # Use a header file that comes with gcc, so configuring glibc
4423   # with a fresh cross-compiler works.
4424   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425   # <limits.h> exists even on freestanding compilers.
4426   # On the NeXT, cc -E runs the code through the compiler's parser,
4427   # not just through cpp. "Syntax error" is here to catch this case.
4428   cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h.  */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h.  */
4434 #ifdef __STDC__
4435 # include <limits.h>
4436 #else
4437 # include <assert.h>
4438 #endif
4439                      Syntax error
4440 _ACEOF
4441 if { (ac_try="$ac_cpp conftest.$ac_ext"
4442 case "(($ac_try" in
4443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444   *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4447 $as_echo "$ac_try_echo") >&5
4448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } >/dev/null && {
4455          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4456          test ! -s conftest.err
4457        }; then
4458   :
4459 else
4460   $as_echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4462
4463   # Broken: fails on valid input.
4464 continue
4465 fi
4466
4467 rm -f conftest.err conftest.$ac_ext
4468
4469   # OK, works on sane cases.  Now check whether nonexistent headers
4470   # can be detected and how.
4471   cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 #include <ac_nonexistent.h>
4478 _ACEOF
4479 if { (ac_try="$ac_cpp conftest.$ac_ext"
4480 case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4485 $as_echo "$ac_try_echo") >&5
4486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4487   ac_status=$?
4488   grep -v '^ *+' conftest.er1 >conftest.err
4489   rm -f conftest.er1
4490   cat conftest.err >&5
4491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } >/dev/null && {
4493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4494          test ! -s conftest.err
4495        }; then
4496   # Broken: success on invalid input.
4497 continue
4498 else
4499   $as_echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502   # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4505 fi
4506
4507 rm -f conftest.err conftest.$ac_ext
4508
4509 done
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then
4513   :
4514 else
4515   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4518 See \`config.log' for more details." >&5
4519 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4520 See \`config.log' for more details." >&2;}
4521    { (exit 1); exit 1; }; }; }
4522 fi
4523
4524 ac_ext=c
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529
4530
4531 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4532 $as_echo_n "checking for ANSI C header files... " >&6; }
4533 if test "${ac_cv_header_stdc+set}" = set; then
4534   $as_echo_n "(cached) " >&6
4535 else
4536   cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h.  */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h.  */
4542 #include <stdlib.h>
4543 #include <stdarg.h>
4544 #include <string.h>
4545 #include <float.h>
4546
4547 int
4548 main ()
4549 {
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4557 case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563   (eval "$ac_compile") 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } && {
4570          test -z "$ac_c_werror_flag" ||
4571          test ! -s conftest.err
4572        } && test -s conftest.$ac_objext; then
4573   ac_cv_header_stdc=yes
4574 else
4575   $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578         ac_cv_header_stdc=no
4579 fi
4580
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582
4583 if test $ac_cv_header_stdc = yes; then
4584   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4585   cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 #include <string.h>
4592
4593 _ACEOF
4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595   $EGREP "memchr" >/dev/null 2>&1; then
4596   :
4597 else
4598   ac_cv_header_stdc=no
4599 fi
4600 rm -f conftest*
4601
4602 fi
4603
4604 if test $ac_cv_header_stdc = yes; then
4605   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 #include <stdlib.h>
4613
4614 _ACEOF
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616   $EGREP "free" >/dev/null 2>&1; then
4617   :
4618 else
4619   ac_cv_header_stdc=no
4620 fi
4621 rm -f conftest*
4622
4623 fi
4624
4625 if test $ac_cv_header_stdc = yes; then
4626   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4627   if test "$cross_compiling" = yes; then
4628   :
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 #include <ctype.h>
4637 #include <stdlib.h>
4638 #if ((' ' & 0x0FF) == 0x020)
4639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641 #else
4642 # define ISLOWER(c) \
4643                    (('a' <= (c) && (c) <= 'i') \
4644                      || ('j' <= (c) && (c) <= 'r') \
4645                      || ('s' <= (c) && (c) <= 'z'))
4646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4647 #endif
4648
4649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4650 int
4651 main ()
4652 {
4653   int i;
4654   for (i = 0; i < 256; i++)
4655     if (XOR (islower (i), ISLOWER (i))
4656         || toupper (i) != TOUPPER (i))
4657       return 2;
4658   return 0;
4659 }
4660 _ACEOF
4661 rm -f conftest$ac_exeext
4662 if { (ac_try="$ac_link"
4663 case "(($ac_try" in
4664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665   *) ac_try_echo=$ac_try;;
4666 esac
4667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4668 $as_echo "$ac_try_echo") >&5
4669   (eval "$ac_link") 2>&5
4670   ac_status=$?
4671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4673   { (case "(($ac_try" in
4674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675   *) ac_try_echo=$ac_try;;
4676 esac
4677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4678 $as_echo "$ac_try_echo") >&5
4679   (eval "$ac_try") 2>&5
4680   ac_status=$?
4681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   :
4684 else
4685   $as_echo "$as_me: program exited with status $ac_status" >&5
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ( exit $ac_status )
4690 ac_cv_header_stdc=no
4691 fi
4692 rm -rf conftest.dSYM
4693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4694 fi
4695
4696
4697 fi
4698 fi
4699 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4700 $as_echo "$ac_cv_header_stdc" >&6; }
4701 if test $ac_cv_header_stdc = yes; then
4702
4703 cat >>confdefs.h <<\_ACEOF
4704 #define STDC_HEADERS 1
4705 _ACEOF
4706
4707 fi
4708
4709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720                   inttypes.h stdint.h unistd.h
4721 do
4722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4724 $as_echo_n "checking for $ac_header... " >&6; }
4725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4726   $as_echo_n "(cached) " >&6
4727 else
4728   cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734 $ac_includes_default
4735
4736 #include <$ac_header>
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (ac_try="$ac_compile"
4740 case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745 $as_echo "$ac_try_echo") >&5
4746   (eval "$ac_compile") 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } && {
4753          test -z "$ac_c_werror_flag" ||
4754          test ! -s conftest.err
4755        } && test -s conftest.$ac_objext; then
4756   eval "$as_ac_Header=yes"
4757 else
4758   $as_echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4760
4761         eval "$as_ac_Header=no"
4762 fi
4763
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 fi
4766 ac_res=`eval 'as_val=${'$as_ac_Header'}
4767                  $as_echo "$as_val"'`
4768                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4769 $as_echo "$ac_res" >&6; }
4770 as_val=`eval 'as_val=${'$as_ac_Header'}
4771                  $as_echo "$as_val"'`
4772    if test "x$as_val" = x""yes; then
4773   cat >>confdefs.h <<_ACEOF
4774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4775 _ACEOF
4776
4777 fi
4778
4779 done
4780
4781
4782
4783 for ac_header in dlfcn.h
4784 do
4785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4787   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4788 $as_echo_n "checking for $ac_header... " >&6; }
4789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4790   $as_echo_n "(cached) " >&6
4791 fi
4792 ac_res=`eval 'as_val=${'$as_ac_Header'}
4793                  $as_echo "$as_val"'`
4794                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4795 $as_echo "$ac_res" >&6; }
4796 else
4797   # Is the header compilable?
4798 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4799 $as_echo_n "checking $ac_header usability... " >&6; }
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806 $ac_includes_default
4807 #include <$ac_header>
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (ac_try="$ac_compile"
4811 case "(($ac_try" in
4812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813   *) ac_try_echo=$ac_try;;
4814 esac
4815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816 $as_echo "$ac_try_echo") >&5
4817   (eval "$ac_compile") 2>conftest.er1
4818   ac_status=$?
4819   grep -v '^ *+' conftest.er1 >conftest.err
4820   rm -f conftest.er1
4821   cat conftest.err >&5
4822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } && {
4824          test -z "$ac_c_werror_flag" ||
4825          test ! -s conftest.err
4826        } && test -s conftest.$ac_objext; then
4827   ac_header_compiler=yes
4828 else
4829   $as_echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832         ac_header_compiler=no
4833 fi
4834
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 $as_echo "$ac_header_compiler" >&6; }
4838
4839 # Is the header present?
4840 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4841 $as_echo_n "checking $ac_header presence... " >&6; }
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 #include <$ac_header>
4849 _ACEOF
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 case "(($ac_try" in
4852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853   *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } >/dev/null && {
4864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4865          test ! -s conftest.err
4866        }; then
4867   ac_header_preproc=yes
4868 else
4869   $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872   ac_header_preproc=no
4873 fi
4874
4875 rm -f conftest.err conftest.$ac_ext
4876 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4877 $as_echo "$ac_header_preproc" >&6; }
4878
4879 # So?  What about this header?
4880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4881   yes:no: )
4882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4883 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4886     ac_header_preproc=yes
4887     ;;
4888   no:yes:* )
4889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4890 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4892 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4894 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4896 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4897     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4899     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4900 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4901     ( cat <<\_ASBOX
4902 ## ------------------------------------------- ##
4903 ## Report this to expat-bugs@mail.libexpat.org ##
4904 ## ------------------------------------------- ##
4905 _ASBOX
4906      ) | sed "s/^/$as_me: WARNING:     /" >&2
4907     ;;
4908 esac
4909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4910 $as_echo_n "checking for $ac_header... " >&6; }
4911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4912   $as_echo_n "(cached) " >&6
4913 else
4914   eval "$as_ac_Header=\$ac_header_preproc"
4915 fi
4916 ac_res=`eval 'as_val=${'$as_ac_Header'}
4917                  $as_echo "$as_val"'`
4918                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4919 $as_echo "$ac_res" >&6; }
4920
4921 fi
4922 as_val=`eval 'as_val=${'$as_ac_Header'}
4923                  $as_echo "$as_val"'`
4924    if test "x$as_val" = x""yes; then
4925   cat >>confdefs.h <<_ACEOF
4926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4927 _ACEOF
4928
4929 fi
4930
4931 done
4932
4933 ac_ext=cpp
4934 ac_cpp='$CXXCPP $CPPFLAGS'
4935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938 if test -z "$CXX"; then
4939   if test -n "$CCC"; then
4940     CXX=$CCC
4941   else
4942     if test -n "$ac_tool_prefix"; then
4943   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4944   do
4945     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_CXX+set}" = set; then
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$CXX"; then
4953   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960   for ac_exec_ext in '' $ac_executable_extensions; do
4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4963     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 CXX=$ac_cv_prog_CXX
4973 if test -n "$CXX"; then
4974   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4975 $as_echo "$CXX" >&6; }
4976 else
4977   { $as_echo "$as_me:$LINENO: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982     test -n "$CXX" && break
4983   done
4984 fi
4985 if test -z "$CXX"; then
4986   ac_ct_CXX=$CXX
4987   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4988 do
4989   # Extract the first word of "$ac_prog", so it can be a program name with args.
4990 set dummy $ac_prog; ac_word=$2
4991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4994   $as_echo_n "(cached) " >&6
4995 else
4996   if test -n "$ac_ct_CXX"; then
4997   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004   for ac_exec_ext in '' $ac_executable_extensions; do
5005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006     ac_cv_prog_ac_ct_CXX="$ac_prog"
5007     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5017 if test -n "$ac_ct_CXX"; then
5018   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5019 $as_echo "$ac_ct_CXX" >&6; }
5020 else
5021   { $as_echo "$as_me:$LINENO: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026   test -n "$ac_ct_CXX" && break
5027 done
5028
5029   if test "x$ac_ct_CXX" = x; then
5030     CXX="g++"
5031   else
5032     case $cross_compiling:$ac_tool_warned in
5033 yes:)
5034 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned=yes ;;
5037 esac
5038     CXX=$ac_ct_CXX
5039   fi
5040 fi
5041
5042   fi
5043 fi
5044 # Provide some information about the compiler.
5045 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5046 set X $ac_compile
5047 ac_compiler=$2
5048 { (ac_try="$ac_compiler --version >&5"
5049 case "(($ac_try" in
5050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051   *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5054 $as_echo "$ac_try_echo") >&5
5055   (eval "$ac_compiler --version >&5") 2>&5
5056   ac_status=$?
5057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }
5059 { (ac_try="$ac_compiler -v >&5"
5060 case "(($ac_try" in
5061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062   *) ac_try_echo=$ac_try;;
5063 esac
5064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065 $as_echo "$ac_try_echo") >&5
5066   (eval "$ac_compiler -v >&5") 2>&5
5067   ac_status=$?
5068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }
5070 { (ac_try="$ac_compiler -V >&5"
5071 case "(($ac_try" in
5072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073   *) ac_try_echo=$ac_try;;
5074 esac
5075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5076 $as_echo "$ac_try_echo") >&5
5077   (eval "$ac_compiler -V >&5") 2>&5
5078   ac_status=$?
5079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }
5081
5082 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5083 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5084 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5085   $as_echo_n "(cached) " >&6
5086 else
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093
5094 int
5095 main ()
5096 {
5097 #ifndef __GNUC__
5098        choke me
5099 #endif
5100
5101   ;
5102   return 0;
5103 }
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (ac_try="$ac_compile"
5107 case "(($ac_try" in
5108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109   *) ac_try_echo=$ac_try;;
5110 esac
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113   (eval "$ac_compile") 2>conftest.er1
5114   ac_status=$?
5115   grep -v '^ *+' conftest.er1 >conftest.err
5116   rm -f conftest.er1
5117   cat conftest.err >&5
5118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } && {
5120          test -z "$ac_cxx_werror_flag" ||
5121          test ! -s conftest.err
5122        } && test -s conftest.$ac_objext; then
5123   ac_compiler_gnu=yes
5124 else
5125   $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128         ac_compiler_gnu=no
5129 fi
5130
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5133
5134 fi
5135 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5136 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5137 if test $ac_compiler_gnu = yes; then
5138   GXX=yes
5139 else
5140   GXX=
5141 fi
5142 ac_test_CXXFLAGS=${CXXFLAGS+set}
5143 ac_save_CXXFLAGS=$CXXFLAGS
5144 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5145 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5146 if test "${ac_cv_prog_cxx_g+set}" = set; then
5147   $as_echo_n "(cached) " >&6
5148 else
5149   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5150    ac_cxx_werror_flag=yes
5151    ac_cv_prog_cxx_g=no
5152    CXXFLAGS="-g"
5153    cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h.  */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h.  */
5159
5160 int
5161 main ()
5162 {
5163
5164   ;
5165   return 0;
5166 }
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (ac_try="$ac_compile"
5170 case "(($ac_try" in
5171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172   *) ac_try_echo=$ac_try;;
5173 esac
5174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5175 $as_echo "$ac_try_echo") >&5
5176   (eval "$ac_compile") 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } && {
5183          test -z "$ac_cxx_werror_flag" ||
5184          test ! -s conftest.err
5185        } && test -s conftest.$ac_objext; then
5186   ac_cv_prog_cxx_g=yes
5187 else
5188   $as_echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191         CXXFLAGS=""
5192       cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198
5199 int
5200 main ()
5201 {
5202
5203   ;
5204   return 0;
5205 }
5206 _ACEOF
5207 rm -f conftest.$ac_objext
5208 if { (ac_try="$ac_compile"
5209 case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5214 $as_echo "$ac_try_echo") >&5
5215   (eval "$ac_compile") 2>conftest.er1
5216   ac_status=$?
5217   grep -v '^ *+' conftest.er1 >conftest.err
5218   rm -f conftest.er1
5219   cat conftest.err >&5
5220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); } && {
5222          test -z "$ac_cxx_werror_flag" ||
5223          test ! -s conftest.err
5224        } && test -s conftest.$ac_objext; then
5225   :
5226 else
5227   $as_echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5229
5230         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5231          CXXFLAGS="-g"
5232          cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238
5239 int
5240 main ()
5241 {
5242
5243   ;
5244   return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5249 case "(($ac_try" in
5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251   *) ac_try_echo=$ac_try;;
5252 esac
5253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5254 $as_echo "$ac_try_echo") >&5
5255   (eval "$ac_compile") 2>conftest.er1
5256   ac_status=$?
5257   grep -v '^ *+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } && {
5262          test -z "$ac_cxx_werror_flag" ||
5263          test ! -s conftest.err
5264        } && test -s conftest.$ac_objext; then
5265   ac_cv_prog_cxx_g=yes
5266 else
5267   $as_echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270
5271 fi
5272
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 fi
5275
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5281 fi
5282 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5283 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5284 if test "$ac_test_CXXFLAGS" = set; then
5285   CXXFLAGS=$ac_save_CXXFLAGS
5286 elif test $ac_cv_prog_cxx_g = yes; then
5287   if test "$GXX" = yes; then
5288     CXXFLAGS="-g -O2"
5289   else
5290     CXXFLAGS="-g"
5291   fi
5292 else
5293   if test "$GXX" = yes; then
5294     CXXFLAGS="-O2"
5295   else
5296     CXXFLAGS=
5297   fi
5298 fi
5299 ac_ext=cpp
5300 ac_cpp='$CXXCPP $CPPFLAGS'
5301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5304
5305
5306
5307 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5308     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5309     (test "X$CXX" != "Xg++"))) ; then
5310   ac_ext=cpp
5311 ac_cpp='$CXXCPP $CPPFLAGS'
5312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5315 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5316 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5317 if test -z "$CXXCPP"; then
5318   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5319   $as_echo_n "(cached) " >&6
5320 else
5321       # Double quotes because CXXCPP needs to be expanded
5322     for CXXCPP in "$CXX -E" "/lib/cpp"
5323     do
5324       ac_preproc_ok=false
5325 for ac_cxx_preproc_warn_flag in '' yes
5326 do
5327   # Use a header file that comes with gcc, so configuring glibc
5328   # with a fresh cross-compiler works.
5329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330   # <limits.h> exists even on freestanding compilers.
5331   # On the NeXT, cc -E runs the code through the compiler's parser,
5332   # not just through cpp. "Syntax error" is here to catch this case.
5333   cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339 #ifdef __STDC__
5340 # include <limits.h>
5341 #else
5342 # include <assert.h>
5343 #endif
5344                      Syntax error
5345 _ACEOF
5346 if { (ac_try="$ac_cpp conftest.$ac_ext"
5347 case "(($ac_try" in
5348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349   *) ac_try_echo=$ac_try;;
5350 esac
5351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5352 $as_echo "$ac_try_echo") >&5
5353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } >/dev/null && {
5360          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5361          test ! -s conftest.err
5362        }; then
5363   :
5364 else
5365   $as_echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368   # Broken: fails on valid input.
5369 continue
5370 fi
5371
5372 rm -f conftest.err conftest.$ac_ext
5373
5374   # OK, works on sane cases.  Now check whether nonexistent headers
5375   # can be detected and how.
5376   cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h.  */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h.  */
5382 #include <ac_nonexistent.h>
5383 _ACEOF
5384 if { (ac_try="$ac_cpp conftest.$ac_ext"
5385 case "(($ac_try" in
5386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387   *) ac_try_echo=$ac_try;;
5388 esac
5389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5390 $as_echo "$ac_try_echo") >&5
5391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5392   ac_status=$?
5393   grep -v '^ *+' conftest.er1 >conftest.err
5394   rm -f conftest.er1
5395   cat conftest.err >&5
5396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); } >/dev/null && {
5398          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5399          test ! -s conftest.err
5400        }; then
5401   # Broken: success on invalid input.
5402 continue
5403 else
5404   $as_echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407   # Passes both tests.
5408 ac_preproc_ok=:
5409 break
5410 fi
5411
5412 rm -f conftest.err conftest.$ac_ext
5413
5414 done
5415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416 rm -f conftest.err conftest.$ac_ext
5417 if $ac_preproc_ok; then
5418   break
5419 fi
5420
5421     done
5422     ac_cv_prog_CXXCPP=$CXXCPP
5423
5424 fi
5425   CXXCPP=$ac_cv_prog_CXXCPP
5426 else
5427   ac_cv_prog_CXXCPP=$CXXCPP
5428 fi
5429 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5430 $as_echo "$CXXCPP" >&6; }
5431 ac_preproc_ok=false
5432 for ac_cxx_preproc_warn_flag in '' yes
5433 do
5434   # Use a header file that comes with gcc, so configuring glibc
5435   # with a fresh cross-compiler works.
5436   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5437   # <limits.h> exists even on freestanding compilers.
5438   # On the NeXT, cc -E runs the code through the compiler's parser,
5439   # not just through cpp. "Syntax error" is here to catch this case.
5440   cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h.  */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h.  */
5446 #ifdef __STDC__
5447 # include <limits.h>
5448 #else
5449 # include <assert.h>
5450 #endif
5451                      Syntax error
5452 _ACEOF
5453 if { (ac_try="$ac_cpp conftest.$ac_ext"
5454 case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5459 $as_echo "$ac_try_echo") >&5
5460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5461   ac_status=$?
5462   grep -v '^ *+' conftest.er1 >conftest.err
5463   rm -f conftest.er1
5464   cat conftest.err >&5
5465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); } >/dev/null && {
5467          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5468          test ! -s conftest.err
5469        }; then
5470   :
5471 else
5472   $as_echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5474
5475   # Broken: fails on valid input.
5476 continue
5477 fi
5478
5479 rm -f conftest.err conftest.$ac_ext
5480
5481   # OK, works on sane cases.  Now check whether nonexistent headers
5482   # can be detected and how.
5483   cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 #include <ac_nonexistent.h>
5490 _ACEOF
5491 if { (ac_try="$ac_cpp conftest.$ac_ext"
5492 case "(($ac_try" in
5493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494   *) ac_try_echo=$ac_try;;
5495 esac
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5499   ac_status=$?
5500   grep -v '^ *+' conftest.er1 >conftest.err
5501   rm -f conftest.er1
5502   cat conftest.err >&5
5503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } >/dev/null && {
5505          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5506          test ! -s conftest.err
5507        }; then
5508   # Broken: success on invalid input.
5509 continue
5510 else
5511   $as_echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5513
5514   # Passes both tests.
5515 ac_preproc_ok=:
5516 break
5517 fi
5518
5519 rm -f conftest.err conftest.$ac_ext
5520
5521 done
5522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5523 rm -f conftest.err conftest.$ac_ext
5524 if $ac_preproc_ok; then
5525   :
5526 else
5527   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5529 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5530 See \`config.log' for more details." >&5
5531 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5532 See \`config.log' for more details." >&2;}
5533    { (exit 1); exit 1; }; }; }
5534 fi
5535
5536 ac_ext=cpp
5537 ac_cpp='$CXXCPP $CPPFLAGS'
5538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5541
5542 fi
5543
5544
5545 ac_ext=f
5546 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5547 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5549 if test -n "$ac_tool_prefix"; then
5550   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5551   do
5552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_prog_F77+set}" = set; then
5557   $as_echo_n "(cached) " >&6
5558 else
5559   if test -n "$F77"; then
5560   ac_cv_prog_F77="$F77" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567   for ac_exec_ext in '' $ac_executable_extensions; do
5568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 F77=$ac_cv_prog_F77
5580 if test -n "$F77"; then
5581   { $as_echo "$as_me:$LINENO: result: $F77" >&5
5582 $as_echo "$F77" >&6; }
5583 else
5584   { $as_echo "$as_me:$LINENO: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589     test -n "$F77" && break
5590   done
5591 fi
5592 if test -z "$F77"; then
5593   ac_ct_F77=$F77
5594   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5595 do
5596   # Extract the first word of "$ac_prog", so it can be a program name with args.
5597 set dummy $ac_prog; ac_word=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5601   $as_echo_n "(cached) " >&6
5602 else
5603   if test -n "$ac_ct_F77"; then
5604   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611   for ac_exec_ext in '' $ac_executable_extensions; do
5612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613     ac_cv_prog_ac_ct_F77="$ac_prog"
5614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5624 if test -n "$ac_ct_F77"; then
5625   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5626 $as_echo "$ac_ct_F77" >&6; }
5627 else
5628   { $as_echo "$as_me:$LINENO: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632
5633   test -n "$ac_ct_F77" && break
5634 done
5635
5636   if test "x$ac_ct_F77" = x; then
5637     F77=""
5638   else
5639     case $cross_compiling:$ac_tool_warned in
5640 yes:)
5641 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643 ac_tool_warned=yes ;;
5644 esac
5645     F77=$ac_ct_F77
5646   fi
5647 fi
5648
5649
5650 # Provide some information about the compiler.
5651 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5652 set X $ac_compile
5653 ac_compiler=$2
5654 { (ac_try="$ac_compiler --version >&5"
5655 case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661   (eval "$ac_compiler --version >&5") 2>&5
5662   ac_status=$?
5663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }
5665 { (ac_try="$ac_compiler -v >&5"
5666 case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5671 $as_echo "$ac_try_echo") >&5
5672   (eval "$ac_compiler -v >&5") 2>&5
5673   ac_status=$?
5674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }
5676 { (ac_try="$ac_compiler -V >&5"
5677 case "(($ac_try" in
5678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679   *) ac_try_echo=$ac_try;;
5680 esac
5681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5682 $as_echo "$ac_try_echo") >&5
5683   (eval "$ac_compiler -V >&5") 2>&5
5684   ac_status=$?
5685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }
5687 rm -f a.out
5688
5689 # If we don't use `.F' as extension, the preprocessor is not run on the
5690 # input file.  (Note that this only needs to work for GNU compilers.)
5691 ac_save_ext=$ac_ext
5692 ac_ext=F
5693 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5694 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5695 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5696   $as_echo_n "(cached) " >&6
5697 else
5698   cat >conftest.$ac_ext <<_ACEOF
5699       program main
5700 #ifndef __GNUC__
5701        choke me
5702 #endif
5703
5704       end
5705 _ACEOF
5706 rm -f conftest.$ac_objext
5707 if { (ac_try="$ac_compile"
5708 case "(($ac_try" in
5709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710   *) ac_try_echo=$ac_try;;
5711 esac
5712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5713 $as_echo "$ac_try_echo") >&5
5714   (eval "$ac_compile") 2>conftest.er1
5715   ac_status=$?
5716   grep -v '^ *+' conftest.er1 >conftest.err
5717   rm -f conftest.er1
5718   cat conftest.err >&5
5719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } && {
5721          test -z "$ac_f77_werror_flag" ||
5722          test ! -s conftest.err
5723        } && test -s conftest.$ac_objext; then
5724   ac_compiler_gnu=yes
5725 else
5726   $as_echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5728
5729         ac_compiler_gnu=no
5730 fi
5731
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5734
5735 fi
5736 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5737 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5738 ac_ext=$ac_save_ext
5739 ac_test_FFLAGS=${FFLAGS+set}
5740 ac_save_FFLAGS=$FFLAGS
5741 FFLAGS=
5742 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5743 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5744 if test "${ac_cv_prog_f77_g+set}" = set; then
5745   $as_echo_n "(cached) " >&6
5746 else
5747   FFLAGS=-g
5748 cat >conftest.$ac_ext <<_ACEOF
5749       program main
5750
5751       end
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (ac_try="$ac_compile"
5755 case "(($ac_try" in
5756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757   *) ac_try_echo=$ac_try;;
5758 esac
5759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5760 $as_echo "$ac_try_echo") >&5
5761   (eval "$ac_compile") 2>conftest.er1
5762   ac_status=$?
5763   grep -v '^ *+' conftest.er1 >conftest.err
5764   rm -f conftest.er1
5765   cat conftest.err >&5
5766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); } && {
5768          test -z "$ac_f77_werror_flag" ||
5769          test ! -s conftest.err
5770        } && test -s conftest.$ac_objext; then
5771   ac_cv_prog_f77_g=yes
5772 else
5773   $as_echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776         ac_cv_prog_f77_g=no
5777 fi
5778
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780
5781 fi
5782 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5783 $as_echo "$ac_cv_prog_f77_g" >&6; }
5784 if test "$ac_test_FFLAGS" = set; then
5785   FFLAGS=$ac_save_FFLAGS
5786 elif test $ac_cv_prog_f77_g = yes; then
5787   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5788     FFLAGS="-g -O2"
5789   else
5790     FFLAGS="-g"
5791   fi
5792 else
5793   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5794     FFLAGS="-O2"
5795   else
5796     FFLAGS=
5797   fi
5798 fi
5799
5800 if test $ac_compiler_gnu = yes; then
5801   G77=yes
5802 else
5803   G77=
5804 fi
5805 ac_ext=c
5806 ac_cpp='$CPP $CPPFLAGS'
5807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810
5811
5812
5813 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5814 # find the maximum length of command line arguments
5815 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5816 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5817 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5818   $as_echo_n "(cached) " >&6
5819 else
5820     i=0
5821   teststring="ABCD"
5822
5823   case $build_os in
5824   msdosdjgpp*)
5825     # On DJGPP, this test can blow up pretty badly due to problems in libc
5826     # (any single argument exceeding 2000 bytes causes a buffer overrun
5827     # during glob expansion).  Even if it were fixed, the result of this
5828     # check would be larger than it should be.
5829     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5830     ;;
5831
5832   gnu*)
5833     # Under GNU Hurd, this test is not required because there is
5834     # no limit to the length of command line arguments.
5835     # Libtool will interpret -1 as no limit whatsoever
5836     lt_cv_sys_max_cmd_len=-1;
5837     ;;
5838
5839   cygwin* | mingw*)
5840     # On Win9x/ME, this test blows up -- it succeeds, but takes
5841     # about 5 minutes as the teststring grows exponentially.
5842     # Worse, since 9x/ME are not pre-emptively multitasking,
5843     # you end up with a "frozen" computer, even though with patience
5844     # the test eventually succeeds (with a max line length of 256k).
5845     # Instead, let's just punt: use the minimum linelength reported by
5846     # all of the supported platforms: 8192 (on NT/2K/XP).
5847     lt_cv_sys_max_cmd_len=8192;
5848     ;;
5849
5850   amigaos*)
5851     # On AmigaOS with pdksh, this test takes hours, literally.
5852     # So we just punt and use a minimum line length of 8192.
5853     lt_cv_sys_max_cmd_len=8192;
5854     ;;
5855
5856   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5857     # This has been around since 386BSD, at least.  Likely further.
5858     if test -x /sbin/sysctl; then
5859       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5860     elif test -x /usr/sbin/sysctl; then
5861       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5862     else
5863       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5864     fi
5865     # And add a safety zone
5866     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5867     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5868     ;;
5869
5870   interix*)
5871     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5872     lt_cv_sys_max_cmd_len=196608
5873     ;;
5874
5875   osf*)
5876     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5877     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5878     # nice to cause kernel panics so lets avoid the loop below.
5879     # First set a reasonable default.
5880     lt_cv_sys_max_cmd_len=16384
5881     #
5882     if test -x /sbin/sysconfig; then
5883       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5884         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5885       esac
5886     fi
5887     ;;
5888   sco3.2v5*)
5889     lt_cv_sys_max_cmd_len=102400
5890     ;;
5891   sysv5* | sco5v6* | sysv4.2uw2*)
5892     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5893     if test -n "$kargmax"; then
5894       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5895     else
5896       lt_cv_sys_max_cmd_len=32768
5897     fi
5898     ;;
5899   *)
5900     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5901     if test -n "$lt_cv_sys_max_cmd_len"; then
5902       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5904     else
5905       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5906       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5907                = "XX$teststring") >/dev/null 2>&1 &&
5908               new_result=`expr "X$teststring" : ".*" 2>&1` &&
5909               lt_cv_sys_max_cmd_len=$new_result &&
5910               test $i != 17 # 1/2 MB should be enough
5911       do
5912         i=`expr $i + 1`
5913         teststring=$teststring$teststring
5914       done
5915       teststring=
5916       # Add a significant safety factor because C++ compilers can tack on massive
5917       # amounts of additional arguments before passing them to the linker.
5918       # It appears as though 1/2 is a usable value.
5919       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5920     fi
5921     ;;
5922   esac
5923
5924 fi
5925
5926 if test -n $lt_cv_sys_max_cmd_len ; then
5927   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5928 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5929 else
5930   { $as_echo "$as_me:$LINENO: result: none" >&5
5931 $as_echo "none" >&6; }
5932 fi
5933
5934
5935
5936
5937
5938 # Check for command to grab the raw symbol name followed by C symbol from nm.
5939 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5940 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5942   $as_echo_n "(cached) " >&6
5943 else
5944
5945 # These are sane defaults that work on at least a few old systems.
5946 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5947
5948 # Character class describing NM global symbol codes.
5949 symcode='[BCDEGRST]'
5950
5951 # Regexp to match symbols that can be accessed directly from C.
5952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5953
5954 # Transform an extracted symbol line into a proper C declaration
5955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5956
5957 # Transform an extracted symbol line into symbol name and symbol address
5958 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'"
5959
5960 # Define system-specific variables.
5961 case $host_os in
5962 aix*)
5963   symcode='[BCDT]'
5964   ;;
5965 cygwin* | mingw* | pw32*)
5966   symcode='[ABCDGISTW]'
5967   ;;
5968 hpux*) # Its linker distinguishes data from code symbols
5969   if test "$host_cpu" = ia64; then
5970     symcode='[ABCDEGRST]'
5971   fi
5972   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5973   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'"
5974   ;;
5975 linux* | k*bsd*-gnu)
5976   if test "$host_cpu" = ia64; then
5977     symcode='[ABCDGIRSTW]'
5978     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5979     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'"
5980   fi
5981   ;;
5982 irix* | nonstopux*)
5983   symcode='[BCDEGRST]'
5984   ;;
5985 osf*)
5986   symcode='[BCDEGQRST]'
5987   ;;
5988 solaris*)
5989   symcode='[BDRT]'
5990   ;;
5991 sco3.2v5*)
5992   symcode='[DT]'
5993   ;;
5994 sysv4.2uw2*)
5995   symcode='[DT]'
5996   ;;
5997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5998   symcode='[ABDT]'
5999   ;;
6000 sysv4)
6001   symcode='[DFNSTU]'
6002   ;;
6003 esac
6004
6005 # Handle CRLF in mingw tool chain
6006 opt_cr=
6007 case $build_os in
6008 mingw*)
6009   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6010   ;;
6011 esac
6012
6013 # If we're using GNU nm, then use its standard symbol codes.
6014 case `$NM -V 2>&1` in
6015 *GNU* | *'with BFD'*)
6016   symcode='[ABCDGIRSTW]' ;;
6017 esac
6018
6019 # Try without a prefix undercore, then with it.
6020 for ac_symprfx in "" "_"; do
6021
6022   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6023   symxfrm="\\1 $ac_symprfx\\2 \\2"
6024
6025   # Write the raw and C identifiers.
6026   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6027
6028   # Check to see that the pipe works correctly.
6029   pipe_works=no
6030
6031   rm -f conftest*
6032   cat > conftest.$ac_ext <<EOF
6033 #ifdef __cplusplus
6034 extern "C" {
6035 #endif
6036 char nm_test_var;
6037 void nm_test_func(){}
6038 #ifdef __cplusplus
6039 }
6040 #endif
6041 int main(){nm_test_var='a';nm_test_func();return(0);}
6042 EOF
6043
6044   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045   (eval $ac_compile) 2>&5
6046   ac_status=$?
6047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; then
6049     # Now try to grab the symbols.
6050     nlist=conftest.nm
6051     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6052   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6053   ac_status=$?
6054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } && test -s "$nlist"; then
6056       # Try sorting and uniquifying the output.
6057       if sort "$nlist" | uniq > "$nlist"T; then
6058         mv -f "$nlist"T "$nlist"
6059       else
6060         rm -f "$nlist"T
6061       fi
6062
6063       # Make sure that we snagged all the symbols we need.
6064       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6065         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6066           cat <<EOF > conftest.$ac_ext
6067 #ifdef __cplusplus
6068 extern "C" {
6069 #endif
6070
6071 EOF
6072           # Now generate the symbol file.
6073           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6074
6075           cat <<EOF >> conftest.$ac_ext
6076 #if defined (__STDC__) && __STDC__
6077 # define lt_ptr_t void *
6078 #else
6079 # define lt_ptr_t char *
6080 # define const
6081 #endif
6082
6083 /* The mapping between symbol names and symbols. */
6084 const struct {
6085   const char *name;
6086   lt_ptr_t address;
6087 }
6088 lt_preloaded_symbols[] =
6089 {
6090 EOF
6091           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6092           cat <<\EOF >> conftest.$ac_ext
6093   {0, (lt_ptr_t) 0}
6094 };
6095
6096 #ifdef __cplusplus
6097 }
6098 #endif
6099 EOF
6100           # Now try linking the two files.
6101           mv conftest.$ac_objext conftstm.$ac_objext
6102           lt_save_LIBS="$LIBS"
6103           lt_save_CFLAGS="$CFLAGS"
6104           LIBS="conftstm.$ac_objext"
6105           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6106           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107   (eval $ac_link) 2>&5
6108   ac_status=$?
6109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6111             pipe_works=yes
6112           fi
6113           LIBS="$lt_save_LIBS"
6114           CFLAGS="$lt_save_CFLAGS"
6115         else
6116           echo "cannot find nm_test_func in $nlist" >&5
6117         fi
6118       else
6119         echo "cannot find nm_test_var in $nlist" >&5
6120       fi
6121     else
6122       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6123     fi
6124   else
6125     echo "$progname: failed program was:" >&5
6126     cat conftest.$ac_ext >&5
6127   fi
6128   rm -rf conftest* conftst*
6129
6130   # Do not use the global_symbol_pipe unless it works.
6131   if test "$pipe_works" = yes; then
6132     break
6133   else
6134     lt_cv_sys_global_symbol_pipe=
6135   fi
6136 done
6137
6138 fi
6139
6140 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6141   lt_cv_sys_global_symbol_to_cdecl=
6142 fi
6143 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6144   { $as_echo "$as_me:$LINENO: result: failed" >&5
6145 $as_echo "failed" >&6; }
6146 else
6147   { $as_echo "$as_me:$LINENO: result: ok" >&5
6148 $as_echo "ok" >&6; }
6149 fi
6150
6151 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6152 $as_echo_n "checking for objdir... " >&6; }
6153 if test "${lt_cv_objdir+set}" = set; then
6154   $as_echo_n "(cached) " >&6
6155 else
6156   rm -f .libs 2>/dev/null
6157 mkdir .libs 2>/dev/null
6158 if test -d .libs; then
6159   lt_cv_objdir=.libs
6160 else
6161   # MS-DOS does not allow filenames that begin with a dot.
6162   lt_cv_objdir=_libs
6163 fi
6164 rmdir .libs 2>/dev/null
6165 fi
6166 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6167 $as_echo "$lt_cv_objdir" >&6; }
6168 objdir=$lt_cv_objdir
6169
6170
6171
6172
6173
6174 case $host_os in
6175 aix3*)
6176   # AIX sometimes has problems with the GCC collect2 program.  For some
6177   # reason, if we set the COLLECT_NAMES environment variable, the problems
6178   # vanish in a puff of smoke.
6179   if test "X${COLLECT_NAMES+set}" != Xset; then
6180     COLLECT_NAMES=
6181     export COLLECT_NAMES
6182   fi
6183   ;;
6184 esac
6185
6186 # Sed substitution that helps us do robust quoting.  It backslashifies
6187 # metacharacters that are still active within double-quoted strings.
6188 Xsed='sed -e 1s/^X//'
6189 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6190
6191 # Same as above, but do not quote variable references.
6192 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6193
6194 # Sed substitution to delay expansion of an escaped shell variable in a
6195 # double_quote_subst'ed string.
6196 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6197
6198 # Sed substitution to avoid accidental globbing in evaled expressions
6199 no_glob_subst='s/\*/\\\*/g'
6200
6201 # Constants:
6202 rm="rm -f"
6203
6204 # Global variables:
6205 default_ofile=libtool
6206 can_build_shared=yes
6207
6208 # All known linkers require a `.a' archive for static linking (except MSVC,
6209 # which needs '.lib').
6210 libext=a
6211 ltmain="$ac_aux_dir/ltmain.sh"
6212 ofile="$default_ofile"
6213 with_gnu_ld="$lt_cv_prog_gnu_ld"
6214
6215 if test -n "$ac_tool_prefix"; then
6216   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ar; ac_word=$2
6218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_AR+set}" = set; then
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if test -n "$AR"; then
6224   ac_cv_prog_AR="$AR" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231   for ac_exec_ext in '' $ac_executable_extensions; do
6232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233     ac_cv_prog_AR="${ac_tool_prefix}ar"
6234     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 AR=$ac_cv_prog_AR
6244 if test -n "$AR"; then
6245   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6246 $as_echo "$AR" >&6; }
6247 else
6248   { $as_echo "$as_me:$LINENO: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252
6253 fi
6254 if test -z "$ac_cv_prog_AR"; then
6255   ac_ct_AR=$AR
6256   # Extract the first word of "ar", so it can be a program name with args.
6257 set dummy ar; ac_word=$2
6258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if test -n "$ac_ct_AR"; then
6264   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271   for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_prog_ac_ct_AR="ar"
6274     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6284 if test -n "$ac_ct_AR"; then
6285   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6286 $as_echo "$ac_ct_AR" >&6; }
6287 else
6288   { $as_echo "$as_me:$LINENO: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292   if test "x$ac_ct_AR" = x; then
6293     AR="false"
6294   else
6295     case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301     AR=$ac_ct_AR
6302   fi
6303 else
6304   AR="$ac_cv_prog_AR"
6305 fi
6306
6307 if test -n "$ac_tool_prefix"; then
6308   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_RANLIB+set}" = set; then
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -n "$RANLIB"; then
6316   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323   for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6326     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330 done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 RANLIB=$ac_cv_prog_RANLIB
6336 if test -n "$RANLIB"; then
6337   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6338 $as_echo "$RANLIB" >&6; }
6339 else
6340   { $as_echo "$as_me:$LINENO: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344
6345 fi
6346 if test -z "$ac_cv_prog_RANLIB"; then
6347   ac_ct_RANLIB=$RANLIB
6348   # Extract the first word of "ranlib", so it can be a program name with args.
6349 set dummy ranlib; ac_word=$2
6350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if test -n "$ac_ct_RANLIB"; then
6356   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363   for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_prog_ac_ct_RANLIB="ranlib"
6366     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6376 if test -n "$ac_ct_RANLIB"; then
6377   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6378 $as_echo "$ac_ct_RANLIB" >&6; }
6379 else
6380   { $as_echo "$as_me:$LINENO: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384   if test "x$ac_ct_RANLIB" = x; then
6385     RANLIB=":"
6386   else
6387     case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393     RANLIB=$ac_ct_RANLIB
6394   fi
6395 else
6396   RANLIB="$ac_cv_prog_RANLIB"
6397 fi
6398
6399 if test -n "$ac_tool_prefix"; then
6400   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}strip; ac_word=$2
6402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_STRIP+set}" = set; then
6405   $as_echo_n "(cached) " >&6
6406 else
6407   if test -n "$STRIP"; then
6408   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415   for ac_exec_ext in '' $ac_executable_extensions; do
6416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6418     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 STRIP=$ac_cv_prog_STRIP
6428 if test -n "$STRIP"; then
6429   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6430 $as_echo "$STRIP" >&6; }
6431 else
6432   { $as_echo "$as_me:$LINENO: result: no" >&5
6433 $as_echo "no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_STRIP"; then
6439   ac_ct_STRIP=$STRIP
6440   # Extract the first word of "strip", so it can be a program name with args.
6441 set dummy strip; ac_word=$2
6442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$ac_ct_STRIP"; then
6448   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455   for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_ac_ct_STRIP="strip"
6458     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6468 if test -n "$ac_ct_STRIP"; then
6469   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6470 $as_echo "$ac_ct_STRIP" >&6; }
6471 else
6472   { $as_echo "$as_me:$LINENO: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476   if test "x$ac_ct_STRIP" = x; then
6477     STRIP=":"
6478   else
6479     case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485     STRIP=$ac_ct_STRIP
6486   fi
6487 else
6488   STRIP="$ac_cv_prog_STRIP"
6489 fi
6490
6491
6492 old_CC="$CC"
6493 old_CFLAGS="$CFLAGS"
6494
6495 # Set sane defaults for various variables
6496 test -z "$AR" && AR=ar
6497 test -z "$AR_FLAGS" && AR_FLAGS=cru
6498 test -z "$AS" && AS=as
6499 test -z "$CC" && CC=cc
6500 test -z "$LTCC" && LTCC=$CC
6501 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6502 test -z "$DLLTOOL" && DLLTOOL=dlltool
6503 test -z "$LD" && LD=ld
6504 test -z "$LN_S" && LN_S="ln -s"
6505 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6506 test -z "$NM" && NM=nm
6507 test -z "$SED" && SED=sed
6508 test -z "$OBJDUMP" && OBJDUMP=objdump
6509 test -z "$RANLIB" && RANLIB=:
6510 test -z "$STRIP" && STRIP=:
6511 test -z "$ac_objext" && ac_objext=o
6512
6513 # Determine commands to create old-style static archives.
6514 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6515 old_postinstall_cmds='chmod 644 $oldlib'
6516 old_postuninstall_cmds=
6517
6518 if test -n "$RANLIB"; then
6519   case $host_os in
6520   openbsd*)
6521     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6522     ;;
6523   *)
6524     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6525     ;;
6526   esac
6527   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6528 fi
6529
6530 for cc_temp in $compiler""; do
6531   case $cc_temp in
6532     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6533     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6534     \-*) ;;
6535     *) break;;
6536   esac
6537 done
6538 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6539
6540
6541 # Only perform the check for file, if the check method requires it
6542 case $deplibs_check_method in
6543 file_magic*)
6544   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6545     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6548   $as_echo_n "(cached) " >&6
6549 else
6550   case $MAGIC_CMD in
6551 [\\/*] |  ?:[\\/]*)
6552   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6553   ;;
6554 *)
6555   lt_save_MAGIC_CMD="$MAGIC_CMD"
6556   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6557   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6558   for ac_dir in $ac_dummy; do
6559     IFS="$lt_save_ifs"
6560     test -z "$ac_dir" && ac_dir=.
6561     if test -f $ac_dir/${ac_tool_prefix}file; then
6562       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6563       if test -n "$file_magic_test_file"; then
6564         case $deplibs_check_method in
6565         "file_magic "*)
6566           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6567           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6568           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6569             $EGREP "$file_magic_regex" > /dev/null; then
6570             :
6571           else
6572             cat <<EOF 1>&2
6573
6574 *** Warning: the command libtool uses to detect shared libraries,
6575 *** $file_magic_cmd, produces output that libtool cannot recognize.
6576 *** The result is that libtool may fail to recognize shared libraries
6577 *** as such.  This will affect the creation of libtool libraries that
6578 *** depend on shared libraries, but programs linked with such libtool
6579 *** libraries will work regardless of this problem.  Nevertheless, you
6580 *** may want to report the problem to your system manager and/or to
6581 *** bug-libtool@gnu.org
6582
6583 EOF
6584           fi ;;
6585         esac
6586       fi
6587       break
6588     fi
6589   done
6590   IFS="$lt_save_ifs"
6591   MAGIC_CMD="$lt_save_MAGIC_CMD"
6592   ;;
6593 esac
6594 fi
6595
6596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6597 if test -n "$MAGIC_CMD"; then
6598   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6599 $as_echo "$MAGIC_CMD" >&6; }
6600 else
6601   { $as_echo "$as_me:$LINENO: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605 if test -z "$lt_cv_path_MAGIC_CMD"; then
6606   if test -n "$ac_tool_prefix"; then
6607     { $as_echo "$as_me:$LINENO: checking for file" >&5
6608 $as_echo_n "checking for file... " >&6; }
6609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6610   $as_echo_n "(cached) " >&6
6611 else
6612   case $MAGIC_CMD in
6613 [\\/*] |  ?:[\\/]*)
6614   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6615   ;;
6616 *)
6617   lt_save_MAGIC_CMD="$MAGIC_CMD"
6618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6619   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6620   for ac_dir in $ac_dummy; do
6621     IFS="$lt_save_ifs"
6622     test -z "$ac_dir" && ac_dir=.
6623     if test -f $ac_dir/file; then
6624       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6625       if test -n "$file_magic_test_file"; then
6626         case $deplibs_check_method in
6627         "file_magic "*)
6628           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6629           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6630           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6631             $EGREP "$file_magic_regex" > /dev/null; then
6632             :
6633           else
6634             cat <<EOF 1>&2
6635
6636 *** Warning: the command libtool uses to detect shared libraries,
6637 *** $file_magic_cmd, produces output that libtool cannot recognize.
6638 *** The result is that libtool may fail to recognize shared libraries
6639 *** as such.  This will affect the creation of libtool libraries that
6640 *** depend on shared libraries, but programs linked with such libtool
6641 *** libraries will work regardless of this problem.  Nevertheless, you
6642 *** may want to report the problem to your system manager and/or to
6643 *** bug-libtool@gnu.org
6644
6645 EOF
6646           fi ;;
6647         esac
6648       fi
6649       break
6650     fi
6651   done
6652   IFS="$lt_save_ifs"
6653   MAGIC_CMD="$lt_save_MAGIC_CMD"
6654   ;;
6655 esac
6656 fi
6657
6658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6659 if test -n "$MAGIC_CMD"; then
6660   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6661 $as_echo "$MAGIC_CMD" >&6; }
6662 else
6663   { $as_echo "$as_me:$LINENO: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667   else
6668     MAGIC_CMD=:
6669   fi
6670 fi
6671
6672   fi
6673   ;;
6674 esac
6675
6676
6677   case $host_os in
6678     rhapsody* | darwin*)
6679     if test -n "$ac_tool_prefix"; then
6680   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6685   $as_echo_n "(cached) " >&6
6686 else
6687   if test -n "$DSYMUTIL"; then
6688   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6698     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6708 if test -n "$DSYMUTIL"; then
6709   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6710 $as_echo "$DSYMUTIL" >&6; }
6711 else
6712   { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_DSYMUTIL"; then
6719   ac_ct_DSYMUTIL=$DSYMUTIL
6720   # Extract the first word of "dsymutil", so it can be a program name with args.
6721 set dummy dsymutil; ac_word=$2
6722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$ac_ct_DSYMUTIL"; then
6728   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6748 if test -n "$ac_ct_DSYMUTIL"; then
6749   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6750 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6751 else
6752   { $as_echo "$as_me:$LINENO: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755
6756   if test "x$ac_ct_DSYMUTIL" = x; then
6757     DSYMUTIL=":"
6758   else
6759     case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765     DSYMUTIL=$ac_ct_DSYMUTIL
6766   fi
6767 else
6768   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6769 fi
6770
6771     if test -n "$ac_tool_prefix"; then
6772   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6777   $as_echo_n "(cached) " >&6
6778 else
6779   if test -n "$NMEDIT"; then
6780   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787   for ac_exec_ext in '' $ac_executable_extensions; do
6788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6790     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 NMEDIT=$ac_cv_prog_NMEDIT
6800 if test -n "$NMEDIT"; then
6801   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6802 $as_echo "$NMEDIT" >&6; }
6803 else
6804   { $as_echo "$as_me:$LINENO: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_NMEDIT"; then
6811   ac_ct_NMEDIT=$NMEDIT
6812   # Extract the first word of "nmedit", so it can be a program name with args.
6813 set dummy nmedit; ac_word=$2
6814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6817   $as_echo_n "(cached) " >&6
6818 else
6819   if test -n "$ac_ct_NMEDIT"; then
6820   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6830     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6840 if test -n "$ac_ct_NMEDIT"; then
6841   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6842 $as_echo "$ac_ct_NMEDIT" >&6; }
6843 else
6844   { $as_echo "$as_me:$LINENO: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848   if test "x$ac_ct_NMEDIT" = x; then
6849     NMEDIT=":"
6850   else
6851     case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857     NMEDIT=$ac_ct_NMEDIT
6858   fi
6859 else
6860   NMEDIT="$ac_cv_prog_NMEDIT"
6861 fi
6862
6863
6864     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6865 $as_echo_n "checking for -single_module linker flag... " >&6; }
6866 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6867   $as_echo_n "(cached) " >&6
6868 else
6869   lt_cv_apple_cc_single_mod=no
6870       if test -z "${LT_MULTI_MODULE}"; then
6871    # By default we will add the -single_module flag. You can override
6872    # by either setting the environment variable LT_MULTI_MODULE
6873    # non-empty at configure time, or by adding -multi_module to the
6874    # link flags.
6875    echo "int foo(void){return 1;}" > conftest.c
6876    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6877      -dynamiclib ${wl}-single_module conftest.c
6878    if test -f libconftest.dylib; then
6879      lt_cv_apple_cc_single_mod=yes
6880      rm -rf libconftest.dylib*
6881    fi
6882    rm conftest.c
6883       fi
6884 fi
6885 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6886 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6887     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6888 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6889 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6890   $as_echo_n "(cached) " >&6
6891 else
6892   lt_cv_ld_exported_symbols_list=no
6893       save_LDFLAGS=$LDFLAGS
6894       echo "_main" > conftest.sym
6895       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6896       cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h.  */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h.  */
6902
6903 int
6904 main ()
6905 {
6906
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (ac_try="$ac_link"
6913 case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6918 $as_echo "$ac_try_echo") >&5
6919   (eval "$ac_link") 2>conftest.er1
6920   ac_status=$?
6921   grep -v '^ *+' conftest.er1 >conftest.err
6922   rm -f conftest.er1
6923   cat conftest.err >&5
6924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); } && {
6926          test -z "$ac_c_werror_flag" ||
6927          test ! -s conftest.err
6928        } && test -s conftest$ac_exeext && {
6929          test "$cross_compiling" = yes ||
6930          $as_test_x conftest$ac_exeext
6931        }; then
6932   lt_cv_ld_exported_symbols_list=yes
6933 else
6934   $as_echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937         lt_cv_ld_exported_symbols_list=no
6938 fi
6939
6940 rm -rf conftest.dSYM
6941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6942       conftest$ac_exeext conftest.$ac_ext
6943    LDFLAGS="$save_LDFLAGS"
6944
6945 fi
6946 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6947 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6948     case $host_os in
6949     rhapsody* | darwin1.[0123])
6950       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6951     darwin1.*)
6952      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6953     darwin*)
6954       # if running on 10.5 or later, the deployment target defaults
6955       # to the OS version, if on x86, and 10.4, the deployment
6956       # target defaults to 10.4. Don't you love it?
6957       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6958    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6959      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6960    10.[012]*)
6961      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6962    10.*)
6963      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6964       esac
6965     ;;
6966   esac
6967     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6968       _lt_dar_single_mod='$single_module'
6969     fi
6970     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6971       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6972     else
6973       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6974     fi
6975     if test "$DSYMUTIL" != ":"; then
6976       _lt_dsymutil="~$DSYMUTIL \$lib || :"
6977     else
6978       _lt_dsymutil=
6979     fi
6980     ;;
6981   esac
6982
6983
6984 enable_dlopen=no
6985 enable_win32_dll=yes
6986
6987 # Check whether --enable-libtool-lock was given.
6988 if test "${enable_libtool_lock+set}" = set; then
6989   enableval=$enable_libtool_lock;
6990 fi
6991
6992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6993
6994
6995 # Check whether --with-pic was given.
6996 if test "${with_pic+set}" = set; then
6997   withval=$with_pic; pic_mode="$withval"
6998 else
6999   pic_mode=default
7000 fi
7001
7002 test -z "$pic_mode" && pic_mode=default
7003
7004 # Use C for the default configuration in the libtool script
7005 tagname=
7006 lt_save_CC="$CC"
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013
7014 # Source file extension for C test sources.
7015 ac_ext=c
7016
7017 # Object file extension for compiled C test sources.
7018 objext=o
7019 objext=$objext
7020
7021 # Code to be used in simple compile tests
7022 lt_simple_compile_test_code="int some_variable = 0;"
7023
7024 # Code to be used in simple link tests
7025 lt_simple_link_test_code='int main(){return(0);}'
7026
7027
7028 # If no C compiler was specified, use CC.
7029 LTCC=${LTCC-"$CC"}
7030
7031 # If no C compiler flags were specified, use CFLAGS.
7032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7033
7034 # Allow CC to be a program name with arguments.
7035 compiler=$CC
7036
7037
7038 # save warnings/boilerplate of simple test code
7039 ac_outfile=conftest.$ac_objext
7040 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7042 _lt_compiler_boilerplate=`cat conftest.err`
7043 $rm conftest*
7044
7045 ac_outfile=conftest.$ac_objext
7046 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7048 _lt_linker_boilerplate=`cat conftest.err`
7049 $rm -r conftest*
7050
7051
7052 ## CAVEAT EMPTOR:
7053 ## There is no encapsulation within the following macros, do not change
7054 ## the running order or otherwise move them around unless you know exactly
7055 ## what you are doing...
7056
7057 lt_prog_compiler_no_builtin_flag=
7058
7059 if test "$GCC" = yes; then
7060   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7061
7062
7063 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7065 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7066   $as_echo_n "(cached) " >&6
7067 else
7068   lt_cv_prog_compiler_rtti_exceptions=no
7069   ac_outfile=conftest.$ac_objext
7070    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7071    lt_compiler_flag="-fno-rtti -fno-exceptions"
7072    # Insert the option either (1) after the last *FLAGS variable, or
7073    # (2) before a word containing "conftest.", or (3) at the end.
7074    # Note that $ac_compile itself does not contain backslashes and begins
7075    # with a dollar sign (not a hyphen), so the echo should work correctly.
7076    # The option is referenced via a variable to avoid confusing sed.
7077    lt_compile=`echo "$ac_compile" | $SED \
7078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7080    -e 's:$: $lt_compiler_flag:'`
7081    (eval echo "\"\$as_me:7081: $lt_compile\"" >&5)
7082    (eval "$lt_compile" 2>conftest.err)
7083    ac_status=$?
7084    cat conftest.err >&5
7085    echo "$as_me:7085: \$? = $ac_status" >&5
7086    if (exit $ac_status) && test -s "$ac_outfile"; then
7087      # The compiler can only warn and ignore the option if not recognized
7088      # So say no if there are warnings other than the usual output.
7089      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7090      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7091      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7092        lt_cv_prog_compiler_rtti_exceptions=yes
7093      fi
7094    fi
7095    $rm conftest*
7096
7097 fi
7098 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7100
7101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7102     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7103 else
7104     :
7105 fi
7106
7107 fi
7108
7109 lt_prog_compiler_wl=
7110 lt_prog_compiler_pic=
7111 lt_prog_compiler_static=
7112
7113 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7114 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7115
7116   if test "$GCC" = yes; then
7117     lt_prog_compiler_wl='-Wl,'
7118     lt_prog_compiler_static='-static'
7119
7120     case $host_os in
7121       aix*)
7122       # All AIX code is PIC.
7123       if test "$host_cpu" = ia64; then
7124         # AIX 5 now supports IA64 processor
7125         lt_prog_compiler_static='-Bstatic'
7126       fi
7127       ;;
7128
7129     amigaos*)
7130       # FIXME: we need at least 68020 code to build shared libraries, but
7131       # adding the `-m68020' flag to GCC prevents building anything better,
7132       # like `-m68040'.
7133       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7134       ;;
7135
7136     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7137       # PIC is the default for these OSes.
7138       ;;
7139
7140     mingw* | cygwin* | pw32* | os2*)
7141       # This hack is so that the source file can tell whether it is being
7142       # built for inclusion in a dll (and should export symbols for example).
7143       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7144       # (--disable-auto-import) libraries
7145       lt_prog_compiler_pic='-DDLL_EXPORT'
7146       ;;
7147
7148     darwin* | rhapsody*)
7149       # PIC is the default on this platform
7150       # Common symbols not allowed in MH_DYLIB files
7151       lt_prog_compiler_pic='-fno-common'
7152       ;;
7153
7154     interix[3-9]*)
7155       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7156       # Instead, we relocate shared libraries at runtime.
7157       ;;
7158
7159     msdosdjgpp*)
7160       # Just because we use GCC doesn't mean we suddenly get shared libraries
7161       # on systems that don't support them.
7162       lt_prog_compiler_can_build_shared=no
7163       enable_shared=no
7164       ;;
7165
7166     sysv4*MP*)
7167       if test -d /usr/nec; then
7168         lt_prog_compiler_pic=-Kconform_pic
7169       fi
7170       ;;
7171
7172     hpux*)
7173       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7174       # not for PA HP-UX.
7175       case $host_cpu in
7176       hppa*64*|ia64*)
7177         # +Z the default
7178         ;;
7179       *)
7180         lt_prog_compiler_pic='-fPIC'
7181         ;;
7182       esac
7183       ;;
7184
7185     *)
7186       lt_prog_compiler_pic='-fPIC'
7187       ;;
7188     esac
7189   else
7190     # PORTME Check for flag to pass linker flags through the system compiler.
7191     case $host_os in
7192     aix*)
7193       lt_prog_compiler_wl='-Wl,'
7194       if test "$host_cpu" = ia64; then
7195         # AIX 5 now supports IA64 processor
7196         lt_prog_compiler_static='-Bstatic'
7197       else
7198         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7199       fi
7200       ;;
7201       darwin*)
7202         # PIC is the default on this platform
7203         # Common symbols not allowed in MH_DYLIB files
7204        case $cc_basename in
7205          xlc*)
7206          lt_prog_compiler_pic='-qnocommon'
7207          lt_prog_compiler_wl='-Wl,'
7208          ;;
7209        esac
7210        ;;
7211
7212     mingw* | cygwin* | pw32* | os2*)
7213       # This hack is so that the source file can tell whether it is being
7214       # built for inclusion in a dll (and should export symbols for example).
7215       lt_prog_compiler_pic='-DDLL_EXPORT'
7216       ;;
7217
7218     hpux9* | hpux10* | hpux11*)
7219       lt_prog_compiler_wl='-Wl,'
7220       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7221       # not for PA HP-UX.
7222       case $host_cpu in
7223       hppa*64*|ia64*)
7224         # +Z the default
7225         ;;
7226       *)
7227         lt_prog_compiler_pic='+Z'
7228         ;;
7229       esac
7230       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7231       lt_prog_compiler_static='${wl}-a ${wl}archive'
7232       ;;
7233
7234     irix5* | irix6* | nonstopux*)
7235       lt_prog_compiler_wl='-Wl,'
7236       # PIC (with -KPIC) is the default.
7237       lt_prog_compiler_static='-non_shared'
7238       ;;
7239
7240     newsos6)
7241       lt_prog_compiler_pic='-KPIC'
7242       lt_prog_compiler_static='-Bstatic'
7243       ;;
7244
7245     linux* | k*bsd*-gnu)
7246       case $cc_basename in
7247       icc* | ecc*)
7248         lt_prog_compiler_wl='-Wl,'
7249         lt_prog_compiler_pic='-KPIC'
7250         lt_prog_compiler_static='-static'
7251         ;;
7252       pgcc* | pgf77* | pgf90* | pgf95*)
7253         # Portland Group compilers (*not* the Pentium gcc compiler,
7254         # which looks to be a dead project)
7255         lt_prog_compiler_wl='-Wl,'
7256         lt_prog_compiler_pic='-fpic'
7257         lt_prog_compiler_static='-Bstatic'
7258         ;;
7259       ccc*)
7260         lt_prog_compiler_wl='-Wl,'
7261         # All Alpha code is PIC.
7262         lt_prog_compiler_static='-non_shared'
7263         ;;
7264       *)
7265         case `$CC -V 2>&1 | sed 5q` in
7266         *Sun\ C*)
7267           # Sun C 5.9
7268           lt_prog_compiler_pic='-KPIC'
7269           lt_prog_compiler_static='-Bstatic'
7270           lt_prog_compiler_wl='-Wl,'
7271           ;;
7272         *Sun\ F*)
7273           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7274           lt_prog_compiler_pic='-KPIC'
7275           lt_prog_compiler_static='-Bstatic'
7276           lt_prog_compiler_wl=''
7277           ;;
7278         esac
7279         ;;
7280       esac
7281       ;;
7282
7283     osf3* | osf4* | osf5*)
7284       lt_prog_compiler_wl='-Wl,'
7285       # All OSF/1 code is PIC.
7286       lt_prog_compiler_static='-non_shared'
7287       ;;
7288
7289     rdos*)
7290       lt_prog_compiler_static='-non_shared'
7291       ;;
7292
7293     solaris*)
7294       lt_prog_compiler_pic='-KPIC'
7295       lt_prog_compiler_static='-Bstatic'
7296       case $cc_basename in
7297       f77* | f90* | f95*)
7298         lt_prog_compiler_wl='-Qoption ld ';;
7299       *)
7300         lt_prog_compiler_wl='-Wl,';;
7301       esac
7302       ;;
7303
7304     sunos4*)
7305       lt_prog_compiler_wl='-Qoption ld '
7306       lt_prog_compiler_pic='-PIC'
7307       lt_prog_compiler_static='-Bstatic'
7308       ;;
7309
7310     sysv4 | sysv4.2uw2* | sysv4.3*)
7311       lt_prog_compiler_wl='-Wl,'
7312       lt_prog_compiler_pic='-KPIC'
7313       lt_prog_compiler_static='-Bstatic'
7314       ;;
7315
7316     sysv4*MP*)
7317       if test -d /usr/nec ;then
7318         lt_prog_compiler_pic='-Kconform_pic'
7319         lt_prog_compiler_static='-Bstatic'
7320       fi
7321       ;;
7322
7323     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7324       lt_prog_compiler_wl='-Wl,'
7325       lt_prog_compiler_pic='-KPIC'
7326       lt_prog_compiler_static='-Bstatic'
7327       ;;
7328
7329     unicos*)
7330       lt_prog_compiler_wl='-Wl,'
7331       lt_prog_compiler_can_build_shared=no
7332       ;;
7333
7334     uts4*)
7335       lt_prog_compiler_pic='-pic'
7336       lt_prog_compiler_static='-Bstatic'
7337       ;;
7338
7339     *)
7340       lt_prog_compiler_can_build_shared=no
7341       ;;
7342     esac
7343   fi
7344
7345 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7346 $as_echo "$lt_prog_compiler_pic" >&6; }
7347
7348 #
7349 # Check to make sure the PIC flag actually works.
7350 #
7351 if test -n "$lt_prog_compiler_pic"; then
7352
7353 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7354 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7355 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7356   $as_echo_n "(cached) " >&6
7357 else
7358   lt_cv_prog_compiler_pic_works=no
7359   ac_outfile=conftest.$ac_objext
7360    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7361    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7362    # Insert the option either (1) after the last *FLAGS variable, or
7363    # (2) before a word containing "conftest.", or (3) at the end.
7364    # Note that $ac_compile itself does not contain backslashes and begins
7365    # with a dollar sign (not a hyphen), so the echo should work correctly.
7366    # The option is referenced via a variable to avoid confusing sed.
7367    lt_compile=`echo "$ac_compile" | $SED \
7368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7370    -e 's:$: $lt_compiler_flag:'`
7371    (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
7372    (eval "$lt_compile" 2>conftest.err)
7373    ac_status=$?
7374    cat conftest.err >&5
7375    echo "$as_me:7375: \$? = $ac_status" >&5
7376    if (exit $ac_status) && test -s "$ac_outfile"; then
7377      # The compiler can only warn and ignore the option if not recognized
7378      # So say no if there are warnings other than the usual output.
7379      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7380      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7381      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7382        lt_cv_prog_compiler_pic_works=yes
7383      fi
7384    fi
7385    $rm conftest*
7386
7387 fi
7388 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7389 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7390
7391 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7392     case $lt_prog_compiler_pic in
7393      "" | " "*) ;;
7394      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7395      esac
7396 else
7397     lt_prog_compiler_pic=
7398      lt_prog_compiler_can_build_shared=no
7399 fi
7400
7401 fi
7402 case $host_os in
7403   # For platforms which do not support PIC, -DPIC is meaningless:
7404   *djgpp*)
7405     lt_prog_compiler_pic=
7406     ;;
7407   *)
7408     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7409     ;;
7410 esac
7411
7412 #
7413 # Check to make sure the static flag actually works.
7414 #
7415 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7416 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7417 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7418 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7419   $as_echo_n "(cached) " >&6
7420 else
7421   lt_cv_prog_compiler_static_works=no
7422    save_LDFLAGS="$LDFLAGS"
7423    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7424    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7425    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7426      # The linker can only warn and ignore the option if not recognized
7427      # So say no if there are warnings
7428      if test -s conftest.err; then
7429        # Append any errors to the config.log.
7430        cat conftest.err 1>&5
7431        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7432        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7433        if diff conftest.exp conftest.er2 >/dev/null; then
7434          lt_cv_prog_compiler_static_works=yes
7435        fi
7436      else
7437        lt_cv_prog_compiler_static_works=yes
7438      fi
7439    fi
7440    $rm -r conftest*
7441    LDFLAGS="$save_LDFLAGS"
7442
7443 fi
7444 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7445 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7446
7447 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7448     :
7449 else
7450     lt_prog_compiler_static=
7451 fi
7452
7453
7454 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7455 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7456 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7457   $as_echo_n "(cached) " >&6
7458 else
7459   lt_cv_prog_compiler_c_o=no
7460    $rm -r conftest 2>/dev/null
7461    mkdir conftest
7462    cd conftest
7463    mkdir out
7464    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7465
7466    lt_compiler_flag="-o out/conftest2.$ac_objext"
7467    # Insert the option either (1) after the last *FLAGS variable, or
7468    # (2) before a word containing "conftest.", or (3) at the end.
7469    # Note that $ac_compile itself does not contain backslashes and begins
7470    # with a dollar sign (not a hyphen), so the echo should work correctly.
7471    lt_compile=`echo "$ac_compile" | $SED \
7472    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7473    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7474    -e 's:$: $lt_compiler_flag:'`
7475    (eval echo "\"\$as_me:7475: $lt_compile\"" >&5)
7476    (eval "$lt_compile" 2>out/conftest.err)
7477    ac_status=$?
7478    cat out/conftest.err >&5
7479    echo "$as_me:7479: \$? = $ac_status" >&5
7480    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7481    then
7482      # The compiler can only warn and ignore the option if not recognized
7483      # So say no if there are warnings
7484      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7485      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7486      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7487        lt_cv_prog_compiler_c_o=yes
7488      fi
7489    fi
7490    chmod u+w . 2>&5
7491    $rm conftest*
7492    # SGI C++ compiler will create directory out/ii_files/ for
7493    # template instantiation
7494    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7495    $rm out/* && rmdir out
7496    cd ..
7497    rmdir conftest
7498    $rm conftest*
7499
7500 fi
7501 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7502 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7503
7504
7505 hard_links="nottested"
7506 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7507   # do not overwrite the value of need_locks provided by the user
7508   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7509 $as_echo_n "checking if we can lock with hard links... " >&6; }
7510   hard_links=yes
7511   $rm conftest*
7512   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7513   touch conftest.a
7514   ln conftest.a conftest.b 2>&5 || hard_links=no
7515   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7516   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7517 $as_echo "$hard_links" >&6; }
7518   if test "$hard_links" = no; then
7519     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7520 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7521     need_locks=warn
7522   fi
7523 else
7524   need_locks=no
7525 fi
7526
7527 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7528 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7529
7530   runpath_var=
7531   allow_undefined_flag=
7532   enable_shared_with_static_runtimes=no
7533   archive_cmds=
7534   archive_expsym_cmds=
7535   old_archive_From_new_cmds=
7536   old_archive_from_expsyms_cmds=
7537   export_dynamic_flag_spec=
7538   whole_archive_flag_spec=
7539   thread_safe_flag_spec=
7540   hardcode_libdir_flag_spec=
7541   hardcode_libdir_flag_spec_ld=
7542   hardcode_libdir_separator=
7543   hardcode_direct=no
7544   hardcode_minus_L=no
7545   hardcode_shlibpath_var=unsupported
7546   link_all_deplibs=unknown
7547   hardcode_automatic=no
7548   module_cmds=
7549   module_expsym_cmds=
7550   always_export_symbols=no
7551   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7552   # include_expsyms should be a list of space-separated symbols to be *always*
7553   # included in the symbol list
7554   include_expsyms=
7555   # exclude_expsyms can be an extended regexp of symbols to exclude
7556   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7557   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7558   # as well as any symbol that contains `d'.
7559   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7560   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7561   # platforms (ab)use it in PIC code, but their linkers get confused if
7562   # the symbol is explicitly referenced.  Since portable code cannot
7563   # rely on this symbol name, it's probably fine to never include it in
7564   # preloaded symbol tables.
7565   # Exclude shared library initialization/finalization symbols.
7566   extract_expsyms_cmds=
7567   # Just being paranoid about ensuring that cc_basename is set.
7568   for cc_temp in $compiler""; do
7569   case $cc_temp in
7570     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7571     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7572     \-*) ;;
7573     *) break;;
7574   esac
7575 done
7576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7577
7578   case $host_os in
7579   cygwin* | mingw* | pw32*)
7580     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7581     # When not using gcc, we currently assume that we are using
7582     # Microsoft Visual C++.
7583     if test "$GCC" != yes; then
7584       with_gnu_ld=no
7585     fi
7586     ;;
7587   interix*)
7588     # we just hope/assume this is gcc and not c89 (= MSVC++)
7589     with_gnu_ld=yes
7590     ;;
7591   openbsd*)
7592     with_gnu_ld=no
7593     ;;
7594   esac
7595
7596   ld_shlibs=yes
7597   if test "$with_gnu_ld" = yes; then
7598     # If archive_cmds runs LD, not CC, wlarc should be empty
7599     wlarc='${wl}'
7600
7601     # Set some defaults for GNU ld with shared library support. These
7602     # are reset later if shared libraries are not supported. Putting them
7603     # here allows them to be overridden if necessary.
7604     runpath_var=LD_RUN_PATH
7605     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7606     export_dynamic_flag_spec='${wl}--export-dynamic'
7607     # ancient GNU ld didn't support --whole-archive et. al.
7608     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7609         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7610       else
7611         whole_archive_flag_spec=
7612     fi
7613     supports_anon_versioning=no
7614     case `$LD -v 2>/dev/null` in
7615       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7616       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7617       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7618       *\ 2.11.*) ;; # other 2.11 versions
7619       *) supports_anon_versioning=yes ;;
7620     esac
7621
7622     # See if GNU ld supports shared libraries.
7623     case $host_os in
7624     aix[3-9]*)
7625       # On AIX/PPC, the GNU linker is very broken
7626       if test "$host_cpu" != ia64; then
7627         ld_shlibs=no
7628         cat <<EOF 1>&2
7629
7630 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7631 *** to be unable to reliably create shared libraries on AIX.
7632 *** Therefore, libtool is disabling shared libraries support.  If you
7633 *** really care for shared libraries, you may want to modify your PATH
7634 *** so that a non-GNU linker is found, and then restart.
7635
7636 EOF
7637       fi
7638       ;;
7639
7640     amigaos*)
7641       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)'
7642       hardcode_libdir_flag_spec='-L$libdir'
7643       hardcode_minus_L=yes
7644
7645       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7646       # that the semantics of dynamic libraries on AmigaOS, at least up
7647       # to version 4, is to share data among multiple programs linked
7648       # with the same dynamic library.  Since this doesn't match the
7649       # behavior of shared libraries on other platforms, we can't use
7650       # them.
7651       ld_shlibs=no
7652       ;;
7653
7654     beos*)
7655       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7656         allow_undefined_flag=unsupported
7657         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7658         # support --undefined.  This deserves some investigation.  FIXME
7659         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660       else
7661         ld_shlibs=no
7662       fi
7663       ;;
7664
7665     cygwin* | mingw* | pw32*)
7666       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7667       # as there is no search path for DLLs.
7668       hardcode_libdir_flag_spec='-L$libdir'
7669       allow_undefined_flag=unsupported
7670       always_export_symbols=no
7671       enable_shared_with_static_runtimes=yes
7672       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7673
7674       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7675         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7676         # If the export-symbols file already is a .def file (1st line
7677         # is EXPORTS), use it as is; otherwise, prepend...
7678         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7679           cp $export_symbols $output_objdir/$soname.def;
7680         else
7681           echo EXPORTS > $output_objdir/$soname.def;
7682           cat $export_symbols >> $output_objdir/$soname.def;
7683         fi~
7684         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7685       else
7686         ld_shlibs=no
7687       fi
7688       ;;
7689
7690     interix[3-9]*)
7691       hardcode_direct=no
7692       hardcode_shlibpath_var=no
7693       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7694       export_dynamic_flag_spec='${wl}-E'
7695       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7696       # Instead, shared libraries are loaded at an image base (0x10000000 by
7697       # default) and relocated if they conflict, which is a slow very memory
7698       # consuming and fragmenting process.  To avoid this, we pick a random,
7699       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7700       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7701       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7702       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'
7703       ;;
7704
7705     gnu* | linux* | k*bsd*-gnu)
7706       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7707         tmp_addflag=
7708         case $cc_basename,$host_cpu in
7709         pgcc*)                          # Portland Group C compiler
7710           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'
7711           tmp_addflag=' $pic_flag'
7712           ;;
7713         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7714           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'
7715           tmp_addflag=' $pic_flag -Mnomain' ;;
7716         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7717           tmp_addflag=' -i_dynamic' ;;
7718         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7719           tmp_addflag=' -i_dynamic -nofor_main' ;;
7720         ifc* | ifort*)                  # Intel Fortran compiler
7721           tmp_addflag=' -nofor_main' ;;
7722         esac
7723         case `$CC -V 2>&1 | sed 5q` in
7724         *Sun\ C*)                       # Sun C 5.9
7725           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7726           tmp_sharedflag='-G' ;;
7727         *Sun\ F*)                       # Sun Fortran 8.3
7728           tmp_sharedflag='-G' ;;
7729         *)
7730           tmp_sharedflag='-shared' ;;
7731         esac
7732         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7733
7734         if test $supports_anon_versioning = yes; then
7735           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7736   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7737   $echo "local: *; };" >> $output_objdir/$libname.ver~
7738           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7739         fi
7740       else
7741         ld_shlibs=no
7742       fi
7743       ;;
7744
7745     netbsd*)
7746       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7747         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7748         wlarc=
7749       else
7750         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7751         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7752       fi
7753       ;;
7754
7755     solaris*)
7756       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7757         ld_shlibs=no
7758         cat <<EOF 1>&2
7759
7760 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7761 *** create shared libraries on Solaris systems.  Therefore, libtool
7762 *** is disabling shared libraries support.  We urge you to upgrade GNU
7763 *** binutils to release 2.9.1 or newer.  Another option is to modify
7764 *** your PATH or compiler configuration so that the native linker is
7765 *** used, and then restart.
7766
7767 EOF
7768       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7769         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7770         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7771       else
7772         ld_shlibs=no
7773       fi
7774       ;;
7775
7776     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7777       case `$LD -v 2>&1` in
7778         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7779         ld_shlibs=no
7780         cat <<_LT_EOF 1>&2
7781
7782 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7783 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7784 *** is disabling shared libraries support.  We urge you to upgrade GNU
7785 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7786 *** your PATH or compiler configuration so that the native linker is
7787 *** used, and then restart.
7788
7789 _LT_EOF
7790         ;;
7791         *)
7792           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7793             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7794             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7795             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7796           else
7797             ld_shlibs=no
7798           fi
7799         ;;
7800       esac
7801       ;;
7802
7803     sunos4*)
7804       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7805       wlarc=
7806       hardcode_direct=yes
7807       hardcode_shlibpath_var=no
7808       ;;
7809
7810     *)
7811       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7812         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7813         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7814       else
7815         ld_shlibs=no
7816       fi
7817       ;;
7818     esac
7819
7820     if test "$ld_shlibs" = no; then
7821       runpath_var=
7822       hardcode_libdir_flag_spec=
7823       export_dynamic_flag_spec=
7824       whole_archive_flag_spec=
7825     fi
7826   else
7827     # PORTME fill in a description of your system's linker (not GNU ld)
7828     case $host_os in
7829     aix3*)
7830       allow_undefined_flag=unsupported
7831       always_export_symbols=yes
7832       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'
7833       # Note: this linker hardcodes the directories in LIBPATH if there
7834       # are no directories specified by -L.
7835       hardcode_minus_L=yes
7836       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7837         # Neither direct hardcoding nor static linking is supported with a
7838         # broken collect2.
7839         hardcode_direct=unsupported
7840       fi
7841       ;;
7842
7843     aix[4-9]*)
7844       if test "$host_cpu" = ia64; then
7845         # On IA64, the linker does run time linking by default, so we don't
7846         # have to do anything special.
7847         aix_use_runtimelinking=no
7848         exp_sym_flag='-Bexport'
7849         no_entry_flag=""
7850       else
7851         # If we're using GNU nm, then we don't want the "-C" option.
7852         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7853         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7854           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'
7855         else
7856           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'
7857         fi
7858         aix_use_runtimelinking=no
7859
7860         # Test if we are trying to use run time linking or normal
7861         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7862         # need to do runtime linking.
7863         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7864           for ld_flag in $LDFLAGS; do
7865           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7866             aix_use_runtimelinking=yes
7867             break
7868           fi
7869           done
7870           ;;
7871         esac
7872
7873         exp_sym_flag='-bexport'
7874         no_entry_flag='-bnoentry'
7875       fi
7876
7877       # When large executables or shared objects are built, AIX ld can
7878       # have problems creating the table of contents.  If linking a library
7879       # or program results in "error TOC overflow" add -mminimal-toc to
7880       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7881       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7882
7883       archive_cmds=''
7884       hardcode_direct=yes
7885       hardcode_libdir_separator=':'
7886       link_all_deplibs=yes
7887
7888       if test "$GCC" = yes; then
7889         case $host_os in aix4.[012]|aix4.[012].*)
7890         # We only want to do this on AIX 4.2 and lower, the check
7891         # below for broken collect2 doesn't work under 4.3+
7892           collect2name=`${CC} -print-prog-name=collect2`
7893           if test -f "$collect2name" && \
7894            strings "$collect2name" | grep resolve_lib_name >/dev/null
7895           then
7896           # We have reworked collect2
7897           :
7898           else
7899           # We have old collect2
7900           hardcode_direct=unsupported
7901           # It fails to find uninstalled libraries when the uninstalled
7902           # path is not listed in the libpath.  Setting hardcode_minus_L
7903           # to unsupported forces relinking
7904           hardcode_minus_L=yes
7905           hardcode_libdir_flag_spec='-L$libdir'
7906           hardcode_libdir_separator=
7907           fi
7908           ;;
7909         esac
7910         shared_flag='-shared'
7911         if test "$aix_use_runtimelinking" = yes; then
7912           shared_flag="$shared_flag "'${wl}-G'
7913         fi
7914       else
7915         # not using gcc
7916         if test "$host_cpu" = ia64; then
7917         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7918         # chokes on -Wl,-G. The following line is correct:
7919           shared_flag='-G'
7920         else
7921           if test "$aix_use_runtimelinking" = yes; then
7922             shared_flag='${wl}-G'
7923           else
7924             shared_flag='${wl}-bM:SRE'
7925           fi
7926         fi
7927       fi
7928
7929       # It seems that -bexpall does not export symbols beginning with
7930       # underscore (_), so it is better to generate a list of symbols to export.
7931       always_export_symbols=yes
7932       if test "$aix_use_runtimelinking" = yes; then
7933         # Warning - without using the other runtime loading flags (-brtl),
7934         # -berok will link without error, but may produce a broken library.
7935         allow_undefined_flag='-berok'
7936        # Determine the default libpath from the value encoded in an empty executable.
7937        cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943
7944 int
7945 main ()
7946 {
7947
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext conftest$ac_exeext
7953 if { (ac_try="$ac_link"
7954 case "(($ac_try" in
7955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956   *) ac_try_echo=$ac_try;;
7957 esac
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960   (eval "$ac_link") 2>conftest.er1
7961   ac_status=$?
7962   grep -v '^ *+' conftest.er1 >conftest.err
7963   rm -f conftest.er1
7964   cat conftest.err >&5
7965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } && {
7967          test -z "$ac_c_werror_flag" ||
7968          test ! -s conftest.err
7969        } && test -s conftest$ac_exeext && {
7970          test "$cross_compiling" = yes ||
7971          $as_test_x conftest$ac_exeext
7972        }; then
7973
7974 lt_aix_libpath_sed='
7975     /Import File Strings/,/^$/ {
7976         /^0/ {
7977             s/^0  *\(.*\)$/\1/
7978             p
7979         }
7980     }'
7981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7982 # Check for a 64-bit object if we didn't find anything.
7983 if test -z "$aix_libpath"; then
7984   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7985 fi
7986 else
7987   $as_echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990
7991 fi
7992
7993 rm -rf conftest.dSYM
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995       conftest$ac_exeext conftest.$ac_ext
7996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7997
7998        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7999         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"
8000        else
8001         if test "$host_cpu" = ia64; then
8002           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8003           allow_undefined_flag="-z nodefs"
8004           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"
8005         else
8006          # Determine the default libpath from the value encoded in an empty executable.
8007          cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013
8014 int
8015 main ()
8016 {
8017
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (ac_try="$ac_link"
8024 case "(($ac_try" in
8025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026   *) ac_try_echo=$ac_try;;
8027 esac
8028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8029 $as_echo "$ac_try_echo") >&5
8030   (eval "$ac_link") 2>conftest.er1
8031   ac_status=$?
8032   grep -v '^ *+' conftest.er1 >conftest.err
8033   rm -f conftest.er1
8034   cat conftest.err >&5
8035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); } && {
8037          test -z "$ac_c_werror_flag" ||
8038          test ! -s conftest.err
8039        } && test -s conftest$ac_exeext && {
8040          test "$cross_compiling" = yes ||
8041          $as_test_x conftest$ac_exeext
8042        }; then
8043
8044 lt_aix_libpath_sed='
8045     /Import File Strings/,/^$/ {
8046         /^0/ {
8047             s/^0  *\(.*\)$/\1/
8048             p
8049         }
8050     }'
8051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8052 # Check for a 64-bit object if we didn't find anything.
8053 if test -z "$aix_libpath"; then
8054   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8055 fi
8056 else
8057   $as_echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060
8061 fi
8062
8063 rm -rf conftest.dSYM
8064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8065       conftest$ac_exeext conftest.$ac_ext
8066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8067
8068          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8069           # Warning - without using the other run time loading flags,
8070           # -berok will link without error, but may produce a broken library.
8071           no_undefined_flag=' ${wl}-bernotok'
8072           allow_undefined_flag=' ${wl}-berok'
8073           # Exported symbols can be pulled into shared objects from archives
8074           whole_archive_flag_spec='$convenience'
8075           archive_cmds_need_lc=yes
8076           # This is similar to how AIX traditionally builds its shared libraries.
8077           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'
8078         fi
8079       fi
8080       ;;
8081
8082     amigaos*)
8083       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)'
8084       hardcode_libdir_flag_spec='-L$libdir'
8085       hardcode_minus_L=yes
8086       # see comment about different semantics on the GNU ld section
8087       ld_shlibs=no
8088       ;;
8089
8090     bsdi[45]*)
8091       export_dynamic_flag_spec=-rdynamic
8092       ;;
8093
8094     cygwin* | mingw* | pw32*)
8095       # When not using gcc, we currently assume that we are using
8096       # Microsoft Visual C++.
8097       # hardcode_libdir_flag_spec is actually meaningless, as there is
8098       # no search path for DLLs.
8099       hardcode_libdir_flag_spec=' '
8100       allow_undefined_flag=unsupported
8101       # Tell ltmain to make .lib files, not .a files.
8102       libext=lib
8103       # Tell ltmain to make .dll files, not .so files.
8104       shrext_cmds=".dll"
8105       # FIXME: Setting linknames here is a bad hack.
8106       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8107       # The linker will automatically build a .lib file if we build a DLL.
8108       old_archive_From_new_cmds='true'
8109       # FIXME: Should let the user specify the lib program.
8110       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8111       fix_srcfile_path='`cygpath -w "$srcfile"`'
8112       enable_shared_with_static_runtimes=yes
8113       ;;
8114
8115     darwin* | rhapsody*)
8116       case $host_os in
8117         rhapsody* | darwin1.[012])
8118          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8119          ;;
8120        *) # Darwin 1.3 on
8121          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8122            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8123          else
8124            case ${MACOSX_DEPLOYMENT_TARGET} in
8125              10.[012])
8126                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8127                ;;
8128              10.*)
8129                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8130                ;;
8131            esac
8132          fi
8133          ;;
8134       esac
8135       archive_cmds_need_lc=no
8136       hardcode_direct=no
8137       hardcode_automatic=yes
8138       hardcode_shlibpath_var=unsupported
8139       whole_archive_flag_spec=''
8140       link_all_deplibs=yes
8141     if test "$GCC" = yes ; then
8142         output_verbose_link_cmd='echo'
8143         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8144         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8145         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8146         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8147     else
8148       case $cc_basename in
8149         xlc*)
8150          output_verbose_link_cmd='echo'
8151          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8152          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8153           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8154          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8155           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}'
8156           ;;
8157        *)
8158          ld_shlibs=no
8159           ;;
8160       esac
8161     fi
8162       ;;
8163
8164     dgux*)
8165       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8166       hardcode_libdir_flag_spec='-L$libdir'
8167       hardcode_shlibpath_var=no
8168       ;;
8169
8170     freebsd1*)
8171       ld_shlibs=no
8172       ;;
8173
8174     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8175     # support.  Future versions do this automatically, but an explicit c++rt0.o
8176     # does not break anything, and helps significantly (at the cost of a little
8177     # extra space).
8178     freebsd2.2*)
8179       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8180       hardcode_libdir_flag_spec='-R$libdir'
8181       hardcode_direct=yes
8182       hardcode_shlibpath_var=no
8183       ;;
8184
8185     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8186     freebsd2*)
8187       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8188       hardcode_direct=yes
8189       hardcode_minus_L=yes
8190       hardcode_shlibpath_var=no
8191       ;;
8192
8193     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8194     freebsd* | dragonfly*)
8195       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8196       hardcode_libdir_flag_spec='-R$libdir'
8197       hardcode_direct=yes
8198       hardcode_shlibpath_var=no
8199       ;;
8200
8201     hpux9*)
8202       if test "$GCC" = yes; then
8203         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'
8204       else
8205         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'
8206       fi
8207       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8208       hardcode_libdir_separator=:
8209       hardcode_direct=yes
8210
8211       # hardcode_minus_L: Not really in the search PATH,
8212       # but as the default location of the library.
8213       hardcode_minus_L=yes
8214       export_dynamic_flag_spec='${wl}-E'
8215       ;;
8216
8217     hpux10*)
8218       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8219         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8220       else
8221         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8222       fi
8223       if test "$with_gnu_ld" = no; then
8224         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8225         hardcode_libdir_separator=:
8226
8227         hardcode_direct=yes
8228         export_dynamic_flag_spec='${wl}-E'
8229
8230         # hardcode_minus_L: Not really in the search PATH,
8231         # but as the default location of the library.
8232         hardcode_minus_L=yes
8233       fi
8234       ;;
8235
8236     hpux11*)
8237       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8238         case $host_cpu in
8239         hppa*64*)
8240           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8241           ;;
8242         ia64*)
8243           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8244           ;;
8245         *)
8246           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8247           ;;
8248         esac
8249       else
8250         case $host_cpu in
8251         hppa*64*)
8252           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8253           ;;
8254         ia64*)
8255           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8256           ;;
8257         *)
8258           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8259           ;;
8260         esac
8261       fi
8262       if test "$with_gnu_ld" = no; then
8263         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8264         hardcode_libdir_separator=:
8265
8266         case $host_cpu in
8267         hppa*64*|ia64*)
8268           hardcode_libdir_flag_spec_ld='+b $libdir'
8269           hardcode_direct=no
8270           hardcode_shlibpath_var=no
8271           ;;
8272         *)
8273           hardcode_direct=yes
8274           export_dynamic_flag_spec='${wl}-E'
8275
8276           # hardcode_minus_L: Not really in the search PATH,
8277           # but as the default location of the library.
8278           hardcode_minus_L=yes
8279           ;;
8280         esac
8281       fi
8282       ;;
8283
8284     irix5* | irix6* | nonstopux*)
8285       if test "$GCC" = yes; then
8286         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'
8287       else
8288         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'
8289         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8290       fi
8291       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292       hardcode_libdir_separator=:
8293       link_all_deplibs=yes
8294       ;;
8295
8296     netbsd*)
8297       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8298         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8299       else
8300         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8301       fi
8302       hardcode_libdir_flag_spec='-R$libdir'
8303       hardcode_direct=yes
8304       hardcode_shlibpath_var=no
8305       ;;
8306
8307     newsos6)
8308       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8309       hardcode_direct=yes
8310       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311       hardcode_libdir_separator=:
8312       hardcode_shlibpath_var=no
8313       ;;
8314
8315     openbsd*)
8316       if test -f /usr/libexec/ld.so; then
8317         hardcode_direct=yes
8318         hardcode_shlibpath_var=no
8319         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8320           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8321           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8322           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8323           export_dynamic_flag_spec='${wl}-E'
8324         else
8325           case $host_os in
8326            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8327              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8328              hardcode_libdir_flag_spec='-R$libdir'
8329              ;;
8330            *)
8331              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8332              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8333              ;;
8334           esac
8335         fi
8336       else
8337         ld_shlibs=no
8338       fi
8339       ;;
8340
8341     os2*)
8342       hardcode_libdir_flag_spec='-L$libdir'
8343       hardcode_minus_L=yes
8344       allow_undefined_flag=unsupported
8345       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'
8346       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8347       ;;
8348
8349     osf3*)
8350       if test "$GCC" = yes; then
8351         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8352         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'
8353       else
8354         allow_undefined_flag=' -expect_unresolved \*'
8355         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'
8356       fi
8357       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8358       hardcode_libdir_separator=:
8359       ;;
8360
8361     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8362       if test "$GCC" = yes; then
8363         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8364         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'
8365         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8366       else
8367         allow_undefined_flag=' -expect_unresolved \*'
8368         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'
8369         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8370         $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'
8371
8372         # Both c and cxx compiler support -rpath directly
8373         hardcode_libdir_flag_spec='-rpath $libdir'
8374       fi
8375       hardcode_libdir_separator=:
8376       ;;
8377
8378     solaris*)
8379       no_undefined_flag=' -z text'
8380       if test "$GCC" = yes; then
8381         wlarc='${wl}'
8382         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8383         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8384           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8385       else
8386         wlarc=''
8387         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8389         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8390       fi
8391       hardcode_libdir_flag_spec='-R$libdir'
8392       hardcode_shlibpath_var=no
8393       case $host_os in
8394       solaris2.[0-5] | solaris2.[0-5].*) ;;
8395       *)
8396         # The compiler driver will combine and reorder linker options,
8397         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8398         # but is careful enough not to reorder.
8399         # Supported since Solaris 2.6 (maybe 2.5.1?)
8400         if test "$GCC" = yes; then
8401           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8402         else
8403           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8404         fi
8405         ;;
8406       esac
8407       link_all_deplibs=yes
8408       ;;
8409
8410     sunos4*)
8411       if test "x$host_vendor" = xsequent; then
8412         # Use $CC to link under sequent, because it throws in some extra .o
8413         # files that make .init and .fini sections work.
8414         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8415       else
8416         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8417       fi
8418       hardcode_libdir_flag_spec='-L$libdir'
8419       hardcode_direct=yes
8420       hardcode_minus_L=yes
8421       hardcode_shlibpath_var=no
8422       ;;
8423
8424     sysv4)
8425       case $host_vendor in
8426         sni)
8427           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428           hardcode_direct=yes # is this really true???
8429         ;;
8430         siemens)
8431           ## LD is ld it makes a PLAMLIB
8432           ## CC just makes a GrossModule.
8433           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8434           reload_cmds='$CC -r -o $output$reload_objs'
8435           hardcode_direct=no
8436         ;;
8437         motorola)
8438           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8440         ;;
8441       esac
8442       runpath_var='LD_RUN_PATH'
8443       hardcode_shlibpath_var=no
8444       ;;
8445
8446     sysv4.3*)
8447       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448       hardcode_shlibpath_var=no
8449       export_dynamic_flag_spec='-Bexport'
8450       ;;
8451
8452     sysv4*MP*)
8453       if test -d /usr/nec; then
8454         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455         hardcode_shlibpath_var=no
8456         runpath_var=LD_RUN_PATH
8457         hardcode_runpath_var=yes
8458         ld_shlibs=yes
8459       fi
8460       ;;
8461
8462     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8463       no_undefined_flag='${wl}-z,text'
8464       archive_cmds_need_lc=no
8465       hardcode_shlibpath_var=no
8466       runpath_var='LD_RUN_PATH'
8467
8468       if test "$GCC" = yes; then
8469         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8470         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8471       else
8472         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8473         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8474       fi
8475       ;;
8476
8477     sysv5* | sco3.2v5* | sco5v6*)
8478       # Note: We can NOT use -z defs as we might desire, because we do not
8479       # link with -lc, and that would cause any symbols used from libc to
8480       # always be unresolved, which means just about no library would
8481       # ever link correctly.  If we're not using GNU ld we use -z text
8482       # though, which does catch some bad symbols but isn't as heavy-handed
8483       # as -z defs.
8484       no_undefined_flag='${wl}-z,text'
8485       allow_undefined_flag='${wl}-z,nodefs'
8486       archive_cmds_need_lc=no
8487       hardcode_shlibpath_var=no
8488       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8489       hardcode_libdir_separator=':'
8490       link_all_deplibs=yes
8491       export_dynamic_flag_spec='${wl}-Bexport'
8492       runpath_var='LD_RUN_PATH'
8493
8494       if test "$GCC" = yes; then
8495         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8497       else
8498         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8499         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8500       fi
8501       ;;
8502
8503     uts4*)
8504       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8505       hardcode_libdir_flag_spec='-L$libdir'
8506       hardcode_shlibpath_var=no
8507       ;;
8508
8509     *)
8510       ld_shlibs=no
8511       ;;
8512     esac
8513   fi
8514
8515 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8516 $as_echo "$ld_shlibs" >&6; }
8517 test "$ld_shlibs" = no && can_build_shared=no
8518
8519 #
8520 # Do we need to explicitly link libc?
8521 #
8522 case "x$archive_cmds_need_lc" in
8523 x|xyes)
8524   # Assume -lc should be added
8525   archive_cmds_need_lc=yes
8526
8527   if test "$enable_shared" = yes && test "$GCC" = yes; then
8528     case $archive_cmds in
8529     *'~'*)
8530       # FIXME: we may have to deal with multi-command sequences.
8531       ;;
8532     '$CC '*)
8533       # Test whether the compiler implicitly links with -lc since on some
8534       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8535       # to ld, don't add -lc before -lgcc.
8536       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8538       $rm conftest*
8539       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540
8541       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542   (eval $ac_compile) 2>&5
8543   ac_status=$?
8544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } 2>conftest.err; then
8546         soname=conftest
8547         lib=conftest
8548         libobjs=conftest.$ac_objext
8549         deplibs=
8550         wl=$lt_prog_compiler_wl
8551         pic_flag=$lt_prog_compiler_pic
8552         compiler_flags=-v
8553         linker_flags=-v
8554         verstring=
8555         output_objdir=.
8556         libname=conftest
8557         lt_save_allow_undefined_flag=$allow_undefined_flag
8558         allow_undefined_flag=
8559         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8560   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8561   ac_status=$?
8562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }
8564         then
8565           archive_cmds_need_lc=no
8566         else
8567           archive_cmds_need_lc=yes
8568         fi
8569         allow_undefined_flag=$lt_save_allow_undefined_flag
8570       else
8571         cat conftest.err 1>&5
8572       fi
8573       $rm conftest*
8574       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8575 $as_echo "$archive_cmds_need_lc" >&6; }
8576       ;;
8577     esac
8578   fi
8579   ;;
8580 esac
8581
8582 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8583 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8584 library_names_spec=
8585 libname_spec='lib$name'
8586 soname_spec=
8587 shrext_cmds=".so"
8588 postinstall_cmds=
8589 postuninstall_cmds=
8590 finish_cmds=
8591 finish_eval=
8592 shlibpath_var=
8593 shlibpath_overrides_runpath=unknown
8594 version_type=none
8595 dynamic_linker="$host_os ld.so"
8596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8597
8598 if test "$GCC" = yes; then
8599   case $host_os in
8600     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8601     *) lt_awk_arg="/^libraries:/" ;;
8602   esac
8603   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8604   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8605     # if the path contains ";" then we assume it to be the separator
8606     # otherwise default to the standard path separator (i.e. ":") - it is
8607     # assumed that no part of a normal pathname contains ";" but that should
8608     # okay in the real world where ";" in dirpaths is itself problematic.
8609     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8610   else
8611     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8612   fi
8613   # Ok, now we have the path, separated by spaces, we can step through it
8614   # and add multilib dir if necessary.
8615   lt_tmp_lt_search_path_spec=
8616   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8617   for lt_sys_path in $lt_search_path_spec; do
8618     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8619       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8620     else
8621       test -d "$lt_sys_path" && \
8622         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8623     fi
8624   done
8625   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8626 BEGIN {RS=" "; FS="/|\n";} {
8627   lt_foo="";
8628   lt_count=0;
8629   for (lt_i = NF; lt_i > 0; lt_i--) {
8630     if ($lt_i != "" && $lt_i != ".") {
8631       if ($lt_i == "..") {
8632         lt_count++;
8633       } else {
8634         if (lt_count == 0) {
8635           lt_foo="/" $lt_i lt_foo;
8636         } else {
8637           lt_count--;
8638         }
8639       }
8640     }
8641   }
8642   if (lt_foo != "") { lt_freq[lt_foo]++; }
8643   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8644 }'`
8645   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8646 else
8647   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8648 fi
8649 need_lib_prefix=unknown
8650 hardcode_into_libs=no
8651
8652 # when you set need_version to no, make sure it does not cause -set_version
8653 # flags to be left without arguments
8654 need_version=unknown
8655
8656 case $host_os in
8657 aix3*)
8658   version_type=linux
8659   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8660   shlibpath_var=LIBPATH
8661
8662   # AIX 3 has no versioning support, so we append a major version to the name.
8663   soname_spec='${libname}${release}${shared_ext}$major'
8664   ;;
8665
8666 aix[4-9]*)
8667   version_type=linux
8668   need_lib_prefix=no
8669   need_version=no
8670   hardcode_into_libs=yes
8671   if test "$host_cpu" = ia64; then
8672     # AIX 5 supports IA64
8673     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8674     shlibpath_var=LD_LIBRARY_PATH
8675   else
8676     # With GCC up to 2.95.x, collect2 would create an import file
8677     # for dependence libraries.  The import file would start with
8678     # the line `#! .'.  This would cause the generated library to
8679     # depend on `.', always an invalid library.  This was fixed in
8680     # development snapshots of GCC prior to 3.0.
8681     case $host_os in
8682       aix4 | aix4.[01] | aix4.[01].*)
8683       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8684            echo ' yes '
8685            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8686         :
8687       else
8688         can_build_shared=no
8689       fi
8690       ;;
8691     esac
8692     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8693     # soname into executable. Probably we can add versioning support to
8694     # collect2, so additional links can be useful in future.
8695     if test "$aix_use_runtimelinking" = yes; then
8696       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8697       # instead of lib<name>.a to let people know that these are not
8698       # typical AIX shared libraries.
8699       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700     else
8701       # We preserve .a as extension for shared libraries through AIX4.2
8702       # and later when we are not doing run time linking.
8703       library_names_spec='${libname}${release}.a $libname.a'
8704       soname_spec='${libname}${release}${shared_ext}$major'
8705     fi
8706     shlibpath_var=LIBPATH
8707   fi
8708   ;;
8709
8710 amigaos*)
8711   library_names_spec='$libname.ixlibrary $libname.a'
8712   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8713   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'
8714   ;;
8715
8716 beos*)
8717   library_names_spec='${libname}${shared_ext}'
8718   dynamic_linker="$host_os ld.so"
8719   shlibpath_var=LIBRARY_PATH
8720   ;;
8721
8722 bsdi[45]*)
8723   version_type=linux
8724   need_version=no
8725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726   soname_spec='${libname}${release}${shared_ext}$major'
8727   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8728   shlibpath_var=LD_LIBRARY_PATH
8729   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8730   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8731   # the default ld.so.conf also contains /usr/contrib/lib and
8732   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8733   # libtool to hard-code these into programs
8734   ;;
8735
8736 cygwin* | mingw* | pw32*)
8737   version_type=windows
8738   shrext_cmds=".dll"
8739   need_version=no
8740   need_lib_prefix=no
8741
8742   case $GCC,$host_os in
8743   yes,cygwin* | yes,mingw* | yes,pw32*)
8744     library_names_spec='$libname.dll.a'
8745     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8746     postinstall_cmds='base_file=`basename \${file}`~
8747       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8748       dldir=$destdir/`dirname \$dlpath`~
8749       test -d \$dldir || mkdir -p \$dldir~
8750       $install_prog $dir/$dlname \$dldir/$dlname~
8751       chmod a+x \$dldir/$dlname'
8752     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8753       dlpath=$dir/\$dldll~
8754        $rm \$dlpath'
8755     shlibpath_overrides_runpath=yes
8756
8757     case $host_os in
8758     cygwin*)
8759       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8760       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8761       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8762       ;;
8763     mingw*)
8764       # MinGW DLLs use traditional 'lib' prefix
8765       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8766       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8767       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8768         # It is most probably a Windows format PATH printed by
8769         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8770         # path with ; separators, and with drive letters. We can handle the
8771         # drive letters (cygwin fileutils understands them), so leave them,
8772         # especially as we might pass files found there to a mingw objdump,
8773         # which wouldn't understand a cygwinified path. Ahh.
8774         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8775       else
8776         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8777       fi
8778       ;;
8779     pw32*)
8780       # pw32 DLLs use 'pw' prefix rather than 'lib'
8781       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8782       ;;
8783     esac
8784     ;;
8785
8786   *)
8787     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8788     ;;
8789   esac
8790   dynamic_linker='Win32 ld.exe'
8791   # FIXME: first we should search . and the directory the executable is in
8792   shlibpath_var=PATH
8793   ;;
8794
8795 darwin* | rhapsody*)
8796   dynamic_linker="$host_os dyld"
8797   version_type=darwin
8798   need_lib_prefix=no
8799   need_version=no
8800   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8801   soname_spec='${libname}${release}${major}$shared_ext'
8802   shlibpath_overrides_runpath=yes
8803   shlibpath_var=DYLD_LIBRARY_PATH
8804   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8805
8806   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8807   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8808   ;;
8809
8810 dgux*)
8811   version_type=linux
8812   need_lib_prefix=no
8813   need_version=no
8814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8815   soname_spec='${libname}${release}${shared_ext}$major'
8816   shlibpath_var=LD_LIBRARY_PATH
8817   ;;
8818
8819 freebsd1*)
8820   dynamic_linker=no
8821   ;;
8822
8823 freebsd* | dragonfly*)
8824   # DragonFly does not have aout.  When/if they implement a new
8825   # versioning mechanism, adjust this.
8826   if test -x /usr/bin/objformat; then
8827     objformat=`/usr/bin/objformat`
8828   else
8829     case $host_os in
8830     freebsd[123]*) objformat=aout ;;
8831     *) objformat=elf ;;
8832     esac
8833   fi
8834   version_type=freebsd-$objformat
8835   case $version_type in
8836     freebsd-elf*)
8837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8838       need_version=no
8839       need_lib_prefix=no
8840       ;;
8841     freebsd-*)
8842       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8843       need_version=yes
8844       ;;
8845   esac
8846   shlibpath_var=LD_LIBRARY_PATH
8847   case $host_os in
8848   freebsd2*)
8849     shlibpath_overrides_runpath=yes
8850     ;;
8851   freebsd3.[01]* | freebsdelf3.[01]*)
8852     shlibpath_overrides_runpath=yes
8853     hardcode_into_libs=yes
8854     ;;
8855   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8856   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8857     shlibpath_overrides_runpath=no
8858     hardcode_into_libs=yes
8859     ;;
8860   *) # from 4.6 on, and DragonFly
8861     shlibpath_overrides_runpath=yes
8862     hardcode_into_libs=yes
8863     ;;
8864   esac
8865   ;;
8866
8867 gnu*)
8868   version_type=linux
8869   need_lib_prefix=no
8870   need_version=no
8871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8872   soname_spec='${libname}${release}${shared_ext}$major'
8873   shlibpath_var=LD_LIBRARY_PATH
8874   hardcode_into_libs=yes
8875   ;;
8876
8877 hpux9* | hpux10* | hpux11*)
8878   # Give a soname corresponding to the major version so that dld.sl refuses to
8879   # link against other versions.
8880   version_type=sunos
8881   need_lib_prefix=no
8882   need_version=no
8883   case $host_cpu in
8884   ia64*)
8885     shrext_cmds='.so'
8886     hardcode_into_libs=yes
8887     dynamic_linker="$host_os dld.so"
8888     shlibpath_var=LD_LIBRARY_PATH
8889     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891     soname_spec='${libname}${release}${shared_ext}$major'
8892     if test "X$HPUX_IA64_MODE" = X32; then
8893       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8894     else
8895       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8896     fi
8897     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8898     ;;
8899    hppa*64*)
8900      shrext_cmds='.sl'
8901      hardcode_into_libs=yes
8902      dynamic_linker="$host_os dld.sl"
8903      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8904      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8905      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906      soname_spec='${libname}${release}${shared_ext}$major'
8907      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8908      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8909      ;;
8910    *)
8911     shrext_cmds='.sl'
8912     dynamic_linker="$host_os dld.sl"
8913     shlibpath_var=SHLIB_PATH
8914     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916     soname_spec='${libname}${release}${shared_ext}$major'
8917     ;;
8918   esac
8919   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8920   postinstall_cmds='chmod 555 $lib'
8921   ;;
8922
8923 interix[3-9]*)
8924   version_type=linux
8925   need_lib_prefix=no
8926   need_version=no
8927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8928   soname_spec='${libname}${release}${shared_ext}$major'
8929   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8930   shlibpath_var=LD_LIBRARY_PATH
8931   shlibpath_overrides_runpath=no
8932   hardcode_into_libs=yes
8933   ;;
8934
8935 irix5* | irix6* | nonstopux*)
8936   case $host_os in
8937     nonstopux*) version_type=nonstopux ;;
8938     *)
8939         if test "$lt_cv_prog_gnu_ld" = yes; then
8940                 version_type=linux
8941         else
8942                 version_type=irix
8943         fi ;;
8944   esac
8945   need_lib_prefix=no
8946   need_version=no
8947   soname_spec='${libname}${release}${shared_ext}$major'
8948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8949   case $host_os in
8950   irix5* | nonstopux*)
8951     libsuff= shlibsuff=
8952     ;;
8953   *)
8954     case $LD in # libtool.m4 will add one of these switches to LD
8955     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8956       libsuff= shlibsuff= libmagic=32-bit;;
8957     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8958       libsuff=32 shlibsuff=N32 libmagic=N32;;
8959     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8960       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8961     *) libsuff= shlibsuff= libmagic=never-match;;
8962     esac
8963     ;;
8964   esac
8965   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8966   shlibpath_overrides_runpath=no
8967   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8968   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8969   hardcode_into_libs=yes
8970   ;;
8971
8972 # No shared lib support for Linux oldld, aout, or coff.
8973 linux*oldld* | linux*aout* | linux*coff*)
8974   dynamic_linker=no
8975   ;;
8976
8977 # This must be Linux ELF.
8978 linux* | k*bsd*-gnu)
8979   version_type=linux
8980   need_lib_prefix=no
8981   need_version=no
8982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8985   shlibpath_var=LD_LIBRARY_PATH
8986   shlibpath_overrides_runpath=no
8987   # This implies no fast_install, which is unacceptable.
8988   # Some rework will be needed to allow for fast_install
8989   # before this can be enabled.
8990   hardcode_into_libs=yes
8991   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8992   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8993
8994   # Append ld.so.conf contents to the search path
8995   if test -f /etc/ld.so.conf; then
8996     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8997     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8998   fi
8999
9000   # We used to test for /lib/ld.so.1 and disable shared libraries on
9001   # powerpc, because MkLinux only supported shared libraries with the
9002   # GNU dynamic linker.  Since this was broken with cross compilers,
9003   # most powerpc-linux boxes support dynamic linking these days and
9004   # people can always --disable-shared, the test was removed, and we
9005   # assume the GNU/Linux dynamic linker is in use.
9006   dynamic_linker='GNU/Linux ld.so'
9007   ;;
9008
9009 netbsd*)
9010   version_type=sunos
9011   need_lib_prefix=no
9012   need_version=no
9013   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016     dynamic_linker='NetBSD (a.out) ld.so'
9017   else
9018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019     soname_spec='${libname}${release}${shared_ext}$major'
9020     dynamic_linker='NetBSD ld.elf_so'
9021   fi
9022   shlibpath_var=LD_LIBRARY_PATH
9023   shlibpath_overrides_runpath=yes
9024   hardcode_into_libs=yes
9025   ;;
9026
9027 newsos6)
9028   version_type=linux
9029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   shlibpath_overrides_runpath=yes
9032   ;;
9033
9034 nto-qnx*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   shlibpath_var=LD_LIBRARY_PATH
9041   shlibpath_overrides_runpath=yes
9042   ;;
9043
9044 openbsd*)
9045   version_type=sunos
9046   sys_lib_dlsearch_path_spec="/usr/lib"
9047   need_lib_prefix=no
9048   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9049   case $host_os in
9050     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051     *)                         need_version=no  ;;
9052   esac
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9057     case $host_os in
9058       openbsd2.[89] | openbsd2.[89].*)
9059         shlibpath_overrides_runpath=no
9060         ;;
9061       *)
9062         shlibpath_overrides_runpath=yes
9063         ;;
9064       esac
9065   else
9066     shlibpath_overrides_runpath=yes
9067   fi
9068   ;;
9069
9070 os2*)
9071   libname_spec='$name'
9072   shrext_cmds=".dll"
9073   need_lib_prefix=no
9074   library_names_spec='$libname${shared_ext} $libname.a'
9075   dynamic_linker='OS/2 ld.exe'
9076   shlibpath_var=LIBPATH
9077   ;;
9078
9079 osf3* | osf4* | osf5*)
9080   version_type=osf
9081   need_lib_prefix=no
9082   need_version=no
9083   soname_spec='${libname}${release}${shared_ext}$major'
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085   shlibpath_var=LD_LIBRARY_PATH
9086   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9088   ;;
9089
9090 rdos*)
9091   dynamic_linker=no
9092   ;;
9093
9094 solaris*)
9095   version_type=linux
9096   need_lib_prefix=no
9097   need_version=no
9098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099   soname_spec='${libname}${release}${shared_ext}$major'
9100   shlibpath_var=LD_LIBRARY_PATH
9101   shlibpath_overrides_runpath=yes
9102   hardcode_into_libs=yes
9103   # ldd complains unless libraries are executable
9104   postinstall_cmds='chmod +x $lib'
9105   ;;
9106
9107 sunos4*)
9108   version_type=sunos
9109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9110   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9111   shlibpath_var=LD_LIBRARY_PATH
9112   shlibpath_overrides_runpath=yes
9113   if test "$with_gnu_ld" = yes; then
9114     need_lib_prefix=no
9115   fi
9116   need_version=yes
9117   ;;
9118
9119 sysv4 | sysv4.3*)
9120   version_type=linux
9121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122   soname_spec='${libname}${release}${shared_ext}$major'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   case $host_vendor in
9125     sni)
9126       shlibpath_overrides_runpath=no
9127       need_lib_prefix=no
9128       export_dynamic_flag_spec='${wl}-Blargedynsym'
9129       runpath_var=LD_RUN_PATH
9130       ;;
9131     siemens)
9132       need_lib_prefix=no
9133       ;;
9134     motorola)
9135       need_lib_prefix=no
9136       need_version=no
9137       shlibpath_overrides_runpath=no
9138       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9139       ;;
9140   esac
9141   ;;
9142
9143 sysv4*MP*)
9144   if test -d /usr/nec ;then
9145     version_type=linux
9146     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9147     soname_spec='$libname${shared_ext}.$major'
9148     shlibpath_var=LD_LIBRARY_PATH
9149   fi
9150   ;;
9151
9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9153   version_type=freebsd-elf
9154   need_lib_prefix=no
9155   need_version=no
9156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9157   soname_spec='${libname}${release}${shared_ext}$major'
9158   shlibpath_var=LD_LIBRARY_PATH
9159   hardcode_into_libs=yes
9160   if test "$with_gnu_ld" = yes; then
9161     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9162     shlibpath_overrides_runpath=no
9163   else
9164     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9165     shlibpath_overrides_runpath=yes
9166     case $host_os in
9167       sco3.2v5*)
9168         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9169         ;;
9170     esac
9171   fi
9172   sys_lib_dlsearch_path_spec='/usr/lib'
9173   ;;
9174
9175 uts4*)
9176   version_type=linux
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   ;;
9181
9182 *)
9183   dynamic_linker=no
9184   ;;
9185 esac
9186 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9187 $as_echo "$dynamic_linker" >&6; }
9188 test "$dynamic_linker" = no && can_build_shared=no
9189
9190 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9191   $as_echo_n "(cached) " >&6
9192 else
9193   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9194 fi
9195
9196 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9198   $as_echo_n "(cached) " >&6
9199 else
9200   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9201 fi
9202
9203 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9204
9205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9206 if test "$GCC" = yes; then
9207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9208 fi
9209
9210 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9211 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9212 hardcode_action=
9213 if test -n "$hardcode_libdir_flag_spec" || \
9214    test -n "$runpath_var" || \
9215    test "X$hardcode_automatic" = "Xyes" ; then
9216
9217   # We can hardcode non-existant directories.
9218   if test "$hardcode_direct" != no &&
9219      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9220      # have to relink, otherwise we might link with an installed library
9221      # when we should be linking with a yet-to-be-installed one
9222      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9223      test "$hardcode_minus_L" != no; then
9224     # Linking always hardcodes the temporary library directory.
9225     hardcode_action=relink
9226   else
9227     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9228     hardcode_action=immediate
9229   fi
9230 else
9231   # We cannot hardcode anything, or else we can only hardcode existing
9232   # directories.
9233   hardcode_action=unsupported
9234 fi
9235 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9236 $as_echo "$hardcode_action" >&6; }
9237
9238 if test "$hardcode_action" = relink; then
9239   # Fast installation is not supported
9240   enable_fast_install=no
9241 elif test "$shlibpath_overrides_runpath" = yes ||
9242      test "$enable_shared" = no; then
9243   # Fast installation is not necessary
9244   enable_fast_install=needless
9245 fi
9246
9247 striplib=
9248 old_striplib=
9249 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9250 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9251 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9252   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9253   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9254   { $as_echo "$as_me:$LINENO: result: yes" >&5
9255 $as_echo "yes" >&6; }
9256 else
9257 # FIXME - insert some real tests, host_os isn't really good enough
9258   case $host_os in
9259    darwin*)
9260        if test -n "$STRIP" ; then
9261          striplib="$STRIP -x"
9262          old_striplib="$STRIP -S"
9263          { $as_echo "$as_me:$LINENO: result: yes" >&5
9264 $as_echo "yes" >&6; }
9265        else
9266   { $as_echo "$as_me:$LINENO: result: no" >&5
9267 $as_echo "no" >&6; }
9268 fi
9269        ;;
9270    *)
9271   { $as_echo "$as_me:$LINENO: result: no" >&5
9272 $as_echo "no" >&6; }
9273     ;;
9274   esac
9275 fi
9276
9277 if test "x$enable_dlopen" != xyes; then
9278   enable_dlopen=unknown
9279   enable_dlopen_self=unknown
9280   enable_dlopen_self_static=unknown
9281 else
9282   lt_cv_dlopen=no
9283   lt_cv_dlopen_libs=
9284
9285   case $host_os in
9286   beos*)
9287     lt_cv_dlopen="load_add_on"
9288     lt_cv_dlopen_libs=
9289     lt_cv_dlopen_self=yes
9290     ;;
9291
9292   mingw* | pw32*)
9293     lt_cv_dlopen="LoadLibrary"
9294     lt_cv_dlopen_libs=
9295    ;;
9296
9297   cygwin*)
9298     lt_cv_dlopen="dlopen"
9299     lt_cv_dlopen_libs=
9300    ;;
9301
9302   darwin*)
9303   # if libdl is installed we need to link against it
9304     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9307   $as_echo_n "(cached) " >&6
9308 else
9309   ac_check_lib_save_LIBS=$LIBS
9310 LIBS="-ldl  $LIBS"
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317
9318 /* Override any GCC internal prototype to avoid an error.
9319    Use char because int might match the return type of a GCC
9320    builtin and then its argument prototype would still apply.  */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 char dlopen ();
9325 int
9326 main ()
9327 {
9328 return dlopen ();
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 rm -f conftest.$ac_objext conftest$ac_exeext
9334 if { (ac_try="$ac_link"
9335 case "(($ac_try" in
9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337   *) ac_try_echo=$ac_try;;
9338 esac
9339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9340 $as_echo "$ac_try_echo") >&5
9341   (eval "$ac_link") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && {
9348          test -z "$ac_c_werror_flag" ||
9349          test ! -s conftest.err
9350        } && test -s conftest$ac_exeext && {
9351          test "$cross_compiling" = yes ||
9352          $as_test_x conftest$ac_exeext
9353        }; then
9354   ac_cv_lib_dl_dlopen=yes
9355 else
9356   $as_echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359         ac_cv_lib_dl_dlopen=no
9360 fi
9361
9362 rm -rf conftest.dSYM
9363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9364       conftest$ac_exeext conftest.$ac_ext
9365 LIBS=$ac_check_lib_save_LIBS
9366 fi
9367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9368 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9369 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9370   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9371 else
9372
9373     lt_cv_dlopen="dyld"
9374     lt_cv_dlopen_libs=
9375     lt_cv_dlopen_self=yes
9376
9377 fi
9378
9379    ;;
9380
9381   *)
9382     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9383 $as_echo_n "checking for shl_load... " >&6; }
9384 if test "${ac_cv_func_shl_load+set}" = set; then
9385   $as_echo_n "(cached) " >&6
9386 else
9387   cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9395 #define shl_load innocuous_shl_load
9396
9397 /* System header to define __stub macros and hopefully few prototypes,
9398     which can conflict with char shl_load (); below.
9399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9400     <limits.h> exists even on freestanding compilers.  */
9401
9402 #ifdef __STDC__
9403 # include <limits.h>
9404 #else
9405 # include <assert.h>
9406 #endif
9407
9408 #undef shl_load
9409
9410 /* Override any GCC internal prototype to avoid an error.
9411    Use char because int might match the return type of a GCC
9412    builtin and then its argument prototype would still apply.  */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 char shl_load ();
9417 /* The GNU C library defines this for functions which it implements
9418     to always fail with ENOSYS.  Some functions are actually named
9419     something starting with __ and the normal name is an alias.  */
9420 #if defined __stub_shl_load || defined __stub___shl_load
9421 choke me
9422 #endif
9423
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9439 $as_echo "$ac_try_echo") >&5
9440   (eval "$ac_link") 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } && {
9447          test -z "$ac_c_werror_flag" ||
9448          test ! -s conftest.err
9449        } && test -s conftest$ac_exeext && {
9450          test "$cross_compiling" = yes ||
9451          $as_test_x conftest$ac_exeext
9452        }; then
9453   ac_cv_func_shl_load=yes
9454 else
9455   $as_echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458         ac_cv_func_shl_load=no
9459 fi
9460
9461 rm -rf conftest.dSYM
9462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9463       conftest$ac_exeext conftest.$ac_ext
9464 fi
9465 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9466 $as_echo "$ac_cv_func_shl_load" >&6; }
9467 if test "x$ac_cv_func_shl_load" = x""yes; then
9468   lt_cv_dlopen="shl_load"
9469 else
9470   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9471 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9472 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9473   $as_echo_n "(cached) " >&6
9474 else
9475   ac_check_lib_save_LIBS=$LIBS
9476 LIBS="-ldld  $LIBS"
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h.  */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h.  */
9483
9484 /* Override any GCC internal prototype to avoid an error.
9485    Use char because int might match the return type of a GCC
9486    builtin and then its argument prototype would still apply.  */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char shl_load ();
9491 int
9492 main ()
9493 {
9494 return shl_load ();
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (ac_try="$ac_link"
9501 case "(($ac_try" in
9502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503   *) ac_try_echo=$ac_try;;
9504 esac
9505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9506 $as_echo "$ac_try_echo") >&5
9507   (eval "$ac_link") 2>conftest.er1
9508   ac_status=$?
9509   grep -v '^ *+' conftest.er1 >conftest.err
9510   rm -f conftest.er1
9511   cat conftest.err >&5
9512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); } && {
9514          test -z "$ac_c_werror_flag" ||
9515          test ! -s conftest.err
9516        } && test -s conftest$ac_exeext && {
9517          test "$cross_compiling" = yes ||
9518          $as_test_x conftest$ac_exeext
9519        }; then
9520   ac_cv_lib_dld_shl_load=yes
9521 else
9522   $as_echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525         ac_cv_lib_dld_shl_load=no
9526 fi
9527
9528 rm -rf conftest.dSYM
9529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530       conftest$ac_exeext conftest.$ac_ext
9531 LIBS=$ac_check_lib_save_LIBS
9532 fi
9533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9534 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9535 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9536   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9537 else
9538   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9539 $as_echo_n "checking for dlopen... " >&6; }
9540 if test "${ac_cv_func_dlopen+set}" = set; then
9541   $as_echo_n "(cached) " >&6
9542 else
9543   cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9551 #define dlopen innocuous_dlopen
9552
9553 /* System header to define __stub macros and hopefully few prototypes,
9554     which can conflict with char dlopen (); below.
9555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9556     <limits.h> exists even on freestanding compilers.  */
9557
9558 #ifdef __STDC__
9559 # include <limits.h>
9560 #else
9561 # include <assert.h>
9562 #endif
9563
9564 #undef dlopen
9565
9566 /* Override any GCC internal prototype to avoid an error.
9567    Use char because int might match the return type of a GCC
9568    builtin and then its argument prototype would still apply.  */
9569 #ifdef __cplusplus
9570 extern "C"
9571 #endif
9572 char dlopen ();
9573 /* The GNU C library defines this for functions which it implements
9574     to always fail with ENOSYS.  Some functions are actually named
9575     something starting with __ and the normal name is an alias.  */
9576 #if defined __stub_dlopen || defined __stub___dlopen
9577 choke me
9578 #endif
9579
9580 int
9581 main ()
9582 {
9583 return dlopen ();
9584   ;
9585   return 0;
9586 }
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (ac_try="$ac_link"
9590 case "(($ac_try" in
9591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592   *) ac_try_echo=$ac_try;;
9593 esac
9594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9595 $as_echo "$ac_try_echo") >&5
9596   (eval "$ac_link") 2>conftest.er1
9597   ac_status=$?
9598   grep -v '^ *+' conftest.er1 >conftest.err
9599   rm -f conftest.er1
9600   cat conftest.err >&5
9601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   (exit $ac_status); } && {
9603          test -z "$ac_c_werror_flag" ||
9604          test ! -s conftest.err
9605        } && test -s conftest$ac_exeext && {
9606          test "$cross_compiling" = yes ||
9607          $as_test_x conftest$ac_exeext
9608        }; then
9609   ac_cv_func_dlopen=yes
9610 else
9611   $as_echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614         ac_cv_func_dlopen=no
9615 fi
9616
9617 rm -rf conftest.dSYM
9618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9619       conftest$ac_exeext conftest.$ac_ext
9620 fi
9621 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9622 $as_echo "$ac_cv_func_dlopen" >&6; }
9623 if test "x$ac_cv_func_dlopen" = x""yes; then
9624   lt_cv_dlopen="dlopen"
9625 else
9626   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629   $as_echo_n "(cached) " >&6
9630 else
9631   ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-ldl  $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641    Use char because int might match the return type of a GCC
9642    builtin and then its argument prototype would still apply.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char dlopen ();
9647 int
9648 main ()
9649 {
9650 return dlopen ();
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9657 case "(($ac_try" in
9658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659   *) ac_try_echo=$ac_try;;
9660 esac
9661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9662 $as_echo "$ac_try_echo") >&5
9663   (eval "$ac_link") 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } && {
9670          test -z "$ac_c_werror_flag" ||
9671          test ! -s conftest.err
9672        } && test -s conftest$ac_exeext && {
9673          test "$cross_compiling" = yes ||
9674          $as_test_x conftest$ac_exeext
9675        }; then
9676   ac_cv_lib_dl_dlopen=yes
9677 else
9678   $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_cv_lib_dl_dlopen=no
9682 fi
9683
9684 rm -rf conftest.dSYM
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686       conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9688 fi
9689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9691 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9692   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9693 else
9694   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9695 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9696 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9697   $as_echo_n "(cached) " >&6
9698 else
9699   ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-lsvld  $LIBS"
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707
9708 /* Override any GCC internal prototype to avoid an error.
9709    Use char because int might match the return type of a GCC
9710    builtin and then its argument prototype would still apply.  */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char dlopen ();
9715 int
9716 main ()
9717 {
9718 return dlopen ();
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9725 case "(($ac_try" in
9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727   *) ac_try_echo=$ac_try;;
9728 esac
9729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731   (eval "$ac_link") 2>conftest.er1
9732   ac_status=$?
9733   grep -v '^ *+' conftest.er1 >conftest.err
9734   rm -f conftest.er1
9735   cat conftest.err >&5
9736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); } && {
9738          test -z "$ac_c_werror_flag" ||
9739          test ! -s conftest.err
9740        } && test -s conftest$ac_exeext && {
9741          test "$cross_compiling" = yes ||
9742          $as_test_x conftest$ac_exeext
9743        }; then
9744   ac_cv_lib_svld_dlopen=yes
9745 else
9746   $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9748
9749         ac_cv_lib_svld_dlopen=no
9750 fi
9751
9752 rm -rf conftest.dSYM
9753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9754       conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9756 fi
9757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9758 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9759 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9760   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9761 else
9762   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9763 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9764 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9765   $as_echo_n "(cached) " >&6
9766 else
9767   ac_check_lib_save_LIBS=$LIBS
9768 LIBS="-ldld  $LIBS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h.  */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h.  */
9775
9776 /* Override any GCC internal prototype to avoid an error.
9777    Use char because int might match the return type of a GCC
9778    builtin and then its argument prototype would still apply.  */
9779 #ifdef __cplusplus
9780 extern "C"
9781 #endif
9782 char dld_link ();
9783 int
9784 main ()
9785 {
9786 return dld_link ();
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9793 case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9798 $as_echo "$ac_try_echo") >&5
9799   (eval "$ac_link") 2>conftest.er1
9800   ac_status=$?
9801   grep -v '^ *+' conftest.er1 >conftest.err
9802   rm -f conftest.er1
9803   cat conftest.err >&5
9804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } && {
9806          test -z "$ac_c_werror_flag" ||
9807          test ! -s conftest.err
9808        } && test -s conftest$ac_exeext && {
9809          test "$cross_compiling" = yes ||
9810          $as_test_x conftest$ac_exeext
9811        }; then
9812   ac_cv_lib_dld_dld_link=yes
9813 else
9814   $as_echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         ac_cv_lib_dld_dld_link=no
9818 fi
9819
9820 rm -rf conftest.dSYM
9821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9822       conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
9825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9826 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9827 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9828   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9829 fi
9830
9831
9832 fi
9833
9834
9835 fi
9836
9837
9838 fi
9839
9840
9841 fi
9842
9843
9844 fi
9845
9846     ;;
9847   esac
9848
9849   if test "x$lt_cv_dlopen" != xno; then
9850     enable_dlopen=yes
9851   else
9852     enable_dlopen=no
9853   fi
9854
9855   case $lt_cv_dlopen in
9856   dlopen)
9857     save_CPPFLAGS="$CPPFLAGS"
9858     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9859
9860     save_LDFLAGS="$LDFLAGS"
9861     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9862
9863     save_LIBS="$LIBS"
9864     LIBS="$lt_cv_dlopen_libs $LIBS"
9865
9866     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9867 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9868 if test "${lt_cv_dlopen_self+set}" = set; then
9869   $as_echo_n "(cached) " >&6
9870 else
9871           if test "$cross_compiling" = yes; then :
9872   lt_cv_dlopen_self=cross
9873 else
9874   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9875   lt_status=$lt_dlunknown
9876   cat > conftest.$ac_ext <<EOF
9877 #line 9877 "configure"
9878 #include "confdefs.h"
9879
9880 #if HAVE_DLFCN_H
9881 #include <dlfcn.h>
9882 #endif
9883
9884 #include <stdio.h>
9885
9886 #ifdef RTLD_GLOBAL
9887 #  define LT_DLGLOBAL           RTLD_GLOBAL
9888 #else
9889 #  ifdef DL_GLOBAL
9890 #    define LT_DLGLOBAL         DL_GLOBAL
9891 #  else
9892 #    define LT_DLGLOBAL         0
9893 #  endif
9894 #endif
9895
9896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9897    find out it does not work in some platform. */
9898 #ifndef LT_DLLAZY_OR_NOW
9899 #  ifdef RTLD_LAZY
9900 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9901 #  else
9902 #    ifdef DL_LAZY
9903 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9904 #    else
9905 #      ifdef RTLD_NOW
9906 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9907 #      else
9908 #        ifdef DL_NOW
9909 #          define LT_DLLAZY_OR_NOW      DL_NOW
9910 #        else
9911 #          define LT_DLLAZY_OR_NOW      0
9912 #        endif
9913 #      endif
9914 #    endif
9915 #  endif
9916 #endif
9917
9918 #ifdef __cplusplus
9919 extern "C" void exit (int);
9920 #endif
9921
9922 void fnord() { int i=42;}
9923 int main ()
9924 {
9925   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9926   int status = $lt_dlunknown;
9927
9928   if (self)
9929     {
9930       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9931       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9932       /* dlclose (self); */
9933     }
9934   else
9935     puts (dlerror ());
9936
9937     exit (status);
9938 }
9939 EOF
9940   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941   (eval $ac_link) 2>&5
9942   ac_status=$?
9943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9945     (./conftest; exit; ) >&5 2>/dev/null
9946     lt_status=$?
9947     case x$lt_status in
9948       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9949       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9950       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9951     esac
9952   else :
9953     # compilation failed
9954     lt_cv_dlopen_self=no
9955   fi
9956 fi
9957 rm -fr conftest*
9958
9959
9960 fi
9961 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9962 $as_echo "$lt_cv_dlopen_self" >&6; }
9963
9964     if test "x$lt_cv_dlopen_self" = xyes; then
9965       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9966       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9967 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9968 if test "${lt_cv_dlopen_self_static+set}" = set; then
9969   $as_echo_n "(cached) " >&6
9970 else
9971           if test "$cross_compiling" = yes; then :
9972   lt_cv_dlopen_self_static=cross
9973 else
9974   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9975   lt_status=$lt_dlunknown
9976   cat > conftest.$ac_ext <<EOF
9977 #line 9977 "configure"
9978 #include "confdefs.h"
9979
9980 #if HAVE_DLFCN_H
9981 #include <dlfcn.h>
9982 #endif
9983
9984 #include <stdio.h>
9985
9986 #ifdef RTLD_GLOBAL
9987 #  define LT_DLGLOBAL           RTLD_GLOBAL
9988 #else
9989 #  ifdef DL_GLOBAL
9990 #    define LT_DLGLOBAL         DL_GLOBAL
9991 #  else
9992 #    define LT_DLGLOBAL         0
9993 #  endif
9994 #endif
9995
9996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9997    find out it does not work in some platform. */
9998 #ifndef LT_DLLAZY_OR_NOW
9999 #  ifdef RTLD_LAZY
10000 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10001 #  else
10002 #    ifdef DL_LAZY
10003 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10004 #    else
10005 #      ifdef RTLD_NOW
10006 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10007 #      else
10008 #        ifdef DL_NOW
10009 #          define LT_DLLAZY_OR_NOW      DL_NOW
10010 #        else
10011 #          define LT_DLLAZY_OR_NOW      0
10012 #        endif
10013 #      endif
10014 #    endif
10015 #  endif
10016 #endif
10017
10018 #ifdef __cplusplus
10019 extern "C" void exit (int);
10020 #endif
10021
10022 void fnord() { int i=42;}
10023 int main ()
10024 {
10025   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10026   int status = $lt_dlunknown;
10027
10028   if (self)
10029     {
10030       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10031       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10032       /* dlclose (self); */
10033     }
10034   else
10035     puts (dlerror ());
10036
10037     exit (status);
10038 }
10039 EOF
10040   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041   (eval $ac_link) 2>&5
10042   ac_status=$?
10043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10045     (./conftest; exit; ) >&5 2>/dev/null
10046     lt_status=$?
10047     case x$lt_status in
10048       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10049       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10050       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10051     esac
10052   else :
10053     # compilation failed
10054     lt_cv_dlopen_self_static=no
10055   fi
10056 fi
10057 rm -fr conftest*
10058
10059
10060 fi
10061 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10062 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10063     fi
10064
10065     CPPFLAGS="$save_CPPFLAGS"
10066     LDFLAGS="$save_LDFLAGS"
10067     LIBS="$save_LIBS"
10068     ;;
10069   esac
10070
10071   case $lt_cv_dlopen_self in
10072   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10073   *) enable_dlopen_self=unknown ;;
10074   esac
10075
10076   case $lt_cv_dlopen_self_static in
10077   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10078   *) enable_dlopen_self_static=unknown ;;
10079   esac
10080 fi
10081
10082
10083 # Report which library types will actually be built
10084 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10085 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10086 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10087 $as_echo "$can_build_shared" >&6; }
10088
10089 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10090 $as_echo_n "checking whether to build shared libraries... " >&6; }
10091 test "$can_build_shared" = "no" && enable_shared=no
10092
10093 # On AIX, shared libraries and static libraries use the same namespace, and
10094 # are all built from PIC.
10095 case $host_os in
10096 aix3*)
10097   test "$enable_shared" = yes && enable_static=no
10098   if test -n "$RANLIB"; then
10099     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10100     postinstall_cmds='$RANLIB $lib'
10101   fi
10102   ;;
10103
10104 aix[4-9]*)
10105   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10106     test "$enable_shared" = yes && enable_static=no
10107   fi
10108     ;;
10109 esac
10110 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10111 $as_echo "$enable_shared" >&6; }
10112
10113 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10114 $as_echo_n "checking whether to build static libraries... " >&6; }
10115 # Make sure either enable_shared or enable_static is yes.
10116 test "$enable_shared" = yes || enable_static=yes
10117 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10118 $as_echo "$enable_static" >&6; }
10119
10120 # The else clause should only fire when bootstrapping the
10121 # libtool distribution, otherwise you forgot to ship ltmain.sh
10122 # with your package, and you will get complaints that there are
10123 # no rules to generate ltmain.sh.
10124 if test -f "$ltmain"; then
10125   # See if we are running on zsh, and set the options which allow our commands through
10126   # without removal of \ escapes.
10127   if test -n "${ZSH_VERSION+set}" ; then
10128     setopt NO_GLOB_SUBST
10129   fi
10130   # Now quote all the things that may contain metacharacters while being
10131   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10132   # variables and quote the copies for generation of the libtool script.
10133   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10134     SED SHELL STRIP \
10135     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10136     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10137     deplibs_check_method reload_flag reload_cmds need_locks \
10138     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10139     lt_cv_sys_global_symbol_to_c_name_address \
10140     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10141     old_postinstall_cmds old_postuninstall_cmds \
10142     compiler \
10143     CC \
10144     LD \
10145     lt_prog_compiler_wl \
10146     lt_prog_compiler_pic \
10147     lt_prog_compiler_static \
10148     lt_prog_compiler_no_builtin_flag \
10149     export_dynamic_flag_spec \
10150     thread_safe_flag_spec \
10151     whole_archive_flag_spec \
10152     enable_shared_with_static_runtimes \
10153     old_archive_cmds \
10154     old_archive_from_new_cmds \
10155     predep_objects \
10156     postdep_objects \
10157     predeps \
10158     postdeps \
10159     compiler_lib_search_path \
10160     compiler_lib_search_dirs \
10161     archive_cmds \
10162     archive_expsym_cmds \
10163     postinstall_cmds \
10164     postuninstall_cmds \
10165     old_archive_from_expsyms_cmds \
10166     allow_undefined_flag \
10167     no_undefined_flag \
10168     export_symbols_cmds \
10169     hardcode_libdir_flag_spec \
10170     hardcode_libdir_flag_spec_ld \
10171     hardcode_libdir_separator \
10172     hardcode_automatic \
10173     module_cmds \
10174     module_expsym_cmds \
10175     lt_cv_prog_compiler_c_o \
10176     fix_srcfile_path \
10177     exclude_expsyms \
10178     include_expsyms; do
10179
10180     case $var in
10181     old_archive_cmds | \
10182     old_archive_from_new_cmds | \
10183     archive_cmds | \
10184     archive_expsym_cmds | \
10185     module_cmds | \
10186     module_expsym_cmds | \
10187     old_archive_from_expsyms_cmds | \
10188     export_symbols_cmds | \
10189     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10190     postinstall_cmds | postuninstall_cmds | \
10191     old_postinstall_cmds | old_postuninstall_cmds | \
10192     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10193       # Double-quote double-evaled strings.
10194       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10195       ;;
10196     *)
10197       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10198       ;;
10199     esac
10200   done
10201
10202   case $lt_echo in
10203   *'\$0 --fallback-echo"')
10204     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10205     ;;
10206   esac
10207
10208 cfgfile="${ofile}T"
10209   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10210   $rm -f "$cfgfile"
10211   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10212 $as_echo "$as_me: creating $ofile" >&6;}
10213
10214   cat <<__EOF__ >> "$cfgfile"
10215 #! $SHELL
10216
10217 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10218 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10219 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10220 #
10221 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10222 # Free Software Foundation, Inc.
10223 #
10224 # This file is part of GNU Libtool:
10225 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10226 #
10227 # This program is free software; you can redistribute it and/or modify
10228 # it under the terms of the GNU General Public License as published by
10229 # the Free Software Foundation; either version 2 of the License, or
10230 # (at your option) any later version.
10231 #
10232 # This program is distributed in the hope that it will be useful, but
10233 # WITHOUT ANY WARRANTY; without even the implied warranty of
10234 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10235 # General Public License for more details.
10236 #
10237 # You should have received a copy of the GNU General Public License
10238 # along with this program; if not, write to the Free Software
10239 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10240 #
10241 # As a special exception to the GNU General Public License, if you
10242 # distribute this file as part of a program that contains a
10243 # configuration script generated by Autoconf, you may include it under
10244 # the same distribution terms that you use for the rest of that program.
10245
10246 # A sed program that does not truncate output.
10247 SED=$lt_SED
10248
10249 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10250 Xsed="$SED -e 1s/^X//"
10251
10252 # The HP-UX ksh and POSIX shell print the target directory to stdout
10253 # if CDPATH is set.
10254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10255
10256 # The names of the tagged configurations supported by this script.
10257 available_tags=
10258
10259 # ### BEGIN LIBTOOL CONFIG
10260
10261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10262
10263 # Shell to use when invoking shell scripts.
10264 SHELL=$lt_SHELL
10265
10266 # Whether or not to build shared libraries.
10267 build_libtool_libs=$enable_shared
10268
10269 # Whether or not to build static libraries.
10270 build_old_libs=$enable_static
10271
10272 # Whether or not to add -lc for building shared libraries.
10273 build_libtool_need_lc=$archive_cmds_need_lc
10274
10275 # Whether or not to disallow shared libs when runtime libs are static
10276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10277
10278 # Whether or not to optimize for fast installation.
10279 fast_install=$enable_fast_install
10280
10281 # The host system.
10282 host_alias=$host_alias
10283 host=$host
10284 host_os=$host_os
10285
10286 # The build system.
10287 build_alias=$build_alias
10288 build=$build
10289 build_os=$build_os
10290
10291 # An echo program that does not interpret backslashes.
10292 echo=$lt_echo
10293
10294 # The archiver.
10295 AR=$lt_AR
10296 AR_FLAGS=$lt_AR_FLAGS
10297
10298 # A C compiler.
10299 LTCC=$lt_LTCC
10300
10301 # LTCC compiler flags.
10302 LTCFLAGS=$lt_LTCFLAGS
10303
10304 # A language-specific compiler.
10305 CC=$lt_compiler
10306
10307 # Is the compiler the GNU C compiler?
10308 with_gcc=$GCC
10309
10310 # An ERE matcher.
10311 EGREP=$lt_EGREP
10312
10313 # The linker used to build libraries.
10314 LD=$lt_LD
10315
10316 # Whether we need hard or soft links.
10317 LN_S=$lt_LN_S
10318
10319 # A BSD-compatible nm program.
10320 NM=$lt_NM
10321
10322 # A symbol stripping program
10323 STRIP=$lt_STRIP
10324
10325 # Used to examine libraries when file_magic_cmd begins "file"
10326 MAGIC_CMD=$MAGIC_CMD
10327
10328 # Used on cygwin: DLL creation program.
10329 DLLTOOL="$DLLTOOL"
10330
10331 # Used on cygwin: object dumper.
10332 OBJDUMP="$OBJDUMP"
10333
10334 # Used on cygwin: assembler.
10335 AS="$AS"
10336
10337 # The name of the directory that contains temporary libtool files.
10338 objdir=$objdir
10339
10340 # How to create reloadable object files.
10341 reload_flag=$lt_reload_flag
10342 reload_cmds=$lt_reload_cmds
10343
10344 # How to pass a linker flag through the compiler.
10345 wl=$lt_lt_prog_compiler_wl
10346
10347 # Object file suffix (normally "o").
10348 objext="$ac_objext"
10349
10350 # Old archive suffix (normally "a").
10351 libext="$libext"
10352
10353 # Shared library suffix (normally ".so").
10354 shrext_cmds='$shrext_cmds'
10355
10356 # Executable file suffix (normally "").
10357 exeext="$exeext"
10358
10359 # Additional compiler flags for building library objects.
10360 pic_flag=$lt_lt_prog_compiler_pic
10361 pic_mode=$pic_mode
10362
10363 # What is the maximum length of a command?
10364 max_cmd_len=$lt_cv_sys_max_cmd_len
10365
10366 # Does compiler simultaneously support -c and -o options?
10367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10368
10369 # Must we lock files when doing compilation?
10370 need_locks=$lt_need_locks
10371
10372 # Do we need the lib prefix for modules?
10373 need_lib_prefix=$need_lib_prefix
10374
10375 # Do we need a version for libraries?
10376 need_version=$need_version
10377
10378 # Whether dlopen is supported.
10379 dlopen_support=$enable_dlopen
10380
10381 # Whether dlopen of programs is supported.
10382 dlopen_self=$enable_dlopen_self
10383
10384 # Whether dlopen of statically linked programs is supported.
10385 dlopen_self_static=$enable_dlopen_self_static
10386
10387 # Compiler flag to prevent dynamic linking.
10388 link_static_flag=$lt_lt_prog_compiler_static
10389
10390 # Compiler flag to turn off builtin functions.
10391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10392
10393 # Compiler flag to allow reflexive dlopens.
10394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10395
10396 # Compiler flag to generate shared objects directly from archives.
10397 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10398
10399 # Compiler flag to generate thread-safe objects.
10400 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10401
10402 # Library versioning type.
10403 version_type=$version_type
10404
10405 # Format of library name prefix.
10406 libname_spec=$lt_libname_spec
10407
10408 # List of archive names.  First name is the real one, the rest are links.
10409 # The last name is the one that the linker finds with -lNAME.
10410 library_names_spec=$lt_library_names_spec
10411
10412 # The coded name of the library, if different from the real name.
10413 soname_spec=$lt_soname_spec
10414
10415 # Commands used to build and install an old-style archive.
10416 RANLIB=$lt_RANLIB
10417 old_archive_cmds=$lt_old_archive_cmds
10418 old_postinstall_cmds=$lt_old_postinstall_cmds
10419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10420
10421 # Create an old-style archive from a shared archive.
10422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10423
10424 # Create a temporary old-style archive to link instead of a shared archive.
10425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10426
10427 # Commands used to build and install a shared archive.
10428 archive_cmds=$lt_archive_cmds
10429 archive_expsym_cmds=$lt_archive_expsym_cmds
10430 postinstall_cmds=$lt_postinstall_cmds
10431 postuninstall_cmds=$lt_postuninstall_cmds
10432
10433 # Commands used to build a loadable module (assumed same as above if empty)
10434 module_cmds=$lt_module_cmds
10435 module_expsym_cmds=$lt_module_expsym_cmds
10436
10437 # Commands to strip libraries.
10438 old_striplib=$lt_old_striplib
10439 striplib=$lt_striplib
10440
10441 # Dependencies to place before the objects being linked to create a
10442 # shared library.
10443 predep_objects=$lt_predep_objects
10444
10445 # Dependencies to place after the objects being linked to create a
10446 # shared library.
10447 postdep_objects=$lt_postdep_objects
10448
10449 # Dependencies to place before the objects being linked to create a
10450 # shared library.
10451 predeps=$lt_predeps
10452
10453 # Dependencies to place after the objects being linked to create a
10454 # shared library.
10455 postdeps=$lt_postdeps
10456
10457 # The directories searched by this compiler when creating a shared
10458 # library
10459 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10460
10461 # The library search path used internally by the compiler when linking
10462 # a shared library.
10463 compiler_lib_search_path=$lt_compiler_lib_search_path
10464
10465 # Method to check whether dependent libraries are shared objects.
10466 deplibs_check_method=$lt_deplibs_check_method
10467
10468 # Command to use when deplibs_check_method == file_magic.
10469 file_magic_cmd=$lt_file_magic_cmd
10470
10471 # Flag that allows shared libraries with undefined symbols to be built.
10472 allow_undefined_flag=$lt_allow_undefined_flag
10473
10474 # Flag that forces no undefined symbols.
10475 no_undefined_flag=$lt_no_undefined_flag
10476
10477 # Commands used to finish a libtool library installation in a directory.
10478 finish_cmds=$lt_finish_cmds
10479
10480 # Same as above, but a single script fragment to be evaled but not shown.
10481 finish_eval=$lt_finish_eval
10482
10483 # Take the output of nm and produce a listing of raw symbols and C names.
10484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10485
10486 # Transform the output of nm in a proper C declaration
10487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10488
10489 # Transform the output of nm in a C name address pair
10490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10491
10492 # This is the shared library runtime path variable.
10493 runpath_var=$runpath_var
10494
10495 # This is the shared library path variable.
10496 shlibpath_var=$shlibpath_var
10497
10498 # Is shlibpath searched before the hard-coded library search path?
10499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10500
10501 # How to hardcode a shared library path into an executable.
10502 hardcode_action=$hardcode_action
10503
10504 # Whether we should hardcode library paths into libraries.
10505 hardcode_into_libs=$hardcode_into_libs
10506
10507 # Flag to hardcode \$libdir into a binary during linking.
10508 # This must work even if \$libdir does not exist.
10509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10510
10511 # If ld is used when linking, flag to hardcode \$libdir into
10512 # a binary during linking. This must work even if \$libdir does
10513 # not exist.
10514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10515
10516 # Whether we need a single -rpath flag with a separated argument.
10517 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10518
10519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10520 # resulting binary.
10521 hardcode_direct=$hardcode_direct
10522
10523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10524 # resulting binary.
10525 hardcode_minus_L=$hardcode_minus_L
10526
10527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10528 # the resulting binary.
10529 hardcode_shlibpath_var=$hardcode_shlibpath_var
10530
10531 # Set to yes if building a shared library automatically hardcodes DIR into the library
10532 # and all subsequent libraries and executables linked against it.
10533 hardcode_automatic=$hardcode_automatic
10534
10535 # Variables whose values should be saved in libtool wrapper scripts and
10536 # restored at relink time.
10537 variables_saved_for_relink="$variables_saved_for_relink"
10538
10539 # Whether libtool must link a program against all its dependency libraries.
10540 link_all_deplibs=$link_all_deplibs
10541
10542 # Compile-time system search path for libraries
10543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10544
10545 # Run-time system search path for libraries
10546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10547
10548 # Fix the shell variable \$srcfile for the compiler.
10549 fix_srcfile_path=$lt_fix_srcfile_path
10550
10551 # Set to yes if exported symbols are required.
10552 always_export_symbols=$always_export_symbols
10553
10554 # The commands to list exported symbols.
10555 export_symbols_cmds=$lt_export_symbols_cmds
10556
10557 # The commands to extract the exported symbol list from a shared archive.
10558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10559
10560 # Symbols that should not be listed in the preloaded symbols.
10561 exclude_expsyms=$lt_exclude_expsyms
10562
10563 # Symbols that must always be exported.
10564 include_expsyms=$lt_include_expsyms
10565
10566 # ### END LIBTOOL CONFIG
10567
10568 __EOF__
10569
10570
10571   case $host_os in
10572   aix3*)
10573     cat <<\EOF >> "$cfgfile"
10574
10575 # AIX sometimes has problems with the GCC collect2 program.  For some
10576 # reason, if we set the COLLECT_NAMES environment variable, the problems
10577 # vanish in a puff of smoke.
10578 if test "X${COLLECT_NAMES+set}" != Xset; then
10579   COLLECT_NAMES=
10580   export COLLECT_NAMES
10581 fi
10582 EOF
10583     ;;
10584   esac
10585
10586   # We use sed instead of cat because bash on DJGPP gets confused if
10587   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10588   # text mode, it properly converts lines to CR/LF.  This bash problem
10589   # is reportedly fixed, but why not run on old versions too?
10590   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10591
10592   mv -f "$cfgfile" "$ofile" || \
10593     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10594   chmod +x "$ofile"
10595
10596 else
10597   # If there is no Makefile yet, we rely on a make rule to execute
10598   # `config.status --recheck' to rerun these tests and create the
10599   # libtool script then.
10600   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10601   if test -f "$ltmain_in"; then
10602     test -f Makefile && make "$ltmain"
10603   fi
10604 fi
10605
10606
10607 ac_ext=c
10608 ac_cpp='$CPP $CPPFLAGS'
10609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10612
10613 CC="$lt_save_CC"
10614
10615
10616 # Check whether --with-tags was given.
10617 if test "${with_tags+set}" = set; then
10618   withval=$with_tags; tagnames="$withval"
10619 fi
10620
10621
10622 if test -f "$ltmain" && test -n "$tagnames"; then
10623   if test ! -f "${ofile}"; then
10624     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10625 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10626   fi
10627
10628   if test -z "$LTCC"; then
10629     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10630     if test -z "$LTCC"; then
10631       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10632 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10633     else
10634       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10635 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10636     fi
10637   fi
10638   if test -z "$LTCFLAGS"; then
10639     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10640   fi
10641
10642   # Extract list of available tagged configurations in $ofile.
10643   # Note that this assumes the entire list is on one line.
10644   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10645
10646   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10647   for tagname in $tagnames; do
10648     IFS="$lt_save_ifs"
10649     # Check whether tagname contains only valid characters
10650     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10651     "") ;;
10652     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10653 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10654    { (exit 1); exit 1; }; }
10655         ;;
10656     esac
10657
10658     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10659     then
10660       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10661 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10662    { (exit 1); exit 1; }; }
10663     fi
10664
10665     # Update the list of available tags.
10666     if test -n "$tagname"; then
10667       echo appending configuration tag \"$tagname\" to $ofile
10668
10669       case $tagname in
10670       CXX)
10671         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10672             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10673             (test "X$CXX" != "Xg++"))) ; then
10674           ac_ext=cpp
10675 ac_cpp='$CXXCPP $CPPFLAGS'
10676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10679
10680
10681
10682
10683 archive_cmds_need_lc_CXX=no
10684 allow_undefined_flag_CXX=
10685 always_export_symbols_CXX=no
10686 archive_expsym_cmds_CXX=
10687 export_dynamic_flag_spec_CXX=
10688 hardcode_direct_CXX=no
10689 hardcode_libdir_flag_spec_CXX=
10690 hardcode_libdir_flag_spec_ld_CXX=
10691 hardcode_libdir_separator_CXX=
10692 hardcode_minus_L_CXX=no
10693 hardcode_shlibpath_var_CXX=unsupported
10694 hardcode_automatic_CXX=no
10695 module_cmds_CXX=
10696 module_expsym_cmds_CXX=
10697 link_all_deplibs_CXX=unknown
10698 old_archive_cmds_CXX=$old_archive_cmds
10699 no_undefined_flag_CXX=
10700 whole_archive_flag_spec_CXX=
10701 enable_shared_with_static_runtimes_CXX=no
10702
10703 # Dependencies to place before and after the object being linked:
10704 predep_objects_CXX=
10705 postdep_objects_CXX=
10706 predeps_CXX=
10707 postdeps_CXX=
10708 compiler_lib_search_path_CXX=
10709 compiler_lib_search_dirs_CXX=
10710
10711 # Source file extension for C++ test sources.
10712 ac_ext=cpp
10713
10714 # Object file extension for compiled C++ test sources.
10715 objext=o
10716 objext_CXX=$objext
10717
10718 # Code to be used in simple compile tests
10719 lt_simple_compile_test_code="int some_variable = 0;"
10720
10721 # Code to be used in simple link tests
10722 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10723
10724 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10725
10726 # If no C compiler was specified, use CC.
10727 LTCC=${LTCC-"$CC"}
10728
10729 # If no C compiler flags were specified, use CFLAGS.
10730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10731
10732 # Allow CC to be a program name with arguments.
10733 compiler=$CC
10734
10735
10736 # save warnings/boilerplate of simple test code
10737 ac_outfile=conftest.$ac_objext
10738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10740 _lt_compiler_boilerplate=`cat conftest.err`
10741 $rm conftest*
10742
10743 ac_outfile=conftest.$ac_objext
10744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10746 _lt_linker_boilerplate=`cat conftest.err`
10747 $rm -r conftest*
10748
10749
10750 # Allow CC to be a program name with arguments.
10751 lt_save_CC=$CC
10752 lt_save_LD=$LD
10753 lt_save_GCC=$GCC
10754 GCC=$GXX
10755 lt_save_with_gnu_ld=$with_gnu_ld
10756 lt_save_path_LD=$lt_cv_path_LD
10757 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10758   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10759 else
10760   $as_unset lt_cv_prog_gnu_ld
10761 fi
10762 if test -n "${lt_cv_path_LDCXX+set}"; then
10763   lt_cv_path_LD=$lt_cv_path_LDCXX
10764 else
10765   $as_unset lt_cv_path_LD
10766 fi
10767 test -z "${LDCXX+set}" || LD=$LDCXX
10768 CC=${CXX-"c++"}
10769 compiler=$CC
10770 compiler_CXX=$CC
10771 for cc_temp in $compiler""; do
10772   case $cc_temp in
10773     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10774     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10775     \-*) ;;
10776     *) break;;
10777   esac
10778 done
10779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10780
10781
10782 # We don't want -fno-exception wen compiling C++ code, so set the
10783 # no_builtin_flag separately
10784 if test "$GXX" = yes; then
10785   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10786 else
10787   lt_prog_compiler_no_builtin_flag_CXX=
10788 fi
10789
10790 if test "$GXX" = yes; then
10791   # Set up default GNU C++ configuration
10792
10793
10794 # Check whether --with-gnu-ld was given.
10795 if test "${with_gnu_ld+set}" = set; then
10796   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10797 else
10798   with_gnu_ld=no
10799 fi
10800
10801 ac_prog=ld
10802 if test "$GCC" = yes; then
10803   # Check if gcc -print-prog-name=ld gives a path.
10804   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10805 $as_echo_n "checking for ld used by $CC... " >&6; }
10806   case $host in
10807   *-*-mingw*)
10808     # gcc leaves a trailing carriage return which upsets mingw
10809     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10810   *)
10811     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10812   esac
10813   case $ac_prog in
10814     # Accept absolute paths.
10815     [\\/]* | ?:[\\/]*)
10816       re_direlt='/[^/][^/]*/\.\./'
10817       # Canonicalize the pathname of ld
10818       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10819       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10820         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10821       done
10822       test -z "$LD" && LD="$ac_prog"
10823       ;;
10824   "")
10825     # If it fails, then pretend we aren't using GCC.
10826     ac_prog=ld
10827     ;;
10828   *)
10829     # If it is relative, then search for the first ld in PATH.
10830     with_gnu_ld=unknown
10831     ;;
10832   esac
10833 elif test "$with_gnu_ld" = yes; then
10834   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10835 $as_echo_n "checking for GNU ld... " >&6; }
10836 else
10837   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10838 $as_echo_n "checking for non-GNU ld... " >&6; }
10839 fi
10840 if test "${lt_cv_path_LD+set}" = set; then
10841   $as_echo_n "(cached) " >&6
10842 else
10843   if test -z "$LD"; then
10844   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10845   for ac_dir in $PATH; do
10846     IFS="$lt_save_ifs"
10847     test -z "$ac_dir" && ac_dir=.
10848     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10849       lt_cv_path_LD="$ac_dir/$ac_prog"
10850       # Check to see if the program is GNU ld.  I'd rather use --version,
10851       # but apparently some variants of GNU ld only accept -v.
10852       # Break only if it was the GNU/non-GNU ld that we prefer.
10853       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10854       *GNU* | *'with BFD'*)
10855         test "$with_gnu_ld" != no && break
10856         ;;
10857       *)
10858         test "$with_gnu_ld" != yes && break
10859         ;;
10860       esac
10861     fi
10862   done
10863   IFS="$lt_save_ifs"
10864 else
10865   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10866 fi
10867 fi
10868
10869 LD="$lt_cv_path_LD"
10870 if test -n "$LD"; then
10871   { $as_echo "$as_me:$LINENO: result: $LD" >&5
10872 $as_echo "$LD" >&6; }
10873 else
10874   { $as_echo "$as_me:$LINENO: result: no" >&5
10875 $as_echo "no" >&6; }
10876 fi
10877 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10878 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10879    { (exit 1); exit 1; }; }
10880 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10881 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10882 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10883   $as_echo_n "(cached) " >&6
10884 else
10885   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10886 case `$LD -v 2>&1 </dev/null` in
10887 *GNU* | *'with BFD'*)
10888   lt_cv_prog_gnu_ld=yes
10889   ;;
10890 *)
10891   lt_cv_prog_gnu_ld=no
10892   ;;
10893 esac
10894 fi
10895 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10896 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10897 with_gnu_ld=$lt_cv_prog_gnu_ld
10898
10899
10900
10901   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10902   # archiving commands below assume that GNU ld is being used.
10903   if test "$with_gnu_ld" = yes; then
10904     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10905     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'
10906
10907     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10908     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10909
10910     # If archive_cmds runs LD, not CC, wlarc should be empty
10911     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10912     #     investigate it a little bit more. (MM)
10913     wlarc='${wl}'
10914
10915     # ancient GNU ld didn't support --whole-archive et. al.
10916     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10917         grep 'no-whole-archive' > /dev/null; then
10918       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10919     else
10920       whole_archive_flag_spec_CXX=
10921     fi
10922   else
10923     with_gnu_ld=no
10924     wlarc=
10925
10926     # A generic and very simple default shared library creation
10927     # command for GNU C++ for the case where it uses the native
10928     # linker, instead of GNU ld.  If possible, this setting should
10929     # overridden to take advantage of the native linker features on
10930     # the platform it is being used on.
10931     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10932   fi
10933
10934   # Commands to make compiler produce verbose output that lists
10935   # what "hidden" libraries, object files and flags are used when
10936   # linking a shared library.
10937   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10938
10939 else
10940   GXX=no
10941   with_gnu_ld=no
10942   wlarc=
10943 fi
10944
10945 # PORTME: fill in a description of your system's C++ link characteristics
10946 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10947 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10948 ld_shlibs_CXX=yes
10949 case $host_os in
10950   aix3*)
10951     # FIXME: insert proper C++ library support
10952     ld_shlibs_CXX=no
10953     ;;
10954   aix[4-9]*)
10955     if test "$host_cpu" = ia64; then
10956       # On IA64, the linker does run time linking by default, so we don't
10957       # have to do anything special.
10958       aix_use_runtimelinking=no
10959       exp_sym_flag='-Bexport'
10960       no_entry_flag=""
10961     else
10962       aix_use_runtimelinking=no
10963
10964       # Test if we are trying to use run time linking or normal
10965       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10966       # need to do runtime linking.
10967       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10968         for ld_flag in $LDFLAGS; do
10969           case $ld_flag in
10970           *-brtl*)
10971             aix_use_runtimelinking=yes
10972             break
10973             ;;
10974           esac
10975         done
10976         ;;
10977       esac
10978
10979       exp_sym_flag='-bexport'
10980       no_entry_flag='-bnoentry'
10981     fi
10982
10983     # When large executables or shared objects are built, AIX ld can
10984     # have problems creating the table of contents.  If linking a library
10985     # or program results in "error TOC overflow" add -mminimal-toc to
10986     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10987     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10988
10989     archive_cmds_CXX=''
10990     hardcode_direct_CXX=yes
10991     hardcode_libdir_separator_CXX=':'
10992     link_all_deplibs_CXX=yes
10993
10994     if test "$GXX" = yes; then
10995       case $host_os in aix4.[012]|aix4.[012].*)
10996       # We only want to do this on AIX 4.2 and lower, the check
10997       # below for broken collect2 doesn't work under 4.3+
10998         collect2name=`${CC} -print-prog-name=collect2`
10999         if test -f "$collect2name" && \
11000            strings "$collect2name" | grep resolve_lib_name >/dev/null
11001         then
11002           # We have reworked collect2
11003           :
11004         else
11005           # We have old collect2
11006           hardcode_direct_CXX=unsupported
11007           # It fails to find uninstalled libraries when the uninstalled
11008           # path is not listed in the libpath.  Setting hardcode_minus_L
11009           # to unsupported forces relinking
11010           hardcode_minus_L_CXX=yes
11011           hardcode_libdir_flag_spec_CXX='-L$libdir'
11012           hardcode_libdir_separator_CXX=
11013         fi
11014         ;;
11015       esac
11016       shared_flag='-shared'
11017       if test "$aix_use_runtimelinking" = yes; then
11018         shared_flag="$shared_flag "'${wl}-G'
11019       fi
11020     else
11021       # not using gcc
11022       if test "$host_cpu" = ia64; then
11023         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11024         # chokes on -Wl,-G. The following line is correct:
11025         shared_flag='-G'
11026       else
11027         if test "$aix_use_runtimelinking" = yes; then
11028           shared_flag='${wl}-G'
11029         else
11030           shared_flag='${wl}-bM:SRE'
11031         fi
11032       fi
11033     fi
11034
11035     # It seems that -bexpall does not export symbols beginning with
11036     # underscore (_), so it is better to generate a list of symbols to export.
11037     always_export_symbols_CXX=yes
11038     if test "$aix_use_runtimelinking" = yes; then
11039       # Warning - without using the other runtime loading flags (-brtl),
11040       # -berok will link without error, but may produce a broken library.
11041       allow_undefined_flag_CXX='-berok'
11042       # Determine the default libpath from the value encoded in an empty executable.
11043       cat >conftest.$ac_ext <<_ACEOF
11044 /* confdefs.h.  */
11045 _ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h.  */
11049
11050 int
11051 main ()
11052 {
11053
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066   (eval "$ac_link") 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } && {
11073          test -z "$ac_cxx_werror_flag" ||
11074          test ! -s conftest.err
11075        } && test -s conftest$ac_exeext && {
11076          test "$cross_compiling" = yes ||
11077          $as_test_x conftest$ac_exeext
11078        }; then
11079
11080 lt_aix_libpath_sed='
11081     /Import File Strings/,/^$/ {
11082         /^0/ {
11083             s/^0  *\(.*\)$/\1/
11084             p
11085         }
11086     }'
11087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11088 # Check for a 64-bit object if we didn't find anything.
11089 if test -z "$aix_libpath"; then
11090   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11091 fi
11092 else
11093   $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096
11097 fi
11098
11099 rm -rf conftest.dSYM
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101       conftest$ac_exeext conftest.$ac_ext
11102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11103
11104       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11105
11106       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"
11107      else
11108       if test "$host_cpu" = ia64; then
11109         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11110         allow_undefined_flag_CXX="-z nodefs"
11111         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"
11112       else
11113         # Determine the default libpath from the value encoded in an empty executable.
11114         cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h.  */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h.  */
11120
11121 int
11122 main ()
11123 {
11124
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11136 $as_echo "$ac_try_echo") >&5
11137   (eval "$ac_link") 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } && {
11144          test -z "$ac_cxx_werror_flag" ||
11145          test ! -s conftest.err
11146        } && test -s conftest$ac_exeext && {
11147          test "$cross_compiling" = yes ||
11148          $as_test_x conftest$ac_exeext
11149        }; then
11150
11151 lt_aix_libpath_sed='
11152     /Import File Strings/,/^$/ {
11153         /^0/ {
11154             s/^0  *\(.*\)$/\1/
11155             p
11156         }
11157     }'
11158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11159 # Check for a 64-bit object if we didn't find anything.
11160 if test -z "$aix_libpath"; then
11161   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11162 fi
11163 else
11164   $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167
11168 fi
11169
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172       conftest$ac_exeext conftest.$ac_ext
11173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11174
11175         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11176         # Warning - without using the other run time loading flags,
11177         # -berok will link without error, but may produce a broken library.
11178         no_undefined_flag_CXX=' ${wl}-bernotok'
11179         allow_undefined_flag_CXX=' ${wl}-berok'
11180         # Exported symbols can be pulled into shared objects from archives
11181         whole_archive_flag_spec_CXX='$convenience'
11182         archive_cmds_need_lc_CXX=yes
11183         # This is similar to how AIX traditionally builds its shared libraries.
11184         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'
11185       fi
11186     fi
11187     ;;
11188
11189   beos*)
11190     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11191       allow_undefined_flag_CXX=unsupported
11192       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11193       # support --undefined.  This deserves some investigation.  FIXME
11194       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11195     else
11196       ld_shlibs_CXX=no
11197     fi
11198     ;;
11199
11200   chorus*)
11201     case $cc_basename in
11202       *)
11203         # FIXME: insert proper C++ library support
11204         ld_shlibs_CXX=no
11205         ;;
11206     esac
11207     ;;
11208
11209   cygwin* | mingw* | pw32*)
11210     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11211     # as there is no search path for DLLs.
11212     hardcode_libdir_flag_spec_CXX='-L$libdir'
11213     allow_undefined_flag_CXX=unsupported
11214     always_export_symbols_CXX=no
11215     enable_shared_with_static_runtimes_CXX=yes
11216
11217     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11218       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'
11219       # If the export-symbols file already is a .def file (1st line
11220       # is EXPORTS), use it as is; otherwise, prepend...
11221       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11222         cp $export_symbols $output_objdir/$soname.def;
11223       else
11224         echo EXPORTS > $output_objdir/$soname.def;
11225         cat $export_symbols >> $output_objdir/$soname.def;
11226       fi~
11227       $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'
11228     else
11229       ld_shlibs_CXX=no
11230     fi
11231   ;;
11232       darwin* | rhapsody*)
11233       archive_cmds_need_lc_CXX=no
11234       hardcode_direct_CXX=no
11235       hardcode_automatic_CXX=yes
11236       hardcode_shlibpath_var_CXX=unsupported
11237       whole_archive_flag_spec_CXX=''
11238       link_all_deplibs_CXX=yes
11239       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11240       if test "$GXX" = yes ; then
11241       output_verbose_link_cmd='echo'
11242       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11243       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11244       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11245       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11246       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11247         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11248         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11249       fi
11250       else
11251       case $cc_basename in
11252         xlc*)
11253          output_verbose_link_cmd='echo'
11254           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11255           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11256           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11257           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11258           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}'
11259           ;;
11260        *)
11261          ld_shlibs_CXX=no
11262           ;;
11263       esac
11264       fi
11265         ;;
11266
11267   dgux*)
11268     case $cc_basename in
11269       ec++*)
11270         # FIXME: insert proper C++ library support
11271         ld_shlibs_CXX=no
11272         ;;
11273       ghcx*)
11274         # Green Hills C++ Compiler
11275         # FIXME: insert proper C++ library support
11276         ld_shlibs_CXX=no
11277         ;;
11278       *)
11279         # FIXME: insert proper C++ library support
11280         ld_shlibs_CXX=no
11281         ;;
11282     esac
11283     ;;
11284   freebsd[12]*)
11285     # C++ shared libraries reported to be fairly broken before switch to ELF
11286     ld_shlibs_CXX=no
11287     ;;
11288   freebsd-elf*)
11289     archive_cmds_need_lc_CXX=no
11290     ;;
11291   freebsd* | dragonfly*)
11292     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11293     # conventions
11294     ld_shlibs_CXX=yes
11295     ;;
11296   gnu*)
11297     ;;
11298   hpux9*)
11299     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11300     hardcode_libdir_separator_CXX=:
11301     export_dynamic_flag_spec_CXX='${wl}-E'
11302     hardcode_direct_CXX=yes
11303     hardcode_minus_L_CXX=yes # Not in the search PATH,
11304                                 # but as the default
11305                                 # location of the library.
11306
11307     case $cc_basename in
11308     CC*)
11309       # FIXME: insert proper C++ library support
11310       ld_shlibs_CXX=no
11311       ;;
11312     aCC*)
11313       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'
11314       # Commands to make compiler produce verbose output that lists
11315       # what "hidden" libraries, object files and flags are used when
11316       # linking a shared library.
11317       #
11318       # There doesn't appear to be a way to prevent this compiler from
11319       # explicitly linking system object files so we need to strip them
11320       # from the output so that they don't get included in the library
11321       # dependencies.
11322       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'
11323       ;;
11324     *)
11325       if test "$GXX" = yes; then
11326         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'
11327       else
11328         # FIXME: insert proper C++ library support
11329         ld_shlibs_CXX=no
11330       fi
11331       ;;
11332     esac
11333     ;;
11334   hpux10*|hpux11*)
11335     if test $with_gnu_ld = no; then
11336       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11337       hardcode_libdir_separator_CXX=:
11338
11339       case $host_cpu in
11340       hppa*64*|ia64*) ;;
11341       *)
11342         export_dynamic_flag_spec_CXX='${wl}-E'
11343         ;;
11344       esac
11345     fi
11346     case $host_cpu in
11347     hppa*64*|ia64*)
11348       hardcode_direct_CXX=no
11349       hardcode_shlibpath_var_CXX=no
11350       ;;
11351     *)
11352       hardcode_direct_CXX=yes
11353       hardcode_minus_L_CXX=yes # Not in the search PATH,
11354                                               # but as the default
11355                                               # location of the library.
11356       ;;
11357     esac
11358
11359     case $cc_basename in
11360       CC*)
11361         # FIXME: insert proper C++ library support
11362         ld_shlibs_CXX=no
11363         ;;
11364       aCC*)
11365         case $host_cpu in
11366         hppa*64*)
11367           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11368           ;;
11369         ia64*)
11370           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11371           ;;
11372         *)
11373           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11374           ;;
11375         esac
11376         # Commands to make compiler produce verbose output that lists
11377         # what "hidden" libraries, object files and flags are used when
11378         # linking a shared library.
11379         #
11380         # There doesn't appear to be a way to prevent this compiler from
11381         # explicitly linking system object files so we need to strip them
11382         # from the output so that they don't get included in the library
11383         # dependencies.
11384         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'
11385         ;;
11386       *)
11387         if test "$GXX" = yes; then
11388           if test $with_gnu_ld = no; then
11389             case $host_cpu in
11390             hppa*64*)
11391               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392               ;;
11393             ia64*)
11394               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395               ;;
11396             *)
11397               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'
11398               ;;
11399             esac
11400           fi
11401         else
11402           # FIXME: insert proper C++ library support
11403           ld_shlibs_CXX=no
11404         fi
11405         ;;
11406     esac
11407     ;;
11408   interix[3-9]*)
11409     hardcode_direct_CXX=no
11410     hardcode_shlibpath_var_CXX=no
11411     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11412     export_dynamic_flag_spec_CXX='${wl}-E'
11413     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11414     # Instead, shared libraries are loaded at an image base (0x10000000 by
11415     # default) and relocated if they conflict, which is a slow very memory
11416     # consuming and fragmenting process.  To avoid this, we pick a random,
11417     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11418     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11419     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'
11420     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'
11421     ;;
11422   irix5* | irix6*)
11423     case $cc_basename in
11424       CC*)
11425         # SGI C++
11426         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'
11427
11428         # Archives containing C++ object files must be created using
11429         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11430         # necessary to make sure instantiated templates are included
11431         # in the archive.
11432         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11433         ;;
11434       *)
11435         if test "$GXX" = yes; then
11436           if test "$with_gnu_ld" = no; then
11437             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'
11438           else
11439             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'
11440           fi
11441         fi
11442         link_all_deplibs_CXX=yes
11443         ;;
11444     esac
11445     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11446     hardcode_libdir_separator_CXX=:
11447     ;;
11448   linux* | k*bsd*-gnu)
11449     case $cc_basename in
11450       KCC*)
11451         # Kuck and Associates, Inc. (KAI) C++ Compiler
11452
11453         # KCC will only create a shared library if the output file
11454         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11455         # to its proper name (with version) after linking.
11456         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'
11457         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'
11458         # Commands to make compiler produce verbose output that lists
11459         # what "hidden" libraries, object files and flags are used when
11460         # linking a shared library.
11461         #
11462         # There doesn't appear to be a way to prevent this compiler from
11463         # explicitly linking system object files so we need to strip them
11464         # from the output so that they don't get included in the library
11465         # dependencies.
11466         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'
11467
11468         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11469         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11470
11471         # Archives containing C++ object files must be created using
11472         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11473         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11474         ;;
11475       icpc*)
11476         # Intel C++
11477         with_gnu_ld=yes
11478         # version 8.0 and above of icpc choke on multiply defined symbols
11479         # if we add $predep_objects and $postdep_objects, however 7.1 and
11480         # earlier do not add the objects themselves.
11481         case `$CC -V 2>&1` in
11482         *"Version 7."*)
11483           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484           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'
11485           ;;
11486         *)  # Version 8.0 or newer
11487           tmp_idyn=
11488           case $host_cpu in
11489             ia64*) tmp_idyn=' -i_dynamic';;
11490           esac
11491           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11492           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'
11493           ;;
11494         esac
11495         archive_cmds_need_lc_CXX=no
11496         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11497         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11498         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11499         ;;
11500       pgCC* | pgcpp*)
11501         # Portland Group C++ compiler
11502         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11503         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'
11504
11505         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11506         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11507         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'
11508         ;;
11509       cxx*)
11510         # Compaq C++
11511         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512         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'
11513
11514         runpath_var=LD_RUN_PATH
11515         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11516         hardcode_libdir_separator_CXX=:
11517
11518         # Commands to make compiler produce verbose output that lists
11519         # what "hidden" libraries, object files and flags are used when
11520         # linking a shared library.
11521         #
11522         # There doesn't appear to be a way to prevent this compiler from
11523         # explicitly linking system object files so we need to strip them
11524         # from the output so that they don't get included in the library
11525         # dependencies.
11526         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'
11527         ;;
11528       *)
11529         case `$CC -V 2>&1 | sed 5q` in
11530         *Sun\ C*)
11531           # Sun C++ 5.9
11532           no_undefined_flag_CXX=' -zdefs'
11533           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11534           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11535           hardcode_libdir_flag_spec_CXX='-R$libdir'
11536           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11537
11538           # Not sure whether something based on
11539           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11540           # would be better.
11541           output_verbose_link_cmd='echo'
11542
11543           # Archives containing C++ object files must be created using
11544           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11545           # necessary to make sure instantiated templates are included
11546           # in the archive.
11547           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11548           ;;
11549         esac
11550         ;;
11551     esac
11552     ;;
11553   lynxos*)
11554     # FIXME: insert proper C++ library support
11555     ld_shlibs_CXX=no
11556     ;;
11557   m88k*)
11558     # FIXME: insert proper C++ library support
11559     ld_shlibs_CXX=no
11560     ;;
11561   mvs*)
11562     case $cc_basename in
11563       cxx*)
11564         # FIXME: insert proper C++ library support
11565         ld_shlibs_CXX=no
11566         ;;
11567       *)
11568         # FIXME: insert proper C++ library support
11569         ld_shlibs_CXX=no
11570         ;;
11571     esac
11572     ;;
11573   netbsd*)
11574     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11575       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11576       wlarc=
11577       hardcode_libdir_flag_spec_CXX='-R$libdir'
11578       hardcode_direct_CXX=yes
11579       hardcode_shlibpath_var_CXX=no
11580     fi
11581     # Workaround some broken pre-1.5 toolchains
11582     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11583     ;;
11584   openbsd2*)
11585     # C++ shared libraries are fairly broken
11586     ld_shlibs_CXX=no
11587     ;;
11588   openbsd*)
11589     if test -f /usr/libexec/ld.so; then
11590       hardcode_direct_CXX=yes
11591       hardcode_shlibpath_var_CXX=no
11592       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11593       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11594       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11595         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11596         export_dynamic_flag_spec_CXX='${wl}-E'
11597         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11598       fi
11599       output_verbose_link_cmd='echo'
11600     else
11601       ld_shlibs_CXX=no
11602     fi
11603     ;;
11604   osf3*)
11605     case $cc_basename in
11606       KCC*)
11607         # Kuck and Associates, Inc. (KAI) C++ Compiler
11608
11609         # KCC will only create a shared library if the output file
11610         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11611         # to its proper name (with version) after linking.
11612         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'
11613
11614         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11615         hardcode_libdir_separator_CXX=:
11616
11617         # Archives containing C++ object files must be created using
11618         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11619         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11620
11621         ;;
11622       RCC*)
11623         # Rational C++ 2.4.1
11624         # FIXME: insert proper C++ library support
11625         ld_shlibs_CXX=no
11626         ;;
11627       cxx*)
11628         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11629         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'
11630
11631         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11632         hardcode_libdir_separator_CXX=:
11633
11634         # Commands to make compiler produce verbose output that lists
11635         # what "hidden" libraries, object files and flags are used when
11636         # linking a shared library.
11637         #
11638         # There doesn't appear to be a way to prevent this compiler from
11639         # explicitly linking system object files so we need to strip them
11640         # from the output so that they don't get included in the library
11641         # dependencies.
11642         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'
11643         ;;
11644       *)
11645         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11646           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11647           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'
11648
11649           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11650           hardcode_libdir_separator_CXX=:
11651
11652           # Commands to make compiler produce verbose output that lists
11653           # what "hidden" libraries, object files and flags are used when
11654           # linking a shared library.
11655           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11656
11657         else
11658           # FIXME: insert proper C++ library support
11659           ld_shlibs_CXX=no
11660         fi
11661         ;;
11662     esac
11663     ;;
11664   osf4* | osf5*)
11665     case $cc_basename in
11666       KCC*)
11667         # Kuck and Associates, Inc. (KAI) C++ Compiler
11668
11669         # KCC will only create a shared library if the output file
11670         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11671         # to its proper name (with version) after linking.
11672         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'
11673
11674         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11675         hardcode_libdir_separator_CXX=:
11676
11677         # Archives containing C++ object files must be created using
11678         # the KAI C++ compiler.
11679         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11680         ;;
11681       RCC*)
11682         # Rational C++ 2.4.1
11683         # FIXME: insert proper C++ library support
11684         ld_shlibs_CXX=no
11685         ;;
11686       cxx*)
11687         allow_undefined_flag_CXX=' -expect_unresolved \*'
11688         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'
11689         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11690           echo "-hidden">> $lib.exp~
11691           $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~
11692           $rm $lib.exp'
11693
11694         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11695         hardcode_libdir_separator_CXX=:
11696
11697         # Commands to make compiler produce verbose output that lists
11698         # what "hidden" libraries, object files and flags are used when
11699         # linking a shared library.
11700         #
11701         # There doesn't appear to be a way to prevent this compiler from
11702         # explicitly linking system object files so we need to strip them
11703         # from the output so that they don't get included in the library
11704         # dependencies.
11705         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'
11706         ;;
11707       *)
11708         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11709           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11710          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'
11711
11712           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11713           hardcode_libdir_separator_CXX=:
11714
11715           # Commands to make compiler produce verbose output that lists
11716           # what "hidden" libraries, object files and flags are used when
11717           # linking a shared library.
11718           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11719
11720         else
11721           # FIXME: insert proper C++ library support
11722           ld_shlibs_CXX=no
11723         fi
11724         ;;
11725     esac
11726     ;;
11727   psos*)
11728     # FIXME: insert proper C++ library support
11729     ld_shlibs_CXX=no
11730     ;;
11731   sunos4*)
11732     case $cc_basename in
11733       CC*)
11734         # Sun C++ 4.x
11735         # FIXME: insert proper C++ library support
11736         ld_shlibs_CXX=no
11737         ;;
11738       lcc*)
11739         # Lucid
11740         # FIXME: insert proper C++ library support
11741         ld_shlibs_CXX=no
11742         ;;
11743       *)
11744         # FIXME: insert proper C++ library support
11745         ld_shlibs_CXX=no
11746         ;;
11747     esac
11748     ;;
11749   solaris*)
11750     case $cc_basename in
11751       CC*)
11752         # Sun C++ 4.2, 5.x and Centerline C++
11753         archive_cmds_need_lc_CXX=yes
11754         no_undefined_flag_CXX=' -zdefs'
11755         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11756         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11757         $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'
11758
11759         hardcode_libdir_flag_spec_CXX='-R$libdir'
11760         hardcode_shlibpath_var_CXX=no
11761         case $host_os in
11762           solaris2.[0-5] | solaris2.[0-5].*) ;;
11763           *)
11764             # The compiler driver will combine and reorder linker options,
11765             # but understands `-z linker_flag'.
11766             # Supported since Solaris 2.6 (maybe 2.5.1?)
11767             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11768             ;;
11769         esac
11770         link_all_deplibs_CXX=yes
11771
11772         output_verbose_link_cmd='echo'
11773
11774         # Archives containing C++ object files must be created using
11775         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11776         # necessary to make sure instantiated templates are included
11777         # in the archive.
11778         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11779         ;;
11780       gcx*)
11781         # Green Hills C++ Compiler
11782         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11783
11784         # The C++ compiler must be used to create the archive.
11785         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11786         ;;
11787       *)
11788         # GNU C++ compiler with Solaris linker
11789         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11790           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11791           if $CC --version | grep -v '^2\.7' > /dev/null; then
11792             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11794                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11795
11796             # Commands to make compiler produce verbose output that lists
11797             # what "hidden" libraries, object files and flags are used when
11798             # linking a shared library.
11799             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11800           else
11801             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11802             # platform.
11803             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11804             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11805                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11806
11807             # Commands to make compiler produce verbose output that lists
11808             # what "hidden" libraries, object files and flags are used when
11809             # linking a shared library.
11810             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11811           fi
11812
11813           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11814           case $host_os in
11815           solaris2.[0-5] | solaris2.[0-5].*) ;;
11816           *)
11817             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11818             ;;
11819           esac
11820         fi
11821         ;;
11822     esac
11823     ;;
11824   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11825     no_undefined_flag_CXX='${wl}-z,text'
11826     archive_cmds_need_lc_CXX=no
11827     hardcode_shlibpath_var_CXX=no
11828     runpath_var='LD_RUN_PATH'
11829
11830     case $cc_basename in
11831       CC*)
11832         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11833         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834         ;;
11835       *)
11836         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838         ;;
11839     esac
11840     ;;
11841   sysv5* | sco3.2v5* | sco5v6*)
11842     # Note: We can NOT use -z defs as we might desire, because we do not
11843     # link with -lc, and that would cause any symbols used from libc to
11844     # always be unresolved, which means just about no library would
11845     # ever link correctly.  If we're not using GNU ld we use -z text
11846     # though, which does catch some bad symbols but isn't as heavy-handed
11847     # as -z defs.
11848     # For security reasons, it is highly recommended that you always
11849     # use absolute paths for naming shared libraries, and exclude the
11850     # DT_RUNPATH tag from executables and libraries.  But doing so
11851     # requires that you compile everything twice, which is a pain.
11852     # So that behaviour is only enabled if SCOABSPATH is set to a
11853     # non-empty value in the environment.  Most likely only useful for
11854     # creating official distributions of packages.
11855     # This is a hack until libtool officially supports absolute path
11856     # names for shared libraries.
11857     no_undefined_flag_CXX='${wl}-z,text'
11858     allow_undefined_flag_CXX='${wl}-z,nodefs'
11859     archive_cmds_need_lc_CXX=no
11860     hardcode_shlibpath_var_CXX=no
11861     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11862     hardcode_libdir_separator_CXX=':'
11863     link_all_deplibs_CXX=yes
11864     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11865     runpath_var='LD_RUN_PATH'
11866
11867     case $cc_basename in
11868       CC*)
11869         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11870         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11871         ;;
11872       *)
11873         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11874         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11875         ;;
11876     esac
11877     ;;
11878   tandem*)
11879     case $cc_basename in
11880       NCC*)
11881         # NonStop-UX NCC 3.20
11882         # FIXME: insert proper C++ library support
11883         ld_shlibs_CXX=no
11884         ;;
11885       *)
11886         # FIXME: insert proper C++ library support
11887         ld_shlibs_CXX=no
11888         ;;
11889     esac
11890     ;;
11891   vxworks*)
11892     # FIXME: insert proper C++ library support
11893     ld_shlibs_CXX=no
11894     ;;
11895   *)
11896     # FIXME: insert proper C++ library support
11897     ld_shlibs_CXX=no
11898     ;;
11899 esac
11900 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11901 $as_echo "$ld_shlibs_CXX" >&6; }
11902 test "$ld_shlibs_CXX" = no && can_build_shared=no
11903
11904 GCC_CXX="$GXX"
11905 LD_CXX="$LD"
11906
11907 ## CAVEAT EMPTOR:
11908 ## There is no encapsulation within the following macros, do not change
11909 ## the running order or otherwise move them around unless you know exactly
11910 ## what you are doing...
11911 cat > conftest.$ac_ext <<EOF
11912 class Foo
11913 {
11914 public:
11915   Foo (void) { a = 0; }
11916 private:
11917   int a;
11918 };
11919 EOF
11920
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922   (eval $ac_compile) 2>&5
11923   ac_status=$?
11924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; then
11926   # Parse the compiler output and extract the necessary
11927   # objects, libraries and library flags.
11928
11929   # Sentinel used to keep track of whether or not we are before
11930   # the conftest object file.
11931   pre_test_object_deps_done=no
11932
11933   # The `*' in the case matches for architectures that use `case' in
11934   # $output_verbose_cmd can trigger glob expansion during the loop
11935   # eval without this substitution.
11936   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11937
11938   for p in `eval $output_verbose_link_cmd`; do
11939     case $p in
11940
11941     -L* | -R* | -l*)
11942        # Some compilers place space between "-{L,R}" and the path.
11943        # Remove the space.
11944        if test $p = "-L" \
11945           || test $p = "-R"; then
11946          prev=$p
11947          continue
11948        else
11949          prev=
11950        fi
11951
11952        if test "$pre_test_object_deps_done" = no; then
11953          case $p in
11954          -L* | -R*)
11955            # Internal compiler library paths should come after those
11956            # provided the user.  The postdeps already come after the
11957            # user supplied libs so there is no need to process them.
11958            if test -z "$compiler_lib_search_path_CXX"; then
11959              compiler_lib_search_path_CXX="${prev}${p}"
11960            else
11961              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11962            fi
11963            ;;
11964          # The "-l" case would never come before the object being
11965          # linked, so don't bother handling this case.
11966          esac
11967        else
11968          if test -z "$postdeps_CXX"; then
11969            postdeps_CXX="${prev}${p}"
11970          else
11971            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11972          fi
11973        fi
11974        ;;
11975
11976     *.$objext)
11977        # This assumes that the test object file only shows up
11978        # once in the compiler output.
11979        if test "$p" = "conftest.$objext"; then
11980          pre_test_object_deps_done=yes
11981          continue
11982        fi
11983
11984        if test "$pre_test_object_deps_done" = no; then
11985          if test -z "$predep_objects_CXX"; then
11986            predep_objects_CXX="$p"
11987          else
11988            predep_objects_CXX="$predep_objects_CXX $p"
11989          fi
11990        else
11991          if test -z "$postdep_objects_CXX"; then
11992            postdep_objects_CXX="$p"
11993          else
11994            postdep_objects_CXX="$postdep_objects_CXX $p"
11995          fi
11996        fi
11997        ;;
11998
11999     *) ;; # Ignore the rest.
12000
12001     esac
12002   done
12003
12004   # Clean up.
12005   rm -f a.out a.exe
12006 else
12007   echo "libtool.m4: error: problem compiling CXX test program"
12008 fi
12009
12010 $rm -f confest.$objext
12011
12012 compiler_lib_search_dirs_CXX=
12013 if test -n "$compiler_lib_search_path_CXX"; then
12014   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12015 fi
12016
12017 # PORTME: override above test on systems where it is broken
12018 case $host_os in
12019 interix[3-9]*)
12020   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12021   # hack all around it, let's just trust "g++" to DTRT.
12022   predep_objects_CXX=
12023   postdep_objects_CXX=
12024   postdeps_CXX=
12025   ;;
12026
12027 linux*)
12028   case `$CC -V 2>&1 | sed 5q` in
12029   *Sun\ C*)
12030     # Sun C++ 5.9
12031     #
12032     # The more standards-conforming stlport4 library is
12033     # incompatible with the Cstd library. Avoid specifying
12034     # it if it's in CXXFLAGS. Ignore libCrun as
12035     # -library=stlport4 depends on it.
12036     case " $CXX $CXXFLAGS " in
12037     *" -library=stlport4 "*)
12038       solaris_use_stlport4=yes
12039       ;;
12040     esac
12041     if test "$solaris_use_stlport4" != yes; then
12042       postdeps_CXX='-library=Cstd -library=Crun'
12043     fi
12044     ;;
12045   esac
12046   ;;
12047
12048 solaris*)
12049   case $cc_basename in
12050   CC*)
12051     # The more standards-conforming stlport4 library is
12052     # incompatible with the Cstd library. Avoid specifying
12053     # it if it's in CXXFLAGS. Ignore libCrun as
12054     # -library=stlport4 depends on it.
12055     case " $CXX $CXXFLAGS " in
12056     *" -library=stlport4 "*)
12057       solaris_use_stlport4=yes
12058       ;;
12059     esac
12060
12061     # Adding this requires a known-good setup of shared libraries for
12062     # Sun compiler versions before 5.6, else PIC objects from an old
12063     # archive will be linked into the output, leading to subtle bugs.
12064     if test "$solaris_use_stlport4" != yes; then
12065       postdeps_CXX='-library=Cstd -library=Crun'
12066     fi
12067     ;;
12068   esac
12069   ;;
12070 esac
12071
12072 case " $postdeps_CXX " in
12073 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12074 esac
12075
12076 lt_prog_compiler_wl_CXX=
12077 lt_prog_compiler_pic_CXX=
12078 lt_prog_compiler_static_CXX=
12079
12080 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12081 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12082
12083   # C++ specific cases for pic, static, wl, etc.
12084   if test "$GXX" = yes; then
12085     lt_prog_compiler_wl_CXX='-Wl,'
12086     lt_prog_compiler_static_CXX='-static'
12087
12088     case $host_os in
12089     aix*)
12090       # All AIX code is PIC.
12091       if test "$host_cpu" = ia64; then
12092         # AIX 5 now supports IA64 processor
12093         lt_prog_compiler_static_CXX='-Bstatic'
12094       fi
12095       ;;
12096     amigaos*)
12097       # FIXME: we need at least 68020 code to build shared libraries, but
12098       # adding the `-m68020' flag to GCC prevents building anything better,
12099       # like `-m68040'.
12100       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12101       ;;
12102     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12103       # PIC is the default for these OSes.
12104       ;;
12105     mingw* | cygwin* | os2* | pw32*)
12106       # This hack is so that the source file can tell whether it is being
12107       # built for inclusion in a dll (and should export symbols for example).
12108       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12109       # (--disable-auto-import) libraries
12110       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12111       ;;
12112     darwin* | rhapsody*)
12113       # PIC is the default on this platform
12114       # Common symbols not allowed in MH_DYLIB files
12115       lt_prog_compiler_pic_CXX='-fno-common'
12116       ;;
12117     *djgpp*)
12118       # DJGPP does not support shared libraries at all
12119       lt_prog_compiler_pic_CXX=
12120       ;;
12121     interix[3-9]*)
12122       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12123       # Instead, we relocate shared libraries at runtime.
12124       ;;
12125     sysv4*MP*)
12126       if test -d /usr/nec; then
12127         lt_prog_compiler_pic_CXX=-Kconform_pic
12128       fi
12129       ;;
12130     hpux*)
12131       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12132       # not for PA HP-UX.
12133       case $host_cpu in
12134       hppa*64*|ia64*)
12135         ;;
12136       *)
12137         lt_prog_compiler_pic_CXX='-fPIC'
12138         ;;
12139       esac
12140       ;;
12141     *)
12142       lt_prog_compiler_pic_CXX='-fPIC'
12143       ;;
12144     esac
12145   else
12146     case $host_os in
12147       aix[4-9]*)
12148         # All AIX code is PIC.
12149         if test "$host_cpu" = ia64; then
12150           # AIX 5 now supports IA64 processor
12151           lt_prog_compiler_static_CXX='-Bstatic'
12152         else
12153           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12154         fi
12155         ;;
12156       chorus*)
12157         case $cc_basename in
12158         cxch68*)
12159           # Green Hills C++ Compiler
12160           # _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"
12161           ;;
12162         esac
12163         ;;
12164        darwin*)
12165          # PIC is the default on this platform
12166          # Common symbols not allowed in MH_DYLIB files
12167          case $cc_basename in
12168            xlc*)
12169            lt_prog_compiler_pic_CXX='-qnocommon'
12170            lt_prog_compiler_wl_CXX='-Wl,'
12171            ;;
12172          esac
12173        ;;
12174       dgux*)
12175         case $cc_basename in
12176           ec++*)
12177             lt_prog_compiler_pic_CXX='-KPIC'
12178             ;;
12179           ghcx*)
12180             # Green Hills C++ Compiler
12181             lt_prog_compiler_pic_CXX='-pic'
12182             ;;
12183           *)
12184             ;;
12185         esac
12186         ;;
12187       freebsd* | dragonfly*)
12188         # FreeBSD uses GNU C++
12189         ;;
12190       hpux9* | hpux10* | hpux11*)
12191         case $cc_basename in
12192           CC*)
12193             lt_prog_compiler_wl_CXX='-Wl,'
12194             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12195             if test "$host_cpu" != ia64; then
12196               lt_prog_compiler_pic_CXX='+Z'
12197             fi
12198             ;;
12199           aCC*)
12200             lt_prog_compiler_wl_CXX='-Wl,'
12201             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12202             case $host_cpu in
12203             hppa*64*|ia64*)
12204               # +Z the default
12205               ;;
12206             *)
12207               lt_prog_compiler_pic_CXX='+Z'
12208               ;;
12209             esac
12210             ;;
12211           *)
12212             ;;
12213         esac
12214         ;;
12215       interix*)
12216         # This is c89, which is MS Visual C++ (no shared libs)
12217         # Anyone wants to do a port?
12218         ;;
12219       irix5* | irix6* | nonstopux*)
12220         case $cc_basename in
12221           CC*)
12222             lt_prog_compiler_wl_CXX='-Wl,'
12223             lt_prog_compiler_static_CXX='-non_shared'
12224             # CC pic flag -KPIC is the default.
12225             ;;
12226           *)
12227             ;;
12228         esac
12229         ;;
12230       linux* | k*bsd*-gnu)
12231         case $cc_basename in
12232           KCC*)
12233             # KAI C++ Compiler
12234             lt_prog_compiler_wl_CXX='--backend -Wl,'
12235             lt_prog_compiler_pic_CXX='-fPIC'
12236             ;;
12237           icpc* | ecpc*)
12238             # Intel C++
12239             lt_prog_compiler_wl_CXX='-Wl,'
12240             lt_prog_compiler_pic_CXX='-KPIC'
12241             lt_prog_compiler_static_CXX='-static'
12242             ;;
12243           pgCC* | pgcpp*)
12244             # Portland Group C++ compiler.
12245             lt_prog_compiler_wl_CXX='-Wl,'
12246             lt_prog_compiler_pic_CXX='-fpic'
12247             lt_prog_compiler_static_CXX='-Bstatic'
12248             ;;
12249           cxx*)
12250             # Compaq C++
12251             # Make sure the PIC flag is empty.  It appears that all Alpha
12252             # Linux and Compaq Tru64 Unix objects are PIC.
12253             lt_prog_compiler_pic_CXX=
12254             lt_prog_compiler_static_CXX='-non_shared'
12255             ;;
12256           *)
12257             case `$CC -V 2>&1 | sed 5q` in
12258             *Sun\ C*)
12259               # Sun C++ 5.9
12260               lt_prog_compiler_pic_CXX='-KPIC'
12261               lt_prog_compiler_static_CXX='-Bstatic'
12262               lt_prog_compiler_wl_CXX='-Qoption ld '
12263               ;;
12264             esac
12265             ;;
12266         esac
12267         ;;
12268       lynxos*)
12269         ;;
12270       m88k*)
12271         ;;
12272       mvs*)
12273         case $cc_basename in
12274           cxx*)
12275             lt_prog_compiler_pic_CXX='-W c,exportall'
12276             ;;
12277           *)
12278             ;;
12279         esac
12280         ;;
12281       netbsd*)
12282         ;;
12283       osf3* | osf4* | osf5*)
12284         case $cc_basename in
12285           KCC*)
12286             lt_prog_compiler_wl_CXX='--backend -Wl,'
12287             ;;
12288           RCC*)
12289             # Rational C++ 2.4.1
12290             lt_prog_compiler_pic_CXX='-pic'
12291             ;;
12292           cxx*)
12293             # Digital/Compaq C++
12294             lt_prog_compiler_wl_CXX='-Wl,'
12295             # Make sure the PIC flag is empty.  It appears that all Alpha
12296             # Linux and Compaq Tru64 Unix objects are PIC.
12297             lt_prog_compiler_pic_CXX=
12298             lt_prog_compiler_static_CXX='-non_shared'
12299             ;;
12300           *)
12301             ;;
12302         esac
12303         ;;
12304       psos*)
12305         ;;
12306       solaris*)
12307         case $cc_basename in
12308           CC*)
12309             # Sun C++ 4.2, 5.x and Centerline C++
12310             lt_prog_compiler_pic_CXX='-KPIC'
12311             lt_prog_compiler_static_CXX='-Bstatic'
12312             lt_prog_compiler_wl_CXX='-Qoption ld '
12313             ;;
12314           gcx*)
12315             # Green Hills C++ Compiler
12316             lt_prog_compiler_pic_CXX='-PIC'
12317             ;;
12318           *)
12319             ;;
12320         esac
12321         ;;
12322       sunos4*)
12323         case $cc_basename in
12324           CC*)
12325             # Sun C++ 4.x
12326             lt_prog_compiler_pic_CXX='-pic'
12327             lt_prog_compiler_static_CXX='-Bstatic'
12328             ;;
12329           lcc*)
12330             # Lucid
12331             lt_prog_compiler_pic_CXX='-pic'
12332             ;;
12333           *)
12334             ;;
12335         esac
12336         ;;
12337       tandem*)
12338         case $cc_basename in
12339           NCC*)
12340             # NonStop-UX NCC 3.20
12341             lt_prog_compiler_pic_CXX='-KPIC'
12342             ;;
12343           *)
12344             ;;
12345         esac
12346         ;;
12347       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12348         case $cc_basename in
12349           CC*)
12350             lt_prog_compiler_wl_CXX='-Wl,'
12351             lt_prog_compiler_pic_CXX='-KPIC'
12352             lt_prog_compiler_static_CXX='-Bstatic'
12353             ;;
12354         esac
12355         ;;
12356       vxworks*)
12357         ;;
12358       *)
12359         lt_prog_compiler_can_build_shared_CXX=no
12360         ;;
12361     esac
12362   fi
12363
12364 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12365 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12366
12367 #
12368 # Check to make sure the PIC flag actually works.
12369 #
12370 if test -n "$lt_prog_compiler_pic_CXX"; then
12371
12372 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12374 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12375   $as_echo_n "(cached) " >&6
12376 else
12377   lt_cv_prog_compiler_pic_works_CXX=no
12378   ac_outfile=conftest.$ac_objext
12379    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12380    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12381    # Insert the option either (1) after the last *FLAGS variable, or
12382    # (2) before a word containing "conftest.", or (3) at the end.
12383    # Note that $ac_compile itself does not contain backslashes and begins
12384    # with a dollar sign (not a hyphen), so the echo should work correctly.
12385    # The option is referenced via a variable to avoid confusing sed.
12386    lt_compile=`echo "$ac_compile" | $SED \
12387    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12389    -e 's:$: $lt_compiler_flag:'`
12390    (eval echo "\"\$as_me:12390: $lt_compile\"" >&5)
12391    (eval "$lt_compile" 2>conftest.err)
12392    ac_status=$?
12393    cat conftest.err >&5
12394    echo "$as_me:12394: \$? = $ac_status" >&5
12395    if (exit $ac_status) && test -s "$ac_outfile"; then
12396      # The compiler can only warn and ignore the option if not recognized
12397      # So say no if there are warnings other than the usual output.
12398      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12399      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12401        lt_cv_prog_compiler_pic_works_CXX=yes
12402      fi
12403    fi
12404    $rm conftest*
12405
12406 fi
12407 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12408 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12409
12410 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12411     case $lt_prog_compiler_pic_CXX in
12412      "" | " "*) ;;
12413      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12414      esac
12415 else
12416     lt_prog_compiler_pic_CXX=
12417      lt_prog_compiler_can_build_shared_CXX=no
12418 fi
12419
12420 fi
12421 case $host_os in
12422   # For platforms which do not support PIC, -DPIC is meaningless:
12423   *djgpp*)
12424     lt_prog_compiler_pic_CXX=
12425     ;;
12426   *)
12427     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12428     ;;
12429 esac
12430
12431 #
12432 # Check to make sure the static flag actually works.
12433 #
12434 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12435 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12436 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12437 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12438   $as_echo_n "(cached) " >&6
12439 else
12440   lt_cv_prog_compiler_static_works_CXX=no
12441    save_LDFLAGS="$LDFLAGS"
12442    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12443    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12444    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12445      # The linker can only warn and ignore the option if not recognized
12446      # So say no if there are warnings
12447      if test -s conftest.err; then
12448        # Append any errors to the config.log.
12449        cat conftest.err 1>&5
12450        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12451        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12452        if diff conftest.exp conftest.er2 >/dev/null; then
12453          lt_cv_prog_compiler_static_works_CXX=yes
12454        fi
12455      else
12456        lt_cv_prog_compiler_static_works_CXX=yes
12457      fi
12458    fi
12459    $rm -r conftest*
12460    LDFLAGS="$save_LDFLAGS"
12461
12462 fi
12463 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12464 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12465
12466 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12467     :
12468 else
12469     lt_prog_compiler_static_CXX=
12470 fi
12471
12472
12473 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12474 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12475 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12476   $as_echo_n "(cached) " >&6
12477 else
12478   lt_cv_prog_compiler_c_o_CXX=no
12479    $rm -r conftest 2>/dev/null
12480    mkdir conftest
12481    cd conftest
12482    mkdir out
12483    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12484
12485    lt_compiler_flag="-o out/conftest2.$ac_objext"
12486    # Insert the option either (1) after the last *FLAGS variable, or
12487    # (2) before a word containing "conftest.", or (3) at the end.
12488    # Note that $ac_compile itself does not contain backslashes and begins
12489    # with a dollar sign (not a hyphen), so the echo should work correctly.
12490    lt_compile=`echo "$ac_compile" | $SED \
12491    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12492    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12493    -e 's:$: $lt_compiler_flag:'`
12494    (eval echo "\"\$as_me:12494: $lt_compile\"" >&5)
12495    (eval "$lt_compile" 2>out/conftest.err)
12496    ac_status=$?
12497    cat out/conftest.err >&5
12498    echo "$as_me:12498: \$? = $ac_status" >&5
12499    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12500    then
12501      # The compiler can only warn and ignore the option if not recognized
12502      # So say no if there are warnings
12503      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12504      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12505      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12506        lt_cv_prog_compiler_c_o_CXX=yes
12507      fi
12508    fi
12509    chmod u+w . 2>&5
12510    $rm conftest*
12511    # SGI C++ compiler will create directory out/ii_files/ for
12512    # template instantiation
12513    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12514    $rm out/* && rmdir out
12515    cd ..
12516    rmdir conftest
12517    $rm conftest*
12518
12519 fi
12520 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12521 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12522
12523
12524 hard_links="nottested"
12525 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12526   # do not overwrite the value of need_locks provided by the user
12527   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12528 $as_echo_n "checking if we can lock with hard links... " >&6; }
12529   hard_links=yes
12530   $rm conftest*
12531   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12532   touch conftest.a
12533   ln conftest.a conftest.b 2>&5 || hard_links=no
12534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12535   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12536 $as_echo "$hard_links" >&6; }
12537   if test "$hard_links" = no; then
12538     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12539 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12540     need_locks=warn
12541   fi
12542 else
12543   need_locks=no
12544 fi
12545
12546 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12548
12549   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12550   case $host_os in
12551   aix[4-9]*)
12552     # If we're using GNU nm, then we don't want the "-C" option.
12553     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12554     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12555       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'
12556     else
12557       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'
12558     fi
12559     ;;
12560   pw32*)
12561     export_symbols_cmds_CXX="$ltdll_cmds"
12562   ;;
12563   cygwin* | mingw*)
12564     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'
12565   ;;
12566   *)
12567     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12568   ;;
12569   esac
12570   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12571
12572 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12573 $as_echo "$ld_shlibs_CXX" >&6; }
12574 test "$ld_shlibs_CXX" = no && can_build_shared=no
12575
12576 #
12577 # Do we need to explicitly link libc?
12578 #
12579 case "x$archive_cmds_need_lc_CXX" in
12580 x|xyes)
12581   # Assume -lc should be added
12582   archive_cmds_need_lc_CXX=yes
12583
12584   if test "$enable_shared" = yes && test "$GCC" = yes; then
12585     case $archive_cmds_CXX in
12586     *'~'*)
12587       # FIXME: we may have to deal with multi-command sequences.
12588       ;;
12589     '$CC '*)
12590       # Test whether the compiler implicitly links with -lc since on some
12591       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12592       # to ld, don't add -lc before -lgcc.
12593       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12594 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12595       $rm conftest*
12596       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12597
12598       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599   (eval $ac_compile) 2>&5
12600   ac_status=$?
12601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); } 2>conftest.err; then
12603         soname=conftest
12604         lib=conftest
12605         libobjs=conftest.$ac_objext
12606         deplibs=
12607         wl=$lt_prog_compiler_wl_CXX
12608         pic_flag=$lt_prog_compiler_pic_CXX
12609         compiler_flags=-v
12610         linker_flags=-v
12611         verstring=
12612         output_objdir=.
12613         libname=conftest
12614         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12615         allow_undefined_flag_CXX=
12616         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12617   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12618   ac_status=$?
12619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }
12621         then
12622           archive_cmds_need_lc_CXX=no
12623         else
12624           archive_cmds_need_lc_CXX=yes
12625         fi
12626         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12627       else
12628         cat conftest.err 1>&5
12629       fi
12630       $rm conftest*
12631       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12632 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12633       ;;
12634     esac
12635   fi
12636   ;;
12637 esac
12638
12639 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12640 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12641 library_names_spec=
12642 libname_spec='lib$name'
12643 soname_spec=
12644 shrext_cmds=".so"
12645 postinstall_cmds=
12646 postuninstall_cmds=
12647 finish_cmds=
12648 finish_eval=
12649 shlibpath_var=
12650 shlibpath_overrides_runpath=unknown
12651 version_type=none
12652 dynamic_linker="$host_os ld.so"
12653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12654
12655 need_lib_prefix=unknown
12656 hardcode_into_libs=no
12657
12658 # when you set need_version to no, make sure it does not cause -set_version
12659 # flags to be left without arguments
12660 need_version=unknown
12661
12662 case $host_os in
12663 aix3*)
12664   version_type=linux
12665   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12666   shlibpath_var=LIBPATH
12667
12668   # AIX 3 has no versioning support, so we append a major version to the name.
12669   soname_spec='${libname}${release}${shared_ext}$major'
12670   ;;
12671
12672 aix[4-9]*)
12673   version_type=linux
12674   need_lib_prefix=no
12675   need_version=no
12676   hardcode_into_libs=yes
12677   if test "$host_cpu" = ia64; then
12678     # AIX 5 supports IA64
12679     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12680     shlibpath_var=LD_LIBRARY_PATH
12681   else
12682     # With GCC up to 2.95.x, collect2 would create an import file
12683     # for dependence libraries.  The import file would start with
12684     # the line `#! .'.  This would cause the generated library to
12685     # depend on `.', always an invalid library.  This was fixed in
12686     # development snapshots of GCC prior to 3.0.
12687     case $host_os in
12688       aix4 | aix4.[01] | aix4.[01].*)
12689       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12690            echo ' yes '
12691            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12692         :
12693       else
12694         can_build_shared=no
12695       fi
12696       ;;
12697     esac
12698     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12699     # soname into executable. Probably we can add versioning support to
12700     # collect2, so additional links can be useful in future.
12701     if test "$aix_use_runtimelinking" = yes; then
12702       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12703       # instead of lib<name>.a to let people know that these are not
12704       # typical AIX shared libraries.
12705       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12706     else
12707       # We preserve .a as extension for shared libraries through AIX4.2
12708       # and later when we are not doing run time linking.
12709       library_names_spec='${libname}${release}.a $libname.a'
12710       soname_spec='${libname}${release}${shared_ext}$major'
12711     fi
12712     shlibpath_var=LIBPATH
12713   fi
12714   ;;
12715
12716 amigaos*)
12717   library_names_spec='$libname.ixlibrary $libname.a'
12718   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12719   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'
12720   ;;
12721
12722 beos*)
12723   library_names_spec='${libname}${shared_ext}'
12724   dynamic_linker="$host_os ld.so"
12725   shlibpath_var=LIBRARY_PATH
12726   ;;
12727
12728 bsdi[45]*)
12729   version_type=linux
12730   need_version=no
12731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732   soname_spec='${libname}${release}${shared_ext}$major'
12733   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12734   shlibpath_var=LD_LIBRARY_PATH
12735   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12736   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12737   # the default ld.so.conf also contains /usr/contrib/lib and
12738   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12739   # libtool to hard-code these into programs
12740   ;;
12741
12742 cygwin* | mingw* | pw32*)
12743   version_type=windows
12744   shrext_cmds=".dll"
12745   need_version=no
12746   need_lib_prefix=no
12747
12748   case $GCC,$host_os in
12749   yes,cygwin* | yes,mingw* | yes,pw32*)
12750     library_names_spec='$libname.dll.a'
12751     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12752     postinstall_cmds='base_file=`basename \${file}`~
12753       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12754       dldir=$destdir/`dirname \$dlpath`~
12755       test -d \$dldir || mkdir -p \$dldir~
12756       $install_prog $dir/$dlname \$dldir/$dlname~
12757       chmod a+x \$dldir/$dlname'
12758     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12759       dlpath=$dir/\$dldll~
12760        $rm \$dlpath'
12761     shlibpath_overrides_runpath=yes
12762
12763     case $host_os in
12764     cygwin*)
12765       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12766       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12767       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12768       ;;
12769     mingw*)
12770       # MinGW DLLs use traditional 'lib' prefix
12771       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12772       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12773       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12774         # It is most probably a Windows format PATH printed by
12775         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12776         # path with ; separators, and with drive letters. We can handle the
12777         # drive letters (cygwin fileutils understands them), so leave them,
12778         # especially as we might pass files found there to a mingw objdump,
12779         # which wouldn't understand a cygwinified path. Ahh.
12780         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12781       else
12782         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12783       fi
12784       ;;
12785     pw32*)
12786       # pw32 DLLs use 'pw' prefix rather than 'lib'
12787       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12788       ;;
12789     esac
12790     ;;
12791
12792   *)
12793     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12794     ;;
12795   esac
12796   dynamic_linker='Win32 ld.exe'
12797   # FIXME: first we should search . and the directory the executable is in
12798   shlibpath_var=PATH
12799   ;;
12800
12801 darwin* | rhapsody*)
12802   dynamic_linker="$host_os dyld"
12803   version_type=darwin
12804   need_lib_prefix=no
12805   need_version=no
12806   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12807   soname_spec='${libname}${release}${major}$shared_ext'
12808   shlibpath_overrides_runpath=yes
12809   shlibpath_var=DYLD_LIBRARY_PATH
12810   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12811
12812   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12813   ;;
12814
12815 dgux*)
12816   version_type=linux
12817   need_lib_prefix=no
12818   need_version=no
12819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12820   soname_spec='${libname}${release}${shared_ext}$major'
12821   shlibpath_var=LD_LIBRARY_PATH
12822   ;;
12823
12824 freebsd1*)
12825   dynamic_linker=no
12826   ;;
12827
12828 freebsd* | dragonfly*)
12829   # DragonFly does not have aout.  When/if they implement a new
12830   # versioning mechanism, adjust this.
12831   if test -x /usr/bin/objformat; then
12832     objformat=`/usr/bin/objformat`
12833   else
12834     case $host_os in
12835     freebsd[123]*) objformat=aout ;;
12836     *) objformat=elf ;;
12837     esac
12838   fi
12839   version_type=freebsd-$objformat
12840   case $version_type in
12841     freebsd-elf*)
12842       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12843       need_version=no
12844       need_lib_prefix=no
12845       ;;
12846     freebsd-*)
12847       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12848       need_version=yes
12849       ;;
12850   esac
12851   shlibpath_var=LD_LIBRARY_PATH
12852   case $host_os in
12853   freebsd2*)
12854     shlibpath_overrides_runpath=yes
12855     ;;
12856   freebsd3.[01]* | freebsdelf3.[01]*)
12857     shlibpath_overrides_runpath=yes
12858     hardcode_into_libs=yes
12859     ;;
12860   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12861   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12862     shlibpath_overrides_runpath=no
12863     hardcode_into_libs=yes
12864     ;;
12865   *) # from 4.6 on, and DragonFly
12866     shlibpath_overrides_runpath=yes
12867     hardcode_into_libs=yes
12868     ;;
12869   esac
12870   ;;
12871
12872 gnu*)
12873   version_type=linux
12874   need_lib_prefix=no
12875   need_version=no
12876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12877   soname_spec='${libname}${release}${shared_ext}$major'
12878   shlibpath_var=LD_LIBRARY_PATH
12879   hardcode_into_libs=yes
12880   ;;
12881
12882 hpux9* | hpux10* | hpux11*)
12883   # Give a soname corresponding to the major version so that dld.sl refuses to
12884   # link against other versions.
12885   version_type=sunos
12886   need_lib_prefix=no
12887   need_version=no
12888   case $host_cpu in
12889   ia64*)
12890     shrext_cmds='.so'
12891     hardcode_into_libs=yes
12892     dynamic_linker="$host_os dld.so"
12893     shlibpath_var=LD_LIBRARY_PATH
12894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896     soname_spec='${libname}${release}${shared_ext}$major'
12897     if test "X$HPUX_IA64_MODE" = X32; then
12898       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12899     else
12900       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12901     fi
12902     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12903     ;;
12904    hppa*64*)
12905      shrext_cmds='.sl'
12906      hardcode_into_libs=yes
12907      dynamic_linker="$host_os dld.sl"
12908      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12909      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911      soname_spec='${libname}${release}${shared_ext}$major'
12912      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12913      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12914      ;;
12915    *)
12916     shrext_cmds='.sl'
12917     dynamic_linker="$host_os dld.sl"
12918     shlibpath_var=SHLIB_PATH
12919     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921     soname_spec='${libname}${release}${shared_ext}$major'
12922     ;;
12923   esac
12924   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12925   postinstall_cmds='chmod 555 $lib'
12926   ;;
12927
12928 interix[3-9]*)
12929   version_type=linux
12930   need_lib_prefix=no
12931   need_version=no
12932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12933   soname_spec='${libname}${release}${shared_ext}$major'
12934   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12935   shlibpath_var=LD_LIBRARY_PATH
12936   shlibpath_overrides_runpath=no
12937   hardcode_into_libs=yes
12938   ;;
12939
12940 irix5* | irix6* | nonstopux*)
12941   case $host_os in
12942     nonstopux*) version_type=nonstopux ;;
12943     *)
12944         if test "$lt_cv_prog_gnu_ld" = yes; then
12945                 version_type=linux
12946         else
12947                 version_type=irix
12948         fi ;;
12949   esac
12950   need_lib_prefix=no
12951   need_version=no
12952   soname_spec='${libname}${release}${shared_ext}$major'
12953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12954   case $host_os in
12955   irix5* | nonstopux*)
12956     libsuff= shlibsuff=
12957     ;;
12958   *)
12959     case $LD in # libtool.m4 will add one of these switches to LD
12960     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12961       libsuff= shlibsuff= libmagic=32-bit;;
12962     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12963       libsuff=32 shlibsuff=N32 libmagic=N32;;
12964     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12965       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12966     *) libsuff= shlibsuff= libmagic=never-match;;
12967     esac
12968     ;;
12969   esac
12970   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12971   shlibpath_overrides_runpath=no
12972   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12973   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12974   hardcode_into_libs=yes
12975   ;;
12976
12977 # No shared lib support for Linux oldld, aout, or coff.
12978 linux*oldld* | linux*aout* | linux*coff*)
12979   dynamic_linker=no
12980   ;;
12981
12982 # This must be Linux ELF.
12983 linux* | k*bsd*-gnu)
12984   version_type=linux
12985   need_lib_prefix=no
12986   need_version=no
12987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12988   soname_spec='${libname}${release}${shared_ext}$major'
12989   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12990   shlibpath_var=LD_LIBRARY_PATH
12991   shlibpath_overrides_runpath=no
12992   # This implies no fast_install, which is unacceptable.
12993   # Some rework will be needed to allow for fast_install
12994   # before this can be enabled.
12995   hardcode_into_libs=yes
12996   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12997   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12998
12999   # Append ld.so.conf contents to the search path
13000   if test -f /etc/ld.so.conf; then
13001     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13002     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13003   fi
13004
13005   # We used to test for /lib/ld.so.1 and disable shared libraries on
13006   # powerpc, because MkLinux only supported shared libraries with the
13007   # GNU dynamic linker.  Since this was broken with cross compilers,
13008   # most powerpc-linux boxes support dynamic linking these days and
13009   # people can always --disable-shared, the test was removed, and we
13010   # assume the GNU/Linux dynamic linker is in use.
13011   dynamic_linker='GNU/Linux ld.so'
13012   ;;
13013
13014 netbsd*)
13015   version_type=sunos
13016   need_lib_prefix=no
13017   need_version=no
13018   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13020     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13021     dynamic_linker='NetBSD (a.out) ld.so'
13022   else
13023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13024     soname_spec='${libname}${release}${shared_ext}$major'
13025     dynamic_linker='NetBSD ld.elf_so'
13026   fi
13027   shlibpath_var=LD_LIBRARY_PATH
13028   shlibpath_overrides_runpath=yes
13029   hardcode_into_libs=yes
13030   ;;
13031
13032 newsos6)
13033   version_type=linux
13034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035   shlibpath_var=LD_LIBRARY_PATH
13036   shlibpath_overrides_runpath=yes
13037   ;;
13038
13039 nto-qnx*)
13040   version_type=linux
13041   need_lib_prefix=no
13042   need_version=no
13043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13044   soname_spec='${libname}${release}${shared_ext}$major'
13045   shlibpath_var=LD_LIBRARY_PATH
13046   shlibpath_overrides_runpath=yes
13047   ;;
13048
13049 openbsd*)
13050   version_type=sunos
13051   sys_lib_dlsearch_path_spec="/usr/lib"
13052   need_lib_prefix=no
13053   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13054   case $host_os in
13055     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13056     *)                         need_version=no  ;;
13057   esac
13058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13060   shlibpath_var=LD_LIBRARY_PATH
13061   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13062     case $host_os in
13063       openbsd2.[89] | openbsd2.[89].*)
13064         shlibpath_overrides_runpath=no
13065         ;;
13066       *)
13067         shlibpath_overrides_runpath=yes
13068         ;;
13069       esac
13070   else
13071     shlibpath_overrides_runpath=yes
13072   fi
13073   ;;
13074
13075 os2*)
13076   libname_spec='$name'
13077   shrext_cmds=".dll"
13078   need_lib_prefix=no
13079   library_names_spec='$libname${shared_ext} $libname.a'
13080   dynamic_linker='OS/2 ld.exe'
13081   shlibpath_var=LIBPATH
13082   ;;
13083
13084 osf3* | osf4* | osf5*)
13085   version_type=osf
13086   need_lib_prefix=no
13087   need_version=no
13088   soname_spec='${libname}${release}${shared_ext}$major'
13089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090   shlibpath_var=LD_LIBRARY_PATH
13091   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13092   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13093   ;;
13094
13095 rdos*)
13096   dynamic_linker=no
13097   ;;
13098
13099 solaris*)
13100   version_type=linux
13101   need_lib_prefix=no
13102   need_version=no
13103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104   soname_spec='${libname}${release}${shared_ext}$major'
13105   shlibpath_var=LD_LIBRARY_PATH
13106   shlibpath_overrides_runpath=yes
13107   hardcode_into_libs=yes
13108   # ldd complains unless libraries are executable
13109   postinstall_cmds='chmod +x $lib'
13110   ;;
13111
13112 sunos4*)
13113   version_type=sunos
13114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13116   shlibpath_var=LD_LIBRARY_PATH
13117   shlibpath_overrides_runpath=yes
13118   if test "$with_gnu_ld" = yes; then
13119     need_lib_prefix=no
13120   fi
13121   need_version=yes
13122   ;;
13123
13124 sysv4 | sysv4.3*)
13125   version_type=linux
13126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127   soname_spec='${libname}${release}${shared_ext}$major'
13128   shlibpath_var=LD_LIBRARY_PATH
13129   case $host_vendor in
13130     sni)
13131       shlibpath_overrides_runpath=no
13132       need_lib_prefix=no
13133       export_dynamic_flag_spec='${wl}-Blargedynsym'
13134       runpath_var=LD_RUN_PATH
13135       ;;
13136     siemens)
13137       need_lib_prefix=no
13138       ;;
13139     motorola)
13140       need_lib_prefix=no
13141       need_version=no
13142       shlibpath_overrides_runpath=no
13143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13144       ;;
13145   esac
13146   ;;
13147
13148 sysv4*MP*)
13149   if test -d /usr/nec ;then
13150     version_type=linux
13151     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13152     soname_spec='$libname${shared_ext}.$major'
13153     shlibpath_var=LD_LIBRARY_PATH
13154   fi
13155   ;;
13156
13157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13158   version_type=freebsd-elf
13159   need_lib_prefix=no
13160   need_version=no
13161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13162   soname_spec='${libname}${release}${shared_ext}$major'
13163   shlibpath_var=LD_LIBRARY_PATH
13164   hardcode_into_libs=yes
13165   if test "$with_gnu_ld" = yes; then
13166     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13167     shlibpath_overrides_runpath=no
13168   else
13169     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13170     shlibpath_overrides_runpath=yes
13171     case $host_os in
13172       sco3.2v5*)
13173         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13174         ;;
13175     esac
13176   fi
13177   sys_lib_dlsearch_path_spec='/usr/lib'
13178   ;;
13179
13180 uts4*)
13181   version_type=linux
13182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183   soname_spec='${libname}${release}${shared_ext}$major'
13184   shlibpath_var=LD_LIBRARY_PATH
13185   ;;
13186
13187 *)
13188   dynamic_linker=no
13189   ;;
13190 esac
13191 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13192 $as_echo "$dynamic_linker" >&6; }
13193 test "$dynamic_linker" = no && can_build_shared=no
13194
13195 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13196   $as_echo_n "(cached) " >&6
13197 else
13198   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13199 fi
13200
13201 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13202 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13203   $as_echo_n "(cached) " >&6
13204 else
13205   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13206 fi
13207
13208 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13209
13210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13211 if test "$GCC" = yes; then
13212   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13213 fi
13214
13215 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13216 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13217 hardcode_action_CXX=
13218 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13219    test -n "$runpath_var_CXX" || \
13220    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13221
13222   # We can hardcode non-existant directories.
13223   if test "$hardcode_direct_CXX" != no &&
13224      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13225      # have to relink, otherwise we might link with an installed library
13226      # when we should be linking with a yet-to-be-installed one
13227      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13228      test "$hardcode_minus_L_CXX" != no; then
13229     # Linking always hardcodes the temporary library directory.
13230     hardcode_action_CXX=relink
13231   else
13232     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13233     hardcode_action_CXX=immediate
13234   fi
13235 else
13236   # We cannot hardcode anything, or else we can only hardcode existing
13237   # directories.
13238   hardcode_action_CXX=unsupported
13239 fi
13240 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13241 $as_echo "$hardcode_action_CXX" >&6; }
13242
13243 if test "$hardcode_action_CXX" = relink; then
13244   # Fast installation is not supported
13245   enable_fast_install=no
13246 elif test "$shlibpath_overrides_runpath" = yes ||
13247      test "$enable_shared" = no; then
13248   # Fast installation is not necessary
13249   enable_fast_install=needless
13250 fi
13251
13252
13253 # The else clause should only fire when bootstrapping the
13254 # libtool distribution, otherwise you forgot to ship ltmain.sh
13255 # with your package, and you will get complaints that there are
13256 # no rules to generate ltmain.sh.
13257 if test -f "$ltmain"; then
13258   # See if we are running on zsh, and set the options which allow our commands through
13259   # without removal of \ escapes.
13260   if test -n "${ZSH_VERSION+set}" ; then
13261     setopt NO_GLOB_SUBST
13262   fi
13263   # Now quote all the things that may contain metacharacters while being
13264   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13265   # variables and quote the copies for generation of the libtool script.
13266   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13267     SED SHELL STRIP \
13268     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13269     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13270     deplibs_check_method reload_flag reload_cmds need_locks \
13271     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13272     lt_cv_sys_global_symbol_to_c_name_address \
13273     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13274     old_postinstall_cmds old_postuninstall_cmds \
13275     compiler_CXX \
13276     CC_CXX \
13277     LD_CXX \
13278     lt_prog_compiler_wl_CXX \
13279     lt_prog_compiler_pic_CXX \
13280     lt_prog_compiler_static_CXX \
13281     lt_prog_compiler_no_builtin_flag_CXX \
13282     export_dynamic_flag_spec_CXX \
13283     thread_safe_flag_spec_CXX \
13284     whole_archive_flag_spec_CXX \
13285     enable_shared_with_static_runtimes_CXX \
13286     old_archive_cmds_CXX \
13287     old_archive_from_new_cmds_CXX \
13288     predep_objects_CXX \
13289     postdep_objects_CXX \
13290     predeps_CXX \
13291     postdeps_CXX \
13292     compiler_lib_search_path_CXX \
13293     compiler_lib_search_dirs_CXX \
13294     archive_cmds_CXX \
13295     archive_expsym_cmds_CXX \
13296     postinstall_cmds_CXX \
13297     postuninstall_cmds_CXX \
13298     old_archive_from_expsyms_cmds_CXX \
13299     allow_undefined_flag_CXX \
13300     no_undefined_flag_CXX \
13301     export_symbols_cmds_CXX \
13302     hardcode_libdir_flag_spec_CXX \
13303     hardcode_libdir_flag_spec_ld_CXX \
13304     hardcode_libdir_separator_CXX \
13305     hardcode_automatic_CXX \
13306     module_cmds_CXX \
13307     module_expsym_cmds_CXX \
13308     lt_cv_prog_compiler_c_o_CXX \
13309     fix_srcfile_path_CXX \
13310     exclude_expsyms_CXX \
13311     include_expsyms_CXX; do
13312
13313     case $var in
13314     old_archive_cmds_CXX | \
13315     old_archive_from_new_cmds_CXX | \
13316     archive_cmds_CXX | \
13317     archive_expsym_cmds_CXX | \
13318     module_cmds_CXX | \
13319     module_expsym_cmds_CXX | \
13320     old_archive_from_expsyms_cmds_CXX | \
13321     export_symbols_cmds_CXX | \
13322     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13323     postinstall_cmds | postuninstall_cmds | \
13324     old_postinstall_cmds | old_postuninstall_cmds | \
13325     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13326       # Double-quote double-evaled strings.
13327       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13328       ;;
13329     *)
13330       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13331       ;;
13332     esac
13333   done
13334
13335   case $lt_echo in
13336   *'\$0 --fallback-echo"')
13337     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13338     ;;
13339   esac
13340
13341 cfgfile="$ofile"
13342
13343   cat <<__EOF__ >> "$cfgfile"
13344 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13345
13346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13347
13348 # Shell to use when invoking shell scripts.
13349 SHELL=$lt_SHELL
13350
13351 # Whether or not to build shared libraries.
13352 build_libtool_libs=$enable_shared
13353
13354 # Whether or not to build static libraries.
13355 build_old_libs=$enable_static
13356
13357 # Whether or not to add -lc for building shared libraries.
13358 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13359
13360 # Whether or not to disallow shared libs when runtime libs are static
13361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13362
13363 # Whether or not to optimize for fast installation.
13364 fast_install=$enable_fast_install
13365
13366 # The host system.
13367 host_alias=$host_alias
13368 host=$host
13369 host_os=$host_os
13370
13371 # The build system.
13372 build_alias=$build_alias
13373 build=$build
13374 build_os=$build_os
13375
13376 # An echo program that does not interpret backslashes.
13377 echo=$lt_echo
13378
13379 # The archiver.
13380 AR=$lt_AR
13381 AR_FLAGS=$lt_AR_FLAGS
13382
13383 # A C compiler.
13384 LTCC=$lt_LTCC
13385
13386 # LTCC compiler flags.
13387 LTCFLAGS=$lt_LTCFLAGS
13388
13389 # A language-specific compiler.
13390 CC=$lt_compiler_CXX
13391
13392 # Is the compiler the GNU C compiler?
13393 with_gcc=$GCC_CXX
13394
13395 # An ERE matcher.
13396 EGREP=$lt_EGREP
13397
13398 # The linker used to build libraries.
13399 LD=$lt_LD_CXX
13400
13401 # Whether we need hard or soft links.
13402 LN_S=$lt_LN_S
13403
13404 # A BSD-compatible nm program.
13405 NM=$lt_NM
13406
13407 # A symbol stripping program
13408 STRIP=$lt_STRIP
13409
13410 # Used to examine libraries when file_magic_cmd begins "file"
13411 MAGIC_CMD=$MAGIC_CMD
13412
13413 # Used on cygwin: DLL creation program.
13414 DLLTOOL="$DLLTOOL"
13415
13416 # Used on cygwin: object dumper.
13417 OBJDUMP="$OBJDUMP"
13418
13419 # Used on cygwin: assembler.
13420 AS="$AS"
13421
13422 # The name of the directory that contains temporary libtool files.
13423 objdir=$objdir
13424
13425 # How to create reloadable object files.
13426 reload_flag=$lt_reload_flag
13427 reload_cmds=$lt_reload_cmds
13428
13429 # How to pass a linker flag through the compiler.
13430 wl=$lt_lt_prog_compiler_wl_CXX
13431
13432 # Object file suffix (normally "o").
13433 objext="$ac_objext"
13434
13435 # Old archive suffix (normally "a").
13436 libext="$libext"
13437
13438 # Shared library suffix (normally ".so").
13439 shrext_cmds='$shrext_cmds'
13440
13441 # Executable file suffix (normally "").
13442 exeext="$exeext"
13443
13444 # Additional compiler flags for building library objects.
13445 pic_flag=$lt_lt_prog_compiler_pic_CXX
13446 pic_mode=$pic_mode
13447
13448 # What is the maximum length of a command?
13449 max_cmd_len=$lt_cv_sys_max_cmd_len
13450
13451 # Does compiler simultaneously support -c and -o options?
13452 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13453
13454 # Must we lock files when doing compilation?
13455 need_locks=$lt_need_locks
13456
13457 # Do we need the lib prefix for modules?
13458 need_lib_prefix=$need_lib_prefix
13459
13460 # Do we need a version for libraries?
13461 need_version=$need_version
13462
13463 # Whether dlopen is supported.
13464 dlopen_support=$enable_dlopen
13465
13466 # Whether dlopen of programs is supported.
13467 dlopen_self=$enable_dlopen_self
13468
13469 # Whether dlopen of statically linked programs is supported.
13470 dlopen_self_static=$enable_dlopen_self_static
13471
13472 # Compiler flag to prevent dynamic linking.
13473 link_static_flag=$lt_lt_prog_compiler_static_CXX
13474
13475 # Compiler flag to turn off builtin functions.
13476 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13477
13478 # Compiler flag to allow reflexive dlopens.
13479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13480
13481 # Compiler flag to generate shared objects directly from archives.
13482 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13483
13484 # Compiler flag to generate thread-safe objects.
13485 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13486
13487 # Library versioning type.
13488 version_type=$version_type
13489
13490 # Format of library name prefix.
13491 libname_spec=$lt_libname_spec
13492
13493 # List of archive names.  First name is the real one, the rest are links.
13494 # The last name is the one that the linker finds with -lNAME.
13495 library_names_spec=$lt_library_names_spec
13496
13497 # The coded name of the library, if different from the real name.
13498 soname_spec=$lt_soname_spec
13499
13500 # Commands used to build and install an old-style archive.
13501 RANLIB=$lt_RANLIB
13502 old_archive_cmds=$lt_old_archive_cmds_CXX
13503 old_postinstall_cmds=$lt_old_postinstall_cmds
13504 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13505
13506 # Create an old-style archive from a shared archive.
13507 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13508
13509 # Create a temporary old-style archive to link instead of a shared archive.
13510 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13511
13512 # Commands used to build and install a shared archive.
13513 archive_cmds=$lt_archive_cmds_CXX
13514 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13515 postinstall_cmds=$lt_postinstall_cmds
13516 postuninstall_cmds=$lt_postuninstall_cmds
13517
13518 # Commands used to build a loadable module (assumed same as above if empty)
13519 module_cmds=$lt_module_cmds_CXX
13520 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13521
13522 # Commands to strip libraries.
13523 old_striplib=$lt_old_striplib
13524 striplib=$lt_striplib
13525
13526 # Dependencies to place before the objects being linked to create a
13527 # shared library.
13528 predep_objects=$lt_predep_objects_CXX
13529
13530 # Dependencies to place after the objects being linked to create a
13531 # shared library.
13532 postdep_objects=$lt_postdep_objects_CXX
13533
13534 # Dependencies to place before the objects being linked to create a
13535 # shared library.
13536 predeps=$lt_predeps_CXX
13537
13538 # Dependencies to place after the objects being linked to create a
13539 # shared library.
13540 postdeps=$lt_postdeps_CXX
13541
13542 # The directories searched by this compiler when creating a shared
13543 # library
13544 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13545
13546 # The library search path used internally by the compiler when linking
13547 # a shared library.
13548 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13549
13550 # Method to check whether dependent libraries are shared objects.
13551 deplibs_check_method=$lt_deplibs_check_method
13552
13553 # Command to use when deplibs_check_method == file_magic.
13554 file_magic_cmd=$lt_file_magic_cmd
13555
13556 # Flag that allows shared libraries with undefined symbols to be built.
13557 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13558
13559 # Flag that forces no undefined symbols.
13560 no_undefined_flag=$lt_no_undefined_flag_CXX
13561
13562 # Commands used to finish a libtool library installation in a directory.
13563 finish_cmds=$lt_finish_cmds
13564
13565 # Same as above, but a single script fragment to be evaled but not shown.
13566 finish_eval=$lt_finish_eval
13567
13568 # Take the output of nm and produce a listing of raw symbols and C names.
13569 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13570
13571 # Transform the output of nm in a proper C declaration
13572 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13573
13574 # Transform the output of nm in a C name address pair
13575 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13576
13577 # This is the shared library runtime path variable.
13578 runpath_var=$runpath_var
13579
13580 # This is the shared library path variable.
13581 shlibpath_var=$shlibpath_var
13582
13583 # Is shlibpath searched before the hard-coded library search path?
13584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13585
13586 # How to hardcode a shared library path into an executable.
13587 hardcode_action=$hardcode_action_CXX
13588
13589 # Whether we should hardcode library paths into libraries.
13590 hardcode_into_libs=$hardcode_into_libs
13591
13592 # Flag to hardcode \$libdir into a binary during linking.
13593 # This must work even if \$libdir does not exist.
13594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13595
13596 # If ld is used when linking, flag to hardcode \$libdir into
13597 # a binary during linking. This must work even if \$libdir does
13598 # not exist.
13599 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13600
13601 # Whether we need a single -rpath flag with a separated argument.
13602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13603
13604 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13605 # resulting binary.
13606 hardcode_direct=$hardcode_direct_CXX
13607
13608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13609 # resulting binary.
13610 hardcode_minus_L=$hardcode_minus_L_CXX
13611
13612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13613 # the resulting binary.
13614 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13615
13616 # Set to yes if building a shared library automatically hardcodes DIR into the library
13617 # and all subsequent libraries and executables linked against it.
13618 hardcode_automatic=$hardcode_automatic_CXX
13619
13620 # Variables whose values should be saved in libtool wrapper scripts and
13621 # restored at relink time.
13622 variables_saved_for_relink="$variables_saved_for_relink"
13623
13624 # Whether libtool must link a program against all its dependency libraries.
13625 link_all_deplibs=$link_all_deplibs_CXX
13626
13627 # Compile-time system search path for libraries
13628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13629
13630 # Run-time system search path for libraries
13631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13632
13633 # Fix the shell variable \$srcfile for the compiler.
13634 fix_srcfile_path=$lt_fix_srcfile_path
13635
13636 # Set to yes if exported symbols are required.
13637 always_export_symbols=$always_export_symbols_CXX
13638
13639 # The commands to list exported symbols.
13640 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13641
13642 # The commands to extract the exported symbol list from a shared archive.
13643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13644
13645 # Symbols that should not be listed in the preloaded symbols.
13646 exclude_expsyms=$lt_exclude_expsyms_CXX
13647
13648 # Symbols that must always be exported.
13649 include_expsyms=$lt_include_expsyms_CXX
13650
13651 # ### END LIBTOOL TAG CONFIG: $tagname
13652
13653 __EOF__
13654
13655
13656 else
13657   # If there is no Makefile yet, we rely on a make rule to execute
13658   # `config.status --recheck' to rerun these tests and create the
13659   # libtool script then.
13660   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13661   if test -f "$ltmain_in"; then
13662     test -f Makefile && make "$ltmain"
13663   fi
13664 fi
13665
13666
13667 ac_ext=c
13668 ac_cpp='$CPP $CPPFLAGS'
13669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13672
13673 CC=$lt_save_CC
13674 LDCXX=$LD
13675 LD=$lt_save_LD
13676 GCC=$lt_save_GCC
13677 with_gnu_ldcxx=$with_gnu_ld
13678 with_gnu_ld=$lt_save_with_gnu_ld
13679 lt_cv_path_LDCXX=$lt_cv_path_LD
13680 lt_cv_path_LD=$lt_save_path_LD
13681 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13682 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13683
13684         else
13685           tagname=""
13686         fi
13687         ;;
13688
13689       F77)
13690         if test -n "$F77" && test "X$F77" != "Xno"; then
13691
13692 ac_ext=f
13693 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13694 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13695 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13696
13697
13698 archive_cmds_need_lc_F77=no
13699 allow_undefined_flag_F77=
13700 always_export_symbols_F77=no
13701 archive_expsym_cmds_F77=
13702 export_dynamic_flag_spec_F77=
13703 hardcode_direct_F77=no
13704 hardcode_libdir_flag_spec_F77=
13705 hardcode_libdir_flag_spec_ld_F77=
13706 hardcode_libdir_separator_F77=
13707 hardcode_minus_L_F77=no
13708 hardcode_automatic_F77=no
13709 module_cmds_F77=
13710 module_expsym_cmds_F77=
13711 link_all_deplibs_F77=unknown
13712 old_archive_cmds_F77=$old_archive_cmds
13713 no_undefined_flag_F77=
13714 whole_archive_flag_spec_F77=
13715 enable_shared_with_static_runtimes_F77=no
13716
13717 # Source file extension for f77 test sources.
13718 ac_ext=f
13719
13720 # Object file extension for compiled f77 test sources.
13721 objext=o
13722 objext_F77=$objext
13723
13724 # Code to be used in simple compile tests
13725 lt_simple_compile_test_code="\
13726       subroutine t
13727       return
13728       end
13729 "
13730
13731 # Code to be used in simple link tests
13732 lt_simple_link_test_code="\
13733       program t
13734       end
13735 "
13736
13737 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13738
13739 # If no C compiler was specified, use CC.
13740 LTCC=${LTCC-"$CC"}
13741
13742 # If no C compiler flags were specified, use CFLAGS.
13743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13744
13745 # Allow CC to be a program name with arguments.
13746 compiler=$CC
13747
13748
13749 # save warnings/boilerplate of simple test code
13750 ac_outfile=conftest.$ac_objext
13751 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13752 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13753 _lt_compiler_boilerplate=`cat conftest.err`
13754 $rm conftest*
13755
13756 ac_outfile=conftest.$ac_objext
13757 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13758 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13759 _lt_linker_boilerplate=`cat conftest.err`
13760 $rm -r conftest*
13761
13762
13763 # Allow CC to be a program name with arguments.
13764 lt_save_CC="$CC"
13765 CC=${F77-"f77"}
13766 compiler=$CC
13767 compiler_F77=$CC
13768 for cc_temp in $compiler""; do
13769   case $cc_temp in
13770     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13771     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13772     \-*) ;;
13773     *) break;;
13774   esac
13775 done
13776 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13777
13778
13779 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13780 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13781 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13782 $as_echo "$can_build_shared" >&6; }
13783
13784 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13785 $as_echo_n "checking whether to build shared libraries... " >&6; }
13786 test "$can_build_shared" = "no" && enable_shared=no
13787
13788 # On AIX, shared libraries and static libraries use the same namespace, and
13789 # are all built from PIC.
13790 case $host_os in
13791 aix3*)
13792   test "$enable_shared" = yes && enable_static=no
13793   if test -n "$RANLIB"; then
13794     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13795     postinstall_cmds='$RANLIB $lib'
13796   fi
13797   ;;
13798 aix[4-9]*)
13799   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13800     test "$enable_shared" = yes && enable_static=no
13801   fi
13802   ;;
13803 esac
13804 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13805 $as_echo "$enable_shared" >&6; }
13806
13807 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13808 $as_echo_n "checking whether to build static libraries... " >&6; }
13809 # Make sure either enable_shared or enable_static is yes.
13810 test "$enable_shared" = yes || enable_static=yes
13811 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13812 $as_echo "$enable_static" >&6; }
13813
13814 GCC_F77="$G77"
13815 LD_F77="$LD"
13816
13817 lt_prog_compiler_wl_F77=
13818 lt_prog_compiler_pic_F77=
13819 lt_prog_compiler_static_F77=
13820
13821 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13822 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13823
13824   if test "$GCC" = yes; then
13825     lt_prog_compiler_wl_F77='-Wl,'
13826     lt_prog_compiler_static_F77='-static'
13827
13828     case $host_os in
13829       aix*)
13830       # All AIX code is PIC.
13831       if test "$host_cpu" = ia64; then
13832         # AIX 5 now supports IA64 processor
13833         lt_prog_compiler_static_F77='-Bstatic'
13834       fi
13835       ;;
13836
13837     amigaos*)
13838       # FIXME: we need at least 68020 code to build shared libraries, but
13839       # adding the `-m68020' flag to GCC prevents building anything better,
13840       # like `-m68040'.
13841       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13842       ;;
13843
13844     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13845       # PIC is the default for these OSes.
13846       ;;
13847
13848     mingw* | cygwin* | pw32* | os2*)
13849       # This hack is so that the source file can tell whether it is being
13850       # built for inclusion in a dll (and should export symbols for example).
13851       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13852       # (--disable-auto-import) libraries
13853       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13854       ;;
13855
13856     darwin* | rhapsody*)
13857       # PIC is the default on this platform
13858       # Common symbols not allowed in MH_DYLIB files
13859       lt_prog_compiler_pic_F77='-fno-common'
13860       ;;
13861
13862     interix[3-9]*)
13863       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13864       # Instead, we relocate shared libraries at runtime.
13865       ;;
13866
13867     msdosdjgpp*)
13868       # Just because we use GCC doesn't mean we suddenly get shared libraries
13869       # on systems that don't support them.
13870       lt_prog_compiler_can_build_shared_F77=no
13871       enable_shared=no
13872       ;;
13873
13874     sysv4*MP*)
13875       if test -d /usr/nec; then
13876         lt_prog_compiler_pic_F77=-Kconform_pic
13877       fi
13878       ;;
13879
13880     hpux*)
13881       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13882       # not for PA HP-UX.
13883       case $host_cpu in
13884       hppa*64*|ia64*)
13885         # +Z the default
13886         ;;
13887       *)
13888         lt_prog_compiler_pic_F77='-fPIC'
13889         ;;
13890       esac
13891       ;;
13892
13893     *)
13894       lt_prog_compiler_pic_F77='-fPIC'
13895       ;;
13896     esac
13897   else
13898     # PORTME Check for flag to pass linker flags through the system compiler.
13899     case $host_os in
13900     aix*)
13901       lt_prog_compiler_wl_F77='-Wl,'
13902       if test "$host_cpu" = ia64; then
13903         # AIX 5 now supports IA64 processor
13904         lt_prog_compiler_static_F77='-Bstatic'
13905       else
13906         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13907       fi
13908       ;;
13909       darwin*)
13910         # PIC is the default on this platform
13911         # Common symbols not allowed in MH_DYLIB files
13912        case $cc_basename in
13913          xlc*)
13914          lt_prog_compiler_pic_F77='-qnocommon'
13915          lt_prog_compiler_wl_F77='-Wl,'
13916          ;;
13917        esac
13918        ;;
13919
13920     mingw* | cygwin* | pw32* | os2*)
13921       # This hack is so that the source file can tell whether it is being
13922       # built for inclusion in a dll (and should export symbols for example).
13923       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13924       ;;
13925
13926     hpux9* | hpux10* | hpux11*)
13927       lt_prog_compiler_wl_F77='-Wl,'
13928       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13929       # not for PA HP-UX.
13930       case $host_cpu in
13931       hppa*64*|ia64*)
13932         # +Z the default
13933         ;;
13934       *)
13935         lt_prog_compiler_pic_F77='+Z'
13936         ;;
13937       esac
13938       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13939       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13940       ;;
13941
13942     irix5* | irix6* | nonstopux*)
13943       lt_prog_compiler_wl_F77='-Wl,'
13944       # PIC (with -KPIC) is the default.
13945       lt_prog_compiler_static_F77='-non_shared'
13946       ;;
13947
13948     newsos6)
13949       lt_prog_compiler_pic_F77='-KPIC'
13950       lt_prog_compiler_static_F77='-Bstatic'
13951       ;;
13952
13953     linux* | k*bsd*-gnu)
13954       case $cc_basename in
13955       icc* | ecc*)
13956         lt_prog_compiler_wl_F77='-Wl,'
13957         lt_prog_compiler_pic_F77='-KPIC'
13958         lt_prog_compiler_static_F77='-static'
13959         ;;
13960       pgcc* | pgf77* | pgf90* | pgf95*)
13961         # Portland Group compilers (*not* the Pentium gcc compiler,
13962         # which looks to be a dead project)
13963         lt_prog_compiler_wl_F77='-Wl,'
13964         lt_prog_compiler_pic_F77='-fpic'
13965         lt_prog_compiler_static_F77='-Bstatic'
13966         ;;
13967       ccc*)
13968         lt_prog_compiler_wl_F77='-Wl,'
13969         # All Alpha code is PIC.
13970         lt_prog_compiler_static_F77='-non_shared'
13971         ;;
13972       *)
13973         case `$CC -V 2>&1 | sed 5q` in
13974         *Sun\ C*)
13975           # Sun C 5.9
13976           lt_prog_compiler_pic_F77='-KPIC'
13977           lt_prog_compiler_static_F77='-Bstatic'
13978           lt_prog_compiler_wl_F77='-Wl,'
13979           ;;
13980         *Sun\ F*)
13981           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13982           lt_prog_compiler_pic_F77='-KPIC'
13983           lt_prog_compiler_static_F77='-Bstatic'
13984           lt_prog_compiler_wl_F77=''
13985           ;;
13986         esac
13987         ;;
13988       esac
13989       ;;
13990
13991     osf3* | osf4* | osf5*)
13992       lt_prog_compiler_wl_F77='-Wl,'
13993       # All OSF/1 code is PIC.
13994       lt_prog_compiler_static_F77='-non_shared'
13995       ;;
13996
13997     rdos*)
13998       lt_prog_compiler_static_F77='-non_shared'
13999       ;;
14000
14001     solaris*)
14002       lt_prog_compiler_pic_F77='-KPIC'
14003       lt_prog_compiler_static_F77='-Bstatic'
14004       case $cc_basename in
14005       f77* | f90* | f95*)
14006         lt_prog_compiler_wl_F77='-Qoption ld ';;
14007       *)
14008         lt_prog_compiler_wl_F77='-Wl,';;
14009       esac
14010       ;;
14011
14012     sunos4*)
14013       lt_prog_compiler_wl_F77='-Qoption ld '
14014       lt_prog_compiler_pic_F77='-PIC'
14015       lt_prog_compiler_static_F77='-Bstatic'
14016       ;;
14017
14018     sysv4 | sysv4.2uw2* | sysv4.3*)
14019       lt_prog_compiler_wl_F77='-Wl,'
14020       lt_prog_compiler_pic_F77='-KPIC'
14021       lt_prog_compiler_static_F77='-Bstatic'
14022       ;;
14023
14024     sysv4*MP*)
14025       if test -d /usr/nec ;then
14026         lt_prog_compiler_pic_F77='-Kconform_pic'
14027         lt_prog_compiler_static_F77='-Bstatic'
14028       fi
14029       ;;
14030
14031     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14032       lt_prog_compiler_wl_F77='-Wl,'
14033       lt_prog_compiler_pic_F77='-KPIC'
14034       lt_prog_compiler_static_F77='-Bstatic'
14035       ;;
14036
14037     unicos*)
14038       lt_prog_compiler_wl_F77='-Wl,'
14039       lt_prog_compiler_can_build_shared_F77=no
14040       ;;
14041
14042     uts4*)
14043       lt_prog_compiler_pic_F77='-pic'
14044       lt_prog_compiler_static_F77='-Bstatic'
14045       ;;
14046
14047     *)
14048       lt_prog_compiler_can_build_shared_F77=no
14049       ;;
14050     esac
14051   fi
14052
14053 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14054 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14055
14056 #
14057 # Check to make sure the PIC flag actually works.
14058 #
14059 if test -n "$lt_prog_compiler_pic_F77"; then
14060
14061 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14062 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14063 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14064   $as_echo_n "(cached) " >&6
14065 else
14066   lt_cv_prog_compiler_pic_works_F77=no
14067   ac_outfile=conftest.$ac_objext
14068    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14069    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14070    # Insert the option either (1) after the last *FLAGS variable, or
14071    # (2) before a word containing "conftest.", or (3) at the end.
14072    # Note that $ac_compile itself does not contain backslashes and begins
14073    # with a dollar sign (not a hyphen), so the echo should work correctly.
14074    # The option is referenced via a variable to avoid confusing sed.
14075    lt_compile=`echo "$ac_compile" | $SED \
14076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14078    -e 's:$: $lt_compiler_flag:'`
14079    (eval echo "\"\$as_me:14079: $lt_compile\"" >&5)
14080    (eval "$lt_compile" 2>conftest.err)
14081    ac_status=$?
14082    cat conftest.err >&5
14083    echo "$as_me:14083: \$? = $ac_status" >&5
14084    if (exit $ac_status) && test -s "$ac_outfile"; then
14085      # The compiler can only warn and ignore the option if not recognized
14086      # So say no if there are warnings other than the usual output.
14087      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14088      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14089      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14090        lt_cv_prog_compiler_pic_works_F77=yes
14091      fi
14092    fi
14093    $rm conftest*
14094
14095 fi
14096 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14097 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14098
14099 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14100     case $lt_prog_compiler_pic_F77 in
14101      "" | " "*) ;;
14102      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14103      esac
14104 else
14105     lt_prog_compiler_pic_F77=
14106      lt_prog_compiler_can_build_shared_F77=no
14107 fi
14108
14109 fi
14110 case $host_os in
14111   # For platforms which do not support PIC, -DPIC is meaningless:
14112   *djgpp*)
14113     lt_prog_compiler_pic_F77=
14114     ;;
14115   *)
14116     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14117     ;;
14118 esac
14119
14120 #
14121 # Check to make sure the static flag actually works.
14122 #
14123 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14124 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14125 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14126 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14127   $as_echo_n "(cached) " >&6
14128 else
14129   lt_cv_prog_compiler_static_works_F77=no
14130    save_LDFLAGS="$LDFLAGS"
14131    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14132    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14133    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14134      # The linker can only warn and ignore the option if not recognized
14135      # So say no if there are warnings
14136      if test -s conftest.err; then
14137        # Append any errors to the config.log.
14138        cat conftest.err 1>&5
14139        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14140        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14141        if diff conftest.exp conftest.er2 >/dev/null; then
14142          lt_cv_prog_compiler_static_works_F77=yes
14143        fi
14144      else
14145        lt_cv_prog_compiler_static_works_F77=yes
14146      fi
14147    fi
14148    $rm -r conftest*
14149    LDFLAGS="$save_LDFLAGS"
14150
14151 fi
14152 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14153 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14154
14155 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14156     :
14157 else
14158     lt_prog_compiler_static_F77=
14159 fi
14160
14161
14162 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14164 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14165   $as_echo_n "(cached) " >&6
14166 else
14167   lt_cv_prog_compiler_c_o_F77=no
14168    $rm -r conftest 2>/dev/null
14169    mkdir conftest
14170    cd conftest
14171    mkdir out
14172    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14173
14174    lt_compiler_flag="-o out/conftest2.$ac_objext"
14175    # Insert the option either (1) after the last *FLAGS variable, or
14176    # (2) before a word containing "conftest.", or (3) at the end.
14177    # Note that $ac_compile itself does not contain backslashes and begins
14178    # with a dollar sign (not a hyphen), so the echo should work correctly.
14179    lt_compile=`echo "$ac_compile" | $SED \
14180    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14181    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14182    -e 's:$: $lt_compiler_flag:'`
14183    (eval echo "\"\$as_me:14183: $lt_compile\"" >&5)
14184    (eval "$lt_compile" 2>out/conftest.err)
14185    ac_status=$?
14186    cat out/conftest.err >&5
14187    echo "$as_me:14187: \$? = $ac_status" >&5
14188    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14189    then
14190      # The compiler can only warn and ignore the option if not recognized
14191      # So say no if there are warnings
14192      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14193      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14194      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14195        lt_cv_prog_compiler_c_o_F77=yes
14196      fi
14197    fi
14198    chmod u+w . 2>&5
14199    $rm conftest*
14200    # SGI C++ compiler will create directory out/ii_files/ for
14201    # template instantiation
14202    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14203    $rm out/* && rmdir out
14204    cd ..
14205    rmdir conftest
14206    $rm conftest*
14207
14208 fi
14209 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14210 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14211
14212
14213 hard_links="nottested"
14214 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14215   # do not overwrite the value of need_locks provided by the user
14216   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14217 $as_echo_n "checking if we can lock with hard links... " >&6; }
14218   hard_links=yes
14219   $rm conftest*
14220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14221   touch conftest.a
14222   ln conftest.a conftest.b 2>&5 || hard_links=no
14223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14224   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14225 $as_echo "$hard_links" >&6; }
14226   if test "$hard_links" = no; then
14227     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14228 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14229     need_locks=warn
14230   fi
14231 else
14232   need_locks=no
14233 fi
14234
14235 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14236 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14237
14238   runpath_var=
14239   allow_undefined_flag_F77=
14240   enable_shared_with_static_runtimes_F77=no
14241   archive_cmds_F77=
14242   archive_expsym_cmds_F77=
14243   old_archive_From_new_cmds_F77=
14244   old_archive_from_expsyms_cmds_F77=
14245   export_dynamic_flag_spec_F77=
14246   whole_archive_flag_spec_F77=
14247   thread_safe_flag_spec_F77=
14248   hardcode_libdir_flag_spec_F77=
14249   hardcode_libdir_flag_spec_ld_F77=
14250   hardcode_libdir_separator_F77=
14251   hardcode_direct_F77=no
14252   hardcode_minus_L_F77=no
14253   hardcode_shlibpath_var_F77=unsupported
14254   link_all_deplibs_F77=unknown
14255   hardcode_automatic_F77=no
14256   module_cmds_F77=
14257   module_expsym_cmds_F77=
14258   always_export_symbols_F77=no
14259   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14260   # include_expsyms should be a list of space-separated symbols to be *always*
14261   # included in the symbol list
14262   include_expsyms_F77=
14263   # exclude_expsyms can be an extended regexp of symbols to exclude
14264   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14265   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14266   # as well as any symbol that contains `d'.
14267   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14268   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14269   # platforms (ab)use it in PIC code, but their linkers get confused if
14270   # the symbol is explicitly referenced.  Since portable code cannot
14271   # rely on this symbol name, it's probably fine to never include it in
14272   # preloaded symbol tables.
14273   # Exclude shared library initialization/finalization symbols.
14274   extract_expsyms_cmds=
14275   # Just being paranoid about ensuring that cc_basename is set.
14276   for cc_temp in $compiler""; do
14277   case $cc_temp in
14278     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14279     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14280     \-*) ;;
14281     *) break;;
14282   esac
14283 done
14284 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14285
14286   case $host_os in
14287   cygwin* | mingw* | pw32*)
14288     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14289     # When not using gcc, we currently assume that we are using
14290     # Microsoft Visual C++.
14291     if test "$GCC" != yes; then
14292       with_gnu_ld=no
14293     fi
14294     ;;
14295   interix*)
14296     # we just hope/assume this is gcc and not c89 (= MSVC++)
14297     with_gnu_ld=yes
14298     ;;
14299   openbsd*)
14300     with_gnu_ld=no
14301     ;;
14302   esac
14303
14304   ld_shlibs_F77=yes
14305   if test "$with_gnu_ld" = yes; then
14306     # If archive_cmds runs LD, not CC, wlarc should be empty
14307     wlarc='${wl}'
14308
14309     # Set some defaults for GNU ld with shared library support. These
14310     # are reset later if shared libraries are not supported. Putting them
14311     # here allows them to be overridden if necessary.
14312     runpath_var=LD_RUN_PATH
14313     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14314     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14315     # ancient GNU ld didn't support --whole-archive et. al.
14316     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14317         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14318       else
14319         whole_archive_flag_spec_F77=
14320     fi
14321     supports_anon_versioning=no
14322     case `$LD -v 2>/dev/null` in
14323       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14324       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14325       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14326       *\ 2.11.*) ;; # other 2.11 versions
14327       *) supports_anon_versioning=yes ;;
14328     esac
14329
14330     # See if GNU ld supports shared libraries.
14331     case $host_os in
14332     aix[3-9]*)
14333       # On AIX/PPC, the GNU linker is very broken
14334       if test "$host_cpu" != ia64; then
14335         ld_shlibs_F77=no
14336         cat <<EOF 1>&2
14337
14338 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14339 *** to be unable to reliably create shared libraries on AIX.
14340 *** Therefore, libtool is disabling shared libraries support.  If you
14341 *** really care for shared libraries, you may want to modify your PATH
14342 *** so that a non-GNU linker is found, and then restart.
14343
14344 EOF
14345       fi
14346       ;;
14347
14348     amigaos*)
14349       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)'
14350       hardcode_libdir_flag_spec_F77='-L$libdir'
14351       hardcode_minus_L_F77=yes
14352
14353       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14354       # that the semantics of dynamic libraries on AmigaOS, at least up
14355       # to version 4, is to share data among multiple programs linked
14356       # with the same dynamic library.  Since this doesn't match the
14357       # behavior of shared libraries on other platforms, we can't use
14358       # them.
14359       ld_shlibs_F77=no
14360       ;;
14361
14362     beos*)
14363       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14364         allow_undefined_flag_F77=unsupported
14365         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14366         # support --undefined.  This deserves some investigation.  FIXME
14367         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14368       else
14369         ld_shlibs_F77=no
14370       fi
14371       ;;
14372
14373     cygwin* | mingw* | pw32*)
14374       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14375       # as there is no search path for DLLs.
14376       hardcode_libdir_flag_spec_F77='-L$libdir'
14377       allow_undefined_flag_F77=unsupported
14378       always_export_symbols_F77=no
14379       enable_shared_with_static_runtimes_F77=yes
14380       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14381
14382       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14383         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14384         # If the export-symbols file already is a .def file (1st line
14385         # is EXPORTS), use it as is; otherwise, prepend...
14386         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14387           cp $export_symbols $output_objdir/$soname.def;
14388         else
14389           echo EXPORTS > $output_objdir/$soname.def;
14390           cat $export_symbols >> $output_objdir/$soname.def;
14391         fi~
14392         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14393       else
14394         ld_shlibs_F77=no
14395       fi
14396       ;;
14397
14398     interix[3-9]*)
14399       hardcode_direct_F77=no
14400       hardcode_shlibpath_var_F77=no
14401       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14402       export_dynamic_flag_spec_F77='${wl}-E'
14403       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14404       # Instead, shared libraries are loaded at an image base (0x10000000 by
14405       # default) and relocated if they conflict, which is a slow very memory
14406       # consuming and fragmenting process.  To avoid this, we pick a random,
14407       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14408       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14409       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'
14410       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'
14411       ;;
14412
14413     gnu* | linux* | k*bsd*-gnu)
14414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14415         tmp_addflag=
14416         case $cc_basename,$host_cpu in
14417         pgcc*)                          # Portland Group C compiler
14418           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'
14419           tmp_addflag=' $pic_flag'
14420           ;;
14421         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14422           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'
14423           tmp_addflag=' $pic_flag -Mnomain' ;;
14424         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14425           tmp_addflag=' -i_dynamic' ;;
14426         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14427           tmp_addflag=' -i_dynamic -nofor_main' ;;
14428         ifc* | ifort*)                  # Intel Fortran compiler
14429           tmp_addflag=' -nofor_main' ;;
14430         esac
14431         case `$CC -V 2>&1 | sed 5q` in
14432         *Sun\ C*)                       # Sun C 5.9
14433           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14434           tmp_sharedflag='-G' ;;
14435         *Sun\ F*)                       # Sun Fortran 8.3
14436           tmp_sharedflag='-G' ;;
14437         *)
14438           tmp_sharedflag='-shared' ;;
14439         esac
14440         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14441
14442         if test $supports_anon_versioning = yes; then
14443           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14444   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14445   $echo "local: *; };" >> $output_objdir/$libname.ver~
14446           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14447         fi
14448       else
14449         ld_shlibs_F77=no
14450       fi
14451       ;;
14452
14453     netbsd*)
14454       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14455         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14456         wlarc=
14457       else
14458         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14460       fi
14461       ;;
14462
14463     solaris*)
14464       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14465         ld_shlibs_F77=no
14466         cat <<EOF 1>&2
14467
14468 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14469 *** create shared libraries on Solaris systems.  Therefore, libtool
14470 *** is disabling shared libraries support.  We urge you to upgrade GNU
14471 *** binutils to release 2.9.1 or newer.  Another option is to modify
14472 *** your PATH or compiler configuration so that the native linker is
14473 *** used, and then restart.
14474
14475 EOF
14476       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14477         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14478         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14479       else
14480         ld_shlibs_F77=no
14481       fi
14482       ;;
14483
14484     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14485       case `$LD -v 2>&1` in
14486         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14487         ld_shlibs_F77=no
14488         cat <<_LT_EOF 1>&2
14489
14490 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14491 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14492 *** is disabling shared libraries support.  We urge you to upgrade GNU
14493 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14494 *** your PATH or compiler configuration so that the native linker is
14495 *** used, and then restart.
14496
14497 _LT_EOF
14498         ;;
14499         *)
14500           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14501             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14502             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14503             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14504           else
14505             ld_shlibs_F77=no
14506           fi
14507         ;;
14508       esac
14509       ;;
14510
14511     sunos4*)
14512       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14513       wlarc=
14514       hardcode_direct_F77=yes
14515       hardcode_shlibpath_var_F77=no
14516       ;;
14517
14518     *)
14519       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14520         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14521         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14522       else
14523         ld_shlibs_F77=no
14524       fi
14525       ;;
14526     esac
14527
14528     if test "$ld_shlibs_F77" = no; then
14529       runpath_var=
14530       hardcode_libdir_flag_spec_F77=
14531       export_dynamic_flag_spec_F77=
14532       whole_archive_flag_spec_F77=
14533     fi
14534   else
14535     # PORTME fill in a description of your system's linker (not GNU ld)
14536     case $host_os in
14537     aix3*)
14538       allow_undefined_flag_F77=unsupported
14539       always_export_symbols_F77=yes
14540       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'
14541       # Note: this linker hardcodes the directories in LIBPATH if there
14542       # are no directories specified by -L.
14543       hardcode_minus_L_F77=yes
14544       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14545         # Neither direct hardcoding nor static linking is supported with a
14546         # broken collect2.
14547         hardcode_direct_F77=unsupported
14548       fi
14549       ;;
14550
14551     aix[4-9]*)
14552       if test "$host_cpu" = ia64; then
14553         # On IA64, the linker does run time linking by default, so we don't
14554         # have to do anything special.
14555         aix_use_runtimelinking=no
14556         exp_sym_flag='-Bexport'
14557         no_entry_flag=""
14558       else
14559         # If we're using GNU nm, then we don't want the "-C" option.
14560         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14561         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14562           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'
14563         else
14564           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'
14565         fi
14566         aix_use_runtimelinking=no
14567
14568         # Test if we are trying to use run time linking or normal
14569         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14570         # need to do runtime linking.
14571         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14572           for ld_flag in $LDFLAGS; do
14573           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14574             aix_use_runtimelinking=yes
14575             break
14576           fi
14577           done
14578           ;;
14579         esac
14580
14581         exp_sym_flag='-bexport'
14582         no_entry_flag='-bnoentry'
14583       fi
14584
14585       # When large executables or shared objects are built, AIX ld can
14586       # have problems creating the table of contents.  If linking a library
14587       # or program results in "error TOC overflow" add -mminimal-toc to
14588       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14589       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14590
14591       archive_cmds_F77=''
14592       hardcode_direct_F77=yes
14593       hardcode_libdir_separator_F77=':'
14594       link_all_deplibs_F77=yes
14595
14596       if test "$GCC" = yes; then
14597         case $host_os in aix4.[012]|aix4.[012].*)
14598         # We only want to do this on AIX 4.2 and lower, the check
14599         # below for broken collect2 doesn't work under 4.3+
14600           collect2name=`${CC} -print-prog-name=collect2`
14601           if test -f "$collect2name" && \
14602            strings "$collect2name" | grep resolve_lib_name >/dev/null
14603           then
14604           # We have reworked collect2
14605           :
14606           else
14607           # We have old collect2
14608           hardcode_direct_F77=unsupported
14609           # It fails to find uninstalled libraries when the uninstalled
14610           # path is not listed in the libpath.  Setting hardcode_minus_L
14611           # to unsupported forces relinking
14612           hardcode_minus_L_F77=yes
14613           hardcode_libdir_flag_spec_F77='-L$libdir'
14614           hardcode_libdir_separator_F77=
14615           fi
14616           ;;
14617         esac
14618         shared_flag='-shared'
14619         if test "$aix_use_runtimelinking" = yes; then
14620           shared_flag="$shared_flag "'${wl}-G'
14621         fi
14622       else
14623         # not using gcc
14624         if test "$host_cpu" = ia64; then
14625         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14626         # chokes on -Wl,-G. The following line is correct:
14627           shared_flag='-G'
14628         else
14629           if test "$aix_use_runtimelinking" = yes; then
14630             shared_flag='${wl}-G'
14631           else
14632             shared_flag='${wl}-bM:SRE'
14633           fi
14634         fi
14635       fi
14636
14637       # It seems that -bexpall does not export symbols beginning with
14638       # underscore (_), so it is better to generate a list of symbols to export.
14639       always_export_symbols_F77=yes
14640       if test "$aix_use_runtimelinking" = yes; then
14641         # Warning - without using the other runtime loading flags (-brtl),
14642         # -berok will link without error, but may produce a broken library.
14643         allow_undefined_flag_F77='-berok'
14644        # Determine the default libpath from the value encoded in an empty executable.
14645        cat >conftest.$ac_ext <<_ACEOF
14646       program main
14647
14648       end
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (ac_try="$ac_link"
14652 case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14657 $as_echo "$ac_try_echo") >&5
14658   (eval "$ac_link") 2>conftest.er1
14659   ac_status=$?
14660   grep -v '^ *+' conftest.er1 >conftest.err
14661   rm -f conftest.er1
14662   cat conftest.err >&5
14663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); } && {
14665          test -z "$ac_f77_werror_flag" ||
14666          test ! -s conftest.err
14667        } && test -s conftest$ac_exeext && {
14668          test "$cross_compiling" = yes ||
14669          $as_test_x conftest$ac_exeext
14670        }; then
14671
14672 lt_aix_libpath_sed='
14673     /Import File Strings/,/^$/ {
14674         /^0/ {
14675             s/^0  *\(.*\)$/\1/
14676             p
14677         }
14678     }'
14679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14680 # Check for a 64-bit object if we didn't find anything.
14681 if test -z "$aix_libpath"; then
14682   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14683 fi
14684 else
14685   $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688
14689 fi
14690
14691 rm -rf conftest.dSYM
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693       conftest$ac_exeext conftest.$ac_ext
14694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14695
14696        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14697         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"
14698        else
14699         if test "$host_cpu" = ia64; then
14700           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14701           allow_undefined_flag_F77="-z nodefs"
14702           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"
14703         else
14704          # Determine the default libpath from the value encoded in an empty executable.
14705          cat >conftest.$ac_ext <<_ACEOF
14706       program main
14707
14708       end
14709 _ACEOF
14710 rm -f conftest.$ac_objext conftest$ac_exeext
14711 if { (ac_try="$ac_link"
14712 case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718   (eval "$ac_link") 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } && {
14725          test -z "$ac_f77_werror_flag" ||
14726          test ! -s conftest.err
14727        } && test -s conftest$ac_exeext && {
14728          test "$cross_compiling" = yes ||
14729          $as_test_x conftest$ac_exeext
14730        }; then
14731
14732 lt_aix_libpath_sed='
14733     /Import File Strings/,/^$/ {
14734         /^0/ {
14735             s/^0  *\(.*\)$/\1/
14736             p
14737         }
14738     }'
14739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14740 # Check for a 64-bit object if we didn't find anything.
14741 if test -z "$aix_libpath"; then
14742   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14743 fi
14744 else
14745   $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748
14749 fi
14750
14751 rm -rf conftest.dSYM
14752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14753       conftest$ac_exeext conftest.$ac_ext
14754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14755
14756          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14757           # Warning - without using the other run time loading flags,
14758           # -berok will link without error, but may produce a broken library.
14759           no_undefined_flag_F77=' ${wl}-bernotok'
14760           allow_undefined_flag_F77=' ${wl}-berok'
14761           # Exported symbols can be pulled into shared objects from archives
14762           whole_archive_flag_spec_F77='$convenience'
14763           archive_cmds_need_lc_F77=yes
14764           # This is similar to how AIX traditionally builds its shared libraries.
14765           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'
14766         fi
14767       fi
14768       ;;
14769
14770     amigaos*)
14771       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)'
14772       hardcode_libdir_flag_spec_F77='-L$libdir'
14773       hardcode_minus_L_F77=yes
14774       # see comment about different semantics on the GNU ld section
14775       ld_shlibs_F77=no
14776       ;;
14777
14778     bsdi[45]*)
14779       export_dynamic_flag_spec_F77=-rdynamic
14780       ;;
14781
14782     cygwin* | mingw* | pw32*)
14783       # When not using gcc, we currently assume that we are using
14784       # Microsoft Visual C++.
14785       # hardcode_libdir_flag_spec is actually meaningless, as there is
14786       # no search path for DLLs.
14787       hardcode_libdir_flag_spec_F77=' '
14788       allow_undefined_flag_F77=unsupported
14789       # Tell ltmain to make .lib files, not .a files.
14790       libext=lib
14791       # Tell ltmain to make .dll files, not .so files.
14792       shrext_cmds=".dll"
14793       # FIXME: Setting linknames here is a bad hack.
14794       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14795       # The linker will automatically build a .lib file if we build a DLL.
14796       old_archive_From_new_cmds_F77='true'
14797       # FIXME: Should let the user specify the lib program.
14798       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14799       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14800       enable_shared_with_static_runtimes_F77=yes
14801       ;;
14802
14803     darwin* | rhapsody*)
14804       case $host_os in
14805         rhapsody* | darwin1.[012])
14806          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14807          ;;
14808        *) # Darwin 1.3 on
14809          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14810            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14811          else
14812            case ${MACOSX_DEPLOYMENT_TARGET} in
14813              10.[012])
14814                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14815                ;;
14816              10.*)
14817                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14818                ;;
14819            esac
14820          fi
14821          ;;
14822       esac
14823       archive_cmds_need_lc_F77=no
14824       hardcode_direct_F77=no
14825       hardcode_automatic_F77=yes
14826       hardcode_shlibpath_var_F77=unsupported
14827       whole_archive_flag_spec_F77=''
14828       link_all_deplibs_F77=yes
14829     if test "$GCC" = yes ; then
14830         output_verbose_link_cmd='echo'
14831         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14832         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14833         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14834         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14835     else
14836       case $cc_basename in
14837         xlc*)
14838          output_verbose_link_cmd='echo'
14839          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14840          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14841           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14842          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14843           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}'
14844           ;;
14845        *)
14846          ld_shlibs_F77=no
14847           ;;
14848       esac
14849     fi
14850       ;;
14851
14852     dgux*)
14853       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14854       hardcode_libdir_flag_spec_F77='-L$libdir'
14855       hardcode_shlibpath_var_F77=no
14856       ;;
14857
14858     freebsd1*)
14859       ld_shlibs_F77=no
14860       ;;
14861
14862     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14863     # support.  Future versions do this automatically, but an explicit c++rt0.o
14864     # does not break anything, and helps significantly (at the cost of a little
14865     # extra space).
14866     freebsd2.2*)
14867       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14868       hardcode_libdir_flag_spec_F77='-R$libdir'
14869       hardcode_direct_F77=yes
14870       hardcode_shlibpath_var_F77=no
14871       ;;
14872
14873     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14874     freebsd2*)
14875       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14876       hardcode_direct_F77=yes
14877       hardcode_minus_L_F77=yes
14878       hardcode_shlibpath_var_F77=no
14879       ;;
14880
14881     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14882     freebsd* | dragonfly*)
14883       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14884       hardcode_libdir_flag_spec_F77='-R$libdir'
14885       hardcode_direct_F77=yes
14886       hardcode_shlibpath_var_F77=no
14887       ;;
14888
14889     hpux9*)
14890       if test "$GCC" = yes; then
14891         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'
14892       else
14893         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'
14894       fi
14895       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14896       hardcode_libdir_separator_F77=:
14897       hardcode_direct_F77=yes
14898
14899       # hardcode_minus_L: Not really in the search PATH,
14900       # but as the default location of the library.
14901       hardcode_minus_L_F77=yes
14902       export_dynamic_flag_spec_F77='${wl}-E'
14903       ;;
14904
14905     hpux10*)
14906       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14907         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14908       else
14909         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14910       fi
14911       if test "$with_gnu_ld" = no; then
14912         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14913         hardcode_libdir_separator_F77=:
14914
14915         hardcode_direct_F77=yes
14916         export_dynamic_flag_spec_F77='${wl}-E'
14917
14918         # hardcode_minus_L: Not really in the search PATH,
14919         # but as the default location of the library.
14920         hardcode_minus_L_F77=yes
14921       fi
14922       ;;
14923
14924     hpux11*)
14925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14926         case $host_cpu in
14927         hppa*64*)
14928           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14929           ;;
14930         ia64*)
14931           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14932           ;;
14933         *)
14934           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14935           ;;
14936         esac
14937       else
14938         case $host_cpu in
14939         hppa*64*)
14940           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14941           ;;
14942         ia64*)
14943           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14944           ;;
14945         *)
14946           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14947           ;;
14948         esac
14949       fi
14950       if test "$with_gnu_ld" = no; then
14951         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14952         hardcode_libdir_separator_F77=:
14953
14954         case $host_cpu in
14955         hppa*64*|ia64*)
14956           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14957           hardcode_direct_F77=no
14958           hardcode_shlibpath_var_F77=no
14959           ;;
14960         *)
14961           hardcode_direct_F77=yes
14962           export_dynamic_flag_spec_F77='${wl}-E'
14963
14964           # hardcode_minus_L: Not really in the search PATH,
14965           # but as the default location of the library.
14966           hardcode_minus_L_F77=yes
14967           ;;
14968         esac
14969       fi
14970       ;;
14971
14972     irix5* | irix6* | nonstopux*)
14973       if test "$GCC" = yes; then
14974         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'
14975       else
14976         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'
14977         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14978       fi
14979       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14980       hardcode_libdir_separator_F77=:
14981       link_all_deplibs_F77=yes
14982       ;;
14983
14984     netbsd*)
14985       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14986         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14987       else
14988         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14989       fi
14990       hardcode_libdir_flag_spec_F77='-R$libdir'
14991       hardcode_direct_F77=yes
14992       hardcode_shlibpath_var_F77=no
14993       ;;
14994
14995     newsos6)
14996       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14997       hardcode_direct_F77=yes
14998       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14999       hardcode_libdir_separator_F77=:
15000       hardcode_shlibpath_var_F77=no
15001       ;;
15002
15003     openbsd*)
15004       if test -f /usr/libexec/ld.so; then
15005         hardcode_direct_F77=yes
15006         hardcode_shlibpath_var_F77=no
15007         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15008           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15009           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15010           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15011           export_dynamic_flag_spec_F77='${wl}-E'
15012         else
15013           case $host_os in
15014            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15015              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15016              hardcode_libdir_flag_spec_F77='-R$libdir'
15017              ;;
15018            *)
15019              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15020              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15021              ;;
15022           esac
15023         fi
15024       else
15025         ld_shlibs_F77=no
15026       fi
15027       ;;
15028
15029     os2*)
15030       hardcode_libdir_flag_spec_F77='-L$libdir'
15031       hardcode_minus_L_F77=yes
15032       allow_undefined_flag_F77=unsupported
15033       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'
15034       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15035       ;;
15036
15037     osf3*)
15038       if test "$GCC" = yes; then
15039         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15040         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'
15041       else
15042         allow_undefined_flag_F77=' -expect_unresolved \*'
15043         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'
15044       fi
15045       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046       hardcode_libdir_separator_F77=:
15047       ;;
15048
15049     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15050       if test "$GCC" = yes; then
15051         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15052         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'
15053         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15054       else
15055         allow_undefined_flag_F77=' -expect_unresolved \*'
15056         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'
15057         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~
15058         $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'
15059
15060         # Both c and cxx compiler support -rpath directly
15061         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15062       fi
15063       hardcode_libdir_separator_F77=:
15064       ;;
15065
15066     solaris*)
15067       no_undefined_flag_F77=' -z text'
15068       if test "$GCC" = yes; then
15069         wlarc='${wl}'
15070         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15071         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15072           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15073       else
15074         wlarc=''
15075         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15076         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15078       fi
15079       hardcode_libdir_flag_spec_F77='-R$libdir'
15080       hardcode_shlibpath_var_F77=no
15081       case $host_os in
15082       solaris2.[0-5] | solaris2.[0-5].*) ;;
15083       *)
15084         # The compiler driver will combine and reorder linker options,
15085         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15086         # but is careful enough not to reorder.
15087         # Supported since Solaris 2.6 (maybe 2.5.1?)
15088         if test "$GCC" = yes; then
15089           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15090         else
15091           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15092         fi
15093         ;;
15094       esac
15095       link_all_deplibs_F77=yes
15096       ;;
15097
15098     sunos4*)
15099       if test "x$host_vendor" = xsequent; then
15100         # Use $CC to link under sequent, because it throws in some extra .o
15101         # files that make .init and .fini sections work.
15102         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15103       else
15104         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15105       fi
15106       hardcode_libdir_flag_spec_F77='-L$libdir'
15107       hardcode_direct_F77=yes
15108       hardcode_minus_L_F77=yes
15109       hardcode_shlibpath_var_F77=no
15110       ;;
15111
15112     sysv4)
15113       case $host_vendor in
15114         sni)
15115           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15116           hardcode_direct_F77=yes # is this really true???
15117         ;;
15118         siemens)
15119           ## LD is ld it makes a PLAMLIB
15120           ## CC just makes a GrossModule.
15121           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15122           reload_cmds_F77='$CC -r -o $output$reload_objs'
15123           hardcode_direct_F77=no
15124         ;;
15125         motorola)
15126           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15127           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15128         ;;
15129       esac
15130       runpath_var='LD_RUN_PATH'
15131       hardcode_shlibpath_var_F77=no
15132       ;;
15133
15134     sysv4.3*)
15135       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136       hardcode_shlibpath_var_F77=no
15137       export_dynamic_flag_spec_F77='-Bexport'
15138       ;;
15139
15140     sysv4*MP*)
15141       if test -d /usr/nec; then
15142         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143         hardcode_shlibpath_var_F77=no
15144         runpath_var=LD_RUN_PATH
15145         hardcode_runpath_var=yes
15146         ld_shlibs_F77=yes
15147       fi
15148       ;;
15149
15150     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15151       no_undefined_flag_F77='${wl}-z,text'
15152       archive_cmds_need_lc_F77=no
15153       hardcode_shlibpath_var_F77=no
15154       runpath_var='LD_RUN_PATH'
15155
15156       if test "$GCC" = yes; then
15157         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15158         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15159       else
15160         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15161         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15162       fi
15163       ;;
15164
15165     sysv5* | sco3.2v5* | sco5v6*)
15166       # Note: We can NOT use -z defs as we might desire, because we do not
15167       # link with -lc, and that would cause any symbols used from libc to
15168       # always be unresolved, which means just about no library would
15169       # ever link correctly.  If we're not using GNU ld we use -z text
15170       # though, which does catch some bad symbols but isn't as heavy-handed
15171       # as -z defs.
15172       no_undefined_flag_F77='${wl}-z,text'
15173       allow_undefined_flag_F77='${wl}-z,nodefs'
15174       archive_cmds_need_lc_F77=no
15175       hardcode_shlibpath_var_F77=no
15176       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15177       hardcode_libdir_separator_F77=':'
15178       link_all_deplibs_F77=yes
15179       export_dynamic_flag_spec_F77='${wl}-Bexport'
15180       runpath_var='LD_RUN_PATH'
15181
15182       if test "$GCC" = yes; then
15183         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15185       else
15186         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15188       fi
15189       ;;
15190
15191     uts4*)
15192       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193       hardcode_libdir_flag_spec_F77='-L$libdir'
15194       hardcode_shlibpath_var_F77=no
15195       ;;
15196
15197     *)
15198       ld_shlibs_F77=no
15199       ;;
15200     esac
15201   fi
15202
15203 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15204 $as_echo "$ld_shlibs_F77" >&6; }
15205 test "$ld_shlibs_F77" = no && can_build_shared=no
15206
15207 #
15208 # Do we need to explicitly link libc?
15209 #
15210 case "x$archive_cmds_need_lc_F77" in
15211 x|xyes)
15212   # Assume -lc should be added
15213   archive_cmds_need_lc_F77=yes
15214
15215   if test "$enable_shared" = yes && test "$GCC" = yes; then
15216     case $archive_cmds_F77 in
15217     *'~'*)
15218       # FIXME: we may have to deal with multi-command sequences.
15219       ;;
15220     '$CC '*)
15221       # Test whether the compiler implicitly links with -lc since on some
15222       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15223       # to ld, don't add -lc before -lgcc.
15224       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15226       $rm conftest*
15227       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15228
15229       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230   (eval $ac_compile) 2>&5
15231   ac_status=$?
15232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } 2>conftest.err; then
15234         soname=conftest
15235         lib=conftest
15236         libobjs=conftest.$ac_objext
15237         deplibs=
15238         wl=$lt_prog_compiler_wl_F77
15239         pic_flag=$lt_prog_compiler_pic_F77
15240         compiler_flags=-v
15241         linker_flags=-v
15242         verstring=
15243         output_objdir=.
15244         libname=conftest
15245         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15246         allow_undefined_flag_F77=
15247         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15248   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15249   ac_status=$?
15250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }
15252         then
15253           archive_cmds_need_lc_F77=no
15254         else
15255           archive_cmds_need_lc_F77=yes
15256         fi
15257         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15258       else
15259         cat conftest.err 1>&5
15260       fi
15261       $rm conftest*
15262       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15263 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15264       ;;
15265     esac
15266   fi
15267   ;;
15268 esac
15269
15270 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15271 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15272 library_names_spec=
15273 libname_spec='lib$name'
15274 soname_spec=
15275 shrext_cmds=".so"
15276 postinstall_cmds=
15277 postuninstall_cmds=
15278 finish_cmds=
15279 finish_eval=
15280 shlibpath_var=
15281 shlibpath_overrides_runpath=unknown
15282 version_type=none
15283 dynamic_linker="$host_os ld.so"
15284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15285
15286 need_lib_prefix=unknown
15287 hardcode_into_libs=no
15288
15289 # when you set need_version to no, make sure it does not cause -set_version
15290 # flags to be left without arguments
15291 need_version=unknown
15292
15293 case $host_os in
15294 aix3*)
15295   version_type=linux
15296   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15297   shlibpath_var=LIBPATH
15298
15299   # AIX 3 has no versioning support, so we append a major version to the name.
15300   soname_spec='${libname}${release}${shared_ext}$major'
15301   ;;
15302
15303 aix[4-9]*)
15304   version_type=linux
15305   need_lib_prefix=no
15306   need_version=no
15307   hardcode_into_libs=yes
15308   if test "$host_cpu" = ia64; then
15309     # AIX 5 supports IA64
15310     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15311     shlibpath_var=LD_LIBRARY_PATH
15312   else
15313     # With GCC up to 2.95.x, collect2 would create an import file
15314     # for dependence libraries.  The import file would start with
15315     # the line `#! .'.  This would cause the generated library to
15316     # depend on `.', always an invalid library.  This was fixed in
15317     # development snapshots of GCC prior to 3.0.
15318     case $host_os in
15319       aix4 | aix4.[01] | aix4.[01].*)
15320       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15321            echo ' yes '
15322            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15323         :
15324       else
15325         can_build_shared=no
15326       fi
15327       ;;
15328     esac
15329     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15330     # soname into executable. Probably we can add versioning support to
15331     # collect2, so additional links can be useful in future.
15332     if test "$aix_use_runtimelinking" = yes; then
15333       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15334       # instead of lib<name>.a to let people know that these are not
15335       # typical AIX shared libraries.
15336       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337     else
15338       # We preserve .a as extension for shared libraries through AIX4.2
15339       # and later when we are not doing run time linking.
15340       library_names_spec='${libname}${release}.a $libname.a'
15341       soname_spec='${libname}${release}${shared_ext}$major'
15342     fi
15343     shlibpath_var=LIBPATH
15344   fi
15345   ;;
15346
15347 amigaos*)
15348   library_names_spec='$libname.ixlibrary $libname.a'
15349   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15350   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'
15351   ;;
15352
15353 beos*)
15354   library_names_spec='${libname}${shared_ext}'
15355   dynamic_linker="$host_os ld.so"
15356   shlibpath_var=LIBRARY_PATH
15357   ;;
15358
15359 bsdi[45]*)
15360   version_type=linux
15361   need_version=no
15362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363   soname_spec='${libname}${release}${shared_ext}$major'
15364   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15365   shlibpath_var=LD_LIBRARY_PATH
15366   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15367   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15368   # the default ld.so.conf also contains /usr/contrib/lib and
15369   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15370   # libtool to hard-code these into programs
15371   ;;
15372
15373 cygwin* | mingw* | pw32*)
15374   version_type=windows
15375   shrext_cmds=".dll"
15376   need_version=no
15377   need_lib_prefix=no
15378
15379   case $GCC,$host_os in
15380   yes,cygwin* | yes,mingw* | yes,pw32*)
15381     library_names_spec='$libname.dll.a'
15382     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15383     postinstall_cmds='base_file=`basename \${file}`~
15384       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15385       dldir=$destdir/`dirname \$dlpath`~
15386       test -d \$dldir || mkdir -p \$dldir~
15387       $install_prog $dir/$dlname \$dldir/$dlname~
15388       chmod a+x \$dldir/$dlname'
15389     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15390       dlpath=$dir/\$dldll~
15391        $rm \$dlpath'
15392     shlibpath_overrides_runpath=yes
15393
15394     case $host_os in
15395     cygwin*)
15396       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15397       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15398       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15399       ;;
15400     mingw*)
15401       # MinGW DLLs use traditional 'lib' prefix
15402       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15403       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15404       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15405         # It is most probably a Windows format PATH printed by
15406         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15407         # path with ; separators, and with drive letters. We can handle the
15408         # drive letters (cygwin fileutils understands them), so leave them,
15409         # especially as we might pass files found there to a mingw objdump,
15410         # which wouldn't understand a cygwinified path. Ahh.
15411         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15412       else
15413         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15414       fi
15415       ;;
15416     pw32*)
15417       # pw32 DLLs use 'pw' prefix rather than 'lib'
15418       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15419       ;;
15420     esac
15421     ;;
15422
15423   *)
15424     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15425     ;;
15426   esac
15427   dynamic_linker='Win32 ld.exe'
15428   # FIXME: first we should search . and the directory the executable is in
15429   shlibpath_var=PATH
15430   ;;
15431
15432 darwin* | rhapsody*)
15433   dynamic_linker="$host_os dyld"
15434   version_type=darwin
15435   need_lib_prefix=no
15436   need_version=no
15437   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15438   soname_spec='${libname}${release}${major}$shared_ext'
15439   shlibpath_overrides_runpath=yes
15440   shlibpath_var=DYLD_LIBRARY_PATH
15441   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15442
15443   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15444   ;;
15445
15446 dgux*)
15447   version_type=linux
15448   need_lib_prefix=no
15449   need_version=no
15450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15451   soname_spec='${libname}${release}${shared_ext}$major'
15452   shlibpath_var=LD_LIBRARY_PATH
15453   ;;
15454
15455 freebsd1*)
15456   dynamic_linker=no
15457   ;;
15458
15459 freebsd* | dragonfly*)
15460   # DragonFly does not have aout.  When/if they implement a new
15461   # versioning mechanism, adjust this.
15462   if test -x /usr/bin/objformat; then
15463     objformat=`/usr/bin/objformat`
15464   else
15465     case $host_os in
15466     freebsd[123]*) objformat=aout ;;
15467     *) objformat=elf ;;
15468     esac
15469   fi
15470   version_type=freebsd-$objformat
15471   case $version_type in
15472     freebsd-elf*)
15473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15474       need_version=no
15475       need_lib_prefix=no
15476       ;;
15477     freebsd-*)
15478       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15479       need_version=yes
15480       ;;
15481   esac
15482   shlibpath_var=LD_LIBRARY_PATH
15483   case $host_os in
15484   freebsd2*)
15485     shlibpath_overrides_runpath=yes
15486     ;;
15487   freebsd3.[01]* | freebsdelf3.[01]*)
15488     shlibpath_overrides_runpath=yes
15489     hardcode_into_libs=yes
15490     ;;
15491   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15492   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15493     shlibpath_overrides_runpath=no
15494     hardcode_into_libs=yes
15495     ;;
15496   *) # from 4.6 on, and DragonFly
15497     shlibpath_overrides_runpath=yes
15498     hardcode_into_libs=yes
15499     ;;
15500   esac
15501   ;;
15502
15503 gnu*)
15504   version_type=linux
15505   need_lib_prefix=no
15506   need_version=no
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   shlibpath_var=LD_LIBRARY_PATH
15510   hardcode_into_libs=yes
15511   ;;
15512
15513 hpux9* | hpux10* | hpux11*)
15514   # Give a soname corresponding to the major version so that dld.sl refuses to
15515   # link against other versions.
15516   version_type=sunos
15517   need_lib_prefix=no
15518   need_version=no
15519   case $host_cpu in
15520   ia64*)
15521     shrext_cmds='.so'
15522     hardcode_into_libs=yes
15523     dynamic_linker="$host_os dld.so"
15524     shlibpath_var=LD_LIBRARY_PATH
15525     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527     soname_spec='${libname}${release}${shared_ext}$major'
15528     if test "X$HPUX_IA64_MODE" = X32; then
15529       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15530     else
15531       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15532     fi
15533     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15534     ;;
15535    hppa*64*)
15536      shrext_cmds='.sl'
15537      hardcode_into_libs=yes
15538      dynamic_linker="$host_os dld.sl"
15539      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15540      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542      soname_spec='${libname}${release}${shared_ext}$major'
15543      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15544      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15545      ;;
15546    *)
15547     shrext_cmds='.sl'
15548     dynamic_linker="$host_os dld.sl"
15549     shlibpath_var=SHLIB_PATH
15550     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552     soname_spec='${libname}${release}${shared_ext}$major'
15553     ;;
15554   esac
15555   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15556   postinstall_cmds='chmod 555 $lib'
15557   ;;
15558
15559 interix[3-9]*)
15560   version_type=linux
15561   need_lib_prefix=no
15562   need_version=no
15563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15564   soname_spec='${libname}${release}${shared_ext}$major'
15565   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15566   shlibpath_var=LD_LIBRARY_PATH
15567   shlibpath_overrides_runpath=no
15568   hardcode_into_libs=yes
15569   ;;
15570
15571 irix5* | irix6* | nonstopux*)
15572   case $host_os in
15573     nonstopux*) version_type=nonstopux ;;
15574     *)
15575         if test "$lt_cv_prog_gnu_ld" = yes; then
15576                 version_type=linux
15577         else
15578                 version_type=irix
15579         fi ;;
15580   esac
15581   need_lib_prefix=no
15582   need_version=no
15583   soname_spec='${libname}${release}${shared_ext}$major'
15584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15585   case $host_os in
15586   irix5* | nonstopux*)
15587     libsuff= shlibsuff=
15588     ;;
15589   *)
15590     case $LD in # libtool.m4 will add one of these switches to LD
15591     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15592       libsuff= shlibsuff= libmagic=32-bit;;
15593     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15594       libsuff=32 shlibsuff=N32 libmagic=N32;;
15595     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15596       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15597     *) libsuff= shlibsuff= libmagic=never-match;;
15598     esac
15599     ;;
15600   esac
15601   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15602   shlibpath_overrides_runpath=no
15603   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15604   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15605   hardcode_into_libs=yes
15606   ;;
15607
15608 # No shared lib support for Linux oldld, aout, or coff.
15609 linux*oldld* | linux*aout* | linux*coff*)
15610   dynamic_linker=no
15611   ;;
15612
15613 # This must be Linux ELF.
15614 linux* | k*bsd*-gnu)
15615   version_type=linux
15616   need_lib_prefix=no
15617   need_version=no
15618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619   soname_spec='${libname}${release}${shared_ext}$major'
15620   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15621   shlibpath_var=LD_LIBRARY_PATH
15622   shlibpath_overrides_runpath=no
15623   # This implies no fast_install, which is unacceptable.
15624   # Some rework will be needed to allow for fast_install
15625   # before this can be enabled.
15626   hardcode_into_libs=yes
15627   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15628   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15629
15630   # Append ld.so.conf contents to the search path
15631   if test -f /etc/ld.so.conf; then
15632     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15633     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15634   fi
15635
15636   # We used to test for /lib/ld.so.1 and disable shared libraries on
15637   # powerpc, because MkLinux only supported shared libraries with the
15638   # GNU dynamic linker.  Since this was broken with cross compilers,
15639   # most powerpc-linux boxes support dynamic linking these days and
15640   # people can always --disable-shared, the test was removed, and we
15641   # assume the GNU/Linux dynamic linker is in use.
15642   dynamic_linker='GNU/Linux ld.so'
15643   ;;
15644
15645 netbsd*)
15646   version_type=sunos
15647   need_lib_prefix=no
15648   need_version=no
15649   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15650     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15652     dynamic_linker='NetBSD (a.out) ld.so'
15653   else
15654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15655     soname_spec='${libname}${release}${shared_ext}$major'
15656     dynamic_linker='NetBSD ld.elf_so'
15657   fi
15658   shlibpath_var=LD_LIBRARY_PATH
15659   shlibpath_overrides_runpath=yes
15660   hardcode_into_libs=yes
15661   ;;
15662
15663 newsos6)
15664   version_type=linux
15665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666   shlibpath_var=LD_LIBRARY_PATH
15667   shlibpath_overrides_runpath=yes
15668   ;;
15669
15670 nto-qnx*)
15671   version_type=linux
15672   need_lib_prefix=no
15673   need_version=no
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675   soname_spec='${libname}${release}${shared_ext}$major'
15676   shlibpath_var=LD_LIBRARY_PATH
15677   shlibpath_overrides_runpath=yes
15678   ;;
15679
15680 openbsd*)
15681   version_type=sunos
15682   sys_lib_dlsearch_path_spec="/usr/lib"
15683   need_lib_prefix=no
15684   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15685   case $host_os in
15686     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15687     *)                         need_version=no  ;;
15688   esac
15689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15691   shlibpath_var=LD_LIBRARY_PATH
15692   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15693     case $host_os in
15694       openbsd2.[89] | openbsd2.[89].*)
15695         shlibpath_overrides_runpath=no
15696         ;;
15697       *)
15698         shlibpath_overrides_runpath=yes
15699         ;;
15700       esac
15701   else
15702     shlibpath_overrides_runpath=yes
15703   fi
15704   ;;
15705
15706 os2*)
15707   libname_spec='$name'
15708   shrext_cmds=".dll"
15709   need_lib_prefix=no
15710   library_names_spec='$libname${shared_ext} $libname.a'
15711   dynamic_linker='OS/2 ld.exe'
15712   shlibpath_var=LIBPATH
15713   ;;
15714
15715 osf3* | osf4* | osf5*)
15716   version_type=osf
15717   need_lib_prefix=no
15718   need_version=no
15719   soname_spec='${libname}${release}${shared_ext}$major'
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15723   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15724   ;;
15725
15726 rdos*)
15727   dynamic_linker=no
15728   ;;
15729
15730 solaris*)
15731   version_type=linux
15732   need_lib_prefix=no
15733   need_version=no
15734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735   soname_spec='${libname}${release}${shared_ext}$major'
15736   shlibpath_var=LD_LIBRARY_PATH
15737   shlibpath_overrides_runpath=yes
15738   hardcode_into_libs=yes
15739   # ldd complains unless libraries are executable
15740   postinstall_cmds='chmod +x $lib'
15741   ;;
15742
15743 sunos4*)
15744   version_type=sunos
15745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15746   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15747   shlibpath_var=LD_LIBRARY_PATH
15748   shlibpath_overrides_runpath=yes
15749   if test "$with_gnu_ld" = yes; then
15750     need_lib_prefix=no
15751   fi
15752   need_version=yes
15753   ;;
15754
15755 sysv4 | sysv4.3*)
15756   version_type=linux
15757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758   soname_spec='${libname}${release}${shared_ext}$major'
15759   shlibpath_var=LD_LIBRARY_PATH
15760   case $host_vendor in
15761     sni)
15762       shlibpath_overrides_runpath=no
15763       need_lib_prefix=no
15764       export_dynamic_flag_spec='${wl}-Blargedynsym'
15765       runpath_var=LD_RUN_PATH
15766       ;;
15767     siemens)
15768       need_lib_prefix=no
15769       ;;
15770     motorola)
15771       need_lib_prefix=no
15772       need_version=no
15773       shlibpath_overrides_runpath=no
15774       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15775       ;;
15776   esac
15777   ;;
15778
15779 sysv4*MP*)
15780   if test -d /usr/nec ;then
15781     version_type=linux
15782     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15783     soname_spec='$libname${shared_ext}.$major'
15784     shlibpath_var=LD_LIBRARY_PATH
15785   fi
15786   ;;
15787
15788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15789   version_type=freebsd-elf
15790   need_lib_prefix=no
15791   need_version=no
15792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15793   soname_spec='${libname}${release}${shared_ext}$major'
15794   shlibpath_var=LD_LIBRARY_PATH
15795   hardcode_into_libs=yes
15796   if test "$with_gnu_ld" = yes; then
15797     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15798     shlibpath_overrides_runpath=no
15799   else
15800     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15801     shlibpath_overrides_runpath=yes
15802     case $host_os in
15803       sco3.2v5*)
15804         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15805         ;;
15806     esac
15807   fi
15808   sys_lib_dlsearch_path_spec='/usr/lib'
15809   ;;
15810
15811 uts4*)
15812   version_type=linux
15813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814   soname_spec='${libname}${release}${shared_ext}$major'
15815   shlibpath_var=LD_LIBRARY_PATH
15816   ;;
15817
15818 *)
15819   dynamic_linker=no
15820   ;;
15821 esac
15822 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15823 $as_echo "$dynamic_linker" >&6; }
15824 test "$dynamic_linker" = no && can_build_shared=no
15825
15826 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15827   $as_echo_n "(cached) " >&6
15828 else
15829   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15830 fi
15831
15832 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15833 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15834   $as_echo_n "(cached) " >&6
15835 else
15836   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15837 fi
15838
15839 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15840
15841 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15842 if test "$GCC" = yes; then
15843   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15844 fi
15845
15846 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15847 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15848 hardcode_action_F77=
15849 if test -n "$hardcode_libdir_flag_spec_F77" || \
15850    test -n "$runpath_var_F77" || \
15851    test "X$hardcode_automatic_F77" = "Xyes" ; then
15852
15853   # We can hardcode non-existant directories.
15854   if test "$hardcode_direct_F77" != no &&
15855      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15856      # have to relink, otherwise we might link with an installed library
15857      # when we should be linking with a yet-to-be-installed one
15858      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15859      test "$hardcode_minus_L_F77" != no; then
15860     # Linking always hardcodes the temporary library directory.
15861     hardcode_action_F77=relink
15862   else
15863     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15864     hardcode_action_F77=immediate
15865   fi
15866 else
15867   # We cannot hardcode anything, or else we can only hardcode existing
15868   # directories.
15869   hardcode_action_F77=unsupported
15870 fi
15871 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15872 $as_echo "$hardcode_action_F77" >&6; }
15873
15874 if test "$hardcode_action_F77" = relink; then
15875   # Fast installation is not supported
15876   enable_fast_install=no
15877 elif test "$shlibpath_overrides_runpath" = yes ||
15878      test "$enable_shared" = no; then
15879   # Fast installation is not necessary
15880   enable_fast_install=needless
15881 fi
15882
15883
15884 # The else clause should only fire when bootstrapping the
15885 # libtool distribution, otherwise you forgot to ship ltmain.sh
15886 # with your package, and you will get complaints that there are
15887 # no rules to generate ltmain.sh.
15888 if test -f "$ltmain"; then
15889   # See if we are running on zsh, and set the options which allow our commands through
15890   # without removal of \ escapes.
15891   if test -n "${ZSH_VERSION+set}" ; then
15892     setopt NO_GLOB_SUBST
15893   fi
15894   # Now quote all the things that may contain metacharacters while being
15895   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15896   # variables and quote the copies for generation of the libtool script.
15897   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15898     SED SHELL STRIP \
15899     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15900     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15901     deplibs_check_method reload_flag reload_cmds need_locks \
15902     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15903     lt_cv_sys_global_symbol_to_c_name_address \
15904     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15905     old_postinstall_cmds old_postuninstall_cmds \
15906     compiler_F77 \
15907     CC_F77 \
15908     LD_F77 \
15909     lt_prog_compiler_wl_F77 \
15910     lt_prog_compiler_pic_F77 \
15911     lt_prog_compiler_static_F77 \
15912     lt_prog_compiler_no_builtin_flag_F77 \
15913     export_dynamic_flag_spec_F77 \
15914     thread_safe_flag_spec_F77 \
15915     whole_archive_flag_spec_F77 \
15916     enable_shared_with_static_runtimes_F77 \
15917     old_archive_cmds_F77 \
15918     old_archive_from_new_cmds_F77 \
15919     predep_objects_F77 \
15920     postdep_objects_F77 \
15921     predeps_F77 \
15922     postdeps_F77 \
15923     compiler_lib_search_path_F77 \
15924     compiler_lib_search_dirs_F77 \
15925     archive_cmds_F77 \
15926     archive_expsym_cmds_F77 \
15927     postinstall_cmds_F77 \
15928     postuninstall_cmds_F77 \
15929     old_archive_from_expsyms_cmds_F77 \
15930     allow_undefined_flag_F77 \
15931     no_undefined_flag_F77 \
15932     export_symbols_cmds_F77 \
15933     hardcode_libdir_flag_spec_F77 \
15934     hardcode_libdir_flag_spec_ld_F77 \
15935     hardcode_libdir_separator_F77 \
15936     hardcode_automatic_F77 \
15937     module_cmds_F77 \
15938     module_expsym_cmds_F77 \
15939     lt_cv_prog_compiler_c_o_F77 \
15940     fix_srcfile_path_F77 \
15941     exclude_expsyms_F77 \
15942     include_expsyms_F77; do
15943
15944     case $var in
15945     old_archive_cmds_F77 | \
15946     old_archive_from_new_cmds_F77 | \
15947     archive_cmds_F77 | \
15948     archive_expsym_cmds_F77 | \
15949     module_cmds_F77 | \
15950     module_expsym_cmds_F77 | \
15951     old_archive_from_expsyms_cmds_F77 | \
15952     export_symbols_cmds_F77 | \
15953     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15954     postinstall_cmds | postuninstall_cmds | \
15955     old_postinstall_cmds | old_postuninstall_cmds | \
15956     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15957       # Double-quote double-evaled strings.
15958       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15959       ;;
15960     *)
15961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15962       ;;
15963     esac
15964   done
15965
15966   case $lt_echo in
15967   *'\$0 --fallback-echo"')
15968     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15969     ;;
15970   esac
15971
15972 cfgfile="$ofile"
15973
15974   cat <<__EOF__ >> "$cfgfile"
15975 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15976
15977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15978
15979 # Shell to use when invoking shell scripts.
15980 SHELL=$lt_SHELL
15981
15982 # Whether or not to build shared libraries.
15983 build_libtool_libs=$enable_shared
15984
15985 # Whether or not to build static libraries.
15986 build_old_libs=$enable_static
15987
15988 # Whether or not to add -lc for building shared libraries.
15989 build_libtool_need_lc=$archive_cmds_need_lc_F77
15990
15991 # Whether or not to disallow shared libs when runtime libs are static
15992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15993
15994 # Whether or not to optimize for fast installation.
15995 fast_install=$enable_fast_install
15996
15997 # The host system.
15998 host_alias=$host_alias
15999 host=$host
16000 host_os=$host_os
16001
16002 # The build system.
16003 build_alias=$build_alias
16004 build=$build
16005 build_os=$build_os
16006
16007 # An echo program that does not interpret backslashes.
16008 echo=$lt_echo
16009
16010 # The archiver.
16011 AR=$lt_AR
16012 AR_FLAGS=$lt_AR_FLAGS
16013
16014 # A C compiler.
16015 LTCC=$lt_LTCC
16016
16017 # LTCC compiler flags.
16018 LTCFLAGS=$lt_LTCFLAGS
16019
16020 # A language-specific compiler.
16021 CC=$lt_compiler_F77
16022
16023 # Is the compiler the GNU C compiler?
16024 with_gcc=$GCC_F77
16025
16026 # An ERE matcher.
16027 EGREP=$lt_EGREP
16028
16029 # The linker used to build libraries.
16030 LD=$lt_LD_F77
16031
16032 # Whether we need hard or soft links.
16033 LN_S=$lt_LN_S
16034
16035 # A BSD-compatible nm program.
16036 NM=$lt_NM
16037
16038 # A symbol stripping program
16039 STRIP=$lt_STRIP
16040
16041 # Used to examine libraries when file_magic_cmd begins "file"
16042 MAGIC_CMD=$MAGIC_CMD
16043
16044 # Used on cygwin: DLL creation program.
16045 DLLTOOL="$DLLTOOL"
16046
16047 # Used on cygwin: object dumper.
16048 OBJDUMP="$OBJDUMP"
16049
16050 # Used on cygwin: assembler.
16051 AS="$AS"
16052
16053 # The name of the directory that contains temporary libtool files.
16054 objdir=$objdir
16055
16056 # How to create reloadable object files.
16057 reload_flag=$lt_reload_flag
16058 reload_cmds=$lt_reload_cmds
16059
16060 # How to pass a linker flag through the compiler.
16061 wl=$lt_lt_prog_compiler_wl_F77
16062
16063 # Object file suffix (normally "o").
16064 objext="$ac_objext"
16065
16066 # Old archive suffix (normally "a").
16067 libext="$libext"
16068
16069 # Shared library suffix (normally ".so").
16070 shrext_cmds='$shrext_cmds'
16071
16072 # Executable file suffix (normally "").
16073 exeext="$exeext"
16074
16075 # Additional compiler flags for building library objects.
16076 pic_flag=$lt_lt_prog_compiler_pic_F77
16077 pic_mode=$pic_mode
16078
16079 # What is the maximum length of a command?
16080 max_cmd_len=$lt_cv_sys_max_cmd_len
16081
16082 # Does compiler simultaneously support -c and -o options?
16083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16084
16085 # Must we lock files when doing compilation?
16086 need_locks=$lt_need_locks
16087
16088 # Do we need the lib prefix for modules?
16089 need_lib_prefix=$need_lib_prefix
16090
16091 # Do we need a version for libraries?
16092 need_version=$need_version
16093
16094 # Whether dlopen is supported.
16095 dlopen_support=$enable_dlopen
16096
16097 # Whether dlopen of programs is supported.
16098 dlopen_self=$enable_dlopen_self
16099
16100 # Whether dlopen of statically linked programs is supported.
16101 dlopen_self_static=$enable_dlopen_self_static
16102
16103 # Compiler flag to prevent dynamic linking.
16104 link_static_flag=$lt_lt_prog_compiler_static_F77
16105
16106 # Compiler flag to turn off builtin functions.
16107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16108
16109 # Compiler flag to allow reflexive dlopens.
16110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16111
16112 # Compiler flag to generate shared objects directly from archives.
16113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16114
16115 # Compiler flag to generate thread-safe objects.
16116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16117
16118 # Library versioning type.
16119 version_type=$version_type
16120
16121 # Format of library name prefix.
16122 libname_spec=$lt_libname_spec
16123
16124 # List of archive names.  First name is the real one, the rest are links.
16125 # The last name is the one that the linker finds with -lNAME.
16126 library_names_spec=$lt_library_names_spec
16127
16128 # The coded name of the library, if different from the real name.
16129 soname_spec=$lt_soname_spec
16130
16131 # Commands used to build and install an old-style archive.
16132 RANLIB=$lt_RANLIB
16133 old_archive_cmds=$lt_old_archive_cmds_F77
16134 old_postinstall_cmds=$lt_old_postinstall_cmds
16135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16136
16137 # Create an old-style archive from a shared archive.
16138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16139
16140 # Create a temporary old-style archive to link instead of a shared archive.
16141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16142
16143 # Commands used to build and install a shared archive.
16144 archive_cmds=$lt_archive_cmds_F77
16145 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16146 postinstall_cmds=$lt_postinstall_cmds
16147 postuninstall_cmds=$lt_postuninstall_cmds
16148
16149 # Commands used to build a loadable module (assumed same as above if empty)
16150 module_cmds=$lt_module_cmds_F77
16151 module_expsym_cmds=$lt_module_expsym_cmds_F77
16152
16153 # Commands to strip libraries.
16154 old_striplib=$lt_old_striplib
16155 striplib=$lt_striplib
16156
16157 # Dependencies to place before the objects being linked to create a
16158 # shared library.
16159 predep_objects=$lt_predep_objects_F77
16160
16161 # Dependencies to place after the objects being linked to create a
16162 # shared library.
16163 postdep_objects=$lt_postdep_objects_F77
16164
16165 # Dependencies to place before the objects being linked to create a
16166 # shared library.
16167 predeps=$lt_predeps_F77
16168
16169 # Dependencies to place after the objects being linked to create a
16170 # shared library.
16171 postdeps=$lt_postdeps_F77
16172
16173 # The directories searched by this compiler when creating a shared
16174 # library
16175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16176
16177 # The library search path used internally by the compiler when linking
16178 # a shared library.
16179 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16180
16181 # Method to check whether dependent libraries are shared objects.
16182 deplibs_check_method=$lt_deplibs_check_method
16183
16184 # Command to use when deplibs_check_method == file_magic.
16185 file_magic_cmd=$lt_file_magic_cmd
16186
16187 # Flag that allows shared libraries with undefined symbols to be built.
16188 allow_undefined_flag=$lt_allow_undefined_flag_F77
16189
16190 # Flag that forces no undefined symbols.
16191 no_undefined_flag=$lt_no_undefined_flag_F77
16192
16193 # Commands used to finish a libtool library installation in a directory.
16194 finish_cmds=$lt_finish_cmds
16195
16196 # Same as above, but a single script fragment to be evaled but not shown.
16197 finish_eval=$lt_finish_eval
16198
16199 # Take the output of nm and produce a listing of raw symbols and C names.
16200 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16201
16202 # Transform the output of nm in a proper C declaration
16203 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16204
16205 # Transform the output of nm in a C name address pair
16206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16207
16208 # This is the shared library runtime path variable.
16209 runpath_var=$runpath_var
16210
16211 # This is the shared library path variable.
16212 shlibpath_var=$shlibpath_var
16213
16214 # Is shlibpath searched before the hard-coded library search path?
16215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16216
16217 # How to hardcode a shared library path into an executable.
16218 hardcode_action=$hardcode_action_F77
16219
16220 # Whether we should hardcode library paths into libraries.
16221 hardcode_into_libs=$hardcode_into_libs
16222
16223 # Flag to hardcode \$libdir into a binary during linking.
16224 # This must work even if \$libdir does not exist.
16225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16226
16227 # If ld is used when linking, flag to hardcode \$libdir into
16228 # a binary during linking. This must work even if \$libdir does
16229 # not exist.
16230 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16231
16232 # Whether we need a single -rpath flag with a separated argument.
16233 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16234
16235 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16236 # resulting binary.
16237 hardcode_direct=$hardcode_direct_F77
16238
16239 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16240 # resulting binary.
16241 hardcode_minus_L=$hardcode_minus_L_F77
16242
16243 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16244 # the resulting binary.
16245 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16246
16247 # Set to yes if building a shared library automatically hardcodes DIR into the library
16248 # and all subsequent libraries and executables linked against it.
16249 hardcode_automatic=$hardcode_automatic_F77
16250
16251 # Variables whose values should be saved in libtool wrapper scripts and
16252 # restored at relink time.
16253 variables_saved_for_relink="$variables_saved_for_relink"
16254
16255 # Whether libtool must link a program against all its dependency libraries.
16256 link_all_deplibs=$link_all_deplibs_F77
16257
16258 # Compile-time system search path for libraries
16259 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16260
16261 # Run-time system search path for libraries
16262 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16263
16264 # Fix the shell variable \$srcfile for the compiler.
16265 fix_srcfile_path=$lt_fix_srcfile_path
16266
16267 # Set to yes if exported symbols are required.
16268 always_export_symbols=$always_export_symbols_F77
16269
16270 # The commands to list exported symbols.
16271 export_symbols_cmds=$lt_export_symbols_cmds_F77
16272
16273 # The commands to extract the exported symbol list from a shared archive.
16274 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16275
16276 # Symbols that should not be listed in the preloaded symbols.
16277 exclude_expsyms=$lt_exclude_expsyms_F77
16278
16279 # Symbols that must always be exported.
16280 include_expsyms=$lt_include_expsyms_F77
16281
16282 # ### END LIBTOOL TAG CONFIG: $tagname
16283
16284 __EOF__
16285
16286
16287 else
16288   # If there is no Makefile yet, we rely on a make rule to execute
16289   # `config.status --recheck' to rerun these tests and create the
16290   # libtool script then.
16291   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16292   if test -f "$ltmain_in"; then
16293     test -f Makefile && make "$ltmain"
16294   fi
16295 fi
16296
16297
16298 ac_ext=c
16299 ac_cpp='$CPP $CPPFLAGS'
16300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16303
16304 CC="$lt_save_CC"
16305
16306         else
16307           tagname=""
16308         fi
16309         ;;
16310
16311       GCJ)
16312         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16313
16314
16315 # Source file extension for Java test sources.
16316 ac_ext=java
16317
16318 # Object file extension for compiled Java test sources.
16319 objext=o
16320 objext_GCJ=$objext
16321
16322 # Code to be used in simple compile tests
16323 lt_simple_compile_test_code="class foo {}"
16324
16325 # Code to be used in simple link tests
16326 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16327
16328 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16329
16330 # If no C compiler was specified, use CC.
16331 LTCC=${LTCC-"$CC"}
16332
16333 # If no C compiler flags were specified, use CFLAGS.
16334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16335
16336 # Allow CC to be a program name with arguments.
16337 compiler=$CC
16338
16339
16340 # save warnings/boilerplate of simple test code
16341 ac_outfile=conftest.$ac_objext
16342 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16344 _lt_compiler_boilerplate=`cat conftest.err`
16345 $rm conftest*
16346
16347 ac_outfile=conftest.$ac_objext
16348 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16350 _lt_linker_boilerplate=`cat conftest.err`
16351 $rm -r conftest*
16352
16353
16354 # Allow CC to be a program name with arguments.
16355 lt_save_CC="$CC"
16356 CC=${GCJ-"gcj"}
16357 compiler=$CC
16358 compiler_GCJ=$CC
16359 for cc_temp in $compiler""; do
16360   case $cc_temp in
16361     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16362     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16363     \-*) ;;
16364     *) break;;
16365   esac
16366 done
16367 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16368
16369
16370 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16371 archive_cmds_need_lc_GCJ=no
16372
16373 old_archive_cmds_GCJ=$old_archive_cmds
16374
16375 ## CAVEAT EMPTOR:
16376 ## There is no encapsulation within the following macros, do not change
16377 ## the running order or otherwise move them around unless you know exactly
16378 ## what you are doing...
16379
16380 lt_prog_compiler_no_builtin_flag_GCJ=
16381
16382 if test "$GCC" = yes; then
16383   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16384
16385
16386 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16387 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16388 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16389   $as_echo_n "(cached) " >&6
16390 else
16391   lt_cv_prog_compiler_rtti_exceptions=no
16392   ac_outfile=conftest.$ac_objext
16393    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16394    lt_compiler_flag="-fno-rtti -fno-exceptions"
16395    # Insert the option either (1) after the last *FLAGS variable, or
16396    # (2) before a word containing "conftest.", or (3) at the end.
16397    # Note that $ac_compile itself does not contain backslashes and begins
16398    # with a dollar sign (not a hyphen), so the echo should work correctly.
16399    # The option is referenced via a variable to avoid confusing sed.
16400    lt_compile=`echo "$ac_compile" | $SED \
16401    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16403    -e 's:$: $lt_compiler_flag:'`
16404    (eval echo "\"\$as_me:16404: $lt_compile\"" >&5)
16405    (eval "$lt_compile" 2>conftest.err)
16406    ac_status=$?
16407    cat conftest.err >&5
16408    echo "$as_me:16408: \$? = $ac_status" >&5
16409    if (exit $ac_status) && test -s "$ac_outfile"; then
16410      # The compiler can only warn and ignore the option if not recognized
16411      # So say no if there are warnings other than the usual output.
16412      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16413      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16414      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16415        lt_cv_prog_compiler_rtti_exceptions=yes
16416      fi
16417    fi
16418    $rm conftest*
16419
16420 fi
16421 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16422 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16423
16424 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16425     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16426 else
16427     :
16428 fi
16429
16430 fi
16431
16432 lt_prog_compiler_wl_GCJ=
16433 lt_prog_compiler_pic_GCJ=
16434 lt_prog_compiler_static_GCJ=
16435
16436 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16438
16439   if test "$GCC" = yes; then
16440     lt_prog_compiler_wl_GCJ='-Wl,'
16441     lt_prog_compiler_static_GCJ='-static'
16442
16443     case $host_os in
16444       aix*)
16445       # All AIX code is PIC.
16446       if test "$host_cpu" = ia64; then
16447         # AIX 5 now supports IA64 processor
16448         lt_prog_compiler_static_GCJ='-Bstatic'
16449       fi
16450       ;;
16451
16452     amigaos*)
16453       # FIXME: we need at least 68020 code to build shared libraries, but
16454       # adding the `-m68020' flag to GCC prevents building anything better,
16455       # like `-m68040'.
16456       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16457       ;;
16458
16459     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16460       # PIC is the default for these OSes.
16461       ;;
16462
16463     mingw* | cygwin* | pw32* | os2*)
16464       # This hack is so that the source file can tell whether it is being
16465       # built for inclusion in a dll (and should export symbols for example).
16466       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16467       # (--disable-auto-import) libraries
16468
16469       ;;
16470
16471     darwin* | rhapsody*)
16472       # PIC is the default on this platform
16473       # Common symbols not allowed in MH_DYLIB files
16474       lt_prog_compiler_pic_GCJ='-fno-common'
16475       ;;
16476
16477     interix[3-9]*)
16478       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16479       # Instead, we relocate shared libraries at runtime.
16480       ;;
16481
16482     msdosdjgpp*)
16483       # Just because we use GCC doesn't mean we suddenly get shared libraries
16484       # on systems that don't support them.
16485       lt_prog_compiler_can_build_shared_GCJ=no
16486       enable_shared=no
16487       ;;
16488
16489     sysv4*MP*)
16490       if test -d /usr/nec; then
16491         lt_prog_compiler_pic_GCJ=-Kconform_pic
16492       fi
16493       ;;
16494
16495     hpux*)
16496       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16497       # not for PA HP-UX.
16498       case $host_cpu in
16499       hppa*64*|ia64*)
16500         # +Z the default
16501         ;;
16502       *)
16503         lt_prog_compiler_pic_GCJ='-fPIC'
16504         ;;
16505       esac
16506       ;;
16507
16508     *)
16509       lt_prog_compiler_pic_GCJ='-fPIC'
16510       ;;
16511     esac
16512   else
16513     # PORTME Check for flag to pass linker flags through the system compiler.
16514     case $host_os in
16515     aix*)
16516       lt_prog_compiler_wl_GCJ='-Wl,'
16517       if test "$host_cpu" = ia64; then
16518         # AIX 5 now supports IA64 processor
16519         lt_prog_compiler_static_GCJ='-Bstatic'
16520       else
16521         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16522       fi
16523       ;;
16524       darwin*)
16525         # PIC is the default on this platform
16526         # Common symbols not allowed in MH_DYLIB files
16527        case $cc_basename in
16528          xlc*)
16529          lt_prog_compiler_pic_GCJ='-qnocommon'
16530          lt_prog_compiler_wl_GCJ='-Wl,'
16531          ;;
16532        esac
16533        ;;
16534
16535     mingw* | cygwin* | pw32* | os2*)
16536       # This hack is so that the source file can tell whether it is being
16537       # built for inclusion in a dll (and should export symbols for example).
16538
16539       ;;
16540
16541     hpux9* | hpux10* | hpux11*)
16542       lt_prog_compiler_wl_GCJ='-Wl,'
16543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16544       # not for PA HP-UX.
16545       case $host_cpu in
16546       hppa*64*|ia64*)
16547         # +Z the default
16548         ;;
16549       *)
16550         lt_prog_compiler_pic_GCJ='+Z'
16551         ;;
16552       esac
16553       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16554       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16555       ;;
16556
16557     irix5* | irix6* | nonstopux*)
16558       lt_prog_compiler_wl_GCJ='-Wl,'
16559       # PIC (with -KPIC) is the default.
16560       lt_prog_compiler_static_GCJ='-non_shared'
16561       ;;
16562
16563     newsos6)
16564       lt_prog_compiler_pic_GCJ='-KPIC'
16565       lt_prog_compiler_static_GCJ='-Bstatic'
16566       ;;
16567
16568     linux* | k*bsd*-gnu)
16569       case $cc_basename in
16570       icc* | ecc*)
16571         lt_prog_compiler_wl_GCJ='-Wl,'
16572         lt_prog_compiler_pic_GCJ='-KPIC'
16573         lt_prog_compiler_static_GCJ='-static'
16574         ;;
16575       pgcc* | pgf77* | pgf90* | pgf95*)
16576         # Portland Group compilers (*not* the Pentium gcc compiler,
16577         # which looks to be a dead project)
16578         lt_prog_compiler_wl_GCJ='-Wl,'
16579         lt_prog_compiler_pic_GCJ='-fpic'
16580         lt_prog_compiler_static_GCJ='-Bstatic'
16581         ;;
16582       ccc*)
16583         lt_prog_compiler_wl_GCJ='-Wl,'
16584         # All Alpha code is PIC.
16585         lt_prog_compiler_static_GCJ='-non_shared'
16586         ;;
16587       *)
16588         case `$CC -V 2>&1 | sed 5q` in
16589         *Sun\ C*)
16590           # Sun C 5.9
16591           lt_prog_compiler_pic_GCJ='-KPIC'
16592           lt_prog_compiler_static_GCJ='-Bstatic'
16593           lt_prog_compiler_wl_GCJ='-Wl,'
16594           ;;
16595         *Sun\ F*)
16596           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16597           lt_prog_compiler_pic_GCJ='-KPIC'
16598           lt_prog_compiler_static_GCJ='-Bstatic'
16599           lt_prog_compiler_wl_GCJ=''
16600           ;;
16601         esac
16602         ;;
16603       esac
16604       ;;
16605
16606     osf3* | osf4* | osf5*)
16607       lt_prog_compiler_wl_GCJ='-Wl,'
16608       # All OSF/1 code is PIC.
16609       lt_prog_compiler_static_GCJ='-non_shared'
16610       ;;
16611
16612     rdos*)
16613       lt_prog_compiler_static_GCJ='-non_shared'
16614       ;;
16615
16616     solaris*)
16617       lt_prog_compiler_pic_GCJ='-KPIC'
16618       lt_prog_compiler_static_GCJ='-Bstatic'
16619       case $cc_basename in
16620       f77* | f90* | f95*)
16621         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16622       *)
16623         lt_prog_compiler_wl_GCJ='-Wl,';;
16624       esac
16625       ;;
16626
16627     sunos4*)
16628       lt_prog_compiler_wl_GCJ='-Qoption ld '
16629       lt_prog_compiler_pic_GCJ='-PIC'
16630       lt_prog_compiler_static_GCJ='-Bstatic'
16631       ;;
16632
16633     sysv4 | sysv4.2uw2* | sysv4.3*)
16634       lt_prog_compiler_wl_GCJ='-Wl,'
16635       lt_prog_compiler_pic_GCJ='-KPIC'
16636       lt_prog_compiler_static_GCJ='-Bstatic'
16637       ;;
16638
16639     sysv4*MP*)
16640       if test -d /usr/nec ;then
16641         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16642         lt_prog_compiler_static_GCJ='-Bstatic'
16643       fi
16644       ;;
16645
16646     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16647       lt_prog_compiler_wl_GCJ='-Wl,'
16648       lt_prog_compiler_pic_GCJ='-KPIC'
16649       lt_prog_compiler_static_GCJ='-Bstatic'
16650       ;;
16651
16652     unicos*)
16653       lt_prog_compiler_wl_GCJ='-Wl,'
16654       lt_prog_compiler_can_build_shared_GCJ=no
16655       ;;
16656
16657     uts4*)
16658       lt_prog_compiler_pic_GCJ='-pic'
16659       lt_prog_compiler_static_GCJ='-Bstatic'
16660       ;;
16661
16662     *)
16663       lt_prog_compiler_can_build_shared_GCJ=no
16664       ;;
16665     esac
16666   fi
16667
16668 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16669 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16670
16671 #
16672 # Check to make sure the PIC flag actually works.
16673 #
16674 if test -n "$lt_prog_compiler_pic_GCJ"; then
16675
16676 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16678 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16679   $as_echo_n "(cached) " >&6
16680 else
16681   lt_cv_prog_compiler_pic_works_GCJ=no
16682   ac_outfile=conftest.$ac_objext
16683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16684    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16685    # Insert the option either (1) after the last *FLAGS variable, or
16686    # (2) before a word containing "conftest.", or (3) at the end.
16687    # Note that $ac_compile itself does not contain backslashes and begins
16688    # with a dollar sign (not a hyphen), so the echo should work correctly.
16689    # The option is referenced via a variable to avoid confusing sed.
16690    lt_compile=`echo "$ac_compile" | $SED \
16691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16693    -e 's:$: $lt_compiler_flag:'`
16694    (eval echo "\"\$as_me:16694: $lt_compile\"" >&5)
16695    (eval "$lt_compile" 2>conftest.err)
16696    ac_status=$?
16697    cat conftest.err >&5
16698    echo "$as_me:16698: \$? = $ac_status" >&5
16699    if (exit $ac_status) && test -s "$ac_outfile"; then
16700      # The compiler can only warn and ignore the option if not recognized
16701      # So say no if there are warnings other than the usual output.
16702      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16703      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16704      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16705        lt_cv_prog_compiler_pic_works_GCJ=yes
16706      fi
16707    fi
16708    $rm conftest*
16709
16710 fi
16711 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16712 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16713
16714 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16715     case $lt_prog_compiler_pic_GCJ in
16716      "" | " "*) ;;
16717      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16718      esac
16719 else
16720     lt_prog_compiler_pic_GCJ=
16721      lt_prog_compiler_can_build_shared_GCJ=no
16722 fi
16723
16724 fi
16725 case $host_os in
16726   # For platforms which do not support PIC, -DPIC is meaningless:
16727   *djgpp*)
16728     lt_prog_compiler_pic_GCJ=
16729     ;;
16730   *)
16731     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16732     ;;
16733 esac
16734
16735 #
16736 # Check to make sure the static flag actually works.
16737 #
16738 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16739 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16741 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16742   $as_echo_n "(cached) " >&6
16743 else
16744   lt_cv_prog_compiler_static_works_GCJ=no
16745    save_LDFLAGS="$LDFLAGS"
16746    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16747    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16749      # The linker can only warn and ignore the option if not recognized
16750      # So say no if there are warnings
16751      if test -s conftest.err; then
16752        # Append any errors to the config.log.
16753        cat conftest.err 1>&5
16754        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756        if diff conftest.exp conftest.er2 >/dev/null; then
16757          lt_cv_prog_compiler_static_works_GCJ=yes
16758        fi
16759      else
16760        lt_cv_prog_compiler_static_works_GCJ=yes
16761      fi
16762    fi
16763    $rm -r conftest*
16764    LDFLAGS="$save_LDFLAGS"
16765
16766 fi
16767 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16768 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16769
16770 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16771     :
16772 else
16773     lt_prog_compiler_static_GCJ=
16774 fi
16775
16776
16777 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16780   $as_echo_n "(cached) " >&6
16781 else
16782   lt_cv_prog_compiler_c_o_GCJ=no
16783    $rm -r conftest 2>/dev/null
16784    mkdir conftest
16785    cd conftest
16786    mkdir out
16787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16788
16789    lt_compiler_flag="-o out/conftest2.$ac_objext"
16790    # Insert the option either (1) after the last *FLAGS variable, or
16791    # (2) before a word containing "conftest.", or (3) at the end.
16792    # Note that $ac_compile itself does not contain backslashes and begins
16793    # with a dollar sign (not a hyphen), so the echo should work correctly.
16794    lt_compile=`echo "$ac_compile" | $SED \
16795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16797    -e 's:$: $lt_compiler_flag:'`
16798    (eval echo "\"\$as_me:16798: $lt_compile\"" >&5)
16799    (eval "$lt_compile" 2>out/conftest.err)
16800    ac_status=$?
16801    cat out/conftest.err >&5
16802    echo "$as_me:16802: \$? = $ac_status" >&5
16803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16804    then
16805      # The compiler can only warn and ignore the option if not recognized
16806      # So say no if there are warnings
16807      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16810        lt_cv_prog_compiler_c_o_GCJ=yes
16811      fi
16812    fi
16813    chmod u+w . 2>&5
16814    $rm conftest*
16815    # SGI C++ compiler will create directory out/ii_files/ for
16816    # template instantiation
16817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16818    $rm out/* && rmdir out
16819    cd ..
16820    rmdir conftest
16821    $rm conftest*
16822
16823 fi
16824 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16825 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16826
16827
16828 hard_links="nottested"
16829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16830   # do not overwrite the value of need_locks provided by the user
16831   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16832 $as_echo_n "checking if we can lock with hard links... " >&6; }
16833   hard_links=yes
16834   $rm conftest*
16835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16836   touch conftest.a
16837   ln conftest.a conftest.b 2>&5 || hard_links=no
16838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16839   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16840 $as_echo "$hard_links" >&6; }
16841   if test "$hard_links" = no; then
16842     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16843 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16844     need_locks=warn
16845   fi
16846 else
16847   need_locks=no
16848 fi
16849
16850 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16851 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16852
16853   runpath_var=
16854   allow_undefined_flag_GCJ=
16855   enable_shared_with_static_runtimes_GCJ=no
16856   archive_cmds_GCJ=
16857   archive_expsym_cmds_GCJ=
16858   old_archive_From_new_cmds_GCJ=
16859   old_archive_from_expsyms_cmds_GCJ=
16860   export_dynamic_flag_spec_GCJ=
16861   whole_archive_flag_spec_GCJ=
16862   thread_safe_flag_spec_GCJ=
16863   hardcode_libdir_flag_spec_GCJ=
16864   hardcode_libdir_flag_spec_ld_GCJ=
16865   hardcode_libdir_separator_GCJ=
16866   hardcode_direct_GCJ=no
16867   hardcode_minus_L_GCJ=no
16868   hardcode_shlibpath_var_GCJ=unsupported
16869   link_all_deplibs_GCJ=unknown
16870   hardcode_automatic_GCJ=no
16871   module_cmds_GCJ=
16872   module_expsym_cmds_GCJ=
16873   always_export_symbols_GCJ=no
16874   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16875   # include_expsyms should be a list of space-separated symbols to be *always*
16876   # included in the symbol list
16877   include_expsyms_GCJ=
16878   # exclude_expsyms can be an extended regexp of symbols to exclude
16879   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16880   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16881   # as well as any symbol that contains `d'.
16882   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16883   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16884   # platforms (ab)use it in PIC code, but their linkers get confused if
16885   # the symbol is explicitly referenced.  Since portable code cannot
16886   # rely on this symbol name, it's probably fine to never include it in
16887   # preloaded symbol tables.
16888   # Exclude shared library initialization/finalization symbols.
16889   extract_expsyms_cmds=
16890   # Just being paranoid about ensuring that cc_basename is set.
16891   for cc_temp in $compiler""; do
16892   case $cc_temp in
16893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16895     \-*) ;;
16896     *) break;;
16897   esac
16898 done
16899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16900
16901   case $host_os in
16902   cygwin* | mingw* | pw32*)
16903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16904     # When not using gcc, we currently assume that we are using
16905     # Microsoft Visual C++.
16906     if test "$GCC" != yes; then
16907       with_gnu_ld=no
16908     fi
16909     ;;
16910   interix*)
16911     # we just hope/assume this is gcc and not c89 (= MSVC++)
16912     with_gnu_ld=yes
16913     ;;
16914   openbsd*)
16915     with_gnu_ld=no
16916     ;;
16917   esac
16918
16919   ld_shlibs_GCJ=yes
16920   if test "$with_gnu_ld" = yes; then
16921     # If archive_cmds runs LD, not CC, wlarc should be empty
16922     wlarc='${wl}'
16923
16924     # Set some defaults for GNU ld with shared library support. These
16925     # are reset later if shared libraries are not supported. Putting them
16926     # here allows them to be overridden if necessary.
16927     runpath_var=LD_RUN_PATH
16928     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16929     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16930     # ancient GNU ld didn't support --whole-archive et. al.
16931     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16932         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16933       else
16934         whole_archive_flag_spec_GCJ=
16935     fi
16936     supports_anon_versioning=no
16937     case `$LD -v 2>/dev/null` in
16938       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16939       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16940       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16941       *\ 2.11.*) ;; # other 2.11 versions
16942       *) supports_anon_versioning=yes ;;
16943     esac
16944
16945     # See if GNU ld supports shared libraries.
16946     case $host_os in
16947     aix[3-9]*)
16948       # On AIX/PPC, the GNU linker is very broken
16949       if test "$host_cpu" != ia64; then
16950         ld_shlibs_GCJ=no
16951         cat <<EOF 1>&2
16952
16953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16954 *** to be unable to reliably create shared libraries on AIX.
16955 *** Therefore, libtool is disabling shared libraries support.  If you
16956 *** really care for shared libraries, you may want to modify your PATH
16957 *** so that a non-GNU linker is found, and then restart.
16958
16959 EOF
16960       fi
16961       ;;
16962
16963     amigaos*)
16964       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)'
16965       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966       hardcode_minus_L_GCJ=yes
16967
16968       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16969       # that the semantics of dynamic libraries on AmigaOS, at least up
16970       # to version 4, is to share data among multiple programs linked
16971       # with the same dynamic library.  Since this doesn't match the
16972       # behavior of shared libraries on other platforms, we can't use
16973       # them.
16974       ld_shlibs_GCJ=no
16975       ;;
16976
16977     beos*)
16978       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979         allow_undefined_flag_GCJ=unsupported
16980         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16981         # support --undefined.  This deserves some investigation.  FIXME
16982         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983       else
16984         ld_shlibs_GCJ=no
16985       fi
16986       ;;
16987
16988     cygwin* | mingw* | pw32*)
16989       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16990       # as there is no search path for DLLs.
16991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992       allow_undefined_flag_GCJ=unsupported
16993       always_export_symbols_GCJ=no
16994       enable_shared_with_static_runtimes_GCJ=yes
16995       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16996
16997       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16998         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16999         # If the export-symbols file already is a .def file (1st line
17000         # is EXPORTS), use it as is; otherwise, prepend...
17001         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17002           cp $export_symbols $output_objdir/$soname.def;
17003         else
17004           echo EXPORTS > $output_objdir/$soname.def;
17005           cat $export_symbols >> $output_objdir/$soname.def;
17006         fi~
17007         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17008       else
17009         ld_shlibs_GCJ=no
17010       fi
17011       ;;
17012
17013     interix[3-9]*)
17014       hardcode_direct_GCJ=no
17015       hardcode_shlibpath_var_GCJ=no
17016       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17017       export_dynamic_flag_spec_GCJ='${wl}-E'
17018       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17019       # Instead, shared libraries are loaded at an image base (0x10000000 by
17020       # default) and relocated if they conflict, which is a slow very memory
17021       # consuming and fragmenting process.  To avoid this, we pick a random,
17022       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17023       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17024       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'
17025       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'
17026       ;;
17027
17028     gnu* | linux* | k*bsd*-gnu)
17029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030         tmp_addflag=
17031         case $cc_basename,$host_cpu in
17032         pgcc*)                          # Portland Group C compiler
17033           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'
17034           tmp_addflag=' $pic_flag'
17035           ;;
17036         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17037           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'
17038           tmp_addflag=' $pic_flag -Mnomain' ;;
17039         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17040           tmp_addflag=' -i_dynamic' ;;
17041         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17042           tmp_addflag=' -i_dynamic -nofor_main' ;;
17043         ifc* | ifort*)                  # Intel Fortran compiler
17044           tmp_addflag=' -nofor_main' ;;
17045         esac
17046         case `$CC -V 2>&1 | sed 5q` in
17047         *Sun\ C*)                       # Sun C 5.9
17048           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17049           tmp_sharedflag='-G' ;;
17050         *Sun\ F*)                       # Sun Fortran 8.3
17051           tmp_sharedflag='-G' ;;
17052         *)
17053           tmp_sharedflag='-shared' ;;
17054         esac
17055         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17056
17057         if test $supports_anon_versioning = yes; then
17058           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17059   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17060   $echo "local: *; };" >> $output_objdir/$libname.ver~
17061           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17062         fi
17063       else
17064         ld_shlibs_GCJ=no
17065       fi
17066       ;;
17067
17068     netbsd*)
17069       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17070         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17071         wlarc=
17072       else
17073         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17074         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17075       fi
17076       ;;
17077
17078     solaris*)
17079       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17080         ld_shlibs_GCJ=no
17081         cat <<EOF 1>&2
17082
17083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17084 *** create shared libraries on Solaris systems.  Therefore, libtool
17085 *** is disabling shared libraries support.  We urge you to upgrade GNU
17086 *** binutils to release 2.9.1 or newer.  Another option is to modify
17087 *** your PATH or compiler configuration so that the native linker is
17088 *** used, and then restart.
17089
17090 EOF
17091       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17092         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17093         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17094       else
17095         ld_shlibs_GCJ=no
17096       fi
17097       ;;
17098
17099     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17100       case `$LD -v 2>&1` in
17101         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17102         ld_shlibs_GCJ=no
17103         cat <<_LT_EOF 1>&2
17104
17105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17106 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17107 *** is disabling shared libraries support.  We urge you to upgrade GNU
17108 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17109 *** your PATH or compiler configuration so that the native linker is
17110 *** used, and then restart.
17111
17112 _LT_EOF
17113         ;;
17114         *)
17115           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17116             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17117             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17118             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17119           else
17120             ld_shlibs_GCJ=no
17121           fi
17122         ;;
17123       esac
17124       ;;
17125
17126     sunos4*)
17127       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17128       wlarc=
17129       hardcode_direct_GCJ=yes
17130       hardcode_shlibpath_var_GCJ=no
17131       ;;
17132
17133     *)
17134       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17135         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17136         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17137       else
17138         ld_shlibs_GCJ=no
17139       fi
17140       ;;
17141     esac
17142
17143     if test "$ld_shlibs_GCJ" = no; then
17144       runpath_var=
17145       hardcode_libdir_flag_spec_GCJ=
17146       export_dynamic_flag_spec_GCJ=
17147       whole_archive_flag_spec_GCJ=
17148     fi
17149   else
17150     # PORTME fill in a description of your system's linker (not GNU ld)
17151     case $host_os in
17152     aix3*)
17153       allow_undefined_flag_GCJ=unsupported
17154       always_export_symbols_GCJ=yes
17155       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'
17156       # Note: this linker hardcodes the directories in LIBPATH if there
17157       # are no directories specified by -L.
17158       hardcode_minus_L_GCJ=yes
17159       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17160         # Neither direct hardcoding nor static linking is supported with a
17161         # broken collect2.
17162         hardcode_direct_GCJ=unsupported
17163       fi
17164       ;;
17165
17166     aix[4-9]*)
17167       if test "$host_cpu" = ia64; then
17168         # On IA64, the linker does run time linking by default, so we don't
17169         # have to do anything special.
17170         aix_use_runtimelinking=no
17171         exp_sym_flag='-Bexport'
17172         no_entry_flag=""
17173       else
17174         # If we're using GNU nm, then we don't want the "-C" option.
17175         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17176         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17177           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'
17178         else
17179           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'
17180         fi
17181         aix_use_runtimelinking=no
17182
17183         # Test if we are trying to use run time linking or normal
17184         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17185         # need to do runtime linking.
17186         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17187           for ld_flag in $LDFLAGS; do
17188           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17189             aix_use_runtimelinking=yes
17190             break
17191           fi
17192           done
17193           ;;
17194         esac
17195
17196         exp_sym_flag='-bexport'
17197         no_entry_flag='-bnoentry'
17198       fi
17199
17200       # When large executables or shared objects are built, AIX ld can
17201       # have problems creating the table of contents.  If linking a library
17202       # or program results in "error TOC overflow" add -mminimal-toc to
17203       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17204       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17205
17206       archive_cmds_GCJ=''
17207       hardcode_direct_GCJ=yes
17208       hardcode_libdir_separator_GCJ=':'
17209       link_all_deplibs_GCJ=yes
17210
17211       if test "$GCC" = yes; then
17212         case $host_os in aix4.[012]|aix4.[012].*)
17213         # We only want to do this on AIX 4.2 and lower, the check
17214         # below for broken collect2 doesn't work under 4.3+
17215           collect2name=`${CC} -print-prog-name=collect2`
17216           if test -f "$collect2name" && \
17217            strings "$collect2name" | grep resolve_lib_name >/dev/null
17218           then
17219           # We have reworked collect2
17220           :
17221           else
17222           # We have old collect2
17223           hardcode_direct_GCJ=unsupported
17224           # It fails to find uninstalled libraries when the uninstalled
17225           # path is not listed in the libpath.  Setting hardcode_minus_L
17226           # to unsupported forces relinking
17227           hardcode_minus_L_GCJ=yes
17228           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17229           hardcode_libdir_separator_GCJ=
17230           fi
17231           ;;
17232         esac
17233         shared_flag='-shared'
17234         if test "$aix_use_runtimelinking" = yes; then
17235           shared_flag="$shared_flag "'${wl}-G'
17236         fi
17237       else
17238         # not using gcc
17239         if test "$host_cpu" = ia64; then
17240         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17241         # chokes on -Wl,-G. The following line is correct:
17242           shared_flag='-G'
17243         else
17244           if test "$aix_use_runtimelinking" = yes; then
17245             shared_flag='${wl}-G'
17246           else
17247             shared_flag='${wl}-bM:SRE'
17248           fi
17249         fi
17250       fi
17251
17252       # It seems that -bexpall does not export symbols beginning with
17253       # underscore (_), so it is better to generate a list of symbols to export.
17254       always_export_symbols_GCJ=yes
17255       if test "$aix_use_runtimelinking" = yes; then
17256         # Warning - without using the other runtime loading flags (-brtl),
17257         # -berok will link without error, but may produce a broken library.
17258         allow_undefined_flag_GCJ='-berok'
17259        # Determine the default libpath from the value encoded in an empty executable.
17260        cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h.  */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h.  */
17266
17267 int
17268 main ()
17269 {
17270
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 rm -f conftest.$ac_objext conftest$ac_exeext
17276 if { (ac_try="$ac_link"
17277 case "(($ac_try" in
17278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279   *) ac_try_echo=$ac_try;;
17280 esac
17281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283   (eval "$ac_link") 2>conftest.er1
17284   ac_status=$?
17285   grep -v '^ *+' conftest.er1 >conftest.err
17286   rm -f conftest.er1
17287   cat conftest.err >&5
17288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); } && {
17290          test -z "$ac_c_werror_flag" ||
17291          test ! -s conftest.err
17292        } && test -s conftest$ac_exeext && {
17293          test "$cross_compiling" = yes ||
17294          $as_test_x conftest$ac_exeext
17295        }; then
17296
17297 lt_aix_libpath_sed='
17298     /Import File Strings/,/^$/ {
17299         /^0/ {
17300             s/^0  *\(.*\)$/\1/
17301             p
17302         }
17303     }'
17304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17305 # Check for a 64-bit object if we didn't find anything.
17306 if test -z "$aix_libpath"; then
17307   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17308 fi
17309 else
17310   $as_echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313
17314 fi
17315
17316 rm -rf conftest.dSYM
17317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17318       conftest$ac_exeext conftest.$ac_ext
17319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17320
17321        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17322         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"
17323        else
17324         if test "$host_cpu" = ia64; then
17325           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17326           allow_undefined_flag_GCJ="-z nodefs"
17327           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"
17328         else
17329          # Determine the default libpath from the value encoded in an empty executable.
17330          cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h.  */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h.  */
17336
17337 int
17338 main ()
17339 {
17340
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (ac_try="$ac_link"
17347 case "(($ac_try" in
17348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349   *) ac_try_echo=$ac_try;;
17350 esac
17351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17352 $as_echo "$ac_try_echo") >&5
17353   (eval "$ac_link") 2>conftest.er1
17354   ac_status=$?
17355   grep -v '^ *+' conftest.er1 >conftest.err
17356   rm -f conftest.er1
17357   cat conftest.err >&5
17358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); } && {
17360          test -z "$ac_c_werror_flag" ||
17361          test ! -s conftest.err
17362        } && test -s conftest$ac_exeext && {
17363          test "$cross_compiling" = yes ||
17364          $as_test_x conftest$ac_exeext
17365        }; then
17366
17367 lt_aix_libpath_sed='
17368     /Import File Strings/,/^$/ {
17369         /^0/ {
17370             s/^0  *\(.*\)$/\1/
17371             p
17372         }
17373     }'
17374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17375 # Check for a 64-bit object if we didn't find anything.
17376 if test -z "$aix_libpath"; then
17377   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17378 fi
17379 else
17380   $as_echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383
17384 fi
17385
17386 rm -rf conftest.dSYM
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388       conftest$ac_exeext conftest.$ac_ext
17389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17390
17391          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17392           # Warning - without using the other run time loading flags,
17393           # -berok will link without error, but may produce a broken library.
17394           no_undefined_flag_GCJ=' ${wl}-bernotok'
17395           allow_undefined_flag_GCJ=' ${wl}-berok'
17396           # Exported symbols can be pulled into shared objects from archives
17397           whole_archive_flag_spec_GCJ='$convenience'
17398           archive_cmds_need_lc_GCJ=yes
17399           # This is similar to how AIX traditionally builds its shared libraries.
17400           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'
17401         fi
17402       fi
17403       ;;
17404
17405     amigaos*)
17406       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)'
17407       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17408       hardcode_minus_L_GCJ=yes
17409       # see comment about different semantics on the GNU ld section
17410       ld_shlibs_GCJ=no
17411       ;;
17412
17413     bsdi[45]*)
17414       export_dynamic_flag_spec_GCJ=-rdynamic
17415       ;;
17416
17417     cygwin* | mingw* | pw32*)
17418       # When not using gcc, we currently assume that we are using
17419       # Microsoft Visual C++.
17420       # hardcode_libdir_flag_spec is actually meaningless, as there is
17421       # no search path for DLLs.
17422       hardcode_libdir_flag_spec_GCJ=' '
17423       allow_undefined_flag_GCJ=unsupported
17424       # Tell ltmain to make .lib files, not .a files.
17425       libext=lib
17426       # Tell ltmain to make .dll files, not .so files.
17427       shrext_cmds=".dll"
17428       # FIXME: Setting linknames here is a bad hack.
17429       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17430       # The linker will automatically build a .lib file if we build a DLL.
17431       old_archive_From_new_cmds_GCJ='true'
17432       # FIXME: Should let the user specify the lib program.
17433       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17434       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17435       enable_shared_with_static_runtimes_GCJ=yes
17436       ;;
17437
17438     darwin* | rhapsody*)
17439       case $host_os in
17440         rhapsody* | darwin1.[012])
17441          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17442          ;;
17443        *) # Darwin 1.3 on
17444          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17445            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17446          else
17447            case ${MACOSX_DEPLOYMENT_TARGET} in
17448              10.[012])
17449                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17450                ;;
17451              10.*)
17452                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17453                ;;
17454            esac
17455          fi
17456          ;;
17457       esac
17458       archive_cmds_need_lc_GCJ=no
17459       hardcode_direct_GCJ=no
17460       hardcode_automatic_GCJ=yes
17461       hardcode_shlibpath_var_GCJ=unsupported
17462       whole_archive_flag_spec_GCJ=''
17463       link_all_deplibs_GCJ=yes
17464     if test "$GCC" = yes ; then
17465         output_verbose_link_cmd='echo'
17466         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17467         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17468         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17469         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17470     else
17471       case $cc_basename in
17472         xlc*)
17473          output_verbose_link_cmd='echo'
17474          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17475          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17476           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17477          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17478           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}'
17479           ;;
17480        *)
17481          ld_shlibs_GCJ=no
17482           ;;
17483       esac
17484     fi
17485       ;;
17486
17487     dgux*)
17488       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17489       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17490       hardcode_shlibpath_var_GCJ=no
17491       ;;
17492
17493     freebsd1*)
17494       ld_shlibs_GCJ=no
17495       ;;
17496
17497     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17498     # support.  Future versions do this automatically, but an explicit c++rt0.o
17499     # does not break anything, and helps significantly (at the cost of a little
17500     # extra space).
17501     freebsd2.2*)
17502       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17503       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17504       hardcode_direct_GCJ=yes
17505       hardcode_shlibpath_var_GCJ=no
17506       ;;
17507
17508     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17509     freebsd2*)
17510       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17511       hardcode_direct_GCJ=yes
17512       hardcode_minus_L_GCJ=yes
17513       hardcode_shlibpath_var_GCJ=no
17514       ;;
17515
17516     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17517     freebsd* | dragonfly*)
17518       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17519       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17520       hardcode_direct_GCJ=yes
17521       hardcode_shlibpath_var_GCJ=no
17522       ;;
17523
17524     hpux9*)
17525       if test "$GCC" = yes; then
17526         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'
17527       else
17528         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'
17529       fi
17530       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17531       hardcode_libdir_separator_GCJ=:
17532       hardcode_direct_GCJ=yes
17533
17534       # hardcode_minus_L: Not really in the search PATH,
17535       # but as the default location of the library.
17536       hardcode_minus_L_GCJ=yes
17537       export_dynamic_flag_spec_GCJ='${wl}-E'
17538       ;;
17539
17540     hpux10*)
17541       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17542         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17543       else
17544         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17545       fi
17546       if test "$with_gnu_ld" = no; then
17547         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17548         hardcode_libdir_separator_GCJ=:
17549
17550         hardcode_direct_GCJ=yes
17551         export_dynamic_flag_spec_GCJ='${wl}-E'
17552
17553         # hardcode_minus_L: Not really in the search PATH,
17554         # but as the default location of the library.
17555         hardcode_minus_L_GCJ=yes
17556       fi
17557       ;;
17558
17559     hpux11*)
17560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17561         case $host_cpu in
17562         hppa*64*)
17563           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17564           ;;
17565         ia64*)
17566           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17567           ;;
17568         *)
17569           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17570           ;;
17571         esac
17572       else
17573         case $host_cpu in
17574         hppa*64*)
17575           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17576           ;;
17577         ia64*)
17578           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17579           ;;
17580         *)
17581           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17582           ;;
17583         esac
17584       fi
17585       if test "$with_gnu_ld" = no; then
17586         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17587         hardcode_libdir_separator_GCJ=:
17588
17589         case $host_cpu in
17590         hppa*64*|ia64*)
17591           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17592           hardcode_direct_GCJ=no
17593           hardcode_shlibpath_var_GCJ=no
17594           ;;
17595         *)
17596           hardcode_direct_GCJ=yes
17597           export_dynamic_flag_spec_GCJ='${wl}-E'
17598
17599           # hardcode_minus_L: Not really in the search PATH,
17600           # but as the default location of the library.
17601           hardcode_minus_L_GCJ=yes
17602           ;;
17603         esac
17604       fi
17605       ;;
17606
17607     irix5* | irix6* | nonstopux*)
17608       if test "$GCC" = yes; then
17609         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'
17610       else
17611         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'
17612         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17613       fi
17614       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17615       hardcode_libdir_separator_GCJ=:
17616       link_all_deplibs_GCJ=yes
17617       ;;
17618
17619     netbsd*)
17620       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17621         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17622       else
17623         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17624       fi
17625       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17626       hardcode_direct_GCJ=yes
17627       hardcode_shlibpath_var_GCJ=no
17628       ;;
17629
17630     newsos6)
17631       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632       hardcode_direct_GCJ=yes
17633       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634       hardcode_libdir_separator_GCJ=:
17635       hardcode_shlibpath_var_GCJ=no
17636       ;;
17637
17638     openbsd*)
17639       if test -f /usr/libexec/ld.so; then
17640         hardcode_direct_GCJ=yes
17641         hardcode_shlibpath_var_GCJ=no
17642         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17643           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17644           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17645           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17646           export_dynamic_flag_spec_GCJ='${wl}-E'
17647         else
17648           case $host_os in
17649            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17650              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17651              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17652              ;;
17653            *)
17654              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17655              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17656              ;;
17657           esac
17658         fi
17659       else
17660         ld_shlibs_GCJ=no
17661       fi
17662       ;;
17663
17664     os2*)
17665       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17666       hardcode_minus_L_GCJ=yes
17667       allow_undefined_flag_GCJ=unsupported
17668       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'
17669       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17670       ;;
17671
17672     osf3*)
17673       if test "$GCC" = yes; then
17674         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17675         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'
17676       else
17677         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17678         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'
17679       fi
17680       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17681       hardcode_libdir_separator_GCJ=:
17682       ;;
17683
17684     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17685       if test "$GCC" = yes; then
17686         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17687         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'
17688         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17689       else
17690         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17691         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'
17692         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~
17693         $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'
17694
17695         # Both c and cxx compiler support -rpath directly
17696         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17697       fi
17698       hardcode_libdir_separator_GCJ=:
17699       ;;
17700
17701     solaris*)
17702       no_undefined_flag_GCJ=' -z text'
17703       if test "$GCC" = yes; then
17704         wlarc='${wl}'
17705         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17706         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17707           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17708       else
17709         wlarc=''
17710         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17711         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17712         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17713       fi
17714       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17715       hardcode_shlibpath_var_GCJ=no
17716       case $host_os in
17717       solaris2.[0-5] | solaris2.[0-5].*) ;;
17718       *)
17719         # The compiler driver will combine and reorder linker options,
17720         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17721         # but is careful enough not to reorder.
17722         # Supported since Solaris 2.6 (maybe 2.5.1?)
17723         if test "$GCC" = yes; then
17724           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17725         else
17726           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17727         fi
17728         ;;
17729       esac
17730       link_all_deplibs_GCJ=yes
17731       ;;
17732
17733     sunos4*)
17734       if test "x$host_vendor" = xsequent; then
17735         # Use $CC to link under sequent, because it throws in some extra .o
17736         # files that make .init and .fini sections work.
17737         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17738       else
17739         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17740       fi
17741       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742       hardcode_direct_GCJ=yes
17743       hardcode_minus_L_GCJ=yes
17744       hardcode_shlibpath_var_GCJ=no
17745       ;;
17746
17747     sysv4)
17748       case $host_vendor in
17749         sni)
17750           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17751           hardcode_direct_GCJ=yes # is this really true???
17752         ;;
17753         siemens)
17754           ## LD is ld it makes a PLAMLIB
17755           ## CC just makes a GrossModule.
17756           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17757           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17758           hardcode_direct_GCJ=no
17759         ;;
17760         motorola)
17761           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17762           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17763         ;;
17764       esac
17765       runpath_var='LD_RUN_PATH'
17766       hardcode_shlibpath_var_GCJ=no
17767       ;;
17768
17769     sysv4.3*)
17770       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17771       hardcode_shlibpath_var_GCJ=no
17772       export_dynamic_flag_spec_GCJ='-Bexport'
17773       ;;
17774
17775     sysv4*MP*)
17776       if test -d /usr/nec; then
17777         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778         hardcode_shlibpath_var_GCJ=no
17779         runpath_var=LD_RUN_PATH
17780         hardcode_runpath_var=yes
17781         ld_shlibs_GCJ=yes
17782       fi
17783       ;;
17784
17785     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17786       no_undefined_flag_GCJ='${wl}-z,text'
17787       archive_cmds_need_lc_GCJ=no
17788       hardcode_shlibpath_var_GCJ=no
17789       runpath_var='LD_RUN_PATH'
17790
17791       if test "$GCC" = yes; then
17792         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17793         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17794       else
17795         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17796         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17797       fi
17798       ;;
17799
17800     sysv5* | sco3.2v5* | sco5v6*)
17801       # Note: We can NOT use -z defs as we might desire, because we do not
17802       # link with -lc, and that would cause any symbols used from libc to
17803       # always be unresolved, which means just about no library would
17804       # ever link correctly.  If we're not using GNU ld we use -z text
17805       # though, which does catch some bad symbols but isn't as heavy-handed
17806       # as -z defs.
17807       no_undefined_flag_GCJ='${wl}-z,text'
17808       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17809       archive_cmds_need_lc_GCJ=no
17810       hardcode_shlibpath_var_GCJ=no
17811       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17812       hardcode_libdir_separator_GCJ=':'
17813       link_all_deplibs_GCJ=yes
17814       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17815       runpath_var='LD_RUN_PATH'
17816
17817       if test "$GCC" = yes; then
17818         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17819         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17820       else
17821         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17823       fi
17824       ;;
17825
17826     uts4*)
17827       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17828       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17829       hardcode_shlibpath_var_GCJ=no
17830       ;;
17831
17832     *)
17833       ld_shlibs_GCJ=no
17834       ;;
17835     esac
17836   fi
17837
17838 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17839 $as_echo "$ld_shlibs_GCJ" >&6; }
17840 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17841
17842 #
17843 # Do we need to explicitly link libc?
17844 #
17845 case "x$archive_cmds_need_lc_GCJ" in
17846 x|xyes)
17847   # Assume -lc should be added
17848   archive_cmds_need_lc_GCJ=yes
17849
17850   if test "$enable_shared" = yes && test "$GCC" = yes; then
17851     case $archive_cmds_GCJ in
17852     *'~'*)
17853       # FIXME: we may have to deal with multi-command sequences.
17854       ;;
17855     '$CC '*)
17856       # Test whether the compiler implicitly links with -lc since on some
17857       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17858       # to ld, don't add -lc before -lgcc.
17859       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17861       $rm conftest*
17862       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17863
17864       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17865   (eval $ac_compile) 2>&5
17866   ac_status=$?
17867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } 2>conftest.err; then
17869         soname=conftest
17870         lib=conftest
17871         libobjs=conftest.$ac_objext
17872         deplibs=
17873         wl=$lt_prog_compiler_wl_GCJ
17874         pic_flag=$lt_prog_compiler_pic_GCJ
17875         compiler_flags=-v
17876         linker_flags=-v
17877         verstring=
17878         output_objdir=.
17879         libname=conftest
17880         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17881         allow_undefined_flag_GCJ=
17882         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17883   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17884   ac_status=$?
17885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }
17887         then
17888           archive_cmds_need_lc_GCJ=no
17889         else
17890           archive_cmds_need_lc_GCJ=yes
17891         fi
17892         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17893       else
17894         cat conftest.err 1>&5
17895       fi
17896       $rm conftest*
17897       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17898 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17899       ;;
17900     esac
17901   fi
17902   ;;
17903 esac
17904
17905 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17906 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17907 library_names_spec=
17908 libname_spec='lib$name'
17909 soname_spec=
17910 shrext_cmds=".so"
17911 postinstall_cmds=
17912 postuninstall_cmds=
17913 finish_cmds=
17914 finish_eval=
17915 shlibpath_var=
17916 shlibpath_overrides_runpath=unknown
17917 version_type=none
17918 dynamic_linker="$host_os ld.so"
17919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17920
17921 need_lib_prefix=unknown
17922 hardcode_into_libs=no
17923
17924 # when you set need_version to no, make sure it does not cause -set_version
17925 # flags to be left without arguments
17926 need_version=unknown
17927
17928 case $host_os in
17929 aix3*)
17930   version_type=linux
17931   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17932   shlibpath_var=LIBPATH
17933
17934   # AIX 3 has no versioning support, so we append a major version to the name.
17935   soname_spec='${libname}${release}${shared_ext}$major'
17936   ;;
17937
17938 aix[4-9]*)
17939   version_type=linux
17940   need_lib_prefix=no
17941   need_version=no
17942   hardcode_into_libs=yes
17943   if test "$host_cpu" = ia64; then
17944     # AIX 5 supports IA64
17945     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17946     shlibpath_var=LD_LIBRARY_PATH
17947   else
17948     # With GCC up to 2.95.x, collect2 would create an import file
17949     # for dependence libraries.  The import file would start with
17950     # the line `#! .'.  This would cause the generated library to
17951     # depend on `.', always an invalid library.  This was fixed in
17952     # development snapshots of GCC prior to 3.0.
17953     case $host_os in
17954       aix4 | aix4.[01] | aix4.[01].*)
17955       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17956            echo ' yes '
17957            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17958         :
17959       else
17960         can_build_shared=no
17961       fi
17962       ;;
17963     esac
17964     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17965     # soname into executable. Probably we can add versioning support to
17966     # collect2, so additional links can be useful in future.
17967     if test "$aix_use_runtimelinking" = yes; then
17968       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17969       # instead of lib<name>.a to let people know that these are not
17970       # typical AIX shared libraries.
17971       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972     else
17973       # We preserve .a as extension for shared libraries through AIX4.2
17974       # and later when we are not doing run time linking.
17975       library_names_spec='${libname}${release}.a $libname.a'
17976       soname_spec='${libname}${release}${shared_ext}$major'
17977     fi
17978     shlibpath_var=LIBPATH
17979   fi
17980   ;;
17981
17982 amigaos*)
17983   library_names_spec='$libname.ixlibrary $libname.a'
17984   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17985   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'
17986   ;;
17987
17988 beos*)
17989   library_names_spec='${libname}${shared_ext}'
17990   dynamic_linker="$host_os ld.so"
17991   shlibpath_var=LIBRARY_PATH
17992   ;;
17993
17994 bsdi[45]*)
17995   version_type=linux
17996   need_version=no
17997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998   soname_spec='${libname}${release}${shared_ext}$major'
17999   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18000   shlibpath_var=LD_LIBRARY_PATH
18001   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18002   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18003   # the default ld.so.conf also contains /usr/contrib/lib and
18004   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18005   # libtool to hard-code these into programs
18006   ;;
18007
18008 cygwin* | mingw* | pw32*)
18009   version_type=windows
18010   shrext_cmds=".dll"
18011   need_version=no
18012   need_lib_prefix=no
18013
18014   case $GCC,$host_os in
18015   yes,cygwin* | yes,mingw* | yes,pw32*)
18016     library_names_spec='$libname.dll.a'
18017     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18018     postinstall_cmds='base_file=`basename \${file}`~
18019       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18020       dldir=$destdir/`dirname \$dlpath`~
18021       test -d \$dldir || mkdir -p \$dldir~
18022       $install_prog $dir/$dlname \$dldir/$dlname~
18023       chmod a+x \$dldir/$dlname'
18024     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18025       dlpath=$dir/\$dldll~
18026        $rm \$dlpath'
18027     shlibpath_overrides_runpath=yes
18028
18029     case $host_os in
18030     cygwin*)
18031       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18032       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18033       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18034       ;;
18035     mingw*)
18036       # MinGW DLLs use traditional 'lib' prefix
18037       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18039       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18040         # It is most probably a Windows format PATH printed by
18041         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18042         # path with ; separators, and with drive letters. We can handle the
18043         # drive letters (cygwin fileutils understands them), so leave them,
18044         # especially as we might pass files found there to a mingw objdump,
18045         # which wouldn't understand a cygwinified path. Ahh.
18046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18047       else
18048         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18049       fi
18050       ;;
18051     pw32*)
18052       # pw32 DLLs use 'pw' prefix rather than 'lib'
18053       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18054       ;;
18055     esac
18056     ;;
18057
18058   *)
18059     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18060     ;;
18061   esac
18062   dynamic_linker='Win32 ld.exe'
18063   # FIXME: first we should search . and the directory the executable is in
18064   shlibpath_var=PATH
18065   ;;
18066
18067 darwin* | rhapsody*)
18068   dynamic_linker="$host_os dyld"
18069   version_type=darwin
18070   need_lib_prefix=no
18071   need_version=no
18072   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18073   soname_spec='${libname}${release}${major}$shared_ext'
18074   shlibpath_overrides_runpath=yes
18075   shlibpath_var=DYLD_LIBRARY_PATH
18076   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18077
18078   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18079   ;;
18080
18081 dgux*)
18082   version_type=linux
18083   need_lib_prefix=no
18084   need_version=no
18085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18086   soname_spec='${libname}${release}${shared_ext}$major'
18087   shlibpath_var=LD_LIBRARY_PATH
18088   ;;
18089
18090 freebsd1*)
18091   dynamic_linker=no
18092   ;;
18093
18094 freebsd* | dragonfly*)
18095   # DragonFly does not have aout.  When/if they implement a new
18096   # versioning mechanism, adjust this.
18097   if test -x /usr/bin/objformat; then
18098     objformat=`/usr/bin/objformat`
18099   else
18100     case $host_os in
18101     freebsd[123]*) objformat=aout ;;
18102     *) objformat=elf ;;
18103     esac
18104   fi
18105   version_type=freebsd-$objformat
18106   case $version_type in
18107     freebsd-elf*)
18108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18109       need_version=no
18110       need_lib_prefix=no
18111       ;;
18112     freebsd-*)
18113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18114       need_version=yes
18115       ;;
18116   esac
18117   shlibpath_var=LD_LIBRARY_PATH
18118   case $host_os in
18119   freebsd2*)
18120     shlibpath_overrides_runpath=yes
18121     ;;
18122   freebsd3.[01]* | freebsdelf3.[01]*)
18123     shlibpath_overrides_runpath=yes
18124     hardcode_into_libs=yes
18125     ;;
18126   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18127   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18128     shlibpath_overrides_runpath=no
18129     hardcode_into_libs=yes
18130     ;;
18131   *) # from 4.6 on, and DragonFly
18132     shlibpath_overrides_runpath=yes
18133     hardcode_into_libs=yes
18134     ;;
18135   esac
18136   ;;
18137
18138 gnu*)
18139   version_type=linux
18140   need_lib_prefix=no
18141   need_version=no
18142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18143   soname_spec='${libname}${release}${shared_ext}$major'
18144   shlibpath_var=LD_LIBRARY_PATH
18145   hardcode_into_libs=yes
18146   ;;
18147
18148 hpux9* | hpux10* | hpux11*)
18149   # Give a soname corresponding to the major version so that dld.sl refuses to
18150   # link against other versions.
18151   version_type=sunos
18152   need_lib_prefix=no
18153   need_version=no
18154   case $host_cpu in
18155   ia64*)
18156     shrext_cmds='.so'
18157     hardcode_into_libs=yes
18158     dynamic_linker="$host_os dld.so"
18159     shlibpath_var=LD_LIBRARY_PATH
18160     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18162     soname_spec='${libname}${release}${shared_ext}$major'
18163     if test "X$HPUX_IA64_MODE" = X32; then
18164       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18165     else
18166       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18167     fi
18168     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18169     ;;
18170    hppa*64*)
18171      shrext_cmds='.sl'
18172      hardcode_into_libs=yes
18173      dynamic_linker="$host_os dld.sl"
18174      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18175      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177      soname_spec='${libname}${release}${shared_ext}$major'
18178      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18179      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18180      ;;
18181    *)
18182     shrext_cmds='.sl'
18183     dynamic_linker="$host_os dld.sl"
18184     shlibpath_var=SHLIB_PATH
18185     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18187     soname_spec='${libname}${release}${shared_ext}$major'
18188     ;;
18189   esac
18190   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18191   postinstall_cmds='chmod 555 $lib'
18192   ;;
18193
18194 interix[3-9]*)
18195   version_type=linux
18196   need_lib_prefix=no
18197   need_version=no
18198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18199   soname_spec='${libname}${release}${shared_ext}$major'
18200   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18201   shlibpath_var=LD_LIBRARY_PATH
18202   shlibpath_overrides_runpath=no
18203   hardcode_into_libs=yes
18204   ;;
18205
18206 irix5* | irix6* | nonstopux*)
18207   case $host_os in
18208     nonstopux*) version_type=nonstopux ;;
18209     *)
18210         if test "$lt_cv_prog_gnu_ld" = yes; then
18211                 version_type=linux
18212         else
18213                 version_type=irix
18214         fi ;;
18215   esac
18216   need_lib_prefix=no
18217   need_version=no
18218   soname_spec='${libname}${release}${shared_ext}$major'
18219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18220   case $host_os in
18221   irix5* | nonstopux*)
18222     libsuff= shlibsuff=
18223     ;;
18224   *)
18225     case $LD in # libtool.m4 will add one of these switches to LD
18226     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18227       libsuff= shlibsuff= libmagic=32-bit;;
18228     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18229       libsuff=32 shlibsuff=N32 libmagic=N32;;
18230     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18231       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18232     *) libsuff= shlibsuff= libmagic=never-match;;
18233     esac
18234     ;;
18235   esac
18236   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18237   shlibpath_overrides_runpath=no
18238   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18239   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18240   hardcode_into_libs=yes
18241   ;;
18242
18243 # No shared lib support for Linux oldld, aout, or coff.
18244 linux*oldld* | linux*aout* | linux*coff*)
18245   dynamic_linker=no
18246   ;;
18247
18248 # This must be Linux ELF.
18249 linux* | k*bsd*-gnu)
18250   version_type=linux
18251   need_lib_prefix=no
18252   need_version=no
18253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18254   soname_spec='${libname}${release}${shared_ext}$major'
18255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18256   shlibpath_var=LD_LIBRARY_PATH
18257   shlibpath_overrides_runpath=no
18258   # This implies no fast_install, which is unacceptable.
18259   # Some rework will be needed to allow for fast_install
18260   # before this can be enabled.
18261   hardcode_into_libs=yes
18262   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18263   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18264
18265   # Append ld.so.conf contents to the search path
18266   if test -f /etc/ld.so.conf; then
18267     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18268     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18269   fi
18270
18271   # We used to test for /lib/ld.so.1 and disable shared libraries on
18272   # powerpc, because MkLinux only supported shared libraries with the
18273   # GNU dynamic linker.  Since this was broken with cross compilers,
18274   # most powerpc-linux boxes support dynamic linking these days and
18275   # people can always --disable-shared, the test was removed, and we
18276   # assume the GNU/Linux dynamic linker is in use.
18277   dynamic_linker='GNU/Linux ld.so'
18278   ;;
18279
18280 netbsd*)
18281   version_type=sunos
18282   need_lib_prefix=no
18283   need_version=no
18284   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18286     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18287     dynamic_linker='NetBSD (a.out) ld.so'
18288   else
18289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18290     soname_spec='${libname}${release}${shared_ext}$major'
18291     dynamic_linker='NetBSD ld.elf_so'
18292   fi
18293   shlibpath_var=LD_LIBRARY_PATH
18294   shlibpath_overrides_runpath=yes
18295   hardcode_into_libs=yes
18296   ;;
18297
18298 newsos6)
18299   version_type=linux
18300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301   shlibpath_var=LD_LIBRARY_PATH
18302   shlibpath_overrides_runpath=yes
18303   ;;
18304
18305 nto-qnx*)
18306   version_type=linux
18307   need_lib_prefix=no
18308   need_version=no
18309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18310   soname_spec='${libname}${release}${shared_ext}$major'
18311   shlibpath_var=LD_LIBRARY_PATH
18312   shlibpath_overrides_runpath=yes
18313   ;;
18314
18315 openbsd*)
18316   version_type=sunos
18317   sys_lib_dlsearch_path_spec="/usr/lib"
18318   need_lib_prefix=no
18319   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18320   case $host_os in
18321     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18322     *)                         need_version=no  ;;
18323   esac
18324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18326   shlibpath_var=LD_LIBRARY_PATH
18327   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18328     case $host_os in
18329       openbsd2.[89] | openbsd2.[89].*)
18330         shlibpath_overrides_runpath=no
18331         ;;
18332       *)
18333         shlibpath_overrides_runpath=yes
18334         ;;
18335       esac
18336   else
18337     shlibpath_overrides_runpath=yes
18338   fi
18339   ;;
18340
18341 os2*)
18342   libname_spec='$name'
18343   shrext_cmds=".dll"
18344   need_lib_prefix=no
18345   library_names_spec='$libname${shared_ext} $libname.a'
18346   dynamic_linker='OS/2 ld.exe'
18347   shlibpath_var=LIBPATH
18348   ;;
18349
18350 osf3* | osf4* | osf5*)
18351   version_type=osf
18352   need_lib_prefix=no
18353   need_version=no
18354   soname_spec='${libname}${release}${shared_ext}$major'
18355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356   shlibpath_var=LD_LIBRARY_PATH
18357   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18358   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18359   ;;
18360
18361 rdos*)
18362   dynamic_linker=no
18363   ;;
18364
18365 solaris*)
18366   version_type=linux
18367   need_lib_prefix=no
18368   need_version=no
18369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370   soname_spec='${libname}${release}${shared_ext}$major'
18371   shlibpath_var=LD_LIBRARY_PATH
18372   shlibpath_overrides_runpath=yes
18373   hardcode_into_libs=yes
18374   # ldd complains unless libraries are executable
18375   postinstall_cmds='chmod +x $lib'
18376   ;;
18377
18378 sunos4*)
18379   version_type=sunos
18380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18381   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18382   shlibpath_var=LD_LIBRARY_PATH
18383   shlibpath_overrides_runpath=yes
18384   if test "$with_gnu_ld" = yes; then
18385     need_lib_prefix=no
18386   fi
18387   need_version=yes
18388   ;;
18389
18390 sysv4 | sysv4.3*)
18391   version_type=linux
18392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393   soname_spec='${libname}${release}${shared_ext}$major'
18394   shlibpath_var=LD_LIBRARY_PATH
18395   case $host_vendor in
18396     sni)
18397       shlibpath_overrides_runpath=no
18398       need_lib_prefix=no
18399       export_dynamic_flag_spec='${wl}-Blargedynsym'
18400       runpath_var=LD_RUN_PATH
18401       ;;
18402     siemens)
18403       need_lib_prefix=no
18404       ;;
18405     motorola)
18406       need_lib_prefix=no
18407       need_version=no
18408       shlibpath_overrides_runpath=no
18409       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18410       ;;
18411   esac
18412   ;;
18413
18414 sysv4*MP*)
18415   if test -d /usr/nec ;then
18416     version_type=linux
18417     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18418     soname_spec='$libname${shared_ext}.$major'
18419     shlibpath_var=LD_LIBRARY_PATH
18420   fi
18421   ;;
18422
18423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18424   version_type=freebsd-elf
18425   need_lib_prefix=no
18426   need_version=no
18427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428   soname_spec='${libname}${release}${shared_ext}$major'
18429   shlibpath_var=LD_LIBRARY_PATH
18430   hardcode_into_libs=yes
18431   if test "$with_gnu_ld" = yes; then
18432     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18433     shlibpath_overrides_runpath=no
18434   else
18435     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18436     shlibpath_overrides_runpath=yes
18437     case $host_os in
18438       sco3.2v5*)
18439         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18440         ;;
18441     esac
18442   fi
18443   sys_lib_dlsearch_path_spec='/usr/lib'
18444   ;;
18445
18446 uts4*)
18447   version_type=linux
18448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449   soname_spec='${libname}${release}${shared_ext}$major'
18450   shlibpath_var=LD_LIBRARY_PATH
18451   ;;
18452
18453 *)
18454   dynamic_linker=no
18455   ;;
18456 esac
18457 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18458 $as_echo "$dynamic_linker" >&6; }
18459 test "$dynamic_linker" = no && can_build_shared=no
18460
18461 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18462   $as_echo_n "(cached) " >&6
18463 else
18464   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18465 fi
18466
18467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18469   $as_echo_n "(cached) " >&6
18470 else
18471   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18472 fi
18473
18474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18475
18476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18477 if test "$GCC" = yes; then
18478   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18479 fi
18480
18481 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18482 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18483 hardcode_action_GCJ=
18484 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18485    test -n "$runpath_var_GCJ" || \
18486    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18487
18488   # We can hardcode non-existant directories.
18489   if test "$hardcode_direct_GCJ" != no &&
18490      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18491      # have to relink, otherwise we might link with an installed library
18492      # when we should be linking with a yet-to-be-installed one
18493      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18494      test "$hardcode_minus_L_GCJ" != no; then
18495     # Linking always hardcodes the temporary library directory.
18496     hardcode_action_GCJ=relink
18497   else
18498     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18499     hardcode_action_GCJ=immediate
18500   fi
18501 else
18502   # We cannot hardcode anything, or else we can only hardcode existing
18503   # directories.
18504   hardcode_action_GCJ=unsupported
18505 fi
18506 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18507 $as_echo "$hardcode_action_GCJ" >&6; }
18508
18509 if test "$hardcode_action_GCJ" = relink; then
18510   # Fast installation is not supported
18511   enable_fast_install=no
18512 elif test "$shlibpath_overrides_runpath" = yes ||
18513      test "$enable_shared" = no; then
18514   # Fast installation is not necessary
18515   enable_fast_install=needless
18516 fi
18517
18518
18519 # The else clause should only fire when bootstrapping the
18520 # libtool distribution, otherwise you forgot to ship ltmain.sh
18521 # with your package, and you will get complaints that there are
18522 # no rules to generate ltmain.sh.
18523 if test -f "$ltmain"; then
18524   # See if we are running on zsh, and set the options which allow our commands through
18525   # without removal of \ escapes.
18526   if test -n "${ZSH_VERSION+set}" ; then
18527     setopt NO_GLOB_SUBST
18528   fi
18529   # Now quote all the things that may contain metacharacters while being
18530   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18531   # variables and quote the copies for generation of the libtool script.
18532   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18533     SED SHELL STRIP \
18534     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18535     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18536     deplibs_check_method reload_flag reload_cmds need_locks \
18537     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18538     lt_cv_sys_global_symbol_to_c_name_address \
18539     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18540     old_postinstall_cmds old_postuninstall_cmds \
18541     compiler_GCJ \
18542     CC_GCJ \
18543     LD_GCJ \
18544     lt_prog_compiler_wl_GCJ \
18545     lt_prog_compiler_pic_GCJ \
18546     lt_prog_compiler_static_GCJ \
18547     lt_prog_compiler_no_builtin_flag_GCJ \
18548     export_dynamic_flag_spec_GCJ \
18549     thread_safe_flag_spec_GCJ \
18550     whole_archive_flag_spec_GCJ \
18551     enable_shared_with_static_runtimes_GCJ \
18552     old_archive_cmds_GCJ \
18553     old_archive_from_new_cmds_GCJ \
18554     predep_objects_GCJ \
18555     postdep_objects_GCJ \
18556     predeps_GCJ \
18557     postdeps_GCJ \
18558     compiler_lib_search_path_GCJ \
18559     compiler_lib_search_dirs_GCJ \
18560     archive_cmds_GCJ \
18561     archive_expsym_cmds_GCJ \
18562     postinstall_cmds_GCJ \
18563     postuninstall_cmds_GCJ \
18564     old_archive_from_expsyms_cmds_GCJ \
18565     allow_undefined_flag_GCJ \
18566     no_undefined_flag_GCJ \
18567     export_symbols_cmds_GCJ \
18568     hardcode_libdir_flag_spec_GCJ \
18569     hardcode_libdir_flag_spec_ld_GCJ \
18570     hardcode_libdir_separator_GCJ \
18571     hardcode_automatic_GCJ \
18572     module_cmds_GCJ \
18573     module_expsym_cmds_GCJ \
18574     lt_cv_prog_compiler_c_o_GCJ \
18575     fix_srcfile_path_GCJ \
18576     exclude_expsyms_GCJ \
18577     include_expsyms_GCJ; do
18578
18579     case $var in
18580     old_archive_cmds_GCJ | \
18581     old_archive_from_new_cmds_GCJ | \
18582     archive_cmds_GCJ | \
18583     archive_expsym_cmds_GCJ | \
18584     module_cmds_GCJ | \
18585     module_expsym_cmds_GCJ | \
18586     old_archive_from_expsyms_cmds_GCJ | \
18587     export_symbols_cmds_GCJ | \
18588     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18589     postinstall_cmds | postuninstall_cmds | \
18590     old_postinstall_cmds | old_postuninstall_cmds | \
18591     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18592       # Double-quote double-evaled strings.
18593       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18594       ;;
18595     *)
18596       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18597       ;;
18598     esac
18599   done
18600
18601   case $lt_echo in
18602   *'\$0 --fallback-echo"')
18603     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18604     ;;
18605   esac
18606
18607 cfgfile="$ofile"
18608
18609   cat <<__EOF__ >> "$cfgfile"
18610 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18611
18612 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18613
18614 # Shell to use when invoking shell scripts.
18615 SHELL=$lt_SHELL
18616
18617 # Whether or not to build shared libraries.
18618 build_libtool_libs=$enable_shared
18619
18620 # Whether or not to build static libraries.
18621 build_old_libs=$enable_static
18622
18623 # Whether or not to add -lc for building shared libraries.
18624 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18625
18626 # Whether or not to disallow shared libs when runtime libs are static
18627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18628
18629 # Whether or not to optimize for fast installation.
18630 fast_install=$enable_fast_install
18631
18632 # The host system.
18633 host_alias=$host_alias
18634 host=$host
18635 host_os=$host_os
18636
18637 # The build system.
18638 build_alias=$build_alias
18639 build=$build
18640 build_os=$build_os
18641
18642 # An echo program that does not interpret backslashes.
18643 echo=$lt_echo
18644
18645 # The archiver.
18646 AR=$lt_AR
18647 AR_FLAGS=$lt_AR_FLAGS
18648
18649 # A C compiler.
18650 LTCC=$lt_LTCC
18651
18652 # LTCC compiler flags.
18653 LTCFLAGS=$lt_LTCFLAGS
18654
18655 # A language-specific compiler.
18656 CC=$lt_compiler_GCJ
18657
18658 # Is the compiler the GNU C compiler?
18659 with_gcc=$GCC_GCJ
18660
18661 # An ERE matcher.
18662 EGREP=$lt_EGREP
18663
18664 # The linker used to build libraries.
18665 LD=$lt_LD_GCJ
18666
18667 # Whether we need hard or soft links.
18668 LN_S=$lt_LN_S
18669
18670 # A BSD-compatible nm program.
18671 NM=$lt_NM
18672
18673 # A symbol stripping program
18674 STRIP=$lt_STRIP
18675
18676 # Used to examine libraries when file_magic_cmd begins "file"
18677 MAGIC_CMD=$MAGIC_CMD
18678
18679 # Used on cygwin: DLL creation program.
18680 DLLTOOL="$DLLTOOL"
18681
18682 # Used on cygwin: object dumper.
18683 OBJDUMP="$OBJDUMP"
18684
18685 # Used on cygwin: assembler.
18686 AS="$AS"
18687
18688 # The name of the directory that contains temporary libtool files.
18689 objdir=$objdir
18690
18691 # How to create reloadable object files.
18692 reload_flag=$lt_reload_flag
18693 reload_cmds=$lt_reload_cmds
18694
18695 # How to pass a linker flag through the compiler.
18696 wl=$lt_lt_prog_compiler_wl_GCJ
18697
18698 # Object file suffix (normally "o").
18699 objext="$ac_objext"
18700
18701 # Old archive suffix (normally "a").
18702 libext="$libext"
18703
18704 # Shared library suffix (normally ".so").
18705 shrext_cmds='$shrext_cmds'
18706
18707 # Executable file suffix (normally "").
18708 exeext="$exeext"
18709
18710 # Additional compiler flags for building library objects.
18711 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18712 pic_mode=$pic_mode
18713
18714 # What is the maximum length of a command?
18715 max_cmd_len=$lt_cv_sys_max_cmd_len
18716
18717 # Does compiler simultaneously support -c and -o options?
18718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18719
18720 # Must we lock files when doing compilation?
18721 need_locks=$lt_need_locks
18722
18723 # Do we need the lib prefix for modules?
18724 need_lib_prefix=$need_lib_prefix
18725
18726 # Do we need a version for libraries?
18727 need_version=$need_version
18728
18729 # Whether dlopen is supported.
18730 dlopen_support=$enable_dlopen
18731
18732 # Whether dlopen of programs is supported.
18733 dlopen_self=$enable_dlopen_self
18734
18735 # Whether dlopen of statically linked programs is supported.
18736 dlopen_self_static=$enable_dlopen_self_static
18737
18738 # Compiler flag to prevent dynamic linking.
18739 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18740
18741 # Compiler flag to turn off builtin functions.
18742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18743
18744 # Compiler flag to allow reflexive dlopens.
18745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18746
18747 # Compiler flag to generate shared objects directly from archives.
18748 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18749
18750 # Compiler flag to generate thread-safe objects.
18751 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18752
18753 # Library versioning type.
18754 version_type=$version_type
18755
18756 # Format of library name prefix.
18757 libname_spec=$lt_libname_spec
18758
18759 # List of archive names.  First name is the real one, the rest are links.
18760 # The last name is the one that the linker finds with -lNAME.
18761 library_names_spec=$lt_library_names_spec
18762
18763 # The coded name of the library, if different from the real name.
18764 soname_spec=$lt_soname_spec
18765
18766 # Commands used to build and install an old-style archive.
18767 RANLIB=$lt_RANLIB
18768 old_archive_cmds=$lt_old_archive_cmds_GCJ
18769 old_postinstall_cmds=$lt_old_postinstall_cmds
18770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18771
18772 # Create an old-style archive from a shared archive.
18773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18774
18775 # Create a temporary old-style archive to link instead of a shared archive.
18776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18777
18778 # Commands used to build and install a shared archive.
18779 archive_cmds=$lt_archive_cmds_GCJ
18780 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18781 postinstall_cmds=$lt_postinstall_cmds
18782 postuninstall_cmds=$lt_postuninstall_cmds
18783
18784 # Commands used to build a loadable module (assumed same as above if empty)
18785 module_cmds=$lt_module_cmds_GCJ
18786 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18787
18788 # Commands to strip libraries.
18789 old_striplib=$lt_old_striplib
18790 striplib=$lt_striplib
18791
18792 # Dependencies to place before the objects being linked to create a
18793 # shared library.
18794 predep_objects=$lt_predep_objects_GCJ
18795
18796 # Dependencies to place after the objects being linked to create a
18797 # shared library.
18798 postdep_objects=$lt_postdep_objects_GCJ
18799
18800 # Dependencies to place before the objects being linked to create a
18801 # shared library.
18802 predeps=$lt_predeps_GCJ
18803
18804 # Dependencies to place after the objects being linked to create a
18805 # shared library.
18806 postdeps=$lt_postdeps_GCJ
18807
18808 # The directories searched by this compiler when creating a shared
18809 # library
18810 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18811
18812 # The library search path used internally by the compiler when linking
18813 # a shared library.
18814 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18815
18816 # Method to check whether dependent libraries are shared objects.
18817 deplibs_check_method=$lt_deplibs_check_method
18818
18819 # Command to use when deplibs_check_method == file_magic.
18820 file_magic_cmd=$lt_file_magic_cmd
18821
18822 # Flag that allows shared libraries with undefined symbols to be built.
18823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18824
18825 # Flag that forces no undefined symbols.
18826 no_undefined_flag=$lt_no_undefined_flag_GCJ
18827
18828 # Commands used to finish a libtool library installation in a directory.
18829 finish_cmds=$lt_finish_cmds
18830
18831 # Same as above, but a single script fragment to be evaled but not shown.
18832 finish_eval=$lt_finish_eval
18833
18834 # Take the output of nm and produce a listing of raw symbols and C names.
18835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18836
18837 # Transform the output of nm in a proper C declaration
18838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18839
18840 # Transform the output of nm in a C name address pair
18841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18842
18843 # This is the shared library runtime path variable.
18844 runpath_var=$runpath_var
18845
18846 # This is the shared library path variable.
18847 shlibpath_var=$shlibpath_var
18848
18849 # Is shlibpath searched before the hard-coded library search path?
18850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18851
18852 # How to hardcode a shared library path into an executable.
18853 hardcode_action=$hardcode_action_GCJ
18854
18855 # Whether we should hardcode library paths into libraries.
18856 hardcode_into_libs=$hardcode_into_libs
18857
18858 # Flag to hardcode \$libdir into a binary during linking.
18859 # This must work even if \$libdir does not exist.
18860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18861
18862 # If ld is used when linking, flag to hardcode \$libdir into
18863 # a binary during linking. This must work even if \$libdir does
18864 # not exist.
18865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18866
18867 # Whether we need a single -rpath flag with a separated argument.
18868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18869
18870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18871 # resulting binary.
18872 hardcode_direct=$hardcode_direct_GCJ
18873
18874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18875 # resulting binary.
18876 hardcode_minus_L=$hardcode_minus_L_GCJ
18877
18878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18879 # the resulting binary.
18880 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18881
18882 # Set to yes if building a shared library automatically hardcodes DIR into the library
18883 # and all subsequent libraries and executables linked against it.
18884 hardcode_automatic=$hardcode_automatic_GCJ
18885
18886 # Variables whose values should be saved in libtool wrapper scripts and
18887 # restored at relink time.
18888 variables_saved_for_relink="$variables_saved_for_relink"
18889
18890 # Whether libtool must link a program against all its dependency libraries.
18891 link_all_deplibs=$link_all_deplibs_GCJ
18892
18893 # Compile-time system search path for libraries
18894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18895
18896 # Run-time system search path for libraries
18897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18898
18899 # Fix the shell variable \$srcfile for the compiler.
18900 fix_srcfile_path=$lt_fix_srcfile_path
18901
18902 # Set to yes if exported symbols are required.
18903 always_export_symbols=$always_export_symbols_GCJ
18904
18905 # The commands to list exported symbols.
18906 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18907
18908 # The commands to extract the exported symbol list from a shared archive.
18909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18910
18911 # Symbols that should not be listed in the preloaded symbols.
18912 exclude_expsyms=$lt_exclude_expsyms_GCJ
18913
18914 # Symbols that must always be exported.
18915 include_expsyms=$lt_include_expsyms_GCJ
18916
18917 # ### END LIBTOOL TAG CONFIG: $tagname
18918
18919 __EOF__
18920
18921
18922 else
18923   # If there is no Makefile yet, we rely on a make rule to execute
18924   # `config.status --recheck' to rerun these tests and create the
18925   # libtool script then.
18926   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18927   if test -f "$ltmain_in"; then
18928     test -f Makefile && make "$ltmain"
18929   fi
18930 fi
18931
18932
18933 ac_ext=c
18934 ac_cpp='$CPP $CPPFLAGS'
18935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938
18939 CC="$lt_save_CC"
18940
18941         else
18942           tagname=""
18943         fi
18944         ;;
18945
18946       RC)
18947
18948
18949 # Source file extension for RC test sources.
18950 ac_ext=rc
18951
18952 # Object file extension for compiled RC test sources.
18953 objext=o
18954 objext_RC=$objext
18955
18956 # Code to be used in simple compile tests
18957 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18958
18959 # Code to be used in simple link tests
18960 lt_simple_link_test_code="$lt_simple_compile_test_code"
18961
18962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18963
18964 # If no C compiler was specified, use CC.
18965 LTCC=${LTCC-"$CC"}
18966
18967 # If no C compiler flags were specified, use CFLAGS.
18968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18969
18970 # Allow CC to be a program name with arguments.
18971 compiler=$CC
18972
18973
18974 # save warnings/boilerplate of simple test code
18975 ac_outfile=conftest.$ac_objext
18976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18978 _lt_compiler_boilerplate=`cat conftest.err`
18979 $rm conftest*
18980
18981 ac_outfile=conftest.$ac_objext
18982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18984 _lt_linker_boilerplate=`cat conftest.err`
18985 $rm -r conftest*
18986
18987
18988 # Allow CC to be a program name with arguments.
18989 lt_save_CC="$CC"
18990 CC=${RC-"windres"}
18991 compiler=$CC
18992 compiler_RC=$CC
18993 for cc_temp in $compiler""; do
18994   case $cc_temp in
18995     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18996     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18997     \-*) ;;
18998     *) break;;
18999   esac
19000 done
19001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19002
19003 lt_cv_prog_compiler_c_o_RC=yes
19004
19005 # The else clause should only fire when bootstrapping the
19006 # libtool distribution, otherwise you forgot to ship ltmain.sh
19007 # with your package, and you will get complaints that there are
19008 # no rules to generate ltmain.sh.
19009 if test -f "$ltmain"; then
19010   # See if we are running on zsh, and set the options which allow our commands through
19011   # without removal of \ escapes.
19012   if test -n "${ZSH_VERSION+set}" ; then
19013     setopt NO_GLOB_SUBST
19014   fi
19015   # Now quote all the things that may contain metacharacters while being
19016   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19017   # variables and quote the copies for generation of the libtool script.
19018   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19019     SED SHELL STRIP \
19020     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19021     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19022     deplibs_check_method reload_flag reload_cmds need_locks \
19023     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19024     lt_cv_sys_global_symbol_to_c_name_address \
19025     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19026     old_postinstall_cmds old_postuninstall_cmds \
19027     compiler_RC \
19028     CC_RC \
19029     LD_RC \
19030     lt_prog_compiler_wl_RC \
19031     lt_prog_compiler_pic_RC \
19032     lt_prog_compiler_static_RC \
19033     lt_prog_compiler_no_builtin_flag_RC \
19034     export_dynamic_flag_spec_RC \
19035     thread_safe_flag_spec_RC \
19036     whole_archive_flag_spec_RC \
19037     enable_shared_with_static_runtimes_RC \
19038     old_archive_cmds_RC \
19039     old_archive_from_new_cmds_RC \
19040     predep_objects_RC \
19041     postdep_objects_RC \
19042     predeps_RC \
19043     postdeps_RC \
19044     compiler_lib_search_path_RC \
19045     compiler_lib_search_dirs_RC \
19046     archive_cmds_RC \
19047     archive_expsym_cmds_RC \
19048     postinstall_cmds_RC \
19049     postuninstall_cmds_RC \
19050     old_archive_from_expsyms_cmds_RC \
19051     allow_undefined_flag_RC \
19052     no_undefined_flag_RC \
19053     export_symbols_cmds_RC \
19054     hardcode_libdir_flag_spec_RC \
19055     hardcode_libdir_flag_spec_ld_RC \
19056     hardcode_libdir_separator_RC \
19057     hardcode_automatic_RC \
19058     module_cmds_RC \
19059     module_expsym_cmds_RC \
19060     lt_cv_prog_compiler_c_o_RC \
19061     fix_srcfile_path_RC \
19062     exclude_expsyms_RC \
19063     include_expsyms_RC; do
19064
19065     case $var in
19066     old_archive_cmds_RC | \
19067     old_archive_from_new_cmds_RC | \
19068     archive_cmds_RC | \
19069     archive_expsym_cmds_RC | \
19070     module_cmds_RC | \
19071     module_expsym_cmds_RC | \
19072     old_archive_from_expsyms_cmds_RC | \
19073     export_symbols_cmds_RC | \
19074     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19075     postinstall_cmds | postuninstall_cmds | \
19076     old_postinstall_cmds | old_postuninstall_cmds | \
19077     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19078       # Double-quote double-evaled strings.
19079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19080       ;;
19081     *)
19082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19083       ;;
19084     esac
19085   done
19086
19087   case $lt_echo in
19088   *'\$0 --fallback-echo"')
19089     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19090     ;;
19091   esac
19092
19093 cfgfile="$ofile"
19094
19095   cat <<__EOF__ >> "$cfgfile"
19096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19097
19098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19099
19100 # Shell to use when invoking shell scripts.
19101 SHELL=$lt_SHELL
19102
19103 # Whether or not to build shared libraries.
19104 build_libtool_libs=$enable_shared
19105
19106 # Whether or not to build static libraries.
19107 build_old_libs=$enable_static
19108
19109 # Whether or not to add -lc for building shared libraries.
19110 build_libtool_need_lc=$archive_cmds_need_lc_RC
19111
19112 # Whether or not to disallow shared libs when runtime libs are static
19113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19114
19115 # Whether or not to optimize for fast installation.
19116 fast_install=$enable_fast_install
19117
19118 # The host system.
19119 host_alias=$host_alias
19120 host=$host
19121 host_os=$host_os
19122
19123 # The build system.
19124 build_alias=$build_alias
19125 build=$build
19126 build_os=$build_os
19127
19128 # An echo program that does not interpret backslashes.
19129 echo=$lt_echo
19130
19131 # The archiver.
19132 AR=$lt_AR
19133 AR_FLAGS=$lt_AR_FLAGS
19134
19135 # A C compiler.
19136 LTCC=$lt_LTCC
19137
19138 # LTCC compiler flags.
19139 LTCFLAGS=$lt_LTCFLAGS
19140
19141 # A language-specific compiler.
19142 CC=$lt_compiler_RC
19143
19144 # Is the compiler the GNU C compiler?
19145 with_gcc=$GCC_RC
19146
19147 # An ERE matcher.
19148 EGREP=$lt_EGREP
19149
19150 # The linker used to build libraries.
19151 LD=$lt_LD_RC
19152
19153 # Whether we need hard or soft links.
19154 LN_S=$lt_LN_S
19155
19156 # A BSD-compatible nm program.
19157 NM=$lt_NM
19158
19159 # A symbol stripping program
19160 STRIP=$lt_STRIP
19161
19162 # Used to examine libraries when file_magic_cmd begins "file"
19163 MAGIC_CMD=$MAGIC_CMD
19164
19165 # Used on cygwin: DLL creation program.
19166 DLLTOOL="$DLLTOOL"
19167
19168 # Used on cygwin: object dumper.
19169 OBJDUMP="$OBJDUMP"
19170
19171 # Used on cygwin: assembler.
19172 AS="$AS"
19173
19174 # The name of the directory that contains temporary libtool files.
19175 objdir=$objdir
19176
19177 # How to create reloadable object files.
19178 reload_flag=$lt_reload_flag
19179 reload_cmds=$lt_reload_cmds
19180
19181 # How to pass a linker flag through the compiler.
19182 wl=$lt_lt_prog_compiler_wl_RC
19183
19184 # Object file suffix (normally "o").
19185 objext="$ac_objext"
19186
19187 # Old archive suffix (normally "a").
19188 libext="$libext"
19189
19190 # Shared library suffix (normally ".so").
19191 shrext_cmds='$shrext_cmds'
19192
19193 # Executable file suffix (normally "").
19194 exeext="$exeext"
19195
19196 # Additional compiler flags for building library objects.
19197 pic_flag=$lt_lt_prog_compiler_pic_RC
19198 pic_mode=$pic_mode
19199
19200 # What is the maximum length of a command?
19201 max_cmd_len=$lt_cv_sys_max_cmd_len
19202
19203 # Does compiler simultaneously support -c and -o options?
19204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19205
19206 # Must we lock files when doing compilation?
19207 need_locks=$lt_need_locks
19208
19209 # Do we need the lib prefix for modules?
19210 need_lib_prefix=$need_lib_prefix
19211
19212 # Do we need a version for libraries?
19213 need_version=$need_version
19214
19215 # Whether dlopen is supported.
19216 dlopen_support=$enable_dlopen
19217
19218 # Whether dlopen of programs is supported.
19219 dlopen_self=$enable_dlopen_self
19220
19221 # Whether dlopen of statically linked programs is supported.
19222 dlopen_self_static=$enable_dlopen_self_static
19223
19224 # Compiler flag to prevent dynamic linking.
19225 link_static_flag=$lt_lt_prog_compiler_static_RC
19226
19227 # Compiler flag to turn off builtin functions.
19228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19229
19230 # Compiler flag to allow reflexive dlopens.
19231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19232
19233 # Compiler flag to generate shared objects directly from archives.
19234 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19235
19236 # Compiler flag to generate thread-safe objects.
19237 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19238
19239 # Library versioning type.
19240 version_type=$version_type
19241
19242 # Format of library name prefix.
19243 libname_spec=$lt_libname_spec
19244
19245 # List of archive names.  First name is the real one, the rest are links.
19246 # The last name is the one that the linker finds with -lNAME.
19247 library_names_spec=$lt_library_names_spec
19248
19249 # The coded name of the library, if different from the real name.
19250 soname_spec=$lt_soname_spec
19251
19252 # Commands used to build and install an old-style archive.
19253 RANLIB=$lt_RANLIB
19254 old_archive_cmds=$lt_old_archive_cmds_RC
19255 old_postinstall_cmds=$lt_old_postinstall_cmds
19256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19257
19258 # Create an old-style archive from a shared archive.
19259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19260
19261 # Create a temporary old-style archive to link instead of a shared archive.
19262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19263
19264 # Commands used to build and install a shared archive.
19265 archive_cmds=$lt_archive_cmds_RC
19266 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19267 postinstall_cmds=$lt_postinstall_cmds
19268 postuninstall_cmds=$lt_postuninstall_cmds
19269
19270 # Commands used to build a loadable module (assumed same as above if empty)
19271 module_cmds=$lt_module_cmds_RC
19272 module_expsym_cmds=$lt_module_expsym_cmds_RC
19273
19274 # Commands to strip libraries.
19275 old_striplib=$lt_old_striplib
19276 striplib=$lt_striplib
19277
19278 # Dependencies to place before the objects being linked to create a
19279 # shared library.
19280 predep_objects=$lt_predep_objects_RC
19281
19282 # Dependencies to place after the objects being linked to create a
19283 # shared library.
19284 postdep_objects=$lt_postdep_objects_RC
19285
19286 # Dependencies to place before the objects being linked to create a
19287 # shared library.
19288 predeps=$lt_predeps_RC
19289
19290 # Dependencies to place after the objects being linked to create a
19291 # shared library.
19292 postdeps=$lt_postdeps_RC
19293
19294 # The directories searched by this compiler when creating a shared
19295 # library
19296 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19297
19298 # The library search path used internally by the compiler when linking
19299 # a shared library.
19300 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19301
19302 # Method to check whether dependent libraries are shared objects.
19303 deplibs_check_method=$lt_deplibs_check_method
19304
19305 # Command to use when deplibs_check_method == file_magic.
19306 file_magic_cmd=$lt_file_magic_cmd
19307
19308 # Flag that allows shared libraries with undefined symbols to be built.
19309 allow_undefined_flag=$lt_allow_undefined_flag_RC
19310
19311 # Flag that forces no undefined symbols.
19312 no_undefined_flag=$lt_no_undefined_flag_RC
19313
19314 # Commands used to finish a libtool library installation in a directory.
19315 finish_cmds=$lt_finish_cmds
19316
19317 # Same as above, but a single script fragment to be evaled but not shown.
19318 finish_eval=$lt_finish_eval
19319
19320 # Take the output of nm and produce a listing of raw symbols and C names.
19321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19322
19323 # Transform the output of nm in a proper C declaration
19324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19325
19326 # Transform the output of nm in a C name address pair
19327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19328
19329 # This is the shared library runtime path variable.
19330 runpath_var=$runpath_var
19331
19332 # This is the shared library path variable.
19333 shlibpath_var=$shlibpath_var
19334
19335 # Is shlibpath searched before the hard-coded library search path?
19336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19337
19338 # How to hardcode a shared library path into an executable.
19339 hardcode_action=$hardcode_action_RC
19340
19341 # Whether we should hardcode library paths into libraries.
19342 hardcode_into_libs=$hardcode_into_libs
19343
19344 # Flag to hardcode \$libdir into a binary during linking.
19345 # This must work even if \$libdir does not exist.
19346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19347
19348 # If ld is used when linking, flag to hardcode \$libdir into
19349 # a binary during linking. This must work even if \$libdir does
19350 # not exist.
19351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19352
19353 # Whether we need a single -rpath flag with a separated argument.
19354 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19355
19356 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19357 # resulting binary.
19358 hardcode_direct=$hardcode_direct_RC
19359
19360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19361 # resulting binary.
19362 hardcode_minus_L=$hardcode_minus_L_RC
19363
19364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19365 # the resulting binary.
19366 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19367
19368 # Set to yes if building a shared library automatically hardcodes DIR into the library
19369 # and all subsequent libraries and executables linked against it.
19370 hardcode_automatic=$hardcode_automatic_RC
19371
19372 # Variables whose values should be saved in libtool wrapper scripts and
19373 # restored at relink time.
19374 variables_saved_for_relink="$variables_saved_for_relink"
19375
19376 # Whether libtool must link a program against all its dependency libraries.
19377 link_all_deplibs=$link_all_deplibs_RC
19378
19379 # Compile-time system search path for libraries
19380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19381
19382 # Run-time system search path for libraries
19383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19384
19385 # Fix the shell variable \$srcfile for the compiler.
19386 fix_srcfile_path=$lt_fix_srcfile_path
19387
19388 # Set to yes if exported symbols are required.
19389 always_export_symbols=$always_export_symbols_RC
19390
19391 # The commands to list exported symbols.
19392 export_symbols_cmds=$lt_export_symbols_cmds_RC
19393
19394 # The commands to extract the exported symbol list from a shared archive.
19395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19396
19397 # Symbols that should not be listed in the preloaded symbols.
19398 exclude_expsyms=$lt_exclude_expsyms_RC
19399
19400 # Symbols that must always be exported.
19401 include_expsyms=$lt_include_expsyms_RC
19402
19403 # ### END LIBTOOL TAG CONFIG: $tagname
19404
19405 __EOF__
19406
19407
19408 else
19409   # If there is no Makefile yet, we rely on a make rule to execute
19410   # `config.status --recheck' to rerun these tests and create the
19411   # libtool script then.
19412   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19413   if test -f "$ltmain_in"; then
19414     test -f Makefile && make "$ltmain"
19415   fi
19416 fi
19417
19418
19419 ac_ext=c
19420 ac_cpp='$CPP $CPPFLAGS'
19421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19424
19425 CC="$lt_save_CC"
19426
19427         ;;
19428
19429       *)
19430         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19431 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19432    { (exit 1); exit 1; }; }
19433         ;;
19434       esac
19435
19436       # Append the new tag name to the list of available tags.
19437       if test -n "$tagname" ; then
19438       available_tags="$available_tags $tagname"
19439     fi
19440     fi
19441   done
19442   IFS="$lt_save_ifs"
19443
19444   # Now substitute the updated list of available tags.
19445   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19446     mv "${ofile}T" "$ofile"
19447     chmod +x "$ofile"
19448   else
19449     rm -f "${ofile}T"
19450     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19451 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19452    { (exit 1); exit 1; }; }
19453   fi
19454 fi
19455
19456
19457
19458 # This can be used to rebuild libtool when needed
19459 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19460
19461 # Always use our own libtool.
19462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19463
19464 # Prevent multiple expansion
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485     ;;
19486 esac
19487
19488
19489
19490
19491
19492 ac_ext=c
19493 ac_cpp='$CPP $CPPFLAGS'
19494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19497 if test -n "$ac_tool_prefix"; then
19498   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19501 $as_echo_n "checking for $ac_word... " >&6; }
19502 if test "${ac_cv_prog_CC+set}" = set; then
19503   $as_echo_n "(cached) " >&6
19504 else
19505   if test -n "$CC"; then
19506   ac_cv_prog_CC="$CC" # Let the user override the test.
19507 else
19508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19509 for as_dir in $PATH
19510 do
19511   IFS=$as_save_IFS
19512   test -z "$as_dir" && as_dir=.
19513   for ac_exec_ext in '' $ac_executable_extensions; do
19514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19515     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19517     break 2
19518   fi
19519 done
19520 done
19521 IFS=$as_save_IFS
19522
19523 fi
19524 fi
19525 CC=$ac_cv_prog_CC
19526 if test -n "$CC"; then
19527   { $as_echo "$as_me:$LINENO: result: $CC" >&5
19528 $as_echo "$CC" >&6; }
19529 else
19530   { $as_echo "$as_me:$LINENO: result: no" >&5
19531 $as_echo "no" >&6; }
19532 fi
19533
19534
19535 fi
19536 if test -z "$ac_cv_prog_CC"; then
19537   ac_ct_CC=$CC
19538   # Extract the first word of "gcc", so it can be a program name with args.
19539 set dummy gcc; ac_word=$2
19540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19541 $as_echo_n "checking for $ac_word... " >&6; }
19542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19543   $as_echo_n "(cached) " >&6
19544 else
19545   if test -n "$ac_ct_CC"; then
19546   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19547 else
19548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19549 for as_dir in $PATH
19550 do
19551   IFS=$as_save_IFS
19552   test -z "$as_dir" && as_dir=.
19553   for ac_exec_ext in '' $ac_executable_extensions; do
19554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19555     ac_cv_prog_ac_ct_CC="gcc"
19556     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19557     break 2
19558   fi
19559 done
19560 done
19561 IFS=$as_save_IFS
19562
19563 fi
19564 fi
19565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19566 if test -n "$ac_ct_CC"; then
19567   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19568 $as_echo "$ac_ct_CC" >&6; }
19569 else
19570   { $as_echo "$as_me:$LINENO: result: no" >&5
19571 $as_echo "no" >&6; }
19572 fi
19573
19574   if test "x$ac_ct_CC" = x; then
19575     CC=""
19576   else
19577     case $cross_compiling:$ac_tool_warned in
19578 yes:)
19579 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19581 ac_tool_warned=yes ;;
19582 esac
19583     CC=$ac_ct_CC
19584   fi
19585 else
19586   CC="$ac_cv_prog_CC"
19587 fi
19588
19589 if test -z "$CC"; then
19590           if test -n "$ac_tool_prefix"; then
19591     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19592 set dummy ${ac_tool_prefix}cc; ac_word=$2
19593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19594 $as_echo_n "checking for $ac_word... " >&6; }
19595 if test "${ac_cv_prog_CC+set}" = set; then
19596   $as_echo_n "(cached) " >&6
19597 else
19598   if test -n "$CC"; then
19599   ac_cv_prog_CC="$CC" # Let the user override the test.
19600 else
19601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19602 for as_dir in $PATH
19603 do
19604   IFS=$as_save_IFS
19605   test -z "$as_dir" && as_dir=.
19606   for ac_exec_ext in '' $ac_executable_extensions; do
19607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19608     ac_cv_prog_CC="${ac_tool_prefix}cc"
19609     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19610     break 2
19611   fi
19612 done
19613 done
19614 IFS=$as_save_IFS
19615
19616 fi
19617 fi
19618 CC=$ac_cv_prog_CC
19619 if test -n "$CC"; then
19620   { $as_echo "$as_me:$LINENO: result: $CC" >&5
19621 $as_echo "$CC" >&6; }
19622 else
19623   { $as_echo "$as_me:$LINENO: result: no" >&5
19624 $as_echo "no" >&6; }
19625 fi
19626
19627
19628   fi
19629 fi
19630 if test -z "$CC"; then
19631   # Extract the first word of "cc", so it can be a program name with args.
19632 set dummy cc; ac_word=$2
19633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19634 $as_echo_n "checking for $ac_word... " >&6; }
19635 if test "${ac_cv_prog_CC+set}" = set; then
19636   $as_echo_n "(cached) " >&6
19637 else
19638   if test -n "$CC"; then
19639   ac_cv_prog_CC="$CC" # Let the user override the test.
19640 else
19641   ac_prog_rejected=no
19642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19643 for as_dir in $PATH
19644 do
19645   IFS=$as_save_IFS
19646   test -z "$as_dir" && as_dir=.
19647   for ac_exec_ext in '' $ac_executable_extensions; do
19648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19649     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19650        ac_prog_rejected=yes
19651        continue
19652      fi
19653     ac_cv_prog_CC="cc"
19654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19655     break 2
19656   fi
19657 done
19658 done
19659 IFS=$as_save_IFS
19660
19661 if test $ac_prog_rejected = yes; then
19662   # We found a bogon in the path, so make sure we never use it.
19663   set dummy $ac_cv_prog_CC
19664   shift
19665   if test $# != 0; then
19666     # We chose a different compiler from the bogus one.
19667     # However, it has the same basename, so the bogon will be chosen
19668     # first if we set CC to just the basename; use the full file name.
19669     shift
19670     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19671   fi
19672 fi
19673 fi
19674 fi
19675 CC=$ac_cv_prog_CC
19676 if test -n "$CC"; then
19677   { $as_echo "$as_me:$LINENO: result: $CC" >&5
19678 $as_echo "$CC" >&6; }
19679 else
19680   { $as_echo "$as_me:$LINENO: result: no" >&5
19681 $as_echo "no" >&6; }
19682 fi
19683
19684
19685 fi
19686 if test -z "$CC"; then
19687   if test -n "$ac_tool_prefix"; then
19688   for ac_prog in cl.exe
19689   do
19690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19693 $as_echo_n "checking for $ac_word... " >&6; }
19694 if test "${ac_cv_prog_CC+set}" = set; then
19695   $as_echo_n "(cached) " >&6
19696 else
19697   if test -n "$CC"; then
19698   ac_cv_prog_CC="$CC" # Let the user override the test.
19699 else
19700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19701 for as_dir in $PATH
19702 do
19703   IFS=$as_save_IFS
19704   test -z "$as_dir" && as_dir=.
19705   for ac_exec_ext in '' $ac_executable_extensions; do
19706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19709     break 2
19710   fi
19711 done
19712 done
19713 IFS=$as_save_IFS
19714
19715 fi
19716 fi
19717 CC=$ac_cv_prog_CC
19718 if test -n "$CC"; then
19719   { $as_echo "$as_me:$LINENO: result: $CC" >&5
19720 $as_echo "$CC" >&6; }
19721 else
19722   { $as_echo "$as_me:$LINENO: result: no" >&5
19723 $as_echo "no" >&6; }
19724 fi
19725
19726
19727     test -n "$CC" && break
19728   done
19729 fi
19730 if test -z "$CC"; then
19731   ac_ct_CC=$CC
19732   for ac_prog in cl.exe
19733 do
19734   # Extract the first word of "$ac_prog", so it can be a program name with args.
19735 set dummy $ac_prog; ac_word=$2
19736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19737 $as_echo_n "checking for $ac_word... " >&6; }
19738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19739   $as_echo_n "(cached) " >&6
19740 else
19741   if test -n "$ac_ct_CC"; then
19742   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19743 else
19744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19745 for as_dir in $PATH
19746 do
19747   IFS=$as_save_IFS
19748   test -z "$as_dir" && as_dir=.
19749   for ac_exec_ext in '' $ac_executable_extensions; do
19750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19751     ac_cv_prog_ac_ct_CC="$ac_prog"
19752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19753     break 2
19754   fi
19755 done
19756 done
19757 IFS=$as_save_IFS
19758
19759 fi
19760 fi
19761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19762 if test -n "$ac_ct_CC"; then
19763   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19764 $as_echo "$ac_ct_CC" >&6; }
19765 else
19766   { $as_echo "$as_me:$LINENO: result: no" >&5
19767 $as_echo "no" >&6; }
19768 fi
19769
19770
19771   test -n "$ac_ct_CC" && break
19772 done
19773
19774   if test "x$ac_ct_CC" = x; then
19775     CC=""
19776   else
19777     case $cross_compiling:$ac_tool_warned in
19778 yes:)
19779 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19781 ac_tool_warned=yes ;;
19782 esac
19783     CC=$ac_ct_CC
19784   fi
19785 fi
19786
19787 fi
19788
19789
19790 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19792 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19793 See \`config.log' for more details." >&5
19794 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
19795 See \`config.log' for more details." >&2;}
19796    { (exit 1); exit 1; }; }; }
19797
19798 # Provide some information about the compiler.
19799 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
19800 set X $ac_compile
19801 ac_compiler=$2
19802 { (ac_try="$ac_compiler --version >&5"
19803 case "(($ac_try" in
19804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805   *) ac_try_echo=$ac_try;;
19806 esac
19807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19808 $as_echo "$ac_try_echo") >&5
19809   (eval "$ac_compiler --version >&5") 2>&5
19810   ac_status=$?
19811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }
19813 { (ac_try="$ac_compiler -v >&5"
19814 case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820   (eval "$ac_compiler -v >&5") 2>&5
19821   ac_status=$?
19822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }
19824 { (ac_try="$ac_compiler -V >&5"
19825 case "(($ac_try" in
19826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827   *) ac_try_echo=$ac_try;;
19828 esac
19829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19830 $as_echo "$ac_try_echo") >&5
19831   (eval "$ac_compiler -V >&5") 2>&5
19832   ac_status=$?
19833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }
19835
19836 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19839   $as_echo_n "(cached) " >&6
19840 else
19841   cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h.  */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h.  */
19847
19848 int
19849 main ()
19850 {
19851 #ifndef __GNUC__
19852        choke me
19853 #endif
19854
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863   *) ac_try_echo=$ac_try;;
19864 esac
19865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19866 $as_echo "$ac_try_echo") >&5
19867   (eval "$ac_compile") 2>conftest.er1
19868   ac_status=$?
19869   grep -v '^ *+' conftest.er1 >conftest.err
19870   rm -f conftest.er1
19871   cat conftest.err >&5
19872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); } && {
19874          test -z "$ac_c_werror_flag" ||
19875          test ! -s conftest.err
19876        } && test -s conftest.$ac_objext; then
19877   ac_compiler_gnu=yes
19878 else
19879   $as_echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882         ac_compiler_gnu=no
19883 fi
19884
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19887
19888 fi
19889 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19890 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19891 if test $ac_compiler_gnu = yes; then
19892   GCC=yes
19893 else
19894   GCC=
19895 fi
19896 ac_test_CFLAGS=${CFLAGS+set}
19897 ac_save_CFLAGS=$CFLAGS
19898 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19899 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19900 if test "${ac_cv_prog_cc_g+set}" = set; then
19901   $as_echo_n "(cached) " >&6
19902 else
19903   ac_save_c_werror_flag=$ac_c_werror_flag
19904    ac_c_werror_flag=yes
19905    ac_cv_prog_cc_g=no
19906    CFLAGS="-g"
19907    cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h.  */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h.  */
19913
19914 int
19915 main ()
19916 {
19917
19918   ;
19919   return 0;
19920 }
19921 _ACEOF
19922 rm -f conftest.$ac_objext
19923 if { (ac_try="$ac_compile"
19924 case "(($ac_try" in
19925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926   *) ac_try_echo=$ac_try;;
19927 esac
19928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19929 $as_echo "$ac_try_echo") >&5
19930   (eval "$ac_compile") 2>conftest.er1
19931   ac_status=$?
19932   grep -v '^ *+' conftest.er1 >conftest.err
19933   rm -f conftest.er1
19934   cat conftest.err >&5
19935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); } && {
19937          test -z "$ac_c_werror_flag" ||
19938          test ! -s conftest.err
19939        } && test -s conftest.$ac_objext; then
19940   ac_cv_prog_cc_g=yes
19941 else
19942   $as_echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945         CFLAGS=""
19946       cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h.  */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h.  */
19952
19953 int
19954 main ()
19955 {
19956
19957   ;
19958   return 0;
19959 }
19960 _ACEOF
19961 rm -f conftest.$ac_objext
19962 if { (ac_try="$ac_compile"
19963 case "(($ac_try" in
19964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965   *) ac_try_echo=$ac_try;;
19966 esac
19967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19968 $as_echo "$ac_try_echo") >&5
19969   (eval "$ac_compile") 2>conftest.er1
19970   ac_status=$?
19971   grep -v '^ *+' conftest.er1 >conftest.err
19972   rm -f conftest.er1
19973   cat conftest.err >&5
19974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); } && {
19976          test -z "$ac_c_werror_flag" ||
19977          test ! -s conftest.err
19978        } && test -s conftest.$ac_objext; then
19979   :
19980 else
19981   $as_echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19983
19984         ac_c_werror_flag=$ac_save_c_werror_flag
19985          CFLAGS="-g"
19986          cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992
19993 int
19994 main ()
19995 {
19996
19997   ;
19998   return 0;
19999 }
20000 _ACEOF
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005   *) ac_try_echo=$ac_try;;
20006 esac
20007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009   (eval "$ac_compile") 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } && {
20016          test -z "$ac_c_werror_flag" ||
20017          test ! -s conftest.err
20018        } && test -s conftest.$ac_objext; then
20019   ac_cv_prog_cc_g=yes
20020 else
20021   $as_echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024
20025 fi
20026
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 fi
20029
20030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20031 fi
20032
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20034    ac_c_werror_flag=$ac_save_c_werror_flag
20035 fi
20036 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20037 $as_echo "$ac_cv_prog_cc_g" >&6; }
20038 if test "$ac_test_CFLAGS" = set; then
20039   CFLAGS=$ac_save_CFLAGS
20040 elif test $ac_cv_prog_cc_g = yes; then
20041   if test "$GCC" = yes; then
20042     CFLAGS="-g -O2"
20043   else
20044     CFLAGS="-g"
20045   fi
20046 else
20047   if test "$GCC" = yes; then
20048     CFLAGS="-O2"
20049   else
20050     CFLAGS=
20051   fi
20052 fi
20053 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20055 if test "${ac_cv_prog_cc_c89+set}" = set; then
20056   $as_echo_n "(cached) " >&6
20057 else
20058   ac_cv_prog_cc_c89=no
20059 ac_save_CC=$CC
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066 #include <stdarg.h>
20067 #include <stdio.h>
20068 #include <sys/types.h>
20069 #include <sys/stat.h>
20070 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20071 struct buf { int x; };
20072 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20073 static char *e (p, i)
20074      char **p;
20075      int i;
20076 {
20077   return p[i];
20078 }
20079 static char *f (char * (*g) (char **, int), char **p, ...)
20080 {
20081   char *s;
20082   va_list v;
20083   va_start (v,p);
20084   s = g (p, va_arg (v,int));
20085   va_end (v);
20086   return s;
20087 }
20088
20089 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20090    function prototypes and stuff, but not '\xHH' hex character constants.
20091    These don't provoke an error unfortunately, instead are silently treated
20092    as 'x'.  The following induces an error, until -std is added to get
20093    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20094    array size at least.  It's necessary to write '\x00'==0 to get something
20095    that's true only with -std.  */
20096 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20097
20098 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20099    inside strings and character constants.  */
20100 #define FOO(x) 'x'
20101 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20102
20103 int test (int i, double x);
20104 struct s1 {int (*f) (int a);};
20105 struct s2 {int (*f) (double a);};
20106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20107 int argc;
20108 char **argv;
20109 int
20110 main ()
20111 {
20112 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20118         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20119 do
20120   CC="$ac_save_CC $ac_arg"
20121   rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125   *) ac_try_echo=$ac_try;;
20126 esac
20127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128 $as_echo "$ac_try_echo") >&5
20129   (eval "$ac_compile") 2>conftest.er1
20130   ac_status=$?
20131   grep -v '^ *+' conftest.er1 >conftest.err
20132   rm -f conftest.er1
20133   cat conftest.err >&5
20134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); } && {
20136          test -z "$ac_c_werror_flag" ||
20137          test ! -s conftest.err
20138        } && test -s conftest.$ac_objext; then
20139   ac_cv_prog_cc_c89=$ac_arg
20140 else
20141   $as_echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144
20145 fi
20146
20147 rm -f core conftest.err conftest.$ac_objext
20148   test "x$ac_cv_prog_cc_c89" != "xno" && break
20149 done
20150 rm -f conftest.$ac_ext
20151 CC=$ac_save_CC
20152
20153 fi
20154 # AC_CACHE_VAL
20155 case "x$ac_cv_prog_cc_c89" in
20156   x)
20157     { $as_echo "$as_me:$LINENO: result: none needed" >&5
20158 $as_echo "none needed" >&6; } ;;
20159   xno)
20160     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20161 $as_echo "unsupported" >&6; } ;;
20162   *)
20163     CC="$CC $ac_cv_prog_cc_c89"
20164     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20165 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20166 esac
20167
20168
20169 ac_ext=c
20170 ac_cpp='$CPP $CPPFLAGS'
20171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20174
20175 # Find a good install program.  We prefer a C program (faster),
20176 # so one script is as good as another.  But avoid the broken or
20177 # incompatible versions:
20178 # SysV /etc/install, /usr/sbin/install
20179 # SunOS /usr/etc/install
20180 # IRIX /sbin/install
20181 # AIX /bin/install
20182 # AmigaOS /C/install, which installs bootblocks on floppy discs
20183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20186 # OS/2's system install, which has a completely different semantic
20187 # ./install, which can be erroneously created by make from ./install.sh.
20188 # Reject install programs that cannot install multiple files.
20189 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20190 $as_echo_n "checking for a BSD-compatible install... " >&6; }
20191 if test -z "$INSTALL"; then
20192 if test "${ac_cv_path_install+set}" = set; then
20193   $as_echo_n "(cached) " >&6
20194 else
20195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20196 for as_dir in $PATH
20197 do
20198   IFS=$as_save_IFS
20199   test -z "$as_dir" && as_dir=.
20200   # Account for people who put trailing slashes in PATH elements.
20201 case $as_dir/ in
20202   ./ | .// | /cC/* | \
20203   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20204   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20205   /usr/ucb/* ) ;;
20206   *)
20207     # OSF1 and SCO ODT 3.0 have their own names for install.
20208     # Don't use installbsd from OSF since it installs stuff as root
20209     # by default.
20210     for ac_prog in ginstall scoinst install; do
20211       for ac_exec_ext in '' $ac_executable_extensions; do
20212         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20213           if test $ac_prog = install &&
20214             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20215             # AIX install.  It has an incompatible calling convention.
20216             :
20217           elif test $ac_prog = install &&
20218             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20219             # program-specific install script used by HP pwplus--don't use.
20220             :
20221           else
20222             rm -rf conftest.one conftest.two conftest.dir
20223             echo one > conftest.one
20224             echo two > conftest.two
20225             mkdir conftest.dir
20226             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
20227               test -s conftest.one && test -s conftest.two &&
20228               test -s conftest.dir/conftest.one &&
20229               test -s conftest.dir/conftest.two
20230             then
20231               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20232               break 3
20233             fi
20234           fi
20235         fi
20236       done
20237     done
20238     ;;
20239 esac
20240
20241 done
20242 IFS=$as_save_IFS
20243
20244 rm -rf conftest.one conftest.two conftest.dir
20245
20246 fi
20247   if test "${ac_cv_path_install+set}" = set; then
20248     INSTALL=$ac_cv_path_install
20249   else
20250     # As a last resort, use the slow shell script.  Don't cache a
20251     # value for INSTALL within a source directory, because that will
20252     # break other packages using the cache if that directory is
20253     # removed, or if the value is a relative name.
20254     INSTALL=$ac_install_sh
20255   fi
20256 fi
20257 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
20258 $as_echo "$INSTALL" >&6; }
20259
20260 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20261 # It thinks the first close brace ends the variable substitution.
20262 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20263
20264 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20265
20266 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20267
20268
20269 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20270 $as_echo_n "checking for ANSI C header files... " >&6; }
20271 if test "${ac_cv_header_stdc+set}" = set; then
20272   $as_echo_n "(cached) " >&6
20273 else
20274   cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 #include <stdlib.h>
20281 #include <stdarg.h>
20282 #include <string.h>
20283 #include <float.h>
20284
20285 int
20286 main ()
20287 {
20288
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest.$ac_objext
20294 if { (ac_try="$ac_compile"
20295 case "(($ac_try" in
20296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297   *) ac_try_echo=$ac_try;;
20298 esac
20299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20300 $as_echo "$ac_try_echo") >&5
20301   (eval "$ac_compile") 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } && {
20308          test -z "$ac_c_werror_flag" ||
20309          test ! -s conftest.err
20310        } && test -s conftest.$ac_objext; then
20311   ac_cv_header_stdc=yes
20312 else
20313   $as_echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316         ac_cv_header_stdc=no
20317 fi
20318
20319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320
20321 if test $ac_cv_header_stdc = yes; then
20322   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20323   cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 #include <string.h>
20330
20331 _ACEOF
20332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20333   $EGREP "memchr" >/dev/null 2>&1; then
20334   :
20335 else
20336   ac_cv_header_stdc=no
20337 fi
20338 rm -f conftest*
20339
20340 fi
20341
20342 if test $ac_cv_header_stdc = yes; then
20343   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20344   cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 #include <stdlib.h>
20351
20352 _ACEOF
20353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20354   $EGREP "free" >/dev/null 2>&1; then
20355   :
20356 else
20357   ac_cv_header_stdc=no
20358 fi
20359 rm -f conftest*
20360
20361 fi
20362
20363 if test $ac_cv_header_stdc = yes; then
20364   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20365   if test "$cross_compiling" = yes; then
20366   :
20367 else
20368   cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374 #include <ctype.h>
20375 #include <stdlib.h>
20376 #if ((' ' & 0x0FF) == 0x020)
20377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20379 #else
20380 # define ISLOWER(c) \
20381                    (('a' <= (c) && (c) <= 'i') \
20382                      || ('j' <= (c) && (c) <= 'r') \
20383                      || ('s' <= (c) && (c) <= 'z'))
20384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20385 #endif
20386
20387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20388 int
20389 main ()
20390 {
20391   int i;
20392   for (i = 0; i < 256; i++)
20393     if (XOR (islower (i), ISLOWER (i))
20394         || toupper (i) != TOUPPER (i))
20395       return 2;
20396   return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403   *) ac_try_echo=$ac_try;;
20404 esac
20405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407   (eval "$ac_link") 2>&5
20408   ac_status=$?
20409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20411   { (case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20416 $as_echo "$ac_try_echo") >&5
20417   (eval "$ac_try") 2>&5
20418   ac_status=$?
20419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; }; then
20421   :
20422 else
20423   $as_echo "$as_me: program exited with status $ac_status" >&5
20424 $as_echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 ( exit $ac_status )
20428 ac_cv_header_stdc=no
20429 fi
20430 rm -rf conftest.dSYM
20431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20432 fi
20433
20434
20435 fi
20436 fi
20437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20438 $as_echo "$ac_cv_header_stdc" >&6; }
20439 if test $ac_cv_header_stdc = yes; then
20440
20441 cat >>confdefs.h <<\_ACEOF
20442 #define STDC_HEADERS 1
20443 _ACEOF
20444
20445 fi
20446
20447
20448 if test "$cross_compiling" = "no"; then
20449
20450  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20451 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20452 if test "${ac_cv_c_bigendian+set}" = set; then
20453   $as_echo_n "(cached) " >&6
20454 else
20455   ac_cv_c_bigendian=unknown
20456     # See if we're dealing with a universal compiler.
20457     cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h.  */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h.  */
20463 #ifndef __APPLE_CC__
20464                not a universal capable compiler
20465              #endif
20466              typedef int dummy;
20467
20468 _ACEOF
20469 rm -f conftest.$ac_objext
20470 if { (ac_try="$ac_compile"
20471 case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20476 $as_echo "$ac_try_echo") >&5
20477   (eval "$ac_compile") 2>conftest.er1
20478   ac_status=$?
20479   grep -v '^ *+' conftest.er1 >conftest.err
20480   rm -f conftest.er1
20481   cat conftest.err >&5
20482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } && {
20484          test -z "$ac_c_werror_flag" ||
20485          test ! -s conftest.err
20486        } && test -s conftest.$ac_objext; then
20487
20488         # Check for potential -arch flags.  It is not universal unless
20489         # there are some -arch flags.  Note that *ppc* also matches
20490         # ppc64.  This check is also rather less than ideal.
20491         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
20492           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
20493         esac
20494 else
20495   $as_echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498
20499 fi
20500
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502     if test $ac_cv_c_bigendian = unknown; then
20503       # See if sys/param.h defines the BYTE_ORDER macro.
20504       cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 #include <sys/types.h>
20511              #include <sys/param.h>
20512
20513 int
20514 main ()
20515 {
20516 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20517                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20518                      && LITTLE_ENDIAN)
20519               bogus endian macros
20520              #endif
20521
20522   ;
20523   return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext
20527 if { (ac_try="$ac_compile"
20528 case "(($ac_try" in
20529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530   *) ac_try_echo=$ac_try;;
20531 esac
20532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20533 $as_echo "$ac_try_echo") >&5
20534   (eval "$ac_compile") 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } && {
20541          test -z "$ac_c_werror_flag" ||
20542          test ! -s conftest.err
20543        } && test -s conftest.$ac_objext; then
20544   # It does; now see whether it defined to BIG_ENDIAN or not.
20545          cat >conftest.$ac_ext <<_ACEOF
20546 /* confdefs.h.  */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h.  */
20551 #include <sys/types.h>
20552                 #include <sys/param.h>
20553
20554 int
20555 main ()
20556 {
20557 #if BYTE_ORDER != BIG_ENDIAN
20558                  not big endian
20559                 #endif
20560
20561   ;
20562   return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext
20566 if { (ac_try="$ac_compile"
20567 case "(($ac_try" in
20568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569   *) ac_try_echo=$ac_try;;
20570 esac
20571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573   (eval "$ac_compile") 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } && {
20580          test -z "$ac_c_werror_flag" ||
20581          test ! -s conftest.err
20582        } && test -s conftest.$ac_objext; then
20583   ac_cv_c_bigendian=yes
20584 else
20585   $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588         ac_cv_c_bigendian=no
20589 fi
20590
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 else
20593   $as_echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20595
20596
20597 fi
20598
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600     fi
20601     if test $ac_cv_c_bigendian = unknown; then
20602       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20603       cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h.  */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h.  */
20609 #include <limits.h>
20610
20611 int
20612 main ()
20613 {
20614 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20615               bogus endian macros
20616              #endif
20617
20618   ;
20619   return 0;
20620 }
20621 _ACEOF
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
20624 case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20629 $as_echo "$ac_try_echo") >&5
20630   (eval "$ac_compile") 2>conftest.er1
20631   ac_status=$?
20632   grep -v '^ *+' conftest.er1 >conftest.err
20633   rm -f conftest.er1
20634   cat conftest.err >&5
20635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } && {
20637          test -z "$ac_c_werror_flag" ||
20638          test ! -s conftest.err
20639        } && test -s conftest.$ac_objext; then
20640   # It does; now see whether it defined to _BIG_ENDIAN or not.
20641          cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647 #include <limits.h>
20648
20649 int
20650 main ()
20651 {
20652 #ifndef _BIG_ENDIAN
20653                  not big endian
20654                 #endif
20655
20656   ;
20657   return 0;
20658 }
20659 _ACEOF
20660 rm -f conftest.$ac_objext
20661 if { (ac_try="$ac_compile"
20662 case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20667 $as_echo "$ac_try_echo") >&5
20668   (eval "$ac_compile") 2>conftest.er1
20669   ac_status=$?
20670   grep -v '^ *+' conftest.er1 >conftest.err
20671   rm -f conftest.er1
20672   cat conftest.err >&5
20673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); } && {
20675          test -z "$ac_c_werror_flag" ||
20676          test ! -s conftest.err
20677        } && test -s conftest.$ac_objext; then
20678   ac_cv_c_bigendian=yes
20679 else
20680   $as_echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683         ac_cv_c_bigendian=no
20684 fi
20685
20686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20687 else
20688   $as_echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691
20692 fi
20693
20694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20695     fi
20696     if test $ac_cv_c_bigendian = unknown; then
20697       # Compile a test program.
20698       if test "$cross_compiling" = yes; then
20699   # Try to guess by grepping values from an object file.
20700          cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706 short int ascii_mm[] =
20707                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20708                 short int ascii_ii[] =
20709                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20710                 int use_ascii (int i) {
20711                   return ascii_mm[i] + ascii_ii[i];
20712                 }
20713                 short int ebcdic_ii[] =
20714                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20715                 short int ebcdic_mm[] =
20716                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20717                 int use_ebcdic (int i) {
20718                   return ebcdic_mm[i] + ebcdic_ii[i];
20719                 }
20720                 extern int foo;
20721
20722 int
20723 main ()
20724 {
20725 return use_ascii (foo) == use_ebcdic (foo);
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (ac_try="$ac_compile"
20732 case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20737 $as_echo "$ac_try_echo") >&5
20738   (eval "$ac_compile") 2>conftest.er1
20739   ac_status=$?
20740   grep -v '^ *+' conftest.er1 >conftest.err
20741   rm -f conftest.er1
20742   cat conftest.err >&5
20743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } && {
20745          test -z "$ac_c_werror_flag" ||
20746          test ! -s conftest.err
20747        } && test -s conftest.$ac_objext; then
20748   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20749               ac_cv_c_bigendian=yes
20750             fi
20751             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20752               if test "$ac_cv_c_bigendian" = unknown; then
20753                 ac_cv_c_bigendian=no
20754               else
20755                 # finding both strings is unlikely to happen, but who knows?
20756                 ac_cv_c_bigendian=unknown
20757               fi
20758             fi
20759 else
20760   $as_echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763
20764 fi
20765
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 else
20768   cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h.  */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h.  */
20774 $ac_includes_default
20775 int
20776 main ()
20777 {
20778
20779              /* Are we little or big endian?  From Harbison&Steele.  */
20780              union
20781              {
20782                long int l;
20783                char c[sizeof (long int)];
20784              } u;
20785              u.l = 1;
20786              return u.c[sizeof (long int) - 1] == 1;
20787
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 rm -f conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800   (eval "$ac_link") 2>&5
20801   ac_status=$?
20802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20804   { (case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20809 $as_echo "$ac_try_echo") >&5
20810   (eval "$ac_try") 2>&5
20811   ac_status=$?
20812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814   ac_cv_c_bigendian=no
20815 else
20816   $as_echo "$as_me: program exited with status $ac_status" >&5
20817 $as_echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 ( exit $ac_status )
20821 ac_cv_c_bigendian=yes
20822 fi
20823 rm -rf conftest.dSYM
20824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20825 fi
20826
20827
20828     fi
20829 fi
20830 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20831 $as_echo "$ac_cv_c_bigendian" >&6; }
20832  case $ac_cv_c_bigendian in #(
20833    yes)
20834      cat >>confdefs.h <<\_ACEOF
20835 #define WORDS_BIGENDIAN 1
20836 _ACEOF
20837 ;; #(
20838    no)
20839       ;; #(
20840    universal)
20841
20842 cat >>confdefs.h <<\_ACEOF
20843 #define AC_APPLE_UNIVERSAL_BUILD 1
20844 _ACEOF
20845
20846      ;; #(
20847    *)
20848      { { $as_echo "$as_me:$LINENO: error: unknown endianness
20849  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20850 $as_echo "$as_me: error: unknown endianness
20851  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20852    { (exit 1); exit 1; }; } ;;
20853  esac
20854
20855 else
20856
20857 cat >>confdefs.h <<\_ACEOF
20858 #define AP_UNKNOWN_BYTE_ORDER 1
20859 _ACEOF
20860
20861 fi
20862 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20863 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20864 if test "${ac_cv_c_const+set}" = set; then
20865   $as_echo_n "(cached) " >&6
20866 else
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873
20874 int
20875 main ()
20876 {
20877 /* FIXME: Include the comments suggested by Paul. */
20878 #ifndef __cplusplus
20879   /* Ultrix mips cc rejects this.  */
20880   typedef int charset[2];
20881   const charset cs;
20882   /* SunOS 4.1.1 cc rejects this.  */
20883   char const *const *pcpcc;
20884   char **ppc;
20885   /* NEC SVR4.0.2 mips cc rejects this.  */
20886   struct point {int x, y;};
20887   static struct point const zero = {0,0};
20888   /* AIX XL C 1.02.0.0 rejects this.
20889      It does not let you subtract one const X* pointer from another in
20890      an arm of an if-expression whose if-part is not a constant
20891      expression */
20892   const char *g = "string";
20893   pcpcc = &g + (g ? g-g : 0);
20894   /* HPUX 7.0 cc rejects these. */
20895   ++pcpcc;
20896   ppc = (char**) pcpcc;
20897   pcpcc = (char const *const *) ppc;
20898   { /* SCO 3.2v4 cc rejects this.  */
20899     char *t;
20900     char const *s = 0 ? (char *) 0 : (char const *) 0;
20901
20902     *t++ = 0;
20903     if (s) return 0;
20904   }
20905   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20906     int x[] = {25, 17};
20907     const int *foo = &x[0];
20908     ++foo;
20909   }
20910   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20911     typedef const int *iptr;
20912     iptr p = 0;
20913     ++p;
20914   }
20915   { /* AIX XL C 1.02.0.0 rejects this saying
20916        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20917     struct s { int j; const int *ap[3]; };
20918     struct s *b; b->j = 5;
20919   }
20920   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20921     const int foo = 10;
20922     if (!foo) return 0;
20923   }
20924   return !cs[0] && !zero.x;
20925 #endif
20926
20927   ;
20928   return 0;
20929 }
20930 _ACEOF
20931 rm -f conftest.$ac_objext
20932 if { (ac_try="$ac_compile"
20933 case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20938 $as_echo "$ac_try_echo") >&5
20939   (eval "$ac_compile") 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } && {
20946          test -z "$ac_c_werror_flag" ||
20947          test ! -s conftest.err
20948        } && test -s conftest.$ac_objext; then
20949   ac_cv_c_const=yes
20950 else
20951   $as_echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954         ac_cv_c_const=no
20955 fi
20956
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 fi
20959 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20960 $as_echo "$ac_cv_c_const" >&6; }
20961 if test $ac_cv_c_const = no; then
20962
20963 cat >>confdefs.h <<\_ACEOF
20964 #define const /**/
20965 _ACEOF
20966
20967 fi
20968
20969 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20970 $as_echo_n "checking for size_t... " >&6; }
20971 if test "${ac_cv_type_size_t+set}" = set; then
20972   $as_echo_n "(cached) " >&6
20973 else
20974   ac_cv_type_size_t=no
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981 $ac_includes_default
20982 int
20983 main ()
20984 {
20985 if (sizeof (size_t))
20986        return 0;
20987   ;
20988   return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995   *) ac_try_echo=$ac_try;;
20996 esac
20997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20998 $as_echo "$ac_try_echo") >&5
20999   (eval "$ac_compile") 2>conftest.er1
21000   ac_status=$?
21001   grep -v '^ *+' conftest.er1 >conftest.err
21002   rm -f conftest.er1
21003   cat conftest.err >&5
21004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } && {
21006          test -z "$ac_c_werror_flag" ||
21007          test ! -s conftest.err
21008        } && test -s conftest.$ac_objext; then
21009   cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h.  */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h.  */
21015 $ac_includes_default
21016 int
21017 main ()
21018 {
21019 if (sizeof ((size_t)))
21020           return 0;
21021   ;
21022   return 0;
21023 }
21024 _ACEOF
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029   *) ac_try_echo=$ac_try;;
21030 esac
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033   (eval "$ac_compile") 2>conftest.er1
21034   ac_status=$?
21035   grep -v '^ *+' conftest.er1 >conftest.err
21036   rm -f conftest.er1
21037   cat conftest.err >&5
21038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); } && {
21040          test -z "$ac_c_werror_flag" ||
21041          test ! -s conftest.err
21042        } && test -s conftest.$ac_objext; then
21043   :
21044 else
21045   $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048         ac_cv_type_size_t=yes
21049 fi
21050
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 else
21053   $as_echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056
21057 fi
21058
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21060 fi
21061 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21062 $as_echo "$ac_cv_type_size_t" >&6; }
21063 if test "x$ac_cv_type_size_t" = x""yes; then
21064   :
21065 else
21066
21067 cat >>confdefs.h <<_ACEOF
21068 #define size_t unsigned int
21069 _ACEOF
21070
21071 fi
21072
21073
21074
21075 for ac_func in memmove bcopy
21076 do
21077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21079 $as_echo_n "checking for $ac_func... " >&6; }
21080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21081   $as_echo_n "(cached) " >&6
21082 else
21083   cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21091 #define $ac_func innocuous_$ac_func
21092
21093 /* System header to define __stub macros and hopefully few prototypes,
21094     which can conflict with char $ac_func (); below.
21095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21096     <limits.h> exists even on freestanding compilers.  */
21097
21098 #ifdef __STDC__
21099 # include <limits.h>
21100 #else
21101 # include <assert.h>
21102 #endif
21103
21104 #undef $ac_func
21105
21106 /* Override any GCC internal prototype to avoid an error.
21107    Use char because int might match the return type of a GCC
21108    builtin and then its argument prototype would still apply.  */
21109 #ifdef __cplusplus
21110 extern "C"
21111 #endif
21112 char $ac_func ();
21113 /* The GNU C library defines this for functions which it implements
21114     to always fail with ENOSYS.  Some functions are actually named
21115     something starting with __ and the normal name is an alias.  */
21116 #if defined __stub_$ac_func || defined __stub___$ac_func
21117 choke me
21118 #endif
21119
21120 int
21121 main ()
21122 {
21123 return $ac_func ();
21124   ;
21125   return 0;
21126 }
21127 _ACEOF
21128 rm -f conftest.$ac_objext conftest$ac_exeext
21129 if { (ac_try="$ac_link"
21130 case "(($ac_try" in
21131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132   *) ac_try_echo=$ac_try;;
21133 esac
21134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21135 $as_echo "$ac_try_echo") >&5
21136   (eval "$ac_link") 2>conftest.er1
21137   ac_status=$?
21138   grep -v '^ *+' conftest.er1 >conftest.err
21139   rm -f conftest.er1
21140   cat conftest.err >&5
21141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); } && {
21143          test -z "$ac_c_werror_flag" ||
21144          test ! -s conftest.err
21145        } && test -s conftest$ac_exeext && {
21146          test "$cross_compiling" = yes ||
21147          $as_test_x conftest$ac_exeext
21148        }; then
21149   eval "$as_ac_var=yes"
21150 else
21151   $as_echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21153
21154         eval "$as_ac_var=no"
21155 fi
21156
21157 rm -rf conftest.dSYM
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159       conftest$ac_exeext conftest.$ac_ext
21160 fi
21161 ac_res=`eval 'as_val=${'$as_ac_var'}
21162                  $as_echo "$as_val"'`
21163                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21164 $as_echo "$ac_res" >&6; }
21165 as_val=`eval 'as_val=${'$as_ac_var'}
21166                  $as_echo "$as_val"'`
21167    if test "x$as_val" = x""yes; then
21168   cat >>confdefs.h <<_ACEOF
21169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21170 _ACEOF
21171
21172 fi
21173 done
21174
21175
21176
21177 for ac_header in check.h
21178 do
21179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21181   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21182 $as_echo_n "checking for $ac_header... " >&6; }
21183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21184   $as_echo_n "(cached) " >&6
21185 fi
21186 ac_res=`eval 'as_val=${'$as_ac_Header'}
21187                  $as_echo "$as_val"'`
21188                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21189 $as_echo "$ac_res" >&6; }
21190 else
21191   # Is the header compilable?
21192 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21193 $as_echo_n "checking $ac_header usability... " >&6; }
21194 cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200 $ac_includes_default
21201 #include <$ac_header>
21202 _ACEOF
21203 rm -f conftest.$ac_objext
21204 if { (ac_try="$ac_compile"
21205 case "(($ac_try" in
21206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207   *) ac_try_echo=$ac_try;;
21208 esac
21209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21210 $as_echo "$ac_try_echo") >&5
21211   (eval "$ac_compile") 2>conftest.er1
21212   ac_status=$?
21213   grep -v '^ *+' conftest.er1 >conftest.err
21214   rm -f conftest.er1
21215   cat conftest.err >&5
21216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); } && {
21218          test -z "$ac_c_werror_flag" ||
21219          test ! -s conftest.err
21220        } && test -s conftest.$ac_objext; then
21221   ac_header_compiler=yes
21222 else
21223   $as_echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226         ac_header_compiler=no
21227 fi
21228
21229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21231 $as_echo "$ac_header_compiler" >&6; }
21232
21233 # Is the header present?
21234 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21235 $as_echo_n "checking $ac_header presence... " >&6; }
21236 cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242 #include <$ac_header>
21243 _ACEOF
21244 if { (ac_try="$ac_cpp conftest.$ac_ext"
21245 case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21250 $as_echo "$ac_try_echo") >&5
21251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } >/dev/null && {
21258          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21259          test ! -s conftest.err
21260        }; then
21261   ac_header_preproc=yes
21262 else
21263   $as_echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266   ac_header_preproc=no
21267 fi
21268
21269 rm -f conftest.err conftest.$ac_ext
21270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21271 $as_echo "$ac_header_preproc" >&6; }
21272
21273 # So?  What about this header?
21274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21275   yes:no: )
21276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21277 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21280     ac_header_preproc=yes
21281     ;;
21282   no:yes:* )
21283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21284 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21286 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21288 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21289     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21290 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21291     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21294 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21295     ( cat <<\_ASBOX
21296 ## ------------------------------------------- ##
21297 ## Report this to expat-bugs@mail.libexpat.org ##
21298 ## ------------------------------------------- ##
21299 _ASBOX
21300      ) | sed "s/^/$as_me: WARNING:     /" >&2
21301     ;;
21302 esac
21303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21304 $as_echo_n "checking for $ac_header... " >&6; }
21305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21306   $as_echo_n "(cached) " >&6
21307 else
21308   eval "$as_ac_Header=\$ac_header_preproc"
21309 fi
21310 ac_res=`eval 'as_val=${'$as_ac_Header'}
21311                  $as_echo "$as_val"'`
21312                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21313 $as_echo "$ac_res" >&6; }
21314
21315 fi
21316 as_val=`eval 'as_val=${'$as_ac_Header'}
21317                  $as_echo "$as_val"'`
21318    if test "x$as_val" = x""yes; then
21319   cat >>confdefs.h <<_ACEOF
21320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21321 _ACEOF
21322
21323 fi
21324
21325 done
21326
21327
21328
21329 cat >>confdefs.h <<\_ACEOF
21330 #define XML_NS 1
21331 _ACEOF
21332
21333
21334 cat >>confdefs.h <<\_ACEOF
21335 #define XML_DTD 1
21336 _ACEOF
21337
21338
21339 cat >>confdefs.h <<\_ACEOF
21340 #define XML_CONTEXT_BYTES 1024
21341 _ACEOF
21342
21343
21344 ac_config_files="$ac_config_files Makefile"
21345
21346 cat >confcache <<\_ACEOF
21347 # This file is a shell script that caches the results of configure
21348 # tests run on this system so they can be shared between configure
21349 # scripts and configure runs, see configure's option --config-cache.
21350 # It is not useful on other systems.  If it contains results you don't
21351 # want to keep, you may remove or edit it.
21352 #
21353 # config.status only pays attention to the cache file if you give it
21354 # the --recheck option to rerun configure.
21355 #
21356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21358 # following values.
21359
21360 _ACEOF
21361
21362 # The following way of writing the cache mishandles newlines in values,
21363 # but we know of no workaround that is simple, portable, and efficient.
21364 # So, we kill variables containing newlines.
21365 # Ultrix sh set writes to stderr and can't be redirected directly,
21366 # and sets the high bit in the cache file unless we assign to the vars.
21367 (
21368   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21369     eval ac_val=\$$ac_var
21370     case $ac_val in #(
21371     *${as_nl}*)
21372       case $ac_var in #(
21373       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21375       esac
21376       case $ac_var in #(
21377       _ | IFS | as_nl) ;; #(
21378       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21379       *) $as_unset $ac_var ;;
21380       esac ;;
21381     esac
21382   done
21383
21384   (set) 2>&1 |
21385     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21386     *${as_nl}ac_space=\ *)
21387       # `set' does not quote correctly, so add quotes (double-quote
21388       # substitution turns \\\\ into \\, and sed turns \\ into \).
21389       sed -n \
21390         "s/'/'\\\\''/g;
21391           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21392       ;; #(
21393     *)
21394       # `set' quotes correctly as required by POSIX, so do not add quotes.
21395       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21396       ;;
21397     esac |
21398     sort
21399 ) |
21400   sed '
21401      /^ac_cv_env_/b end
21402      t clear
21403      :clear
21404      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21405      t end
21406      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21407      :end' >>confcache
21408 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21409   if test -w "$cache_file"; then
21410     test "x$cache_file" != "x/dev/null" &&
21411       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21412 $as_echo "$as_me: updating cache $cache_file" >&6;}
21413     cat confcache >$cache_file
21414   else
21415     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21416 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21417   fi
21418 fi
21419 rm -f confcache
21420
21421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21422 # Let make expand exec_prefix.
21423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21424
21425 DEFS=-DHAVE_CONFIG_H
21426
21427 ac_libobjs=
21428 ac_ltlibobjs=
21429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21430   # 1. Remove the extension, and $U if already installed.
21431   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21432   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21433   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21434   #    will be set to the directory where LIBOBJS objects are built.
21435   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21436   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21437 done
21438 LIBOBJS=$ac_libobjs
21439
21440 LTLIBOBJS=$ac_ltlibobjs
21441
21442
21443
21444
21445 : ${CONFIG_STATUS=./config.status}
21446 ac_write_fail=0
21447 ac_clean_files_save=$ac_clean_files
21448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21449 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21450 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21451 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21452 #! $SHELL
21453 # Generated by $as_me.
21454 # Run this file to recreate the current configuration.
21455 # Compiler output produced by configure, useful for debugging
21456 # configure, is in config.log if it exists.
21457
21458 debug=false
21459 ac_cs_recheck=false
21460 ac_cs_silent=false
21461 SHELL=\${CONFIG_SHELL-$SHELL}
21462 _ACEOF
21463
21464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21465 ## --------------------- ##
21466 ## M4sh Initialization.  ##
21467 ## --------------------- ##
21468
21469 # Be more Bourne compatible
21470 DUALCASE=1; export DUALCASE # for MKS sh
21471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21472   emulate sh
21473   NULLCMD=:
21474   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21475   # is contrary to our usage.  Disable this feature.
21476   alias -g '${1+"$@"}'='"$@"'
21477   setopt NO_GLOB_SUBST
21478 else
21479   case `(set -o) 2>/dev/null` in
21480   *posix*) set -o posix ;;
21481 esac
21482
21483 fi
21484
21485
21486
21487
21488 # PATH needs CR
21489 # Avoid depending upon Character Ranges.
21490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21493 as_cr_digits='0123456789'
21494 as_cr_alnum=$as_cr_Letters$as_cr_digits
21495
21496 as_nl='
21497 '
21498 export as_nl
21499 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21500 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21502 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21503 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21504   as_echo='printf %s\n'
21505   as_echo_n='printf %s'
21506 else
21507   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21508     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21509     as_echo_n='/usr/ucb/echo -n'
21510   else
21511     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21512     as_echo_n_body='eval
21513       arg=$1;
21514       case $arg in
21515       *"$as_nl"*)
21516         expr "X$arg" : "X\\(.*\\)$as_nl";
21517         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21518       esac;
21519       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21520     '
21521     export as_echo_n_body
21522     as_echo_n='sh -c $as_echo_n_body as_echo'
21523   fi
21524   export as_echo_body
21525   as_echo='sh -c $as_echo_body as_echo'
21526 fi
21527
21528 # The user is always right.
21529 if test "${PATH_SEPARATOR+set}" != set; then
21530   PATH_SEPARATOR=:
21531   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21532     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21533       PATH_SEPARATOR=';'
21534   }
21535 fi
21536
21537 # Support unset when possible.
21538 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21539   as_unset=unset
21540 else
21541   as_unset=false
21542 fi
21543
21544
21545 # IFS
21546 # We need space, tab and new line, in precisely that order.  Quoting is
21547 # there to prevent editors from complaining about space-tab.
21548 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21549 # splitting by setting IFS to empty value.)
21550 IFS=" ""        $as_nl"
21551
21552 # Find who we are.  Look in the path if we contain no directory separator.
21553 case $0 in
21554   *[\\/]* ) as_myself=$0 ;;
21555   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21556 for as_dir in $PATH
21557 do
21558   IFS=$as_save_IFS
21559   test -z "$as_dir" && as_dir=.
21560   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21561 done
21562 IFS=$as_save_IFS
21563
21564      ;;
21565 esac
21566 # We did not find ourselves, most probably we were run as `sh COMMAND'
21567 # in which case we are not to be found in the path.
21568 if test "x$as_myself" = x; then
21569   as_myself=$0
21570 fi
21571 if test ! -f "$as_myself"; then
21572   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21573   { (exit 1); exit 1; }
21574 fi
21575
21576 # Work around bugs in pre-3.0 UWIN ksh.
21577 for as_var in ENV MAIL MAILPATH
21578 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21579 done
21580 PS1='$ '
21581 PS2='> '
21582 PS4='+ '
21583
21584 # NLS nuisances.
21585 LC_ALL=C
21586 export LC_ALL
21587 LANGUAGE=C
21588 export LANGUAGE
21589
21590 # Required to use basename.
21591 if expr a : '\(a\)' >/dev/null 2>&1 &&
21592    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21593   as_expr=expr
21594 else
21595   as_expr=false
21596 fi
21597
21598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21599   as_basename=basename
21600 else
21601   as_basename=false
21602 fi
21603
21604
21605 # Name of the executable.
21606 as_me=`$as_basename -- "$0" ||
21607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21608          X"$0" : 'X\(//\)$' \| \
21609          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21610 $as_echo X/"$0" |
21611     sed '/^.*\/\([^/][^/]*\)\/*$/{
21612             s//\1/
21613             q
21614           }
21615           /^X\/\(\/\/\)$/{
21616             s//\1/
21617             q
21618           }
21619           /^X\/\(\/\).*/{
21620             s//\1/
21621             q
21622           }
21623           s/.*/./; q'`
21624
21625 # CDPATH.
21626 $as_unset CDPATH
21627
21628
21629
21630   as_lineno_1=$LINENO
21631   as_lineno_2=$LINENO
21632   test "x$as_lineno_1" != "x$as_lineno_2" &&
21633   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21634
21635   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21636   # uniformly replaced by the line number.  The first 'sed' inserts a
21637   # line-number line after each line using $LINENO; the second 'sed'
21638   # does the real work.  The second script uses 'N' to pair each
21639   # line-number line with the line containing $LINENO, and appends
21640   # trailing '-' during substitution so that $LINENO is not a special
21641   # case at line end.
21642   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21643   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21644   # E. McMahon (1931-1989) for sed's syntax.  :-)
21645   sed -n '
21646     p
21647     /[$]LINENO/=
21648   ' <$as_myself |
21649     sed '
21650       s/[$]LINENO.*/&-/
21651       t lineno
21652       b
21653       :lineno
21654       N
21655       :loop
21656       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21657       t loop
21658       s/-\n.*//
21659     ' >$as_me.lineno &&
21660   chmod +x "$as_me.lineno" ||
21661     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21662    { (exit 1); exit 1; }; }
21663
21664   # Don't try to exec as it changes $[0], causing all sort of problems
21665   # (the dirname of $[0] is not the place where we might find the
21666   # original and so on.  Autoconf is especially sensitive to this).
21667   . "./$as_me.lineno"
21668   # Exit status is that of the last command.
21669   exit
21670 }
21671
21672
21673 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21674   as_dirname=dirname
21675 else
21676   as_dirname=false
21677 fi
21678
21679 ECHO_C= ECHO_N= ECHO_T=
21680 case `echo -n x` in
21681 -n*)
21682   case `echo 'x\c'` in
21683   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21684   *)   ECHO_C='\c';;
21685   esac;;
21686 *)
21687   ECHO_N='-n';;
21688 esac
21689 if expr a : '\(a\)' >/dev/null 2>&1 &&
21690    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21691   as_expr=expr
21692 else
21693   as_expr=false
21694 fi
21695
21696 rm -f conf$$ conf$$.exe conf$$.file
21697 if test -d conf$$.dir; then
21698   rm -f conf$$.dir/conf$$.file
21699 else
21700   rm -f conf$$.dir
21701   mkdir conf$$.dir 2>/dev/null
21702 fi
21703 if (echo >conf$$.file) 2>/dev/null; then
21704   if ln -s conf$$.file conf$$ 2>/dev/null; then
21705     as_ln_s='ln -s'
21706     # ... but there are two gotchas:
21707     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21708     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21709     # In both cases, we have to default to `cp -p'.
21710     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21711       as_ln_s='cp -p'
21712   elif ln conf$$.file conf$$ 2>/dev/null; then
21713     as_ln_s=ln
21714   else
21715     as_ln_s='cp -p'
21716   fi
21717 else
21718   as_ln_s='cp -p'
21719 fi
21720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21721 rmdir conf$$.dir 2>/dev/null
21722
21723 if mkdir -p . 2>/dev/null; then
21724   as_mkdir_p=:
21725 else
21726   test -d ./-p && rmdir ./-p
21727   as_mkdir_p=false
21728 fi
21729
21730 if test -x / >/dev/null 2>&1; then
21731   as_test_x='test -x'
21732 else
21733   if ls -dL / >/dev/null 2>&1; then
21734     as_ls_L_option=L
21735   else
21736     as_ls_L_option=
21737   fi
21738   as_test_x='
21739     eval sh -c '\''
21740       if test -d "$1"; then
21741         test -d "$1/.";
21742       else
21743         case $1 in
21744         -*)set "./$1";;
21745         esac;
21746         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21747         ???[sx]*):;;*)false;;esac;fi
21748     '\'' sh
21749   '
21750 fi
21751 as_executable_p=$as_test_x
21752
21753 # Sed expression to map a string onto a valid CPP name.
21754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21755
21756 # Sed expression to map a string onto a valid variable name.
21757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21758
21759
21760 exec 6>&1
21761
21762 # Save the log message, to keep $[0] and so on meaningful, and to
21763 # report actual input values of CONFIG_FILES etc. instead of their
21764 # values after options handling.
21765 ac_log="
21766 This file was extended by expat $as_me 1.95.7, which was
21767 generated by GNU Autoconf 2.63.  Invocation command line was
21768
21769   CONFIG_FILES    = $CONFIG_FILES
21770   CONFIG_HEADERS  = $CONFIG_HEADERS
21771   CONFIG_LINKS    = $CONFIG_LINKS
21772   CONFIG_COMMANDS = $CONFIG_COMMANDS
21773   $ $0 $@
21774
21775 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21776 "
21777
21778 _ACEOF
21779
21780 case $ac_config_files in *"
21781 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21782 esac
21783
21784 case $ac_config_headers in *"
21785 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21786 esac
21787
21788
21789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21790 # Files that config.status was made for.
21791 config_files="$ac_config_files"
21792 config_headers="$ac_config_headers"
21793
21794 _ACEOF
21795
21796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21797 ac_cs_usage="\
21798 \`$as_me' instantiates files from templates according to the
21799 current configuration.
21800
21801 Usage: $0 [OPTION]... [FILE]...
21802
21803   -h, --help       print this help, then exit
21804   -V, --version    print version number and configuration settings, then exit
21805   -q, --quiet, --silent
21806                    do not print progress messages
21807   -d, --debug      don't remove temporary files
21808       --recheck    update $as_me by reconfiguring in the same conditions
21809       --file=FILE[:TEMPLATE]
21810                    instantiate the configuration file FILE
21811       --header=FILE[:TEMPLATE]
21812                    instantiate the configuration header FILE
21813
21814 Configuration files:
21815 $config_files
21816
21817 Configuration headers:
21818 $config_headers
21819
21820 Report bugs to <bug-autoconf@gnu.org>."
21821
21822 _ACEOF
21823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21824 ac_cs_version="\\
21825 expat config.status 1.95.7
21826 configured by $0, generated by GNU Autoconf 2.63,
21827   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21828
21829 Copyright (C) 2008 Free Software Foundation, Inc.
21830 This config.status script is free software; the Free Software Foundation
21831 gives unlimited permission to copy, distribute and modify it."
21832
21833 ac_pwd='$ac_pwd'
21834 srcdir='$srcdir'
21835 INSTALL='$INSTALL'
21836 test -n "\$AWK" || AWK=awk
21837 _ACEOF
21838
21839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21840 # The default lists apply if the user does not specify any file.
21841 ac_need_defaults=:
21842 while test $# != 0
21843 do
21844   case $1 in
21845   --*=*)
21846     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21847     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21848     ac_shift=:
21849     ;;
21850   *)
21851     ac_option=$1
21852     ac_optarg=$2
21853     ac_shift=shift
21854     ;;
21855   esac
21856
21857   case $ac_option in
21858   # Handling of the options.
21859   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21860     ac_cs_recheck=: ;;
21861   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21862     $as_echo "$ac_cs_version"; exit ;;
21863   --debug | --debu | --deb | --de | --d | -d )
21864     debug=: ;;
21865   --file | --fil | --fi | --f )
21866     $ac_shift
21867     case $ac_optarg in
21868     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21869     esac
21870     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21871     ac_need_defaults=false;;
21872   --header | --heade | --head | --hea )
21873     $ac_shift
21874     case $ac_optarg in
21875     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21876     esac
21877     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21878     ac_need_defaults=false;;
21879   --he | --h)
21880     # Conflict between --help and --header
21881     { $as_echo "$as_me: error: ambiguous option: $1
21882 Try \`$0 --help' for more information." >&2
21883    { (exit 1); exit 1; }; };;
21884   --help | --hel | -h )
21885     $as_echo "$ac_cs_usage"; exit ;;
21886   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21887   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21888     ac_cs_silent=: ;;
21889
21890   # This is an error.
21891   -*) { $as_echo "$as_me: error: unrecognized option: $1
21892 Try \`$0 --help' for more information." >&2
21893    { (exit 1); exit 1; }; } ;;
21894
21895   *) ac_config_targets="$ac_config_targets $1"
21896      ac_need_defaults=false ;;
21897
21898   esac
21899   shift
21900 done
21901
21902 ac_configure_extra_args=
21903
21904 if $ac_cs_silent; then
21905   exec 6>/dev/null
21906   ac_configure_extra_args="$ac_configure_extra_args --silent"
21907 fi
21908
21909 _ACEOF
21910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21911 if \$ac_cs_recheck; then
21912   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21913   shift
21914   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21915   CONFIG_SHELL='$SHELL'
21916   export CONFIG_SHELL
21917   exec "\$@"
21918 fi
21919
21920 _ACEOF
21921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21922 exec 5>>config.log
21923 {
21924   echo
21925   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21926 ## Running $as_me. ##
21927 _ASBOX
21928   $as_echo "$ac_log"
21929 } >&5
21930
21931 _ACEOF
21932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21933 _ACEOF
21934
21935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21936
21937 # Handling of arguments.
21938 for ac_config_target in $ac_config_targets
21939 do
21940   case $ac_config_target in
21941     "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
21942     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21943
21944   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21945 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21946    { (exit 1); exit 1; }; };;
21947   esac
21948 done
21949
21950
21951 # If the user did not use the arguments to specify the items to instantiate,
21952 # then the envvar interface is used.  Set only those that are not.
21953 # We use the long form for the default assignment because of an extremely
21954 # bizarre bug on SunOS 4.1.3.
21955 if $ac_need_defaults; then
21956   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21957   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21958 fi
21959
21960 # Have a temporary directory for convenience.  Make it in the build tree
21961 # simply because there is no reason against having it here, and in addition,
21962 # creating and moving files from /tmp can sometimes cause problems.
21963 # Hook for its removal unless debugging.
21964 # Note that there is a small window in which the directory will not be cleaned:
21965 # after its creation but before its name has been assigned to `$tmp'.
21966 $debug ||
21967 {
21968   tmp=
21969   trap 'exit_status=$?
21970   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21971 ' 0
21972   trap '{ (exit 1); exit 1; }' 1 2 13 15
21973 }
21974 # Create a (secure) tmp directory for tmp files.
21975
21976 {
21977   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21978   test -n "$tmp" && test -d "$tmp"
21979 }  ||
21980 {
21981   tmp=./conf$$-$RANDOM
21982   (umask 077 && mkdir "$tmp")
21983 } ||
21984 {
21985    $as_echo "$as_me: cannot create a temporary directory in ." >&2
21986    { (exit 1); exit 1; }
21987 }
21988
21989 # Set up the scripts for CONFIG_FILES section.
21990 # No need to generate them if there are no CONFIG_FILES.
21991 # This happens for instance with `./config.status config.h'.
21992 if test -n "$CONFIG_FILES"; then
21993
21994
21995 ac_cr='\r'
21996 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21997 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21998   ac_cs_awk_cr='\\r'
21999 else
22000   ac_cs_awk_cr=$ac_cr
22001 fi
22002
22003 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22004 _ACEOF
22005
22006
22007 {
22008   echo "cat >conf$$subs.awk <<_ACEOF" &&
22009   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22010   echo "_ACEOF"
22011 } >conf$$subs.sh ||
22012   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22013 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22014    { (exit 1); exit 1; }; }
22015 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22016 ac_delim='%!_!# '
22017 for ac_last_try in false false false false false :; do
22018   . ./conf$$subs.sh ||
22019     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22020 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22021    { (exit 1); exit 1; }; }
22022
22023   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22024   if test $ac_delim_n = $ac_delim_num; then
22025     break
22026   elif $ac_last_try; then
22027     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22028 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22029    { (exit 1); exit 1; }; }
22030   else
22031     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22032   fi
22033 done
22034 rm -f conf$$subs.sh
22035
22036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22037 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22038 _ACEOF
22039 sed -n '
22040 h
22041 s/^/S["/; s/!.*/"]=/
22042 p
22043 g
22044 s/^[^!]*!//
22045 :repl
22046 t repl
22047 s/'"$ac_delim"'$//
22048 t delim
22049 :nl
22050 h
22051 s/\(.\{148\}\).*/\1/
22052 t more1
22053 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22054 p
22055 n
22056 b repl
22057 :more1
22058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22059 p
22060 g
22061 s/.\{148\}//
22062 t nl
22063 :delim
22064 h
22065 s/\(.\{148\}\).*/\1/
22066 t more2
22067 s/["\\]/\\&/g; s/^/"/; s/$/"/
22068 p
22069 b
22070 :more2
22071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22072 p
22073 g
22074 s/.\{148\}//
22075 t delim
22076 ' <conf$$subs.awk | sed '
22077 /^[^""]/{
22078   N
22079   s/\n//
22080 }
22081 ' >>$CONFIG_STATUS || ac_write_fail=1
22082 rm -f conf$$subs.awk
22083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22084 _ACAWK
22085 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22086   for (key in S) S_is_set[key] = 1
22087   FS = "\a"
22088
22089 }
22090 {
22091   line = $ 0
22092   nfields = split(line, field, "@")
22093   substed = 0
22094   len = length(field[1])
22095   for (i = 2; i < nfields; i++) {
22096     key = field[i]
22097     keylen = length(key)
22098     if (S_is_set[key]) {
22099       value = S[key]
22100       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22101       len += length(value) + length(field[++i])
22102       substed = 1
22103     } else
22104       len += 1 + keylen
22105   }
22106
22107   print line
22108 }
22109
22110 _ACAWK
22111 _ACEOF
22112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22113 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22114   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22115 else
22116   cat
22117 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22118   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22119 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22120    { (exit 1); exit 1; }; }
22121 _ACEOF
22122
22123 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22124 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22125 # trailing colons and then remove the whole line if VPATH becomes empty
22126 # (actually we leave an empty line to preserve line numbers).
22127 if test "x$srcdir" = x.; then
22128   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22129 s/:*\$(srcdir):*/:/
22130 s/:*\${srcdir}:*/:/
22131 s/:*@srcdir@:*/:/
22132 s/^\([^=]*=[     ]*\):*/\1/
22133 s/:*$//
22134 s/^[^=]*=[       ]*$//
22135 }'
22136 fi
22137
22138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22139 fi # test -n "$CONFIG_FILES"
22140
22141 # Set up the scripts for CONFIG_HEADERS section.
22142 # No need to generate them if there are no CONFIG_HEADERS.
22143 # This happens for instance with `./config.status Makefile'.
22144 if test -n "$CONFIG_HEADERS"; then
22145 cat >"$tmp/defines.awk" <<\_ACAWK ||
22146 BEGIN {
22147 _ACEOF
22148
22149 # Transform confdefs.h into an awk script `defines.awk', embedded as
22150 # here-document in config.status, that substitutes the proper values into
22151 # config.h.in to produce config.h.
22152
22153 # Create a delimiter string that does not exist in confdefs.h, to ease
22154 # handling of long lines.
22155 ac_delim='%!_!# '
22156 for ac_last_try in false false :; do
22157   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22158   if test -z "$ac_t"; then
22159     break
22160   elif $ac_last_try; then
22161     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22162 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22163    { (exit 1); exit 1; }; }
22164   else
22165     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22166   fi
22167 done
22168
22169 # For the awk script, D is an array of macro values keyed by name,
22170 # likewise P contains macro parameters if any.  Preserve backslash
22171 # newline sequences.
22172
22173 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22174 sed -n '
22175 s/.\{148\}/&'"$ac_delim"'/g
22176 t rset
22177 :rset
22178 s/^[     ]*#[    ]*define[       ][      ]*/ /
22179 t def
22180 d
22181 :def
22182 s/\\$//
22183 t bsnl
22184 s/["\\]/\\&/g
22185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22186 D["\1"]=" \3"/p
22187 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
22188 d
22189 :bsnl
22190 s/["\\]/\\&/g
22191 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
22192 D["\1"]=" \3\\\\\\n"\\/p
22193 t cont
22194 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22195 t cont
22196 d
22197 :cont
22198 n
22199 s/.\{148\}/&'"$ac_delim"'/g
22200 t clear
22201 :clear
22202 s/\\$//
22203 t bsnlc
22204 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22205 d
22206 :bsnlc
22207 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22208 b cont
22209 ' <confdefs.h | sed '
22210 s/'"$ac_delim"'/"\\\
22211 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22212
22213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22214   for (key in D) D_is_set[key] = 1
22215   FS = "\a"
22216 }
22217 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22218   line = \$ 0
22219   split(line, arg, " ")
22220   if (arg[1] == "#") {
22221     defundef = arg[2]
22222     mac1 = arg[3]
22223   } else {
22224     defundef = substr(arg[1], 2)
22225     mac1 = arg[2]
22226   }
22227   split(mac1, mac2, "(") #)
22228   macro = mac2[1]
22229   prefix = substr(line, 1, index(line, defundef) - 1)
22230   if (D_is_set[macro]) {
22231     # Preserve the white space surrounding the "#".
22232     print prefix "define", macro P[macro] D[macro]
22233     next
22234   } else {
22235     # Replace #undef with comments.  This is necessary, for example,
22236     # in the case of _POSIX_SOURCE, which is predefined and required
22237     # on some systems where configure will not decide to define it.
22238     if (defundef == "undef") {
22239       print "/*", prefix defundef, macro, "*/"
22240       next
22241     }
22242   }
22243 }
22244 { print }
22245 _ACAWK
22246 _ACEOF
22247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22248   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22249 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22250    { (exit 1); exit 1; }; }
22251 fi # test -n "$CONFIG_HEADERS"
22252
22253
22254 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
22255 shift
22256 for ac_tag
22257 do
22258   case $ac_tag in
22259   :[FHLC]) ac_mode=$ac_tag; continue;;
22260   esac
22261   case $ac_mode$ac_tag in
22262   :[FHL]*:*);;
22263   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22264 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22265    { (exit 1); exit 1; }; };;
22266   :[FH]-) ac_tag=-:-;;
22267   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22268   esac
22269   ac_save_IFS=$IFS
22270   IFS=:
22271   set x $ac_tag
22272   IFS=$ac_save_IFS
22273   shift
22274   ac_file=$1
22275   shift
22276
22277   case $ac_mode in
22278   :L) ac_source=$1;;
22279   :[FH])
22280     ac_file_inputs=
22281     for ac_f
22282     do
22283       case $ac_f in
22284       -) ac_f="$tmp/stdin";;
22285       *) # Look for the file first in the build tree, then in the source tree
22286          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22287          # because $ac_f cannot contain `:'.
22288          test -f "$ac_f" ||
22289            case $ac_f in
22290            [\\/$]*) false;;
22291            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22292            esac ||
22293            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22294 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22295    { (exit 1); exit 1; }; };;
22296       esac
22297       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22298       ac_file_inputs="$ac_file_inputs '$ac_f'"
22299     done
22300
22301     # Let's still pretend it is `configure' which instantiates (i.e., don't
22302     # use $as_me), people would be surprised to read:
22303     #    /* config.h.  Generated by config.status.  */
22304     configure_input='Generated from '`
22305           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22306         `' by configure.'
22307     if test x"$ac_file" != x-; then
22308       configure_input="$ac_file.  $configure_input"
22309       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22310 $as_echo "$as_me: creating $ac_file" >&6;}
22311     fi
22312     # Neutralize special characters interpreted by sed in replacement strings.
22313     case $configure_input in #(
22314     *\&* | *\|* | *\\* )
22315        ac_sed_conf_input=`$as_echo "$configure_input" |
22316        sed 's/[\\\\&|]/\\\\&/g'`;; #(
22317     *) ac_sed_conf_input=$configure_input;;
22318     esac
22319
22320     case $ac_tag in
22321     *:-:* | *:-) cat >"$tmp/stdin" \
22322       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22323 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22324    { (exit 1); exit 1; }; } ;;
22325     esac
22326     ;;
22327   esac
22328
22329   ac_dir=`$as_dirname -- "$ac_file" ||
22330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22331          X"$ac_file" : 'X\(//\)[^/]' \| \
22332          X"$ac_file" : 'X\(//\)$' \| \
22333          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22334 $as_echo X"$ac_file" |
22335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22336             s//\1/
22337             q
22338           }
22339           /^X\(\/\/\)[^/].*/{
22340             s//\1/
22341             q
22342           }
22343           /^X\(\/\/\)$/{
22344             s//\1/
22345             q
22346           }
22347           /^X\(\/\).*/{
22348             s//\1/
22349             q
22350           }
22351           s/.*/./; q'`
22352   { as_dir="$ac_dir"
22353   case $as_dir in #(
22354   -*) as_dir=./$as_dir;;
22355   esac
22356   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22357     as_dirs=
22358     while :; do
22359       case $as_dir in #(
22360       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22361       *) as_qdir=$as_dir;;
22362       esac
22363       as_dirs="'$as_qdir' $as_dirs"
22364       as_dir=`$as_dirname -- "$as_dir" ||
22365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22366          X"$as_dir" : 'X\(//\)[^/]' \| \
22367          X"$as_dir" : 'X\(//\)$' \| \
22368          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22369 $as_echo X"$as_dir" |
22370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22371             s//\1/
22372             q
22373           }
22374           /^X\(\/\/\)[^/].*/{
22375             s//\1/
22376             q
22377           }
22378           /^X\(\/\/\)$/{
22379             s//\1/
22380             q
22381           }
22382           /^X\(\/\).*/{
22383             s//\1/
22384             q
22385           }
22386           s/.*/./; q'`
22387       test -d "$as_dir" && break
22388     done
22389     test -z "$as_dirs" || eval "mkdir $as_dirs"
22390   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22391 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22392    { (exit 1); exit 1; }; }; }
22393   ac_builddir=.
22394
22395 case "$ac_dir" in
22396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22397 *)
22398   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22399   # A ".." for each directory in $ac_dir_suffix.
22400   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22401   case $ac_top_builddir_sub in
22402   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22403   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22404   esac ;;
22405 esac
22406 ac_abs_top_builddir=$ac_pwd
22407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22408 # for backward compatibility:
22409 ac_top_builddir=$ac_top_build_prefix
22410
22411 case $srcdir in
22412   .)  # We are building in place.
22413     ac_srcdir=.
22414     ac_top_srcdir=$ac_top_builddir_sub
22415     ac_abs_top_srcdir=$ac_pwd ;;
22416   [\\/]* | ?:[\\/]* )  # Absolute name.
22417     ac_srcdir=$srcdir$ac_dir_suffix;
22418     ac_top_srcdir=$srcdir
22419     ac_abs_top_srcdir=$srcdir ;;
22420   *) # Relative name.
22421     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22422     ac_top_srcdir=$ac_top_build_prefix$srcdir
22423     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22424 esac
22425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22426
22427
22428   case $ac_mode in
22429   :F)
22430   #
22431   # CONFIG_FILE
22432   #
22433
22434   case $INSTALL in
22435   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22436   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22437   esac
22438 _ACEOF
22439
22440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22441 # If the template does not know about datarootdir, expand it.
22442 # FIXME: This hack should be removed a few years after 2.60.
22443 ac_datarootdir_hack=; ac_datarootdir_seen=
22444
22445 ac_sed_dataroot='
22446 /datarootdir/ {
22447   p
22448   q
22449 }
22450 /@datadir@/p
22451 /@docdir@/p
22452 /@infodir@/p
22453 /@localedir@/p
22454 /@mandir@/p
22455 '
22456 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22457 *datarootdir*) ac_datarootdir_seen=yes;;
22458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22459   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22460 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22461 _ACEOF
22462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22463   ac_datarootdir_hack='
22464   s&@datadir@&$datadir&g
22465   s&@docdir@&$docdir&g
22466   s&@infodir@&$infodir&g
22467   s&@localedir@&$localedir&g
22468   s&@mandir@&$mandir&g
22469     s&\\\${datarootdir}&$datarootdir&g' ;;
22470 esac
22471 _ACEOF
22472
22473 # Neutralize VPATH when `$srcdir' = `.'.
22474 # Shell code in configure.ac might set extrasub.
22475 # FIXME: do we really want to maintain this feature?
22476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22477 ac_sed_extra="$ac_vpsub
22478 $extrasub
22479 _ACEOF
22480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22481 :t
22482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22483 s|@configure_input@|$ac_sed_conf_input|;t t
22484 s&@top_builddir@&$ac_top_builddir_sub&;t t
22485 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22486 s&@srcdir@&$ac_srcdir&;t t
22487 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22488 s&@top_srcdir@&$ac_top_srcdir&;t t
22489 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22490 s&@builddir@&$ac_builddir&;t t
22491 s&@abs_builddir@&$ac_abs_builddir&;t t
22492 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22493 s&@INSTALL@&$ac_INSTALL&;t t
22494 $ac_datarootdir_hack
22495 "
22496 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22497   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22498 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22499    { (exit 1); exit 1; }; }
22500
22501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22502   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22503   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22504   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22505 which seems to be undefined.  Please make sure it is defined." >&5
22506 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22507 which seems to be undefined.  Please make sure it is defined." >&2;}
22508
22509   rm -f "$tmp/stdin"
22510   case $ac_file in
22511   -) cat "$tmp/out" && rm -f "$tmp/out";;
22512   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22513   esac \
22514   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22516    { (exit 1); exit 1; }; }
22517  ;;
22518   :H)
22519   #
22520   # CONFIG_HEADER
22521   #
22522   if test x"$ac_file" != x-; then
22523     {
22524       $as_echo "/* $configure_input  */" \
22525       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22526     } >"$tmp/config.h" \
22527       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22529    { (exit 1); exit 1; }; }
22530     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22531       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22533     else
22534       rm -f "$ac_file"
22535       mv "$tmp/config.h" "$ac_file" \
22536         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22537 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22538    { (exit 1); exit 1; }; }
22539     fi
22540   else
22541     $as_echo "/* $configure_input  */" \
22542       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22543       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22544 $as_echo "$as_me: error: could not create -" >&2;}
22545    { (exit 1); exit 1; }; }
22546   fi
22547  ;;
22548
22549
22550   esac
22551
22552 done # for ac_tag
22553
22554
22555 { (exit 0); exit 0; }
22556 _ACEOF
22557 chmod +x $CONFIG_STATUS
22558 ac_clean_files=$ac_clean_files_save
22559
22560 test $ac_write_fail = 0 ||
22561   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22562 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22563    { (exit 1); exit 1; }; }
22564
22565
22566 # configure is writing to config.log, and then calls config.status.
22567 # config.status does its own redirection, appending to config.log.
22568 # Unfortunately, on DOS this fails, as config.log is still kept open
22569 # by configure, so config.status won't be able to write to it; its
22570 # output is simply discarded.  So we exec the FD to /dev/null,
22571 # effectively closing config.log, so it can be properly (re)opened and
22572 # appended to by config.status.  When coming back to configure, we
22573 # need to make the FD available again.
22574 if test "$no_create" != yes; then
22575   ac_cs_success=:
22576   ac_config_status_args=
22577   test "$silent" = yes &&
22578     ac_config_status_args="$ac_config_status_args --quiet"
22579   exec 5>/dev/null
22580   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22581   exec 5>>config.log
22582   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22583   # would make configure fail if this is the last instruction.
22584   $ac_cs_success || { (exit 1); exit 1; }
22585 fi
22586 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22587   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22588 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22589 fi
22590
22591
22592 abs_srcdir="`cd $srcdir && pwd`"
22593 abs_builddir="`pwd`"
22594 if test "$abs_srcdir" != "$abs_builddir"; then
22595   mkdir lib
22596 fi
22597