OSDN Git Service

2009-10-20 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / sys / linux / machine / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for newlib 1.17.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='newlib'
745 PACKAGE_TARNAME='newlib'
746 PACKAGE_VERSION='1.17.0'
747 PACKAGE_STRING='newlib 1.17.0'
748 PACKAGE_BUGREPORT=''
749
750 ac_unique_file="i386"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 enable_option_checking=no
788 ac_subst_vars='am__EXEEXT_FALSE
789 am__EXEEXT_TRUE
790 LTLIBOBJS
791 LIBOBJS
792 HAVE_MACHINE_DIR_FALSE
793 HAVE_MACHINE_DIR_TRUE
794 CRT0
795 subdirs
796 CPP
797 OTOOL64
798 OTOOL
799 LIPO
800 NMEDIT
801 DSYMUTIL
802 lt_ECHO
803 LN_S
804 NM
805 ac_ct_DUMPBIN
806 DUMPBIN
807 LD
808 FGREP
809 EGREP
810 GREP
811 EXEEXT
812 ac_ct_CC
813 CPPFLAGS
814 CFLAGS
815 LIBTOOL
816 OBJDUMP
817 DLLTOOL
818 SED
819 sys_dir
820 machine_dir
821 libm_machine_dir
822 lpfx
823 aext
824 oext
825 OBJEXT
826 USE_LIBTOOL_FALSE
827 USE_LIBTOOL_TRUE
828 ELIX_LEVEL_4_FALSE
829 ELIX_LEVEL_4_TRUE
830 ELIX_LEVEL_3_FALSE
831 ELIX_LEVEL_3_TRUE
832 ELIX_LEVEL_2_FALSE
833 ELIX_LEVEL_2_TRUE
834 ELIX_LEVEL_1_FALSE
835 ELIX_LEVEL_1_TRUE
836 ELIX_LEVEL_0_FALSE
837 ELIX_LEVEL_0_TRUE
838 LDFLAGS
839 NEWLIB_CFLAGS
840 CCASFLAGS
841 CCAS
842 MAINT
843 MAINTAINER_MODE_FALSE
844 MAINTAINER_MODE_TRUE
845 READELF
846 RANLIB
847 AR
848 AS
849 am__fastdepCC_FALSE
850 am__fastdepCC_TRUE
851 CCDEPMODE
852 AMDEPBACKSLASH
853 AMDEP_FALSE
854 AMDEP_TRUE
855 am__quote
856 am__include
857 DEPDIR
858 CC
859 am__untar
860 am__tar
861 AMTAR
862 am__leading_dot
863 SET_MAKE
864 AWK
865 mkdir_p
866 MKDIR_P
867 INSTALL_STRIP_PROGRAM
868 STRIP
869 install_sh
870 MAKEINFO
871 AUTOHEADER
872 AUTOMAKE
873 AUTOCONF
874 ACLOCAL
875 VERSION
876 PACKAGE
877 CYGPATH_W
878 am__isrc
879 INSTALL_DATA
880 INSTALL_SCRIPT
881 INSTALL_PROGRAM
882 host_os
883 host_vendor
884 host_cpu
885 host
886 build_os
887 build_vendor
888 build_cpu
889 build
890 newlib_basedir
891 MAY_SUPPLY_SYSCALLS_FALSE
892 MAY_SUPPLY_SYSCALLS_TRUE
893 target_alias
894 host_alias
895 build_alias
896 LIBS
897 ECHO_T
898 ECHO_N
899 ECHO_C
900 DEFS
901 mandir
902 localedir
903 libdir
904 psdir
905 pdfdir
906 dvidir
907 htmldir
908 infodir
909 docdir
910 oldincludedir
911 includedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_multilib
934 enable_target_optspace
935 enable_malloc_debugging
936 enable_newlib_multithread
937 enable_newlib_iconv
938 enable_newlib_elix_level
939 enable_newlib_io_float
940 enable_newlib_supplied_syscalls
941 enable_dependency_tracking
942 enable_maintainer_mode
943 enable_shared
944 enable_static
945 with_pic
946 enable_fast_install
947 with_gnu_ld
948 enable_libtool_lock
949 '
950       ac_precious_vars='build_alias
951 host_alias
952 target_alias
953 CCAS
954 CCASFLAGS
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CPP'
961 ac_subdirs_all='i386'
962
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 ac_unrecognized_opts=
967 ac_unrecognized_sep=
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *)    ac_optarg=yes ;;
1025   esac
1026
1027   # Accept the important Cygnus configure options, so we can diagnose typos.
1028
1029   case $ac_dashdash$ac_option in
1030   --)
1031     ac_dashdash=yes ;;
1032
1033   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034     ac_prev=bindir ;;
1035   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036     bindir=$ac_optarg ;;
1037
1038   -build | --build | --buil | --bui | --bu)
1039     ac_prev=build_alias ;;
1040   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041     build_alias=$ac_optarg ;;
1042
1043   -cache-file | --cache-file | --cache-fil | --cache-fi \
1044   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045     ac_prev=cache_file ;;
1046   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048     cache_file=$ac_optarg ;;
1049
1050   --config-cache | -C)
1051     cache_file=config.cache ;;
1052
1053   -datadir | --datadir | --datadi | --datad)
1054     ac_prev=datadir ;;
1055   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056     datadir=$ac_optarg ;;
1057
1058   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059   | --dataroo | --dataro | --datar)
1060     ac_prev=datarootdir ;;
1061   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063     datarootdir=$ac_optarg ;;
1064
1065   -disable-* | --disable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070    { (exit 1); exit 1; }; }
1071     ac_useropt_orig=$ac_useropt
1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073     case $ac_user_opts in
1074       *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078          ac_unrecognized_sep=', ';;
1079     esac
1080     eval enable_$ac_useropt=no ;;
1081
1082   -docdir | --docdir | --docdi | --doc | --do)
1083     ac_prev=docdir ;;
1084   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085     docdir=$ac_optarg ;;
1086
1087   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088     ac_prev=dvidir ;;
1089   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090     dvidir=$ac_optarg ;;
1091
1092   -enable-* | --enable-*)
1093     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1097    { (exit 1); exit 1; }; }
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "enable_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111   | --exec | --exe | --ex)
1112     ac_prev=exec_prefix ;;
1113   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115   | --exec=* | --exe=* | --ex=*)
1116     exec_prefix=$ac_optarg ;;
1117
1118   -gas | --gas | --ga | --g)
1119     # Obsolete; use --with-gas.
1120     with_gas=yes ;;
1121
1122   -help | --help | --hel | --he | -h)
1123     ac_init_help=long ;;
1124   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125     ac_init_help=recursive ;;
1126   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127     ac_init_help=short ;;
1128
1129   -host | --host | --hos | --ho)
1130     ac_prev=host_alias ;;
1131   -host=* | --host=* | --hos=* | --ho=*)
1132     host_alias=$ac_optarg ;;
1133
1134   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135     ac_prev=htmldir ;;
1136   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137   | --ht=*)
1138     htmldir=$ac_optarg ;;
1139
1140   -includedir | --includedir | --includedi | --included | --include \
1141   | --includ | --inclu | --incl | --inc)
1142     ac_prev=includedir ;;
1143   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144   | --includ=* | --inclu=* | --incl=* | --inc=*)
1145     includedir=$ac_optarg ;;
1146
1147   -infodir | --infodir | --infodi | --infod | --info | --inf)
1148     ac_prev=infodir ;;
1149   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150     infodir=$ac_optarg ;;
1151
1152   -libdir | --libdir | --libdi | --libd)
1153     ac_prev=libdir ;;
1154   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155     libdir=$ac_optarg ;;
1156
1157   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158   | --libexe | --libex | --libe)
1159     ac_prev=libexecdir ;;
1160   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161   | --libexe=* | --libex=* | --libe=*)
1162     libexecdir=$ac_optarg ;;
1163
1164   -localedir | --localedir | --localedi | --localed | --locale)
1165     ac_prev=localedir ;;
1166   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167     localedir=$ac_optarg ;;
1168
1169   -localstatedir | --localstatedir | --localstatedi | --localstated \
1170   | --localstate | --localstat | --localsta | --localst | --locals)
1171     ac_prev=localstatedir ;;
1172   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174     localstatedir=$ac_optarg ;;
1175
1176   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177     ac_prev=mandir ;;
1178   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179     mandir=$ac_optarg ;;
1180
1181   -nfp | --nfp | --nf)
1182     # Obsolete; use --without-fp.
1183     with_fp=no ;;
1184
1185   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186   | --no-cr | --no-c | -n)
1187     no_create=yes ;;
1188
1189   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191     no_recursion=yes ;;
1192
1193   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195   | --oldin | --oldi | --old | --ol | --o)
1196     ac_prev=oldincludedir ;;
1197   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200     oldincludedir=$ac_optarg ;;
1201
1202   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203     ac_prev=prefix ;;
1204   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205     prefix=$ac_optarg ;;
1206
1207   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208   | --program-pre | --program-pr | --program-p)
1209     ac_prev=program_prefix ;;
1210   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212     program_prefix=$ac_optarg ;;
1213
1214   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215   | --program-suf | --program-su | --program-s)
1216     ac_prev=program_suffix ;;
1217   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219     program_suffix=$ac_optarg ;;
1220
1221   -program-transform-name | --program-transform-name \
1222   | --program-transform-nam | --program-transform-na \
1223   | --program-transform-n | --program-transform- \
1224   | --program-transform | --program-transfor \
1225   | --program-transfo | --program-transf \
1226   | --program-trans | --program-tran \
1227   | --progr-tra | --program-tr | --program-t)
1228     ac_prev=program_transform_name ;;
1229   -program-transform-name=* | --program-transform-name=* \
1230   | --program-transform-nam=* | --program-transform-na=* \
1231   | --program-transform-n=* | --program-transform-=* \
1232   | --program-transform=* | --program-transfor=* \
1233   | --program-transfo=* | --program-transf=* \
1234   | --program-trans=* | --program-tran=* \
1235   | --progr-tra=* | --program-tr=* | --program-t=*)
1236     program_transform_name=$ac_optarg ;;
1237
1238   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239     ac_prev=pdfdir ;;
1240   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241     pdfdir=$ac_optarg ;;
1242
1243   -psdir | --psdir | --psdi | --psd | --ps)
1244     ac_prev=psdir ;;
1245   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246     psdir=$ac_optarg ;;
1247
1248   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249   | -silent | --silent | --silen | --sile | --sil)
1250     silent=yes ;;
1251
1252   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253     ac_prev=sbindir ;;
1254   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255   | --sbi=* | --sb=*)
1256     sbindir=$ac_optarg ;;
1257
1258   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260   | --sharedst | --shareds | --shared | --share | --shar \
1261   | --sha | --sh)
1262     ac_prev=sharedstatedir ;;
1263   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266   | --sha=* | --sh=*)
1267     sharedstatedir=$ac_optarg ;;
1268
1269   -site | --site | --sit)
1270     ac_prev=site ;;
1271   -site=* | --site=* | --sit=*)
1272     site=$ac_optarg ;;
1273
1274   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275     ac_prev=srcdir ;;
1276   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277     srcdir=$ac_optarg ;;
1278
1279   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280   | --syscon | --sysco | --sysc | --sys | --sy)
1281     ac_prev=sysconfdir ;;
1282   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284     sysconfdir=$ac_optarg ;;
1285
1286   -target | --target | --targe | --targ | --tar | --ta | --t)
1287     ac_prev=target_alias ;;
1288   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289     target_alias=$ac_optarg ;;
1290
1291   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292     verbose=yes ;;
1293
1294   -version | --version | --versio | --versi | --vers | -V)
1295     ac_init_version=: ;;
1296
1297   -with-* | --with-*)
1298     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_useropt_orig=$ac_useropt
1304     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305     case $ac_user_opts in
1306       *"
1307 "with_$ac_useropt"
1308 "*) ;;
1309       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310          ac_unrecognized_sep=', ';;
1311     esac
1312     eval with_$ac_useropt=\$ac_optarg ;;
1313
1314   -without-* | --without-*)
1315     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316     # Reject names that are not valid shell variable names.
1317     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1319    { (exit 1); exit 1; }; }
1320     ac_useropt_orig=$ac_useropt
1321     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322     case $ac_user_opts in
1323       *"
1324 "with_$ac_useropt"
1325 "*) ;;
1326       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327          ac_unrecognized_sep=', ';;
1328     esac
1329     eval with_$ac_useropt=no ;;
1330
1331   --x)
1332     # Obsolete; use --with-x.
1333     with_x=yes ;;
1334
1335   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336   | --x-incl | --x-inc | --x-in | --x-i)
1337     ac_prev=x_includes ;;
1338   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340     x_includes=$ac_optarg ;;
1341
1342   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344     ac_prev=x_libraries ;;
1345   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347     x_libraries=$ac_optarg ;;
1348
1349   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1350 Try \`$0 --help' for more information." >&2
1351    { (exit 1); exit 1; }; }
1352     ;;
1353
1354   *=*)
1355     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1356     # Reject names that are not valid shell variable names.
1357     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1358       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1359    { (exit 1); exit 1; }; }
1360     eval $ac_envvar=\$ac_optarg
1361     export $ac_envvar ;;
1362
1363   *)
1364     # FIXME: should be removed in autoconf 3.0.
1365     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369     ;;
1370
1371   esac
1372 done
1373
1374 if test -n "$ac_prev"; then
1375   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1377    { (exit 1); exit 1; }; }
1378 fi
1379
1380 if test -n "$ac_unrecognized_opts"; then
1381   case $enable_option_checking in
1382     no) ;;
1383     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1384    { (exit 1); exit 1; }; } ;;
1385     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386   esac
1387 fi
1388
1389 # Check all directory arguments for consistency.
1390 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391                 datadir sysconfdir sharedstatedir localstatedir includedir \
1392                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393                 libdir localedir mandir
1394 do
1395   eval ac_val=\$$ac_var
1396   # Remove trailing slashes.
1397   case $ac_val in
1398     */ )
1399       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400       eval $ac_var=\$ac_val;;
1401   esac
1402   # Be sure to have absolute directory names.
1403   case $ac_val in
1404     [\\/$]* | ?:[\\/]* )  continue;;
1405     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406   esac
1407   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1408    { (exit 1); exit 1; }; }
1409 done
1410
1411 # There might be people who depend on the old broken behavior: `$host'
1412 # used to hold the argument of --host etc.
1413 # FIXME: To remove some day.
1414 build=$build_alias
1415 host=$host_alias
1416 target=$target_alias
1417
1418 # FIXME: To remove some day.
1419 if test "x$host_alias" != x; then
1420   if test "x$build_alias" = x; then
1421     cross_compiling=maybe
1422     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1423     If a cross compiler is detected then cross compile mode will be used." >&2
1424   elif test "x$build_alias" != "x$host_alias"; then
1425     cross_compiling=yes
1426   fi
1427 fi
1428
1429 ac_tool_prefix=
1430 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431
1432 test "$silent" = yes && exec 6>/dev/null
1433
1434
1435 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436 ac_ls_di=`ls -di .` &&
1437 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1439    { (exit 1); exit 1; }; }
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1442    { (exit 1); exit 1; }; }
1443
1444
1445 # Find the source files, if location was not specified.
1446 if test -z "$srcdir"; then
1447   ac_srcdir_defaulted=yes
1448   # Try the directory containing this script, then the parent directory.
1449   ac_confdir=`$as_dirname -- "$as_myself" ||
1450 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1451          X"$as_myself" : 'X\(//\)[^/]' \| \
1452          X"$as_myself" : 'X\(//\)$' \| \
1453          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1454 $as_echo X"$as_myself" |
1455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456             s//\1/
1457             q
1458           }
1459           /^X\(\/\/\)[^/].*/{
1460             s//\1/
1461             q
1462           }
1463           /^X\(\/\/\)$/{
1464             s//\1/
1465             q
1466           }
1467           /^X\(\/\).*/{
1468             s//\1/
1469             q
1470           }
1471           s/.*/./; q'`
1472   srcdir=$ac_confdir
1473   if test ! -r "$srcdir/$ac_unique_file"; then
1474     srcdir=..
1475   fi
1476 else
1477   ac_srcdir_defaulted=no
1478 fi
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1481   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1482    { (exit 1); exit 1; }; }
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1487    { (exit 1); exit 1; }; }
1488         pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491   srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501   eval ac_env_${ac_var}_value=\$${ac_var}
1502   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510   # Omit some internal or obsolete options to make the list less imposing.
1511   # This message is too long to be a string in the A/UX 3.1 sh.
1512   cat <<_ACEOF
1513 \`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE.  See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523   -h, --help              display this help and exit
1524       --help=short        display options specific to this package
1525       --help=recursive    display the short help of all the included packages
1526   -V, --version           display version information and exit
1527   -q, --quiet, --silent   do not print \`checking...' messages
1528       --cache-file=FILE   cache test results in FILE [disabled]
1529   -C, --config-cache      alias for \`--cache-file=config.cache'
1530   -n, --no-create         do not create output files
1531       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534   --prefix=PREFIX         install architecture-independent files in PREFIX
1535                           [$ac_default_prefix]
1536   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1537                           [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547   --bindir=DIR            user executables [EPREFIX/bin]
1548   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1549   --libexecdir=DIR        program executables [EPREFIX/libexec]
1550   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1551   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1552   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1553   --libdir=DIR            object code libraries [EPREFIX/lib]
1554   --includedir=DIR        C header files [PREFIX/include]
1555   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1556   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1557   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1558   --infodir=DIR           info documentation [DATAROOTDIR/info]
1559   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1560   --mandir=DIR            man documentation [DATAROOTDIR/man]
1561   --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1562   --htmldir=DIR           html documentation [DOCDIR]
1563   --dvidir=DIR            dvi documentation [DOCDIR]
1564   --pdfdir=DIR            pdf documentation [DOCDIR]
1565   --psdir=DIR             ps documentation [DOCDIR]
1566 _ACEOF
1567
1568   cat <<\_ACEOF
1569
1570 Program names:
1571   --program-prefix=PREFIX            prepend PREFIX to installed program names
1572   --program-suffix=SUFFIX            append SUFFIX to installed program names
1573   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1574
1575 System types:
1576   --build=BUILD     configure for building on BUILD [guessed]
1577   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1578 _ACEOF
1579 fi
1580
1581 if test -n "$ac_init_help"; then
1582   case $ac_init_help in
1583      short | recursive ) echo "Configuration of newlib 1.17.0:";;
1584    esac
1585   cat <<\_ACEOF
1586
1587 Optional Features:
1588   --disable-option-checking  ignore unrecognized --enable/--with options
1589   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1590   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1591   --enable-multilib         build many library versions (default)
1592   --enable-target-optspace  optimize for space
1593   --enable-malloc-debugging indicate malloc debugging requested
1594   --enable-newlib-multithread        enable support for multiple threads
1595   --enable-newlib-iconv     enable iconv library support
1596   --enable-newlib-elix-level         supply desired elix library level (1-4)
1597   --disable-newlib-io-float disable printf/scanf family float support
1598   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1599   --disable-dependency-tracking  speeds up one-time build
1600   --enable-dependency-tracking   do not reject slow dependency extractors
1601   --enable-maintainer-mode  enable make rules and dependencies not useful
1602                           (and sometimes confusing) to the casual installer
1603   --enable-shared[=PKGS]  build shared libraries [default=yes]
1604   --enable-static[=PKGS]  build static libraries [default=yes]
1605   --enable-fast-install[=PKGS]
1606                           optimize for fast installation [default=yes]
1607   --disable-libtool-lock  avoid locking (might break parallel builds)
1608
1609 Optional Packages:
1610   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1611   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1612   --with-pic              try to use only PIC/non-PIC objects [default=use
1613                           both]
1614   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1615
1616 Some influential environment variables:
1617   CCAS        assembler compiler command (defaults to CC)
1618   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1619   CC          C compiler command
1620   CFLAGS      C compiler flags
1621   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1622               nonstandard directory <lib dir>
1623   LIBS        libraries to pass to the linker, e.g. -l<library>
1624   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1625               you have headers in a nonstandard directory <include dir>
1626   CPP         C preprocessor
1627
1628 Use these variables to override the choices made by `configure' or to help
1629 it to find libraries and programs with nonstandard names/locations.
1630
1631 _ACEOF
1632 ac_status=$?
1633 fi
1634
1635 if test "$ac_init_help" = "recursive"; then
1636   # If there are subdirs, report their specific --help.
1637   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638     test -d "$ac_dir" ||
1639       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640       continue
1641     ac_builddir=.
1642
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *)
1646   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647   # A ".." for each directory in $ac_dir_suffix.
1648   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649   case $ac_top_builddir_sub in
1650   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652   esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1658
1659 case $srcdir in
1660   .)  # We are building in place.
1661     ac_srcdir=.
1662     ac_top_srcdir=$ac_top_builddir_sub
1663     ac_abs_top_srcdir=$ac_pwd ;;
1664   [\\/]* | ?:[\\/]* )  # Absolute name.
1665     ac_srcdir=$srcdir$ac_dir_suffix;
1666     ac_top_srcdir=$srcdir
1667     ac_abs_top_srcdir=$srcdir ;;
1668   *) # Relative name.
1669     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670     ac_top_srcdir=$ac_top_build_prefix$srcdir
1671     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674
1675     cd "$ac_dir" || { ac_status=$?; continue; }
1676     # Check for guested configure.
1677     if test -f "$ac_srcdir/configure.gnu"; then
1678       echo &&
1679       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680     elif test -f "$ac_srcdir/configure"; then
1681       echo &&
1682       $SHELL "$ac_srcdir/configure" --help=recursive
1683     else
1684       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685     fi || ac_status=$?
1686     cd "$ac_pwd" || { ac_status=$?; break; }
1687   done
1688 fi
1689
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692   cat <<\_ACEOF
1693 newlib configure 1.17.0
1694 generated by GNU Autoconf 2.63
1695
1696 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1697 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1698 This configure script is free software; the Free Software Foundation
1699 gives unlimited permission to copy, distribute and modify it.
1700 _ACEOF
1701   exit
1702 fi
1703 cat >config.log <<_ACEOF
1704 This file contains any messages produced by compilers while
1705 running configure, to aid debugging if configure makes a mistake.
1706
1707 It was created by newlib $as_me 1.17.0, which was
1708 generated by GNU Autoconf 2.63.  Invocation command line was
1709
1710   $ $0 $@
1711
1712 _ACEOF
1713 exec 5>>config.log
1714 {
1715 cat <<_ASUNAME
1716 ## --------- ##
1717 ## Platform. ##
1718 ## --------- ##
1719
1720 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1721 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1722 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1723 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1724 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1725
1726 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1727 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1728
1729 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1730 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1731 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1732 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1733 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1734 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1735 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1736
1737 _ASUNAME
1738
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   $as_echo "PATH: $as_dir"
1745 done
1746 IFS=$as_save_IFS
1747
1748 } >&5
1749
1750 cat >&5 <<_ACEOF
1751
1752
1753 ## ----------- ##
1754 ## Core tests. ##
1755 ## ----------- ##
1756
1757 _ACEOF
1758
1759
1760 # Keep a trace of the command line.
1761 # Strip out --no-create and --no-recursion so they do not pile up.
1762 # Strip out --silent because we don't want to record it for future runs.
1763 # Also quote any args containing shell meta-characters.
1764 # Make two passes to allow for proper duplicate-argument suppression.
1765 ac_configure_args=
1766 ac_configure_args0=
1767 ac_configure_args1=
1768 ac_must_keep_next=false
1769 for ac_pass in 1 2
1770 do
1771   for ac_arg
1772   do
1773     case $ac_arg in
1774     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1775     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1776     | -silent | --silent | --silen | --sile | --sil)
1777       continue ;;
1778     *\'*)
1779       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1780     esac
1781     case $ac_pass in
1782     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1783     2)
1784       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1785       if test $ac_must_keep_next = true; then
1786         ac_must_keep_next=false # Got value, back to normal.
1787       else
1788         case $ac_arg in
1789           *=* | --config-cache | -C | -disable-* | --disable-* \
1790           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1791           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1792           | -with-* | --with-* | -without-* | --without-* | --x)
1793             case "$ac_configure_args0 " in
1794               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1795             esac
1796             ;;
1797           -* ) ac_must_keep_next=true ;;
1798         esac
1799       fi
1800       ac_configure_args="$ac_configure_args '$ac_arg'"
1801       ;;
1802     esac
1803   done
1804 done
1805 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1806 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1807
1808 # When interrupted or exit'd, cleanup temporary files, and complete
1809 # config.log.  We remove comments because anyway the quotes in there
1810 # would cause problems or look ugly.
1811 # WARNING: Use '\'' to represent an apostrophe within the trap.
1812 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1813 trap 'exit_status=$?
1814   # Save into config.log some information that might help in debugging.
1815   {
1816     echo
1817
1818     cat <<\_ASBOX
1819 ## ---------------- ##
1820 ## Cache variables. ##
1821 ## ---------------- ##
1822 _ASBOX
1823     echo
1824     # The following way of writing the cache mishandles newlines in values,
1825 (
1826   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1827     eval ac_val=\$$ac_var
1828     case $ac_val in #(
1829     *${as_nl}*)
1830       case $ac_var in #(
1831       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1833       esac
1834       case $ac_var in #(
1835       _ | IFS | as_nl) ;; #(
1836       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1837       *) $as_unset $ac_var ;;
1838       esac ;;
1839     esac
1840   done
1841   (set) 2>&1 |
1842     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1843     *${as_nl}ac_space=\ *)
1844       sed -n \
1845         "s/'\''/'\''\\\\'\'''\''/g;
1846           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847       ;; #(
1848     *)
1849       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1850       ;;
1851     esac |
1852     sort
1853 )
1854     echo
1855
1856     cat <<\_ASBOX
1857 ## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##
1860 _ASBOX
1861     echo
1862     for ac_var in $ac_subst_vars
1863     do
1864       eval ac_val=\$$ac_var
1865       case $ac_val in
1866       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867       esac
1868       $as_echo "$ac_var='\''$ac_val'\''"
1869     done | sort
1870     echo
1871
1872     if test -n "$ac_subst_files"; then
1873       cat <<\_ASBOX
1874 ## ------------------- ##
1875 ## File substitutions. ##
1876 ## ------------------- ##
1877 _ASBOX
1878       echo
1879       for ac_var in $ac_subst_files
1880       do
1881         eval ac_val=\$$ac_var
1882         case $ac_val in
1883         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884         esac
1885         $as_echo "$ac_var='\''$ac_val'\''"
1886       done | sort
1887       echo
1888     fi
1889
1890     if test -s confdefs.h; then
1891       cat <<\_ASBOX
1892 ## ----------- ##
1893 ## confdefs.h. ##
1894 ## ----------- ##
1895 _ASBOX
1896       echo
1897       cat confdefs.h
1898       echo
1899     fi
1900     test "$ac_signal" != 0 &&
1901       $as_echo "$as_me: caught signal $ac_signal"
1902     $as_echo "$as_me: exit $exit_status"
1903   } >&5
1904   rm -f core *.core core.conftest.* &&
1905     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906     exit $exit_status
1907 ' 0
1908 for ac_signal in 1 2 13 15; do
1909   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1910 done
1911 ac_signal=0
1912
1913 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1914 rm -f -r conftest* confdefs.h
1915
1916 # Predefined preprocessor variables.
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_NAME "$PACKAGE_NAME"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_STRING "$PACKAGE_STRING"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1940 _ACEOF
1941
1942
1943 # Let the site file select an alternate cache file if it wants to.
1944 # Prefer an explicitly selected file to automatically selected ones.
1945 ac_site_file1=NONE
1946 ac_site_file2=NONE
1947 if test -n "$CONFIG_SITE"; then
1948   ac_site_file1=$CONFIG_SITE
1949 elif test "x$prefix" != xNONE; then
1950   ac_site_file1=$prefix/share/config.site
1951   ac_site_file2=$prefix/etc/config.site
1952 else
1953   ac_site_file1=$ac_default_prefix/share/config.site
1954   ac_site_file2=$ac_default_prefix/etc/config.site
1955 fi
1956 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1957 do
1958   test "x$ac_site_file" = xNONE && continue
1959   if test -r "$ac_site_file"; then
1960     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1961 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1962     sed 's/^/| /' "$ac_site_file" >&5
1963     . "$ac_site_file"
1964   fi
1965 done
1966
1967 if test -r "$cache_file"; then
1968   # Some versions of bash will fail to source /dev/null (special
1969   # files actually), so we avoid doing that.
1970   if test -f "$cache_file"; then
1971     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1972 $as_echo "$as_me: loading cache $cache_file" >&6;}
1973     case $cache_file in
1974       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1975       *)                      . "./$cache_file";;
1976     esac
1977   fi
1978 else
1979   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1980 $as_echo "$as_me: creating cache $cache_file" >&6;}
1981   >$cache_file
1982 fi
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989   eval ac_new_set=\$ac_env_${ac_var}_set
1990   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991   eval ac_new_val=\$ac_env_${ac_var}_value
1992   case $ac_old_set,$ac_new_set in
1993     set,)
1994       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996       ac_cache_corrupted=: ;;
1997     ,set)
1998       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000       ac_cache_corrupted=: ;;
2001     ,);;
2002     *)
2003       if test "x$ac_old_val" != "x$ac_new_val"; then
2004         # differences in whitespace do not lead to failure.
2005         ac_old_val_w=`echo x $ac_old_val`
2006         ac_new_val_w=`echo x $ac_new_val`
2007         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2008           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2009 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2010           ac_cache_corrupted=:
2011         else
2012           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2013 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2014           eval $ac_var=\$ac_old_val
2015         fi
2016         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2017 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2018         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2019 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2020       fi;;
2021   esac
2022   # Pass precious variables to config.status.
2023   if test "$ac_new_set" = set; then
2024     case $ac_new_val in
2025     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2026     *) ac_arg=$ac_var=$ac_new_val ;;
2027     esac
2028     case " $ac_configure_args " in
2029       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2030       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2031     esac
2032   fi
2033 done
2034 if $ac_cache_corrupted; then
2035   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2037   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2038 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2039   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2040 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068 ac_ext=c
2069 ac_cpp='$CPP $CPPFLAGS'
2070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073
2074
2075
2076
2077 ac_aux_dir=
2078 for ac_dir in ../../../../.. "$srcdir"/../../../../..; do
2079   if test -f "$ac_dir/install-sh"; then
2080     ac_aux_dir=$ac_dir
2081     ac_install_sh="$ac_aux_dir/install-sh -c"
2082     break
2083   elif test -f "$ac_dir/install.sh"; then
2084     ac_aux_dir=$ac_dir
2085     ac_install_sh="$ac_aux_dir/install.sh -c"
2086     break
2087   elif test -f "$ac_dir/shtool"; then
2088     ac_aux_dir=$ac_dir
2089     ac_install_sh="$ac_aux_dir/shtool install -c"
2090     break
2091   fi
2092 done
2093 if test -z "$ac_aux_dir"; then
2094   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../.. \"$srcdir\"/../../../../.." >&5
2095 $as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../../.. \"$srcdir\"/../../../../.." >&2;}
2096    { (exit 1); exit 1; }; }
2097 fi
2098
2099 # These three variables are undocumented and unsupported,
2100 # and are intended to be withdrawn in a future Autoconf release.
2101 # They can cause serious problems if a builder's source tree is in a directory
2102 # whose full name contains unusual characters.
2103 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2104 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2105 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2106
2107
2108
2109
2110 # Make sure we can run config.sub.
2111 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2112   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2113 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2114    { (exit 1); exit 1; }; }
2115
2116 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2117 $as_echo_n "checking build system type... " >&6; }
2118 if test "${ac_cv_build+set}" = set; then
2119   $as_echo_n "(cached) " >&6
2120 else
2121   ac_build_alias=$build_alias
2122 test "x$ac_build_alias" = x &&
2123   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2124 test "x$ac_build_alias" = x &&
2125   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2126 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2127    { (exit 1); exit 1; }; }
2128 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2129   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2130 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2131    { (exit 1); exit 1; }; }
2132
2133 fi
2134 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2135 $as_echo "$ac_cv_build" >&6; }
2136 case $ac_cv_build in
2137 *-*-*) ;;
2138 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2139 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2140    { (exit 1); exit 1; }; };;
2141 esac
2142 build=$ac_cv_build
2143 ac_save_IFS=$IFS; IFS='-'
2144 set x $ac_cv_build
2145 shift
2146 build_cpu=$1
2147 build_vendor=$2
2148 shift; shift
2149 # Remember, the first character of IFS is used to create $*,
2150 # except with old shells:
2151 build_os=$*
2152 IFS=$ac_save_IFS
2153 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2154
2155
2156 am__api_version='1.11'
2157
2158 # Find a good install program.  We prefer a C program (faster),
2159 # so one script is as good as another.  But avoid the broken or
2160 # incompatible versions:
2161 # SysV /etc/install, /usr/sbin/install
2162 # SunOS /usr/etc/install
2163 # IRIX /sbin/install
2164 # AIX /bin/install
2165 # AmigaOS /C/install, which installs bootblocks on floppy discs
2166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2169 # OS/2's system install, which has a completely different semantic
2170 # ./install, which can be erroneously created by make from ./install.sh.
2171 # Reject install programs that cannot install multiple files.
2172 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2173 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2174 if test -z "$INSTALL"; then
2175 if test "${ac_cv_path_install+set}" = set; then
2176   $as_echo_n "(cached) " >&6
2177 else
2178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   # Account for people who put trailing slashes in PATH elements.
2184 case $as_dir/ in
2185   ./ | .// | /cC/* | \
2186   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2187   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2188   /usr/ucb/* ) ;;
2189   *)
2190     # OSF1 and SCO ODT 3.0 have their own names for install.
2191     # Don't use installbsd from OSF since it installs stuff as root
2192     # by default.
2193     for ac_prog in ginstall scoinst install; do
2194       for ac_exec_ext in '' $ac_executable_extensions; do
2195         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2196           if test $ac_prog = install &&
2197             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2198             # AIX install.  It has an incompatible calling convention.
2199             :
2200           elif test $ac_prog = install &&
2201             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2202             # program-specific install script used by HP pwplus--don't use.
2203             :
2204           else
2205             rm -rf conftest.one conftest.two conftest.dir
2206             echo one > conftest.one
2207             echo two > conftest.two
2208             mkdir conftest.dir
2209             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2210               test -s conftest.one && test -s conftest.two &&
2211               test -s conftest.dir/conftest.one &&
2212               test -s conftest.dir/conftest.two
2213             then
2214               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2215               break 3
2216             fi
2217           fi
2218         fi
2219       done
2220     done
2221     ;;
2222 esac
2223
2224 done
2225 IFS=$as_save_IFS
2226
2227 rm -rf conftest.one conftest.two conftest.dir
2228
2229 fi
2230   if test "${ac_cv_path_install+set}" = set; then
2231     INSTALL=$ac_cv_path_install
2232   else
2233     # As a last resort, use the slow shell script.  Don't cache a
2234     # value for INSTALL within a source directory, because that will
2235     # break other packages using the cache if that directory is
2236     # removed, or if the value is a relative name.
2237     INSTALL=$ac_install_sh
2238   fi
2239 fi
2240 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2241 $as_echo "$INSTALL" >&6; }
2242
2243 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2244 # It thinks the first close brace ends the variable substitution.
2245 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2246
2247 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2248
2249 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2250
2251 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2252 $as_echo_n "checking whether build environment is sane... " >&6; }
2253 # Just in case
2254 sleep 1
2255 echo timestamp > conftest.file
2256 # Reject unsafe characters in $srcdir or the absolute working directory
2257 # name.  Accept space and tab only in the latter.
2258 am_lf='
2259 '
2260 case `pwd` in
2261   *[\\\"\#\$\&\'\`$am_lf]*)
2262     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2263 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2264    { (exit 1); exit 1; }; };;
2265 esac
2266 case $srcdir in
2267   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2268     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2269 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2270    { (exit 1); exit 1; }; };;
2271 esac
2272
2273 # Do `set' in a subshell so we don't clobber the current shell's
2274 # arguments.  Must try -L first in case configure is actually a
2275 # symlink; some systems play weird games with the mod time of symlinks
2276 # (eg FreeBSD returns the mod time of the symlink's containing
2277 # directory).
2278 if (
2279    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2280    if test "$*" = "X"; then
2281       # -L didn't work.
2282       set X `ls -t "$srcdir/configure" conftest.file`
2283    fi
2284    rm -f conftest.file
2285    if test "$*" != "X $srcdir/configure conftest.file" \
2286       && test "$*" != "X conftest.file $srcdir/configure"; then
2287
2288       # If neither matched, then we have a broken ls.  This can happen
2289       # if, for instance, CONFIG_SHELL is bash and it inherits a
2290       # broken ls alias from the environment.  This has actually
2291       # happened.  Such a system could not be considered "sane".
2292       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2293 alias in your environment" >&5
2294 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2295 alias in your environment" >&2;}
2296    { (exit 1); exit 1; }; }
2297    fi
2298
2299    test "$2" = conftest.file
2300    )
2301 then
2302    # Ok.
2303    :
2304 else
2305    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2306 Check your system clock" >&5
2307 $as_echo "$as_me: error: newly created file is older than distributed files!
2308 Check your system clock" >&2;}
2309    { (exit 1); exit 1; }; }
2310 fi
2311 { $as_echo "$as_me:$LINENO: result: yes" >&5
2312 $as_echo "yes" >&6; }
2313 test "$program_prefix" != NONE &&
2314   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2315 # Use a double $ so make ignores it.
2316 test "$program_suffix" != NONE &&
2317   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2318 # Double any \ or $.
2319 # By default was `s,x,x', remove it if useless.
2320 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2321 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2322
2323 # expand $ac_aux_dir to an absolute path
2324 am_aux_dir=`cd $ac_aux_dir && pwd`
2325
2326 if test x"${MISSING+set}" != xset; then
2327   case $am_aux_dir in
2328   *\ * | *\     *)
2329     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2330   *)
2331     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2332   esac
2333 fi
2334 # Use eval to expand $SHELL
2335 if eval "$MISSING --run true"; then
2336   am_missing_run="$MISSING --run "
2337 else
2338   am_missing_run=
2339   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2340 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2341 fi
2342
2343 if test x"${install_sh}" != xset; then
2344   case $am_aux_dir in
2345   *\ * | *\     *)
2346     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2347   *)
2348     install_sh="\${SHELL} $am_aux_dir/install-sh"
2349   esac
2350 fi
2351
2352 # Installed binaries are usually stripped using `strip' when the user
2353 # run `make install-strip'.  However `strip' might not be the right
2354 # tool to use in cross-compilation environments, therefore Automake
2355 # will honor the `STRIP' environment variable to overrule this program.
2356 if test "$cross_compiling" != no; then
2357   if test -n "$ac_tool_prefix"; then
2358   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}strip; ac_word=$2
2360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if test "${ac_cv_prog_STRIP+set}" = set; then
2363   $as_echo_n "(cached) " >&6
2364 else
2365   if test -n "$STRIP"; then
2366   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2376     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 STRIP=$ac_cv_prog_STRIP
2386 if test -n "$STRIP"; then
2387   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2388 $as_echo "$STRIP" >&6; }
2389 else
2390   { $as_echo "$as_me:$LINENO: result: no" >&5
2391 $as_echo "no" >&6; }
2392 fi
2393
2394
2395 fi
2396 if test -z "$ac_cv_prog_STRIP"; then
2397   ac_ct_STRIP=$STRIP
2398   # Extract the first word of "strip", so it can be a program name with args.
2399 set dummy strip; ac_word=$2
2400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 $as_echo_n "checking for $ac_word... " >&6; }
2402 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2403   $as_echo_n "(cached) " >&6
2404 else
2405   if test -n "$ac_ct_STRIP"; then
2406   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411   IFS=$as_save_IFS
2412   test -z "$as_dir" && as_dir=.
2413   for ac_exec_ext in '' $ac_executable_extensions; do
2414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415     ac_cv_prog_ac_ct_STRIP="strip"
2416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417     break 2
2418   fi
2419 done
2420 done
2421 IFS=$as_save_IFS
2422
2423 fi
2424 fi
2425 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2426 if test -n "$ac_ct_STRIP"; then
2427   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2428 $as_echo "$ac_ct_STRIP" >&6; }
2429 else
2430   { $as_echo "$as_me:$LINENO: result: no" >&5
2431 $as_echo "no" >&6; }
2432 fi
2433
2434   if test "x$ac_ct_STRIP" = x; then
2435     STRIP=":"
2436   else
2437     case $cross_compiling:$ac_tool_warned in
2438 yes:)
2439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443     STRIP=$ac_ct_STRIP
2444   fi
2445 else
2446   STRIP="$ac_cv_prog_STRIP"
2447 fi
2448
2449 fi
2450 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2451
2452 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2453 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2454 if test -z "$MKDIR_P"; then
2455   if test "${ac_cv_path_mkdir+set}" = set; then
2456   $as_echo_n "(cached) " >&6
2457 else
2458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463   for ac_prog in mkdir gmkdir; do
2464          for ac_exec_ext in '' $ac_executable_extensions; do
2465            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2466            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2467              'mkdir (GNU coreutils) '* | \
2468              'mkdir (coreutils) '* | \
2469              'mkdir (fileutils) '4.1*)
2470                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2471                break 3;;
2472            esac
2473          done
2474        done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479
2480   if test "${ac_cv_path_mkdir+set}" = set; then
2481     MKDIR_P="$ac_cv_path_mkdir -p"
2482   else
2483     # As a last resort, use the slow shell script.  Don't cache a
2484     # value for MKDIR_P within a source directory, because that will
2485     # break other packages using the cache if that directory is
2486     # removed, or if the value is a relative name.
2487     test -d ./--version && rmdir ./--version
2488     MKDIR_P="$ac_install_sh -d"
2489   fi
2490 fi
2491 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2492 $as_echo "$MKDIR_P" >&6; }
2493
2494 mkdir_p="$MKDIR_P"
2495 case $mkdir_p in
2496   [\\/$]* | ?:[\\/]*) ;;
2497   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2498 esac
2499
2500 for ac_prog in gawk mawk nawk awk
2501 do
2502   # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if test "${ac_cv_prog_AWK+set}" = set; then
2507   $as_echo_n "(cached) " >&6
2508 else
2509   if test -n "$AWK"; then
2510   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519     ac_cv_prog_AWK="$ac_prog"
2520     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 AWK=$ac_cv_prog_AWK
2530 if test -n "$AWK"; then
2531   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2532 $as_echo "$AWK" >&6; }
2533 else
2534   { $as_echo "$as_me:$LINENO: result: no" >&5
2535 $as_echo "no" >&6; }
2536 fi
2537
2538
2539   test -n "$AWK" && break
2540 done
2541
2542 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2543 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2544 set x ${MAKE-make}
2545 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2546 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2547   $as_echo_n "(cached) " >&6
2548 else
2549   cat >conftest.make <<\_ACEOF
2550 SHELL = /bin/sh
2551 all:
2552         @echo '@@@%%%=$(MAKE)=@@@%%%'
2553 _ACEOF
2554 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2555 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2556   *@@@%%%=?*=@@@%%%*)
2557     eval ac_cv_prog_make_${ac_make}_set=yes;;
2558   *)
2559     eval ac_cv_prog_make_${ac_make}_set=no;;
2560 esac
2561 rm -f conftest.make
2562 fi
2563 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2564   { $as_echo "$as_me:$LINENO: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566   SET_MAKE=
2567 else
2568   { $as_echo "$as_me:$LINENO: result: no" >&5
2569 $as_echo "no" >&6; }
2570   SET_MAKE="MAKE=${MAKE-make}"
2571 fi
2572
2573 rm -rf .tst 2>/dev/null
2574 mkdir .tst 2>/dev/null
2575 if test -d .tst; then
2576   am__leading_dot=.
2577 else
2578   am__leading_dot=_
2579 fi
2580 rmdir .tst 2>/dev/null
2581
2582 DEPDIR="${am__leading_dot}deps"
2583
2584 ac_config_commands="$ac_config_commands depfiles"
2585
2586
2587 am_make=${MAKE-make}
2588 cat > confinc << 'END'
2589 am__doit:
2590         @echo this is the am__doit target
2591 .PHONY: am__doit
2592 END
2593 # If we don't find an include directive, just comment out the code.
2594 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2595 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2596 am__include="#"
2597 am__quote=
2598 _am_result=none
2599 # First try GNU make style include.
2600 echo "include confinc" > confmf
2601 # Ignore all kinds of additional output from `make'.
2602 case `$am_make -s -f confmf 2> /dev/null` in #(
2603 *the\ am__doit\ target*)
2604   am__include=include
2605   am__quote=
2606   _am_result=GNU
2607   ;;
2608 esac
2609 # Now try BSD make style include.
2610 if test "$am__include" = "#"; then
2611    echo '.include "confinc"' > confmf
2612    case `$am_make -s -f confmf 2> /dev/null` in #(
2613    *the\ am__doit\ target*)
2614      am__include=.include
2615      am__quote="\""
2616      _am_result=BSD
2617      ;;
2618    esac
2619 fi
2620
2621
2622 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2623 $as_echo "$_am_result" >&6; }
2624 rm -f confinc confmf
2625
2626 # Check whether --enable-dependency-tracking was given.
2627 if test "${enable_dependency_tracking+set}" = set; then
2628   enableval=$enable_dependency_tracking;
2629 fi
2630
2631 if test "x$enable_dependency_tracking" != xno; then
2632   am_depcomp="$ac_aux_dir/depcomp"
2633   AMDEPBACKSLASH='\'
2634 fi
2635  if test "x$enable_dependency_tracking" != xno; then
2636   AMDEP_TRUE=
2637   AMDEP_FALSE='#'
2638 else
2639   AMDEP_TRUE='#'
2640   AMDEP_FALSE=
2641 fi
2642
2643
2644
2645 # Check whether --enable-multilib was given.
2646 if test "${enable_multilib+set}" = set; then
2647   enableval=$enable_multilib; case "${enableval}" in
2648   yes) multilib=yes ;;
2649   no)  multilib=no ;;
2650   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2651 $as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2652    { (exit 1); exit 1; }; } ;;
2653  esac
2654 else
2655   multilib=yes
2656 fi
2657
2658 # Check whether --enable-target-optspace was given.
2659 if test "${enable_target_optspace+set}" = set; then
2660   enableval=$enable_target_optspace; case "${enableval}" in
2661   yes) target_optspace=yes ;;
2662   no)  target_optspace=no ;;
2663   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2664 $as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2665    { (exit 1); exit 1; }; } ;;
2666  esac
2667 else
2668   target_optspace=
2669 fi
2670
2671 # Check whether --enable-malloc-debugging was given.
2672 if test "${enable_malloc_debugging+set}" = set; then
2673   enableval=$enable_malloc_debugging; case "${enableval}" in
2674   yes) malloc_debugging=yes ;;
2675   no)  malloc_debugging=no ;;
2676   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2677 $as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2678    { (exit 1); exit 1; }; } ;;
2679  esac
2680 else
2681   malloc_debugging=
2682 fi
2683
2684 # Check whether --enable-newlib-multithread was given.
2685 if test "${enable_newlib_multithread+set}" = set; then
2686   enableval=$enable_newlib_multithread; case "${enableval}" in
2687   yes) newlib_multithread=yes ;;
2688   no)  newlib_multithread=no ;;
2689   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2690 $as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2691    { (exit 1); exit 1; }; } ;;
2692  esac
2693 else
2694   newlib_multithread=yes
2695 fi
2696
2697 # Check whether --enable-newlib-iconv was given.
2698 if test "${enable_newlib_iconv+set}" = set; then
2699   enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2700    case "${enableval}" in
2701      yes) newlib_iconv=yes ;;
2702      no)  newlib_iconv=no ;;
2703      *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2704 $as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2705    { (exit 1); exit 1; }; } ;;
2706    esac
2707  fi
2708 else
2709   newlib_iconv=${newlib_iconv}
2710 fi
2711
2712 # Check whether --enable-newlib-elix-level was given.
2713 if test "${enable_newlib_elix_level+set}" = set; then
2714   enableval=$enable_newlib_elix_level; case "${enableval}" in
2715   0)   newlib_elix_level=0 ;;
2716   1)   newlib_elix_level=1 ;;
2717   2)   newlib_elix_level=2 ;;
2718   3)   newlib_elix_level=3 ;;
2719   4)   newlib_elix_level=4 ;;
2720   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2721 $as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2722    { (exit 1); exit 1; }; } ;;
2723  esac
2724 else
2725   newlib_elix_level=0
2726 fi
2727
2728 # Check whether --enable-newlib-io-float was given.
2729 if test "${enable_newlib_io_float+set}" = set; then
2730   enableval=$enable_newlib_io_float; case "${enableval}" in
2731   yes) newlib_io_float=yes ;;
2732   no)  newlib_io_float=no ;;
2733   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2734 $as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2735    { (exit 1); exit 1; }; } ;;
2736  esac
2737 else
2738   newlib_io_float=yes
2739 fi
2740
2741 # Check whether --enable-newlib-supplied-syscalls was given.
2742 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2743   enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2744   yes) newlib_may_supply_syscalls=yes ;;
2745   no)  newlib_may_supply_syscalls=no ;;
2746   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2747 $as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2748    { (exit 1); exit 1; }; } ;;
2749  esac
2750 else
2751   newlib_may_supply_syscalls=yes
2752 fi
2753
2754  if test x${newlib_may_supply_syscalls} = xyes; then
2755   MAY_SUPPLY_SYSCALLS_TRUE=
2756   MAY_SUPPLY_SYSCALLS_FALSE='#'
2757 else
2758   MAY_SUPPLY_SYSCALLS_TRUE='#'
2759   MAY_SUPPLY_SYSCALLS_FALSE=
2760 fi
2761
2762
2763
2764 test -z "${with_target_subdir}" && with_target_subdir=.
2765
2766 if test "${srcdir}" = "."; then
2767   if test "${with_target_subdir}" != "."; then
2768     newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2769   else
2770     newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2771   fi
2772 else
2773   newlib_basedir="${srcdir}/../../../.."
2774 fi
2775
2776
2777 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if test "${ac_cv_host+set}" = set; then
2780   $as_echo_n "(cached) " >&6
2781 else
2782   if test "x$host_alias" = x; then
2783   ac_cv_host=$ac_cv_build
2784 else
2785   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2787 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2788    { (exit 1); exit 1; }; }
2789 fi
2790
2791 fi
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2793 $as_echo "$ac_cv_host" >&6; }
2794 case $ac_cv_host in
2795 *-*-*) ;;
2796 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2797 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2798    { (exit 1); exit 1; }; };;
2799 esac
2800 host=$ac_cv_host
2801 ac_save_IFS=$IFS; IFS='-'
2802 set x $ac_cv_host
2803 shift
2804 host_cpu=$1
2805 host_vendor=$2
2806 shift; shift
2807 # Remember, the first character of IFS is used to create $*,
2808 # except with old shells:
2809 host_os=$*
2810 IFS=$ac_save_IFS
2811 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2812
2813
2814
2815 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2816   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2817   # is not polluted with repeated "-I."
2818   am__isrc=' -I$(srcdir)'
2819   # test to see if srcdir already configured
2820   if test -f $srcdir/config.status; then
2821     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823    { (exit 1); exit 1; }; }
2824   fi
2825 fi
2826
2827 # test whether we have cygpath
2828 if test -z "$CYGPATH_W"; then
2829   if (cygpath --version) >/dev/null 2>/dev/null; then
2830     CYGPATH_W='cygpath -w'
2831   else
2832     CYGPATH_W=echo
2833   fi
2834 fi
2835
2836
2837 # Define the identity of the package.
2838  PACKAGE='newlib'
2839  VERSION='1.17.0'
2840
2841
2842 # Some tools Automake needs.
2843
2844 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2845
2846
2847 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2848
2849
2850 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2851
2852
2853 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2854
2855
2856 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857
2858 # We need awk for the "check" target.  The system "awk" is bad on
2859 # some platforms.
2860 # Always define AMTAR for backward compatibility.
2861
2862 AMTAR=${AMTAR-"${am_missing_run}tar"}
2863
2864 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2865
2866
2867
2868
2869
2870
2871 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2872 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2873 # are probably using a cross compiler, which will not be able to fully
2874 # link an executable.  This should really be fixed in autoconf
2875 # itself.
2876
2877
2878
2879
2880
2881
2882
2883 # Extract the first word of "gcc", so it can be a program name with args.
2884 set dummy gcc; ac_word=$2
2885 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888   $as_echo_n "(cached) " >&6
2889 else
2890   if test -n "$CC"; then
2891   ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896   IFS=$as_save_IFS
2897   test -z "$as_dir" && as_dir=.
2898   for ac_exec_ext in '' $ac_executable_extensions; do
2899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900     ac_cv_prog_CC="gcc"
2901     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902     break 2
2903   fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi
2909 fi
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2914 else
2915   { $as_echo "$as_me:$LINENO: result: no" >&5
2916 $as_echo "no" >&6; }
2917 fi
2918
2919
2920
2921 depcc="$CC"   am_compiler_list=
2922
2923 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2924 $as_echo_n "checking dependency style of $depcc... " >&6; }
2925 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2926   $as_echo_n "(cached) " >&6
2927 else
2928   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2929   # We make a subdir and do the tests there.  Otherwise we can end up
2930   # making bogus files that we don't know about and never remove.  For
2931   # instance it was reported that on HP-UX the gcc test will end up
2932   # making a dummy file named `D' -- because `-MD' means `put the output
2933   # in D'.
2934   mkdir conftest.dir
2935   # Copy depcomp to subdir because otherwise we won't find it if we're
2936   # using a relative directory.
2937   cp "$am_depcomp" conftest.dir
2938   cd conftest.dir
2939   # We will build objects and dependencies in a subdirectory because
2940   # it helps to detect inapplicable dependency modes.  For instance
2941   # both Tru64's cc and ICC support -MD to output dependencies as a
2942   # side effect of compilation, but ICC will put the dependencies in
2943   # the current directory while Tru64 will put them in the object
2944   # directory.
2945   mkdir sub
2946
2947   am_cv_CC_dependencies_compiler_type=none
2948   if test "$am_compiler_list" = ""; then
2949      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2950   fi
2951   am__universal=false
2952   case " $depcc " in #(
2953      *\ -arch\ *\ -arch\ *) am__universal=true ;;
2954      esac
2955
2956   for depmode in $am_compiler_list; do
2957     # Setup a source with many dependencies, because some compilers
2958     # like to wrap large dependency lists on column 80 (with \), and
2959     # we should not choose a depcomp mode which is confused by this.
2960     #
2961     # We need to recreate these files for each test, as the compiler may
2962     # overwrite some of them when testing with obscure command lines.
2963     # This happens at least with the AIX C compiler.
2964     : > sub/conftest.c
2965     for i in 1 2 3 4 5 6; do
2966       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2967       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2968       # Solaris 8's {/usr,}/bin/sh.
2969       touch sub/conftst$i.h
2970     done
2971     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2972
2973     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2974     # mode.  It turns out that the SunPro C++ compiler does not properly
2975     # handle `-M -o', and we need to detect this.  Also, some Intel
2976     # versions had trouble with output in subdirs
2977     am__obj=sub/conftest.${OBJEXT-o}
2978     am__minus_obj="-o $am__obj"
2979     case $depmode in
2980     gcc)
2981       # This depmode causes a compiler race in universal mode.
2982       test "$am__universal" = false || continue
2983       ;;
2984     nosideeffect)
2985       # after this tag, mechanisms are not by side-effect, so they'll
2986       # only be used when explicitly requested
2987       if test "x$enable_dependency_tracking" = xyes; then
2988         continue
2989       else
2990         break
2991       fi
2992       ;;
2993     msvisualcpp | msvcmsys)
2994       # This compiler won't grok `-c -o', but also, the minuso test has
2995       # not run yet.  These depmodes are late enough in the game, and
2996       # so weak that their functioning should not be impacted.
2997       am__obj=conftest.${OBJEXT-o}
2998       am__minus_obj=
2999       ;;
3000     none) break ;;
3001     esac
3002     if depmode=$depmode \
3003        source=sub/conftest.c object=$am__obj \
3004        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3005        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3006          >/dev/null 2>conftest.err &&
3007        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3008        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3009        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3010        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3011       # icc doesn't choke on unknown options, it will just issue warnings
3012       # or remarks (even with -Werror).  So we grep stderr for any message
3013       # that says an option was ignored or not supported.
3014       # When given -MP, icc 7.0 and 7.1 complain thusly:
3015       #   icc: Command line warning: ignoring option '-M'; no argument required
3016       # The diagnosis changed in icc 8.0:
3017       #   icc: Command line remark: option '-MP' not supported
3018       if (grep 'ignoring option' conftest.err ||
3019           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3020         am_cv_CC_dependencies_compiler_type=$depmode
3021         break
3022       fi
3023     fi
3024   done
3025
3026   cd ..
3027   rm -rf conftest.dir
3028 else
3029   am_cv_CC_dependencies_compiler_type=none
3030 fi
3031
3032 fi
3033 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3034 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3035 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3036
3037  if
3038   test "x$enable_dependency_tracking" != xno \
3039   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3040   am__fastdepCC_TRUE=
3041   am__fastdepCC_FALSE='#'
3042 else
3043   am__fastdepCC_TRUE='#'
3044   am__fastdepCC_FALSE=
3045 fi
3046
3047
3048 if test -z "$CC"; then
3049   # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc; ac_word=$2
3051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if test -n "$CC"; then
3057   ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059   ac_prog_rejected=no
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065   for ac_exec_ext in '' $ac_executable_extensions; do
3066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068        ac_prog_rejected=yes
3069        continue
3070      fi
3071     ac_cv_prog_CC="cc"
3072     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 if test $ac_prog_rejected = yes; then
3080   # We found a bogon in the path, so make sure we never use it.
3081   set dummy $ac_cv_prog_CC
3082   shift
3083   if test $# != 0; then
3084     # We chose a different compiler from the bogus one.
3085     # However, it has the same basename, so the bogon will be chosen
3086     # first if we set CC to just the basename; use the full file name.
3087     shift
3088     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089   fi
3090 fi
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098   { $as_echo "$as_me:$LINENO: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103   test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3104 $as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3105    { (exit 1); exit 1; }; }
3106 fi
3107
3108 { $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3109 $as_echo_n "checking whether we are using GNU C... " >&6; }
3110 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3111   $as_echo_n "(cached) " >&6
3112 else
3113   cat > conftest.c <<EOF
3114 #ifdef __GNUC__
3115   yes;
3116 #endif
3117 EOF
3118 if { ac_try='${CC-cc} -E conftest.c'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3124   ac_cv_c_compiler_gnu=yes
3125 else
3126   ac_cv_c_compiler_gnu=no
3127 fi
3128 fi
3129 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3130 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3131
3132 if test $ac_cv_c_compiler_gnu = yes; then
3133   GCC=yes
3134   ac_test_CFLAGS="${CFLAGS+set}"
3135   ac_save_CFLAGS="$CFLAGS"
3136   ac_test_CFLAGS=${CFLAGS+set}
3137 ac_save_CFLAGS=$CFLAGS
3138 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3139 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3140 if test "${ac_cv_prog_cc_g+set}" = set; then
3141   $as_echo_n "(cached) " >&6
3142 else
3143   ac_save_c_werror_flag=$ac_c_werror_flag
3144    ac_c_werror_flag=yes
3145    ac_cv_prog_cc_g=no
3146    CFLAGS="-g"
3147    cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153
3154 int
3155 main ()
3156 {
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166   *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170   (eval "$ac_compile") 2>conftest.er1
3171   ac_status=$?
3172   grep -v '^ *+' conftest.er1 >conftest.err
3173   rm -f conftest.er1
3174   cat conftest.err >&5
3175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } && {
3177          test -z "$ac_c_werror_flag" ||
3178          test ! -s conftest.err
3179        } && test -s conftest.$ac_objext; then
3180   ac_cv_prog_cc_g=yes
3181 else
3182   $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185         CFLAGS=""
3186       cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205   *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3208 $as_echo "$ac_try_echo") >&5
3209   (eval "$ac_compile") 2>conftest.er1
3210   ac_status=$?
3211   grep -v '^ *+' conftest.er1 >conftest.err
3212   rm -f conftest.er1
3213   cat conftest.err >&5
3214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } && {
3216          test -z "$ac_c_werror_flag" ||
3217          test ! -s conftest.err
3218        } && test -s conftest.$ac_objext; then
3219   :
3220 else
3221   $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224         ac_c_werror_flag=$ac_save_c_werror_flag
3225          CFLAGS="-g"
3226          cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h.  */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h.  */
3232
3233 int
3234 main ()
3235 {
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (ac_try="$ac_compile"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248 $as_echo "$ac_try_echo") >&5
3249   (eval "$ac_compile") 2>conftest.er1
3250   ac_status=$?
3251   grep -v '^ *+' conftest.er1 >conftest.err
3252   rm -f conftest.er1
3253   cat conftest.err >&5
3254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } && {
3256          test -z "$ac_c_werror_flag" ||
3257          test ! -s conftest.err
3258        } && test -s conftest.$ac_objext; then
3259   ac_cv_prog_cc_g=yes
3260 else
3261   $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264
3265 fi
3266
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274    ac_c_werror_flag=$ac_save_c_werror_flag
3275 fi
3276 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3277 $as_echo "$ac_cv_prog_cc_g" >&6; }
3278 if test "$ac_test_CFLAGS" = set; then
3279   CFLAGS=$ac_save_CFLAGS
3280 elif test $ac_cv_prog_cc_g = yes; then
3281   if test "$GCC" = yes; then
3282     CFLAGS="-g -O2"
3283   else
3284     CFLAGS="-g"
3285   fi
3286 else
3287   if test "$GCC" = yes; then
3288     CFLAGS="-O2"
3289   else
3290     CFLAGS=
3291   fi
3292 fi
3293   if test "$ac_test_CFLAGS" = set; then
3294     CFLAGS="$ac_save_CFLAGS"
3295   elif test $ac_cv_prog_cc_g = yes; then
3296     CFLAGS="-g -O2"
3297   else
3298     CFLAGS="-O2"
3299   fi
3300 else
3301   GCC=
3302   test "${CFLAGS+set}" = set || CFLAGS="-g"
3303 fi
3304
3305
3306 if test -n "$ac_tool_prefix"; then
3307   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}as; ac_word=$2
3309 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if test "${ac_cv_prog_AS+set}" = set; then
3312   $as_echo_n "(cached) " >&6
3313 else
3314   if test -n "$AS"; then
3315   ac_cv_prog_AS="$AS" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322   for ac_exec_ext in '' $ac_executable_extensions; do
3323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324     ac_cv_prog_AS="${ac_tool_prefix}as"
3325     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 AS=$ac_cv_prog_AS
3335 if test -n "$AS"; then
3336   { $as_echo "$as_me:$LINENO: result: $AS" >&5
3337 $as_echo "$AS" >&6; }
3338 else
3339   { $as_echo "$as_me:$LINENO: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 fi
3345 if test -z "$ac_cv_prog_AS"; then
3346   ac_ct_AS=$AS
3347   # Extract the first word of "as", so it can be a program name with args.
3348 set dummy as; ac_word=$2
3349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3352   $as_echo_n "(cached) " >&6
3353 else
3354   if test -n "$ac_ct_AS"; then
3355   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362   for ac_exec_ext in '' $ac_executable_extensions; do
3363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364     ac_cv_prog_ac_ct_AS="as"
3365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3375 if test -n "$ac_ct_AS"; then
3376   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3377 $as_echo "$ac_ct_AS" >&6; }
3378 else
3379   { $as_echo "$as_me:$LINENO: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383   if test "x$ac_ct_AS" = x; then
3384     AS=""
3385   else
3386     case $cross_compiling:$ac_tool_warned in
3387 yes:)
3388 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned=yes ;;
3391 esac
3392     AS=$ac_ct_AS
3393   fi
3394 else
3395   AS="$ac_cv_prog_AS"
3396 fi
3397
3398 if test -n "$ac_tool_prefix"; then
3399   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3400 set dummy ${ac_tool_prefix}ar; ac_word=$2
3401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_AR+set}" = set; then
3404   $as_echo_n "(cached) " >&6
3405 else
3406   if test -n "$AR"; then
3407   ac_cv_prog_AR="$AR" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414   for ac_exec_ext in '' $ac_executable_extensions; do
3415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416     ac_cv_prog_AR="${ac_tool_prefix}ar"
3417     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 AR=$ac_cv_prog_AR
3427 if test -n "$AR"; then
3428   { $as_echo "$as_me:$LINENO: result: $AR" >&5
3429 $as_echo "$AR" >&6; }
3430 else
3431   { $as_echo "$as_me:$LINENO: result: no" >&5
3432 $as_echo "no" >&6; }
3433 fi
3434
3435
3436 fi
3437 if test -z "$ac_cv_prog_AR"; then
3438   ac_ct_AR=$AR
3439   # Extract the first word of "ar", so it can be a program name with args.
3440 set dummy ar; ac_word=$2
3441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3444   $as_echo_n "(cached) " >&6
3445 else
3446   if test -n "$ac_ct_AR"; then
3447   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   test -z "$as_dir" && as_dir=.
3454   for ac_exec_ext in '' $ac_executable_extensions; do
3455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456     ac_cv_prog_ac_ct_AR="ar"
3457     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3467 if test -n "$ac_ct_AR"; then
3468   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3469 $as_echo "$ac_ct_AR" >&6; }
3470 else
3471   { $as_echo "$as_me:$LINENO: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475   if test "x$ac_ct_AR" = x; then
3476     AR=""
3477   else
3478     case $cross_compiling:$ac_tool_warned in
3479 yes:)
3480 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3483 esac
3484     AR=$ac_ct_AR
3485   fi
3486 else
3487   AR="$ac_cv_prog_AR"
3488 fi
3489
3490 if test -n "$ac_tool_prefix"; then
3491   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_RANLIB+set}" = set; then
3496   $as_echo_n "(cached) " >&6
3497 else
3498   if test -n "$RANLIB"; then
3499   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504   IFS=$as_save_IFS
3505   test -z "$as_dir" && as_dir=.
3506   for ac_exec_ext in '' $ac_executable_extensions; do
3507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3509     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 RANLIB=$ac_cv_prog_RANLIB
3519 if test -n "$RANLIB"; then
3520   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3521 $as_echo "$RANLIB" >&6; }
3522 else
3523   { $as_echo "$as_me:$LINENO: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 if test -z "$ac_cv_prog_RANLIB"; then
3530   ac_ct_RANLIB=$RANLIB
3531   # Extract the first word of "ranlib", so it can be a program name with args.
3532 set dummy ranlib; ac_word=$2
3533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3536   $as_echo_n "(cached) " >&6
3537 else
3538   if test -n "$ac_ct_RANLIB"; then
3539   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   for ac_exec_ext in '' $ac_executable_extensions; do
3547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548     ac_cv_prog_ac_ct_RANLIB="ranlib"
3549     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3559 if test -n "$ac_ct_RANLIB"; then
3560   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3561 $as_echo "$ac_ct_RANLIB" >&6; }
3562 else
3563   { $as_echo "$as_me:$LINENO: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567   if test "x$ac_ct_RANLIB" = x; then
3568     RANLIB=":"
3569   else
3570     case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576     RANLIB=$ac_ct_RANLIB
3577   fi
3578 else
3579   RANLIB="$ac_cv_prog_RANLIB"
3580 fi
3581
3582 if test -n "$ac_tool_prefix"; then
3583   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3584 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_READELF+set}" = set; then
3588   $as_echo_n "(cached) " >&6
3589 else
3590   if test -n "$READELF"; then
3591   ac_cv_prog_READELF="$READELF" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598   for ac_exec_ext in '' $ac_executable_extensions; do
3599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3601     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605 done
3606 IFS=$as_save_IFS
3607
3608 fi
3609 fi
3610 READELF=$ac_cv_prog_READELF
3611 if test -n "$READELF"; then
3612   { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3613 $as_echo "$READELF" >&6; }
3614 else
3615   { $as_echo "$as_me:$LINENO: result: no" >&5
3616 $as_echo "no" >&6; }
3617 fi
3618
3619
3620 fi
3621 if test -z "$ac_cv_prog_READELF"; then
3622   ac_ct_READELF=$READELF
3623   # Extract the first word of "readelf", so it can be a program name with args.
3624 set dummy readelf; ac_word=$2
3625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -n "$ac_ct_READELF"; then
3631   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638   for ac_exec_ext in '' $ac_executable_extensions; do
3639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640     ac_cv_prog_ac_ct_READELF="readelf"
3641     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645 done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3651 if test -n "$ac_ct_READELF"; then
3652   { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3653 $as_echo "$ac_ct_READELF" >&6; }
3654 else
3655   { $as_echo "$as_me:$LINENO: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659   if test "x$ac_ct_READELF" = x; then
3660     READELF=":"
3661   else
3662     case $cross_compiling:$ac_tool_warned in
3663 yes:)
3664 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3666 ac_tool_warned=yes ;;
3667 esac
3668     READELF=$ac_ct_READELF
3669   fi
3670 else
3671   READELF="$ac_cv_prog_READELF"
3672 fi
3673
3674
3675 # Find a good install program.  We prefer a C program (faster),
3676 # so one script is as good as another.  But avoid the broken or
3677 # incompatible versions:
3678 # SysV /etc/install, /usr/sbin/install
3679 # SunOS /usr/etc/install
3680 # IRIX /sbin/install
3681 # AIX /bin/install
3682 # AmigaOS /C/install, which installs bootblocks on floppy discs
3683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3686 # OS/2's system install, which has a completely different semantic
3687 # ./install, which can be erroneously created by make from ./install.sh.
3688 # Reject install programs that cannot install multiple files.
3689 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3690 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3691 if test -z "$INSTALL"; then
3692 if test "${ac_cv_path_install+set}" = set; then
3693   $as_echo_n "(cached) " >&6
3694 else
3695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   # Account for people who put trailing slashes in PATH elements.
3701 case $as_dir/ in
3702   ./ | .// | /cC/* | \
3703   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3704   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3705   /usr/ucb/* ) ;;
3706   *)
3707     # OSF1 and SCO ODT 3.0 have their own names for install.
3708     # Don't use installbsd from OSF since it installs stuff as root
3709     # by default.
3710     for ac_prog in ginstall scoinst install; do
3711       for ac_exec_ext in '' $ac_executable_extensions; do
3712         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3713           if test $ac_prog = install &&
3714             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3715             # AIX install.  It has an incompatible calling convention.
3716             :
3717           elif test $ac_prog = install &&
3718             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3719             # program-specific install script used by HP pwplus--don't use.
3720             :
3721           else
3722             rm -rf conftest.one conftest.two conftest.dir
3723             echo one > conftest.one
3724             echo two > conftest.two
3725             mkdir conftest.dir
3726             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3727               test -s conftest.one && test -s conftest.two &&
3728               test -s conftest.dir/conftest.one &&
3729               test -s conftest.dir/conftest.two
3730             then
3731               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3732               break 3
3733             fi
3734           fi
3735         fi
3736       done
3737     done
3738     ;;
3739 esac
3740
3741 done
3742 IFS=$as_save_IFS
3743
3744 rm -rf conftest.one conftest.two conftest.dir
3745
3746 fi
3747   if test "${ac_cv_path_install+set}" = set; then
3748     INSTALL=$ac_cv_path_install
3749   else
3750     # As a last resort, use the slow shell script.  Don't cache a
3751     # value for INSTALL within a source directory, because that will
3752     # break other packages using the cache if that directory is
3753     # removed, or if the value is a relative name.
3754     INSTALL=$ac_install_sh
3755   fi
3756 fi
3757 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3758 $as_echo "$INSTALL" >&6; }
3759
3760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3761 # It thinks the first close brace ends the variable substitution.
3762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3763
3764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3765
3766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3767
3768
3769 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3770 ac_given_INSTALL=$INSTALL
3771
3772
3773 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3774 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3775     # Check whether --enable-maintainer-mode was given.
3776 if test "${enable_maintainer_mode+set}" = set; then
3777   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3778 else
3779   USE_MAINTAINER_MODE=no
3780 fi
3781
3782   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3783 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3784    if test $USE_MAINTAINER_MODE = yes; then
3785   MAINTAINER_MODE_TRUE=
3786   MAINTAINER_MODE_FALSE='#'
3787 else
3788   MAINTAINER_MODE_TRUE='#'
3789   MAINTAINER_MODE_FALSE=
3790 fi
3791
3792   MAINT=$MAINTAINER_MODE_TRUE
3793
3794
3795 # By default we simply use the C compiler to build assembly code.
3796
3797 test "${CCAS+set}" = set || CCAS=$CC
3798 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3799
3800
3801
3802
3803 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3804 # at least currently, we never actually build a program, so we never
3805 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3806 # fails, because we are probably configuring with a cross compiler
3807 # which can't create executables.  So we include AC_EXEEXT to keep
3808 # automake happy, but we don't execute it, since we don't care about
3809 # the result.
3810 if false; then
3811
3812   dummy_var=1
3813 fi
3814
3815 . ${newlib_basedir}/configure.host
3816
3817 newlib_cflags="${newlib_cflags} -fno-builtin"
3818
3819 NEWLIB_CFLAGS=${newlib_cflags}
3820
3821
3822 LDFLAGS=${ldflags}
3823
3824
3825  if test x${newlib_elix_level} = x0; then
3826   ELIX_LEVEL_0_TRUE=
3827   ELIX_LEVEL_0_FALSE='#'
3828 else
3829   ELIX_LEVEL_0_TRUE='#'
3830   ELIX_LEVEL_0_FALSE=
3831 fi
3832
3833  if test x${newlib_elix_level} = x1; then
3834   ELIX_LEVEL_1_TRUE=
3835   ELIX_LEVEL_1_FALSE='#'
3836 else
3837   ELIX_LEVEL_1_TRUE='#'
3838   ELIX_LEVEL_1_FALSE=
3839 fi
3840
3841  if test x${newlib_elix_level} = x2; then
3842   ELIX_LEVEL_2_TRUE=
3843   ELIX_LEVEL_2_FALSE='#'
3844 else
3845   ELIX_LEVEL_2_TRUE='#'
3846   ELIX_LEVEL_2_FALSE=
3847 fi
3848
3849  if test x${newlib_elix_level} = x3; then
3850   ELIX_LEVEL_3_TRUE=
3851   ELIX_LEVEL_3_FALSE='#'
3852 else
3853   ELIX_LEVEL_3_TRUE='#'
3854   ELIX_LEVEL_3_FALSE=
3855 fi
3856
3857  if test x${newlib_elix_level} = x4; then
3858   ELIX_LEVEL_4_TRUE=
3859   ELIX_LEVEL_4_FALSE='#'
3860 else
3861   ELIX_LEVEL_4_TRUE='#'
3862   ELIX_LEVEL_4_FALSE=
3863 fi
3864
3865
3866  if test x${use_libtool} = xyes; then
3867   USE_LIBTOOL_TRUE=
3868   USE_LIBTOOL_FALSE='#'
3869 else
3870   USE_LIBTOOL_TRUE='#'
3871   USE_LIBTOOL_FALSE=
3872 fi
3873
3874
3875 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3876 # use oext, which is set in configure.host based on the target platform.
3877 OBJEXT=${oext}
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3890 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3891 if test "${ac_cv_path_SED+set}" = set; then
3892   $as_echo_n "(cached) " >&6
3893 else
3894             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3895      for ac_i in 1 2 3 4 5 6 7; do
3896        ac_script="$ac_script$as_nl$ac_script"
3897      done
3898      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3899      $as_unset ac_script || ac_script=
3900      if test -z "$SED"; then
3901   ac_path_SED_found=false
3902   # Loop through the user's path and test for each of PROGNAME-LIST
3903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   test -z "$as_dir" && as_dir=.
3908   for ac_prog in sed gsed; do
3909     for ac_exec_ext in '' $ac_executable_extensions; do
3910       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3911       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3912 # Check for GNU ac_path_SED and select it if it is found.
3913   # Check for GNU $ac_path_SED
3914 case `"$ac_path_SED" --version 2>&1` in
3915 *GNU*)
3916   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3917 *)
3918   ac_count=0
3919   $as_echo_n 0123456789 >"conftest.in"
3920   while :
3921   do
3922     cat "conftest.in" "conftest.in" >"conftest.tmp"
3923     mv "conftest.tmp" "conftest.in"
3924     cp "conftest.in" "conftest.nl"
3925     $as_echo '' >> "conftest.nl"
3926     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928     ac_count=`expr $ac_count + 1`
3929     if test $ac_count -gt ${ac_path_SED_max-0}; then
3930       # Best one so far, save it but keep looking for a better one
3931       ac_cv_path_SED="$ac_path_SED"
3932       ac_path_SED_max=$ac_count
3933     fi
3934     # 10*(2^10) chars as input seems more than enough
3935     test $ac_count -gt 10 && break
3936   done
3937   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 esac
3939
3940       $ac_path_SED_found && break 3
3941     done
3942   done
3943 done
3944 IFS=$as_save_IFS
3945   if test -z "$ac_cv_path_SED"; then
3946     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3947 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3948    { (exit 1); exit 1; }; }
3949   fi
3950 else
3951   ac_cv_path_SED=$SED
3952 fi
3953
3954 fi
3955 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3956 $as_echo "$ac_cv_path_SED" >&6; }
3957  SED="$ac_cv_path_SED"
3958   rm -f conftest.sed
3959
3960 test -z "$SED" && SED=sed
3961 Xsed="$SED -e 1s/^X//"
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973 if test "${use_libtool}" = "yes"; then
3974 enable_win32_dll=yes
3975
3976 case $host in
3977 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3978   if test -n "$ac_tool_prefix"; then
3979   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}as; ac_word=$2
3981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_AS+set}" = set; then
3984   $as_echo_n "(cached) " >&6
3985 else
3986   if test -n "$AS"; then
3987   ac_cv_prog_AS="$AS" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_exec_ext in '' $ac_executable_extensions; do
3995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996     ac_cv_prog_AS="${ac_tool_prefix}as"
3997     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 AS=$ac_cv_prog_AS
4007 if test -n "$AS"; then
4008   { $as_echo "$as_me:$LINENO: result: $AS" >&5
4009 $as_echo "$AS" >&6; }
4010 else
4011   { $as_echo "$as_me:$LINENO: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 fi
4017 if test -z "$ac_cv_prog_AS"; then
4018   ac_ct_AS=$AS
4019   # Extract the first word of "as", so it can be a program name with args.
4020 set dummy as; ac_word=$2
4021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4024   $as_echo_n "(cached) " >&6
4025 else
4026   if test -n "$ac_ct_AS"; then
4027   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034   for ac_exec_ext in '' $ac_executable_extensions; do
4035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036     ac_cv_prog_ac_ct_AS="as"
4037     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4047 if test -n "$ac_ct_AS"; then
4048   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4049 $as_echo "$ac_ct_AS" >&6; }
4050 else
4051   { $as_echo "$as_me:$LINENO: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055   if test "x$ac_ct_AS" = x; then
4056     AS="false"
4057   else
4058     case $cross_compiling:$ac_tool_warned in
4059 yes:)
4060 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062 ac_tool_warned=yes ;;
4063 esac
4064     AS=$ac_ct_AS
4065   fi
4066 else
4067   AS="$ac_cv_prog_AS"
4068 fi
4069
4070   if test -n "$ac_tool_prefix"; then
4071   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4076   $as_echo_n "(cached) " >&6
4077 else
4078   if test -n "$DLLTOOL"; then
4079   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_exec_ext in '' $ac_executable_extensions; do
4087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4089     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093 done
4094 IFS=$as_save_IFS
4095
4096 fi
4097 fi
4098 DLLTOOL=$ac_cv_prog_DLLTOOL
4099 if test -n "$DLLTOOL"; then
4100   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4101 $as_echo "$DLLTOOL" >&6; }
4102 else
4103   { $as_echo "$as_me:$LINENO: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106
4107
4108 fi
4109 if test -z "$ac_cv_prog_DLLTOOL"; then
4110   ac_ct_DLLTOOL=$DLLTOOL
4111   # Extract the first word of "dlltool", so it can be a program name with args.
4112 set dummy dlltool; ac_word=$2
4113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if test -n "$ac_ct_DLLTOOL"; then
4119   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126   for ac_exec_ext in '' $ac_executable_extensions; do
4127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4129     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133 done
4134 IFS=$as_save_IFS
4135
4136 fi
4137 fi
4138 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4139 if test -n "$ac_ct_DLLTOOL"; then
4140   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4141 $as_echo "$ac_ct_DLLTOOL" >&6; }
4142 else
4143   { $as_echo "$as_me:$LINENO: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146
4147   if test "x$ac_ct_DLLTOOL" = x; then
4148     DLLTOOL="false"
4149   else
4150     case $cross_compiling:$ac_tool_warned in
4151 yes:)
4152 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156     DLLTOOL=$ac_ct_DLLTOOL
4157   fi
4158 else
4159   DLLTOOL="$ac_cv_prog_DLLTOOL"
4160 fi
4161
4162   if test -n "$ac_tool_prefix"; then
4163   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$OBJDUMP"; then
4171   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4181     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 OBJDUMP=$ac_cv_prog_OBJDUMP
4191 if test -n "$OBJDUMP"; then
4192   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4193 $as_echo "$OBJDUMP" >&6; }
4194 else
4195   { $as_echo "$as_me:$LINENO: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200 fi
4201 if test -z "$ac_cv_prog_OBJDUMP"; then
4202   ac_ct_OBJDUMP=$OBJDUMP
4203   # Extract the first word of "objdump", so it can be a program name with args.
4204 set dummy objdump; ac_word=$2
4205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4208   $as_echo_n "(cached) " >&6
4209 else
4210   if test -n "$ac_ct_OBJDUMP"; then
4211   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4221     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228 fi
4229 fi
4230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4231 if test -n "$ac_ct_OBJDUMP"; then
4232   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4233 $as_echo "$ac_ct_OBJDUMP" >&6; }
4234 else
4235   { $as_echo "$as_me:$LINENO: result: no" >&5
4236 $as_echo "no" >&6; }
4237 fi
4238
4239   if test "x$ac_ct_OBJDUMP" = x; then
4240     OBJDUMP="false"
4241   else
4242     case $cross_compiling:$ac_tool_warned in
4243 yes:)
4244 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4247 esac
4248     OBJDUMP=$ac_ct_OBJDUMP
4249   fi
4250 else
4251   OBJDUMP="$ac_cv_prog_OBJDUMP"
4252 fi
4253
4254   ;;
4255 esac
4256
4257 test -z "$AS" && AS=as
4258
4259
4260
4261
4262
4263 test -z "$DLLTOOL" && DLLTOOL=dlltool
4264
4265
4266
4267
4268
4269 test -z "$OBJDUMP" && OBJDUMP=objdump
4270
4271
4272
4273
4274
4275
4276
4277 case `pwd` in
4278   *\ * | *\     *)
4279     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4280 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4281 esac
4282
4283
4284
4285 macro_version='2.2.6'
4286 macro_revision='1.3012'
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300 ltmain="$ac_aux_dir/ltmain.sh"
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 if test -n "$ac_tool_prefix"; then
4308   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if test "${ac_cv_prog_CC+set}" = set; then
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if test -n "$CC"; then
4316   ac_cv_prog_CC="$CC" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323   for ac_exec_ext in '' $ac_executable_extensions; do
4324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4326     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333 fi
4334 fi
4335 CC=$ac_cv_prog_CC
4336 if test -n "$CC"; then
4337   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4338 $as_echo "$CC" >&6; }
4339 else
4340   { $as_echo "$as_me:$LINENO: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345 fi
4346 if test -z "$ac_cv_prog_CC"; then
4347   ac_ct_CC=$CC
4348   # Extract the first word of "gcc", so it can be a program name with args.
4349 set dummy gcc; ac_word=$2
4350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4353   $as_echo_n "(cached) " >&6
4354 else
4355   if test -n "$ac_ct_CC"; then
4356   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     ac_cv_prog_ac_ct_CC="gcc"
4366     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373 fi
4374 fi
4375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4376 if test -n "$ac_ct_CC"; then
4377   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4378 $as_echo "$ac_ct_CC" >&6; }
4379 else
4380   { $as_echo "$as_me:$LINENO: result: no" >&5
4381 $as_echo "no" >&6; }
4382 fi
4383
4384   if test "x$ac_ct_CC" = x; then
4385     CC=""
4386   else
4387     case $cross_compiling:$ac_tool_warned in
4388 yes:)
4389 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391 ac_tool_warned=yes ;;
4392 esac
4393     CC=$ac_ct_CC
4394   fi
4395 else
4396   CC="$ac_cv_prog_CC"
4397 fi
4398
4399 if test -z "$CC"; then
4400           if test -n "$ac_tool_prefix"; then
4401     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4402 set dummy ${ac_tool_prefix}cc; ac_word=$2
4403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_CC+set}" = set; then
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -n "$CC"; then
4409   ac_cv_prog_CC="$CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416   for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_prog_CC="${ac_tool_prefix}cc"
4419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 CC=$ac_cv_prog_CC
4429 if test -n "$CC"; then
4430   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4431 $as_echo "$CC" >&6; }
4432 else
4433   { $as_echo "$as_me:$LINENO: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438   fi
4439 fi
4440 if test -z "$CC"; then
4441   # Extract the first word of "cc", so it can be a program name with args.
4442 set dummy cc; ac_word=$2
4443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if test "${ac_cv_prog_CC+set}" = set; then
4446   $as_echo_n "(cached) " >&6
4447 else
4448   if test -n "$CC"; then
4449   ac_cv_prog_CC="$CC" # Let the user override the test.
4450 else
4451   ac_prog_rejected=no
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457   for ac_exec_ext in '' $ac_executable_extensions; do
4458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4460        ac_prog_rejected=yes
4461        continue
4462      fi
4463     ac_cv_prog_CC="cc"
4464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 if test $ac_prog_rejected = yes; then
4472   # We found a bogon in the path, so make sure we never use it.
4473   set dummy $ac_cv_prog_CC
4474   shift
4475   if test $# != 0; then
4476     # We chose a different compiler from the bogus one.
4477     # However, it has the same basename, so the bogon will be chosen
4478     # first if we set CC to just the basename; use the full file name.
4479     shift
4480     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4481   fi
4482 fi
4483 fi
4484 fi
4485 CC=$ac_cv_prog_CC
4486 if test -n "$CC"; then
4487   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4488 $as_echo "$CC" >&6; }
4489 else
4490   { $as_echo "$as_me:$LINENO: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493
4494
4495 fi
4496 if test -z "$CC"; then
4497   if test -n "$ac_tool_prefix"; then
4498   for ac_prog in cl.exe
4499   do
4500     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if test "${ac_cv_prog_CC+set}" = set; then
4505   $as_echo_n "(cached) " >&6
4506 else
4507   if test -n "$CC"; then
4508   ac_cv_prog_CC="$CC" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4518     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525 fi
4526 fi
4527 CC=$ac_cv_prog_CC
4528 if test -n "$CC"; then
4529   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4530 $as_echo "$CC" >&6; }
4531 else
4532   { $as_echo "$as_me:$LINENO: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537     test -n "$CC" && break
4538   done
4539 fi
4540 if test -z "$CC"; then
4541   ac_ct_CC=$CC
4542   for ac_prog in cl.exe
4543 do
4544   # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -n "$ac_ct_CC"; then
4552   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559   for ac_exec_ext in '' $ac_executable_extensions; do
4560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561     ac_cv_prog_ac_ct_CC="$ac_prog"
4562     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563     break 2
4564   fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572 if test -n "$ac_ct_CC"; then
4573   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4574 $as_echo "$ac_ct_CC" >&6; }
4575 else
4576   { $as_echo "$as_me:$LINENO: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581   test -n "$ac_ct_CC" && break
4582 done
4583
4584   if test "x$ac_ct_CC" = x; then
4585     CC=""
4586   else
4587     case $cross_compiling:$ac_tool_warned in
4588 yes:)
4589 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591 ac_tool_warned=yes ;;
4592 esac
4593     CC=$ac_ct_CC
4594   fi
4595 fi
4596
4597 fi
4598
4599
4600 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4603 See \`config.log' for more details." >&5
4604 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4605 See \`config.log' for more details." >&2;}
4606    { (exit 1); exit 1; }; }; }
4607
4608 # Provide some information about the compiler.
4609 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4610 set X $ac_compile
4611 ac_compiler=$2
4612 { (ac_try="$ac_compiler --version >&5"
4613 case "(($ac_try" in
4614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615   *) ac_try_echo=$ac_try;;
4616 esac
4617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619   (eval "$ac_compiler --version >&5") 2>&5
4620   ac_status=$?
4621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }
4623 { (ac_try="$ac_compiler -v >&5"
4624 case "(($ac_try" in
4625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626   *) ac_try_echo=$ac_try;;
4627 esac
4628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4629 $as_echo "$ac_try_echo") >&5
4630   (eval "$ac_compiler -v >&5") 2>&5
4631   ac_status=$?
4632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }
4634 { (ac_try="$ac_compiler -V >&5"
4635 case "(($ac_try" in
4636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637   *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640 $as_echo "$ac_try_echo") >&5
4641   (eval "$ac_compiler -V >&5") 2>&5
4642   ac_status=$?
4643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }
4645
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652
4653 int
4654 main ()
4655 {
4656
4657   ;
4658   return 0;
4659 }
4660 _ACEOF
4661 ac_clean_files_save=$ac_clean_files
4662 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4663 # Try to create an executable without -o first, disregard a.out.
4664 # It will help us diagnose broken compilers, and finding out an intuition
4665 # of exeext.
4666 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4667 $as_echo_n "checking for C compiler default output file name... " >&6; }
4668 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4669
4670 # The possible output files:
4671 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4672
4673 ac_rmfiles=
4674 for ac_file in $ac_files
4675 do
4676   case $ac_file in
4677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4678     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4679   esac
4680 done
4681 rm -f $ac_rmfiles
4682
4683 if { (ac_try="$ac_link_default"
4684 case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4689 $as_echo "$ac_try_echo") >&5
4690   (eval "$ac_link_default") 2>&5
4691   ac_status=$?
4692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); }; then
4694   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4695 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4696 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4697 # so that the user can short-circuit this test for compilers unknown to
4698 # Autoconf.
4699 for ac_file in $ac_files ''
4700 do
4701   test -f "$ac_file" || continue
4702   case $ac_file in
4703     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4704         ;;
4705     [ab].out )
4706         # We found the default executable, but exeext='' is most
4707         # certainly right.
4708         break;;
4709     *.* )
4710         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4711         then :; else
4712            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4713         fi
4714         # We set ac_cv_exeext here because the later test for it is not
4715         # safe: cross compilers may not add the suffix if given an `-o'
4716         # argument, so we may need to know it at that point already.
4717         # Even if this section looks crufty: it has the advantage of
4718         # actually working.
4719         break;;
4720     * )
4721         break;;
4722   esac
4723 done
4724 test "$ac_cv_exeext" = no && ac_cv_exeext=
4725
4726 else
4727   ac_file=''
4728 fi
4729
4730 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4731 $as_echo "$ac_file" >&6; }
4732 if test -z "$ac_file"; then
4733   $as_echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4738 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4739 See \`config.log' for more details." >&5
4740 $as_echo "$as_me: error: C compiler cannot create executables
4741 See \`config.log' for more details." >&2;}
4742    { (exit 77); exit 77; }; }; }
4743 fi
4744
4745 ac_exeext=$ac_cv_exeext
4746
4747 # Check that the compiler produces executables we can run.  If not, either
4748 # the compiler is broken, or we cross compile.
4749 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4750 $as_echo_n "checking whether the C compiler works... " >&6; }
4751 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4752 # If not cross compiling, check that we can run a simple program.
4753 if test "$cross_compiling" != yes; then
4754   if { ac_try='./$ac_file'
4755   { (case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761   (eval "$ac_try") 2>&5
4762   ac_status=$?
4763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }; }; then
4765     cross_compiling=no
4766   else
4767     if test "$cross_compiling" = maybe; then
4768         cross_compiling=yes
4769     else
4770         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4772 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4773 If you meant to cross compile, use \`--host'.
4774 See \`config.log' for more details." >&5
4775 $as_echo "$as_me: error: cannot run C compiled programs.
4776 If you meant to cross compile, use \`--host'.
4777 See \`config.log' for more details." >&2;}
4778    { (exit 1); exit 1; }; }; }
4779     fi
4780   fi
4781 fi
4782 { $as_echo "$as_me:$LINENO: result: yes" >&5
4783 $as_echo "yes" >&6; }
4784
4785 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4786 ac_clean_files=$ac_clean_files_save
4787 # Check that the compiler produces executables we can run.  If not, either
4788 # the compiler is broken, or we cross compile.
4789 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4790 $as_echo_n "checking whether we are cross compiling... " >&6; }
4791 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4792 $as_echo "$cross_compiling" >&6; }
4793
4794 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4795 $as_echo_n "checking for suffix of executables... " >&6; }
4796 if { (ac_try="$ac_link"
4797 case "(($ac_try" in
4798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799   *) ac_try_echo=$ac_try;;
4800 esac
4801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4802 $as_echo "$ac_try_echo") >&5
4803   (eval "$ac_link") 2>&5
4804   ac_status=$?
4805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; then
4807   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4808 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4809 # work properly (i.e., refer to `conftest.exe'), while it won't with
4810 # `rm'.
4811 for ac_file in conftest.exe conftest conftest.*; do
4812   test -f "$ac_file" || continue
4813   case $ac_file in
4814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4815     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4816           break;;
4817     * ) break;;
4818   esac
4819 done
4820 else
4821   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4823 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4824 See \`config.log' for more details." >&5
4825 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4826 See \`config.log' for more details." >&2;}
4827    { (exit 1); exit 1; }; }; }
4828 fi
4829
4830 rm -f conftest$ac_cv_exeext
4831 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4832 $as_echo "$ac_cv_exeext" >&6; }
4833
4834 rm -f conftest.$ac_ext
4835 EXEEXT=$ac_cv_exeext
4836 ac_exeext=$EXEEXT
4837 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4838 $as_echo_n "checking for suffix of object files... " >&6; }
4839 if test "${ac_cv_objext+set}" = set; then
4840   $as_echo_n "(cached) " >&6
4841 else
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
4849 int
4850 main ()
4851 {
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.o conftest.obj
4858 if { (ac_try="$ac_compile"
4859 case "(($ac_try" in
4860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861   *) ac_try_echo=$ac_try;;
4862 esac
4863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4864 $as_echo "$ac_try_echo") >&5
4865   (eval "$ac_compile") 2>&5
4866   ac_status=$?
4867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; then
4869   for ac_file in conftest.o conftest.obj conftest.*; do
4870   test -f "$ac_file" || continue;
4871   case $ac_file in
4872     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4873     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4874        break;;
4875   esac
4876 done
4877 else
4878   $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4883 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4884 See \`config.log' for more details." >&5
4885 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4886 See \`config.log' for more details." >&2;}
4887    { (exit 1); exit 1; }; }; }
4888 fi
4889
4890 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4891 fi
4892 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4893 $as_echo "$ac_cv_objext" >&6; }
4894 OBJEXT=$ac_cv_objext
4895 ac_objext=$OBJEXT
4896 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4897 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4898 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4899   $as_echo_n "(cached) " >&6
4900 else
4901   cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907
4908 int
4909 main ()
4910 {
4911 #ifndef __GNUC__
4912        choke me
4913 #endif
4914
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 rm -f conftest.$ac_objext
4920 if { (ac_try="$ac_compile"
4921 case "(($ac_try" in
4922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923   *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927   (eval "$ac_compile") 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } && {
4934          test -z "$ac_c_werror_flag" ||
4935          test ! -s conftest.err
4936        } && test -s conftest.$ac_objext; then
4937   ac_compiler_gnu=yes
4938 else
4939   $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942         ac_compiler_gnu=no
4943 fi
4944
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4947
4948 fi
4949 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4950 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4952   GCC=yes
4953 else
4954   GCC=
4955 fi
4956 ac_test_CFLAGS=${CFLAGS+set}
4957 ac_save_CFLAGS=$CFLAGS
4958 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4959 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4960 if test "${ac_cv_prog_cc_g+set}" = set; then
4961   $as_echo_n "(cached) " >&6
4962 else
4963   ac_save_c_werror_flag=$ac_c_werror_flag
4964    ac_c_werror_flag=yes
4965    ac_cv_prog_cc_g=no
4966    CFLAGS="-g"
4967    cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973
4974 int
4975 main ()
4976 {
4977
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (ac_try="$ac_compile"
4984 case "(($ac_try" in
4985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986   *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989 $as_echo "$ac_try_echo") >&5
4990   (eval "$ac_compile") 2>conftest.er1
4991   ac_status=$?
4992   grep -v '^ *+' conftest.er1 >conftest.err
4993   rm -f conftest.er1
4994   cat conftest.err >&5
4995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); } && {
4997          test -z "$ac_c_werror_flag" ||
4998          test ! -s conftest.err
4999        } && test -s conftest.$ac_objext; then
5000   ac_cv_prog_cc_g=yes
5001 else
5002   $as_echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005         CFLAGS=""
5006       cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012
5013 int
5014 main ()
5015 {
5016
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (ac_try="$ac_compile"
5023 case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5028 $as_echo "$ac_try_echo") >&5
5029   (eval "$ac_compile") 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } && {
5036          test -z "$ac_c_werror_flag" ||
5037          test ! -s conftest.err
5038        } && test -s conftest.$ac_objext; then
5039   :
5040 else
5041   $as_echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044         ac_c_werror_flag=$ac_save_c_werror_flag
5045          CFLAGS="-g"
5046          cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h.  */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h.  */
5052
5053 int
5054 main ()
5055 {
5056
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5063 case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5068 $as_echo "$ac_try_echo") >&5
5069   (eval "$ac_compile") 2>conftest.er1
5070   ac_status=$?
5071   grep -v '^ *+' conftest.er1 >conftest.err
5072   rm -f conftest.er1
5073   cat conftest.err >&5
5074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } && {
5076          test -z "$ac_c_werror_flag" ||
5077          test ! -s conftest.err
5078        } && test -s conftest.$ac_objext; then
5079   ac_cv_prog_cc_g=yes
5080 else
5081   $as_echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084
5085 fi
5086
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 fi
5089
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 fi
5092
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094    ac_c_werror_flag=$ac_save_c_werror_flag
5095 fi
5096 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5097 $as_echo "$ac_cv_prog_cc_g" >&6; }
5098 if test "$ac_test_CFLAGS" = set; then
5099   CFLAGS=$ac_save_CFLAGS
5100 elif test $ac_cv_prog_cc_g = yes; then
5101   if test "$GCC" = yes; then
5102     CFLAGS="-g -O2"
5103   else
5104     CFLAGS="-g"
5105   fi
5106 else
5107   if test "$GCC" = yes; then
5108     CFLAGS="-O2"
5109   else
5110     CFLAGS=
5111   fi
5112 fi
5113 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5115 if test "${ac_cv_prog_cc_c89+set}" = set; then
5116   $as_echo_n "(cached) " >&6
5117 else
5118   ac_cv_prog_cc_c89=no
5119 ac_save_CC=$CC
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 #include <stdarg.h>
5127 #include <stdio.h>
5128 #include <sys/types.h>
5129 #include <sys/stat.h>
5130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5131 struct buf { int x; };
5132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5133 static char *e (p, i)
5134      char **p;
5135      int i;
5136 {
5137   return p[i];
5138 }
5139 static char *f (char * (*g) (char **, int), char **p, ...)
5140 {
5141   char *s;
5142   va_list v;
5143   va_start (v,p);
5144   s = g (p, va_arg (v,int));
5145   va_end (v);
5146   return s;
5147 }
5148
5149 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5150    function prototypes and stuff, but not '\xHH' hex character constants.
5151    These don't provoke an error unfortunately, instead are silently treated
5152    as 'x'.  The following induces an error, until -std is added to get
5153    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5154    array size at least.  It's necessary to write '\x00'==0 to get something
5155    that's true only with -std.  */
5156 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5157
5158 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5159    inside strings and character constants.  */
5160 #define FOO(x) 'x'
5161 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5162
5163 int test (int i, double x);
5164 struct s1 {int (*f) (int a);};
5165 struct s2 {int (*f) (double a);};
5166 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5167 int argc;
5168 char **argv;
5169 int
5170 main ()
5171 {
5172 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5173   ;
5174   return 0;
5175 }
5176 _ACEOF
5177 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5178         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5179 do
5180   CC="$ac_save_CC $ac_arg"
5181   rm -f conftest.$ac_objext
5182 if { (ac_try="$ac_compile"
5183 case "(($ac_try" in
5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185   *) ac_try_echo=$ac_try;;
5186 esac
5187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5188 $as_echo "$ac_try_echo") >&5
5189   (eval "$ac_compile") 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } && {
5196          test -z "$ac_c_werror_flag" ||
5197          test ! -s conftest.err
5198        } && test -s conftest.$ac_objext; then
5199   ac_cv_prog_cc_c89=$ac_arg
5200 else
5201   $as_echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5203
5204
5205 fi
5206
5207 rm -f core conftest.err conftest.$ac_objext
5208   test "x$ac_cv_prog_cc_c89" != "xno" && break
5209 done
5210 rm -f conftest.$ac_ext
5211 CC=$ac_save_CC
5212
5213 fi
5214 # AC_CACHE_VAL
5215 case "x$ac_cv_prog_cc_c89" in
5216   x)
5217     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5218 $as_echo "none needed" >&6; } ;;
5219   xno)
5220     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5221 $as_echo "unsupported" >&6; } ;;
5222   *)
5223     CC="$CC $ac_cv_prog_cc_c89"
5224     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5225 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5226 esac
5227
5228
5229 ac_ext=c
5230 ac_cpp='$CPP $CPPFLAGS'
5231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234
5235 depcc="$CC"   am_compiler_list=
5236
5237 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5238 $as_echo_n "checking dependency style of $depcc... " >&6; }
5239 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5240   $as_echo_n "(cached) " >&6
5241 else
5242   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5243   # We make a subdir and do the tests there.  Otherwise we can end up
5244   # making bogus files that we don't know about and never remove.  For
5245   # instance it was reported that on HP-UX the gcc test will end up
5246   # making a dummy file named `D' -- because `-MD' means `put the output
5247   # in D'.
5248   mkdir conftest.dir
5249   # Copy depcomp to subdir because otherwise we won't find it if we're
5250   # using a relative directory.
5251   cp "$am_depcomp" conftest.dir
5252   cd conftest.dir
5253   # We will build objects and dependencies in a subdirectory because
5254   # it helps to detect inapplicable dependency modes.  For instance
5255   # both Tru64's cc and ICC support -MD to output dependencies as a
5256   # side effect of compilation, but ICC will put the dependencies in
5257   # the current directory while Tru64 will put them in the object
5258   # directory.
5259   mkdir sub
5260
5261   am_cv_CC_dependencies_compiler_type=none
5262   if test "$am_compiler_list" = ""; then
5263      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5264   fi
5265   am__universal=false
5266   case " $depcc " in #(
5267      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5268      esac
5269
5270   for depmode in $am_compiler_list; do
5271     # Setup a source with many dependencies, because some compilers
5272     # like to wrap large dependency lists on column 80 (with \), and
5273     # we should not choose a depcomp mode which is confused by this.
5274     #
5275     # We need to recreate these files for each test, as the compiler may
5276     # overwrite some of them when testing with obscure command lines.
5277     # This happens at least with the AIX C compiler.
5278     : > sub/conftest.c
5279     for i in 1 2 3 4 5 6; do
5280       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5281       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5282       # Solaris 8's {/usr,}/bin/sh.
5283       touch sub/conftst$i.h
5284     done
5285     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5286
5287     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5288     # mode.  It turns out that the SunPro C++ compiler does not properly
5289     # handle `-M -o', and we need to detect this.  Also, some Intel
5290     # versions had trouble with output in subdirs
5291     am__obj=sub/conftest.${OBJEXT-o}
5292     am__minus_obj="-o $am__obj"
5293     case $depmode in
5294     gcc)
5295       # This depmode causes a compiler race in universal mode.
5296       test "$am__universal" = false || continue
5297       ;;
5298     nosideeffect)
5299       # after this tag, mechanisms are not by side-effect, so they'll
5300       # only be used when explicitly requested
5301       if test "x$enable_dependency_tracking" = xyes; then
5302         continue
5303       else
5304         break
5305       fi
5306       ;;
5307     msvisualcpp | msvcmsys)
5308       # This compiler won't grok `-c -o', but also, the minuso test has
5309       # not run yet.  These depmodes are late enough in the game, and
5310       # so weak that their functioning should not be impacted.
5311       am__obj=conftest.${OBJEXT-o}
5312       am__minus_obj=
5313       ;;
5314     none) break ;;
5315     esac
5316     if depmode=$depmode \
5317        source=sub/conftest.c object=$am__obj \
5318        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5319        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5320          >/dev/null 2>conftest.err &&
5321        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5322        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5323        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5324        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5325       # icc doesn't choke on unknown options, it will just issue warnings
5326       # or remarks (even with -Werror).  So we grep stderr for any message
5327       # that says an option was ignored or not supported.
5328       # When given -MP, icc 7.0 and 7.1 complain thusly:
5329       #   icc: Command line warning: ignoring option '-M'; no argument required
5330       # The diagnosis changed in icc 8.0:
5331       #   icc: Command line remark: option '-MP' not supported
5332       if (grep 'ignoring option' conftest.err ||
5333           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5334         am_cv_CC_dependencies_compiler_type=$depmode
5335         break
5336       fi
5337     fi
5338   done
5339
5340   cd ..
5341   rm -rf conftest.dir
5342 else
5343   am_cv_CC_dependencies_compiler_type=none
5344 fi
5345
5346 fi
5347 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5348 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5349 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5350
5351  if
5352   test "x$enable_dependency_tracking" != xno \
5353   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5354   am__fastdepCC_TRUE=
5355   am__fastdepCC_FALSE='#'
5356 else
5357   am__fastdepCC_TRUE='#'
5358   am__fastdepCC_FALSE=
5359 fi
5360
5361
5362 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5363 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5364 if test "${ac_cv_path_GREP+set}" = set; then
5365   $as_echo_n "(cached) " >&6
5366 else
5367   if test -z "$GREP"; then
5368   ac_path_GREP_found=false
5369   # Loop through the user's path and test for each of PROGNAME-LIST
5370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5372 do
5373   IFS=$as_save_IFS
5374   test -z "$as_dir" && as_dir=.
5375   for ac_prog in grep ggrep; do
5376     for ac_exec_ext in '' $ac_executable_extensions; do
5377       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5378       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5379 # Check for GNU ac_path_GREP and select it if it is found.
5380   # Check for GNU $ac_path_GREP
5381 case `"$ac_path_GREP" --version 2>&1` in
5382 *GNU*)
5383   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5384 *)
5385   ac_count=0
5386   $as_echo_n 0123456789 >"conftest.in"
5387   while :
5388   do
5389     cat "conftest.in" "conftest.in" >"conftest.tmp"
5390     mv "conftest.tmp" "conftest.in"
5391     cp "conftest.in" "conftest.nl"
5392     $as_echo 'GREP' >> "conftest.nl"
5393     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5394     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5395     ac_count=`expr $ac_count + 1`
5396     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5397       # Best one so far, save it but keep looking for a better one
5398       ac_cv_path_GREP="$ac_path_GREP"
5399       ac_path_GREP_max=$ac_count
5400     fi
5401     # 10*(2^10) chars as input seems more than enough
5402     test $ac_count -gt 10 && break
5403   done
5404   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5405 esac
5406
5407       $ac_path_GREP_found && break 3
5408     done
5409   done
5410 done
5411 IFS=$as_save_IFS
5412   if test -z "$ac_cv_path_GREP"; then
5413     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5414 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5415    { (exit 1); exit 1; }; }
5416   fi
5417 else
5418   ac_cv_path_GREP=$GREP
5419 fi
5420
5421 fi
5422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5423 $as_echo "$ac_cv_path_GREP" >&6; }
5424  GREP="$ac_cv_path_GREP"
5425
5426
5427 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5428 $as_echo_n "checking for egrep... " >&6; }
5429 if test "${ac_cv_path_EGREP+set}" = set; then
5430   $as_echo_n "(cached) " >&6
5431 else
5432   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5433    then ac_cv_path_EGREP="$GREP -E"
5434    else
5435      if test -z "$EGREP"; then
5436   ac_path_EGREP_found=false
5437   # Loop through the user's path and test for each of PROGNAME-LIST
5438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443   for ac_prog in egrep; do
5444     for ac_exec_ext in '' $ac_executable_extensions; do
5445       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5446       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5447 # Check for GNU ac_path_EGREP and select it if it is found.
5448   # Check for GNU $ac_path_EGREP
5449 case `"$ac_path_EGREP" --version 2>&1` in
5450 *GNU*)
5451   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5452 *)
5453   ac_count=0
5454   $as_echo_n 0123456789 >"conftest.in"
5455   while :
5456   do
5457     cat "conftest.in" "conftest.in" >"conftest.tmp"
5458     mv "conftest.tmp" "conftest.in"
5459     cp "conftest.in" "conftest.nl"
5460     $as_echo 'EGREP' >> "conftest.nl"
5461     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5462     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5463     ac_count=`expr $ac_count + 1`
5464     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5465       # Best one so far, save it but keep looking for a better one
5466       ac_cv_path_EGREP="$ac_path_EGREP"
5467       ac_path_EGREP_max=$ac_count
5468     fi
5469     # 10*(2^10) chars as input seems more than enough
5470     test $ac_count -gt 10 && break
5471   done
5472   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5473 esac
5474
5475       $ac_path_EGREP_found && break 3
5476     done
5477   done
5478 done
5479 IFS=$as_save_IFS
5480   if test -z "$ac_cv_path_EGREP"; then
5481     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5482 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5483    { (exit 1); exit 1; }; }
5484   fi
5485 else
5486   ac_cv_path_EGREP=$EGREP
5487 fi
5488
5489    fi
5490 fi
5491 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5492 $as_echo "$ac_cv_path_EGREP" >&6; }
5493  EGREP="$ac_cv_path_EGREP"
5494
5495
5496 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5497 $as_echo_n "checking for fgrep... " >&6; }
5498 if test "${ac_cv_path_FGREP+set}" = set; then
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5502    then ac_cv_path_FGREP="$GREP -F"
5503    else
5504      if test -z "$FGREP"; then
5505   ac_path_FGREP_found=false
5506   # Loop through the user's path and test for each of PROGNAME-LIST
5507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512   for ac_prog in fgrep; do
5513     for ac_exec_ext in '' $ac_executable_extensions; do
5514       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5515       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5516 # Check for GNU ac_path_FGREP and select it if it is found.
5517   # Check for GNU $ac_path_FGREP
5518 case `"$ac_path_FGREP" --version 2>&1` in
5519 *GNU*)
5520   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5521 *)
5522   ac_count=0
5523   $as_echo_n 0123456789 >"conftest.in"
5524   while :
5525   do
5526     cat "conftest.in" "conftest.in" >"conftest.tmp"
5527     mv "conftest.tmp" "conftest.in"
5528     cp "conftest.in" "conftest.nl"
5529     $as_echo 'FGREP' >> "conftest.nl"
5530     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5531     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5532     ac_count=`expr $ac_count + 1`
5533     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5534       # Best one so far, save it but keep looking for a better one
5535       ac_cv_path_FGREP="$ac_path_FGREP"
5536       ac_path_FGREP_max=$ac_count
5537     fi
5538     # 10*(2^10) chars as input seems more than enough
5539     test $ac_count -gt 10 && break
5540   done
5541   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5542 esac
5543
5544       $ac_path_FGREP_found && break 3
5545     done
5546   done
5547 done
5548 IFS=$as_save_IFS
5549   if test -z "$ac_cv_path_FGREP"; then
5550     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5551 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5552    { (exit 1); exit 1; }; }
5553   fi
5554 else
5555   ac_cv_path_FGREP=$FGREP
5556 fi
5557
5558    fi
5559 fi
5560 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5561 $as_echo "$ac_cv_path_FGREP" >&6; }
5562  FGREP="$ac_cv_path_FGREP"
5563
5564
5565 test -z "$GREP" && GREP=grep
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 # Check whether --with-gnu-ld was given.
5586 if test "${with_gnu_ld+set}" = set; then
5587   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5588 else
5589   with_gnu_ld=no
5590 fi
5591
5592 ac_prog=ld
5593 if test "$GCC" = yes; then
5594   # Check if gcc -print-prog-name=ld gives a path.
5595   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5596 $as_echo_n "checking for ld used by $CC... " >&6; }
5597   case $host in
5598   *-*-mingw*)
5599     # gcc leaves a trailing carriage return which upsets mingw
5600     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5601   *)
5602     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5603   esac
5604   case $ac_prog in
5605     # Accept absolute paths.
5606     [\\/]* | ?:[\\/]*)
5607       re_direlt='/[^/][^/]*/\.\./'
5608       # Canonicalize the pathname of ld
5609       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5610       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5611         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5612       done
5613       test -z "$LD" && LD="$ac_prog"
5614       ;;
5615   "")
5616     # If it fails, then pretend we aren't using GCC.
5617     ac_prog=ld
5618     ;;
5619   *)
5620     # If it is relative, then search for the first ld in PATH.
5621     with_gnu_ld=unknown
5622     ;;
5623   esac
5624 elif test "$with_gnu_ld" = yes; then
5625   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5626 $as_echo_n "checking for GNU ld... " >&6; }
5627 else
5628   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5629 $as_echo_n "checking for non-GNU ld... " >&6; }
5630 fi
5631 if test "${lt_cv_path_LD+set}" = set; then
5632   $as_echo_n "(cached) " >&6
5633 else
5634   if test -z "$LD"; then
5635   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5636   for ac_dir in $PATH; do
5637     IFS="$lt_save_ifs"
5638     test -z "$ac_dir" && ac_dir=.
5639     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5640       lt_cv_path_LD="$ac_dir/$ac_prog"
5641       # Check to see if the program is GNU ld.  I'd rather use --version,
5642       # but apparently some variants of GNU ld only accept -v.
5643       # Break only if it was the GNU/non-GNU ld that we prefer.
5644       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5645       *GNU* | *'with BFD'*)
5646         test "$with_gnu_ld" != no && break
5647         ;;
5648       *)
5649         test "$with_gnu_ld" != yes && break
5650         ;;
5651       esac
5652     fi
5653   done
5654   IFS="$lt_save_ifs"
5655 else
5656   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5657 fi
5658 fi
5659
5660 LD="$lt_cv_path_LD"
5661 if test -n "$LD"; then
5662   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5663 $as_echo "$LD" >&6; }
5664 else
5665   { $as_echo "$as_me:$LINENO: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5669 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5670    { (exit 1); exit 1; }; }
5671 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5672 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5673 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5674   $as_echo_n "(cached) " >&6
5675 else
5676   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5677 case `$LD -v 2>&1 </dev/null` in
5678 *GNU* | *'with BFD'*)
5679   lt_cv_prog_gnu_ld=yes
5680   ;;
5681 *)
5682   lt_cv_prog_gnu_ld=no
5683   ;;
5684 esac
5685 fi
5686 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5687 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5688 with_gnu_ld=$lt_cv_prog_gnu_ld
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5699 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5700 if test "${lt_cv_path_NM+set}" = set; then
5701   $as_echo_n "(cached) " >&6
5702 else
5703   if test -n "$NM"; then
5704   # Let the user override the test.
5705   lt_cv_path_NM="$NM"
5706 else
5707   lt_nm_to_check="${ac_tool_prefix}nm"
5708   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5709     lt_nm_to_check="$lt_nm_to_check nm"
5710   fi
5711   for lt_tmp_nm in $lt_nm_to_check; do
5712     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5714       IFS="$lt_save_ifs"
5715       test -z "$ac_dir" && ac_dir=.
5716       tmp_nm="$ac_dir/$lt_tmp_nm"
5717       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5718         # Check to see if the nm accepts a BSD-compat flag.
5719         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5720         #   nm: unknown option "B" ignored
5721         # Tru64's nm complains that /dev/null is an invalid object file
5722         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5723         */dev/null* | *'Invalid file or object type'*)
5724           lt_cv_path_NM="$tmp_nm -B"
5725           break
5726           ;;
5727         *)
5728           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5729           */dev/null*)
5730             lt_cv_path_NM="$tmp_nm -p"
5731             break
5732             ;;
5733           *)
5734             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5735             continue # so that we can try to find one that supports BSD flags
5736             ;;
5737           esac
5738           ;;
5739         esac
5740       fi
5741     done
5742     IFS="$lt_save_ifs"
5743   done
5744   : ${lt_cv_path_NM=no}
5745 fi
5746 fi
5747 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5748 $as_echo "$lt_cv_path_NM" >&6; }
5749 if test "$lt_cv_path_NM" != "no"; then
5750   NM="$lt_cv_path_NM"
5751 else
5752   # Didn't find any BSD compatible name lister, look for dumpbin.
5753   if test -n "$ac_tool_prefix"; then
5754   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5755   do
5756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5761   $as_echo_n "(cached) " >&6
5762 else
5763   if test -n "$DUMPBIN"; then
5764   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771   for ac_exec_ext in '' $ac_executable_extensions; do
5772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5774     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 DUMPBIN=$ac_cv_prog_DUMPBIN
5784 if test -n "$DUMPBIN"; then
5785   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5786 $as_echo "$DUMPBIN" >&6; }
5787 else
5788   { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792
5793     test -n "$DUMPBIN" && break
5794   done
5795 fi
5796 if test -z "$DUMPBIN"; then
5797   ac_ct_DUMPBIN=$DUMPBIN
5798   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5799 do
5800   # Extract the first word of "$ac_prog", so it can be a program name with args.
5801 set dummy $ac_prog; ac_word=$2
5802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if test -n "$ac_ct_DUMPBIN"; then
5808   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815   for ac_exec_ext in '' $ac_executable_extensions; do
5816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5828 if test -n "$ac_ct_DUMPBIN"; then
5829   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5830 $as_echo "$ac_ct_DUMPBIN" >&6; }
5831 else
5832   { $as_echo "$as_me:$LINENO: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836
5837   test -n "$ac_ct_DUMPBIN" && break
5838 done
5839
5840   if test "x$ac_ct_DUMPBIN" = x; then
5841     DUMPBIN=":"
5842   else
5843     case $cross_compiling:$ac_tool_warned in
5844 yes:)
5845 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847 ac_tool_warned=yes ;;
5848 esac
5849     DUMPBIN=$ac_ct_DUMPBIN
5850   fi
5851 fi
5852
5853
5854   if test "$DUMPBIN" != ":"; then
5855     NM="$DUMPBIN"
5856   fi
5857 fi
5858 test -z "$NM" && NM=nm
5859
5860
5861
5862
5863
5864
5865 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5866 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5867 if test "${lt_cv_nm_interface+set}" = set; then
5868   $as_echo_n "(cached) " >&6
5869 else
5870   lt_cv_nm_interface="BSD nm"
5871   echo "int some_variable = 0;" > conftest.$ac_ext
5872   (eval echo "\"\$as_me:5872: $ac_compile\"" >&5)
5873   (eval "$ac_compile" 2>conftest.err)
5874   cat conftest.err >&5
5875   (eval echo "\"\$as_me:5875: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5876   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5877   cat conftest.err >&5
5878   (eval echo "\"\$as_me:5878: output\"" >&5)
5879   cat conftest.out >&5
5880   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5881     lt_cv_nm_interface="MS dumpbin"
5882   fi
5883   rm -f conftest*
5884 fi
5885 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5886 $as_echo "$lt_cv_nm_interface" >&6; }
5887
5888 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5889 $as_echo_n "checking whether ln -s works... " >&6; }
5890 LN_S=$as_ln_s
5891 if test "$LN_S" = "ln -s"; then
5892   { $as_echo "$as_me:$LINENO: result: yes" >&5
5893 $as_echo "yes" >&6; }
5894 else
5895   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5896 $as_echo "no, using $LN_S" >&6; }
5897 fi
5898
5899 # find the maximum length of command line arguments
5900 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5901 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5902 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5903   $as_echo_n "(cached) " >&6
5904 else
5905     i=0
5906   teststring="ABCD"
5907
5908   case $build_os in
5909   msdosdjgpp*)
5910     # On DJGPP, this test can blow up pretty badly due to problems in libc
5911     # (any single argument exceeding 2000 bytes causes a buffer overrun
5912     # during glob expansion).  Even if it were fixed, the result of this
5913     # check would be larger than it should be.
5914     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5915     ;;
5916
5917   gnu*)
5918     # Under GNU Hurd, this test is not required because there is
5919     # no limit to the length of command line arguments.
5920     # Libtool will interpret -1 as no limit whatsoever
5921     lt_cv_sys_max_cmd_len=-1;
5922     ;;
5923
5924   cygwin* | mingw* | cegcc*)
5925     # On Win9x/ME, this test blows up -- it succeeds, but takes
5926     # about 5 minutes as the teststring grows exponentially.
5927     # Worse, since 9x/ME are not pre-emptively multitasking,
5928     # you end up with a "frozen" computer, even though with patience
5929     # the test eventually succeeds (with a max line length of 256k).
5930     # Instead, let's just punt: use the minimum linelength reported by
5931     # all of the supported platforms: 8192 (on NT/2K/XP).
5932     lt_cv_sys_max_cmd_len=8192;
5933     ;;
5934
5935   amigaos*)
5936     # On AmigaOS with pdksh, this test takes hours, literally.
5937     # So we just punt and use a minimum line length of 8192.
5938     lt_cv_sys_max_cmd_len=8192;
5939     ;;
5940
5941   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5942     # This has been around since 386BSD, at least.  Likely further.
5943     if test -x /sbin/sysctl; then
5944       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5945     elif test -x /usr/sbin/sysctl; then
5946       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5947     else
5948       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5949     fi
5950     # And add a safety zone
5951     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5952     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5953     ;;
5954
5955   interix*)
5956     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5957     lt_cv_sys_max_cmd_len=196608
5958     ;;
5959
5960   osf*)
5961     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5962     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5963     # nice to cause kernel panics so lets avoid the loop below.
5964     # First set a reasonable default.
5965     lt_cv_sys_max_cmd_len=16384
5966     #
5967     if test -x /sbin/sysconfig; then
5968       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5969         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5970       esac
5971     fi
5972     ;;
5973   sco3.2v5*)
5974     lt_cv_sys_max_cmd_len=102400
5975     ;;
5976   sysv5* | sco5v6* | sysv4.2uw2*)
5977     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5978     if test -n "$kargmax"; then
5979       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5980     else
5981       lt_cv_sys_max_cmd_len=32768
5982     fi
5983     ;;
5984   *)
5985     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5986     if test -n "$lt_cv_sys_max_cmd_len"; then
5987       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5988       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5989     else
5990       # Make teststring a little bigger before we do anything with it.
5991       # a 1K string should be a reasonable start.
5992       for i in 1 2 3 4 5 6 7 8 ; do
5993         teststring=$teststring$teststring
5994       done
5995       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5996       # If test is not a shell built-in, we'll probably end up computing a
5997       # maximum length that is only half of the actual maximum length, but
5998       # we can't tell.
5999       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6000                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6001               test $i != 17 # 1/2 MB should be enough
6002       do
6003         i=`expr $i + 1`
6004         teststring=$teststring$teststring
6005       done
6006       # Only check the string length outside the loop.
6007       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6008       teststring=
6009       # Add a significant safety factor because C++ compilers can tack on
6010       # massive amounts of additional arguments before passing them to the
6011       # linker.  It appears as though 1/2 is a usable value.
6012       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6013     fi
6014     ;;
6015   esac
6016
6017 fi
6018
6019 if test -n $lt_cv_sys_max_cmd_len ; then
6020   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6021 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6022 else
6023   { $as_echo "$as_me:$LINENO: result: none" >&5
6024 $as_echo "none" >&6; }
6025 fi
6026 max_cmd_len=$lt_cv_sys_max_cmd_len
6027
6028
6029
6030
6031
6032
6033 : ${CP="cp -f"}
6034 : ${MV="mv -f"}
6035 : ${RM="rm -f"}
6036
6037 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6038 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6039 # Try some XSI features
6040 xsi_shell=no
6041 ( _lt_dummy="a/b/c"
6042   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6043       = c,a/b,, \
6044     && eval 'test $(( 1 + 1 )) -eq 2 \
6045     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6046   && xsi_shell=yes
6047 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6048 $as_echo "$xsi_shell" >&6; }
6049
6050
6051 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6052 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6053 lt_shell_append=no
6054 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6055     >/dev/null 2>&1 \
6056   && lt_shell_append=yes
6057 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6058 $as_echo "$lt_shell_append" >&6; }
6059
6060
6061 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6062   lt_unset=unset
6063 else
6064   lt_unset=false
6065 fi
6066
6067
6068
6069
6070
6071 # test EBCDIC or ASCII
6072 case `echo X|tr X '\101'` in
6073  A) # ASCII based system
6074     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6075   lt_SP2NL='tr \040 \012'
6076   lt_NL2SP='tr \015\012 \040\040'
6077   ;;
6078  *) # EBCDIC based system
6079   lt_SP2NL='tr \100 \n'
6080   lt_NL2SP='tr \r\n \100\100'
6081   ;;
6082 esac
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6093 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6094 if test "${lt_cv_ld_reload_flag+set}" = set; then
6095   $as_echo_n "(cached) " >&6
6096 else
6097   lt_cv_ld_reload_flag='-r'
6098 fi
6099 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6100 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6101 reload_flag=$lt_cv_ld_reload_flag
6102 case $reload_flag in
6103 "" | " "*) ;;
6104 *) reload_flag=" $reload_flag" ;;
6105 esac
6106 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6107 case $host_os in
6108   darwin*)
6109     if test "$GCC" = yes; then
6110       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6111     else
6112       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6113     fi
6114     ;;
6115 esac
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 if test -n "$ac_tool_prefix"; then
6126   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6127 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 $as_echo_n "checking for $ac_word... " >&6; }
6130 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6131   $as_echo_n "(cached) " >&6
6132 else
6133   if test -n "$OBJDUMP"; then
6134   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139   IFS=$as_save_IFS
6140   test -z "$as_dir" && as_dir=.
6141   for ac_exec_ext in '' $ac_executable_extensions; do
6142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6143     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6144     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145     break 2
6146   fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 OBJDUMP=$ac_cv_prog_OBJDUMP
6154 if test -n "$OBJDUMP"; then
6155   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6156 $as_echo "$OBJDUMP" >&6; }
6157 else
6158   { $as_echo "$as_me:$LINENO: result: no" >&5
6159 $as_echo "no" >&6; }
6160 fi
6161
6162
6163 fi
6164 if test -z "$ac_cv_prog_OBJDUMP"; then
6165   ac_ct_OBJDUMP=$OBJDUMP
6166   # Extract the first word of "objdump", so it can be a program name with args.
6167 set dummy objdump; ac_word=$2
6168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$ac_ct_OBJDUMP"; then
6174   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181   for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6184     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6194 if test -n "$ac_ct_OBJDUMP"; then
6195   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6196 $as_echo "$ac_ct_OBJDUMP" >&6; }
6197 else
6198   { $as_echo "$as_me:$LINENO: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202   if test "x$ac_ct_OBJDUMP" = x; then
6203     OBJDUMP="false"
6204   else
6205     case $cross_compiling:$ac_tool_warned in
6206 yes:)
6207 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209 ac_tool_warned=yes ;;
6210 esac
6211     OBJDUMP=$ac_ct_OBJDUMP
6212   fi
6213 else
6214   OBJDUMP="$ac_cv_prog_OBJDUMP"
6215 fi
6216
6217 test -z "$OBJDUMP" && OBJDUMP=objdump
6218
6219
6220
6221
6222
6223
6224 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6225 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6226 if test "${lt_cv_deplibs_check_method+set}" = set; then
6227   $as_echo_n "(cached) " >&6
6228 else
6229   lt_cv_file_magic_cmd='$MAGIC_CMD'
6230 lt_cv_file_magic_test_file=
6231 lt_cv_deplibs_check_method='unknown'
6232 # Need to set the preceding variable on all platforms that support
6233 # interlibrary dependencies.
6234 # 'none' -- dependencies not supported.
6235 # `unknown' -- same as none, but documents that we really don't know.
6236 # 'pass_all' -- all dependencies passed with no checks.
6237 # 'test_compile' -- check by making test program.
6238 # 'file_magic [[regex]]' -- check by looking for files in library path
6239 # which responds to the $file_magic_cmd with a given extended regex.
6240 # If you have `file' or equivalent on your system and you're not sure
6241 # whether `pass_all' will *always* work, you probably want this one.
6242
6243 case $host_os in
6244 aix[4-9]*)
6245   lt_cv_deplibs_check_method=pass_all
6246   ;;
6247
6248 beos*)
6249   lt_cv_deplibs_check_method=pass_all
6250   ;;
6251
6252 bsdi[45]*)
6253   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6254   lt_cv_file_magic_cmd='/usr/bin/file -L'
6255   lt_cv_file_magic_test_file=/shlib/libc.so
6256   ;;
6257
6258 cygwin*)
6259   # func_win32_libid is a shell function defined in ltmain.sh
6260   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6261   lt_cv_file_magic_cmd='func_win32_libid'
6262   ;;
6263
6264 mingw* | pw32*)
6265   # Base MSYS/MinGW do not provide the 'file' command needed by
6266   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6267   # unless we find 'file', for example because we are cross-compiling.
6268   if ( file / ) >/dev/null 2>&1; then
6269     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6270     lt_cv_file_magic_cmd='func_win32_libid'
6271   else
6272     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6273     lt_cv_file_magic_cmd='$OBJDUMP -f'
6274   fi
6275   ;;
6276
6277 cegcc)
6278   # use the weaker test based on 'objdump'. See mingw*.
6279   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6280   lt_cv_file_magic_cmd='$OBJDUMP -f'
6281   ;;
6282
6283 darwin* | rhapsody*)
6284   lt_cv_deplibs_check_method=pass_all
6285   ;;
6286
6287 freebsd* | dragonfly*)
6288   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6289     case $host_cpu in
6290     i*86 )
6291       # Not sure whether the presence of OpenBSD here was a mistake.
6292       # Let's accept both of them until this is cleared up.
6293       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6294       lt_cv_file_magic_cmd=/usr/bin/file
6295       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6296       ;;
6297     esac
6298   else
6299     lt_cv_deplibs_check_method=pass_all
6300   fi
6301   ;;
6302
6303 gnu*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306
6307 hpux10.20* | hpux11*)
6308   lt_cv_file_magic_cmd=/usr/bin/file
6309   case $host_cpu in
6310   ia64*)
6311     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6312     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6313     ;;
6314   hppa*64*)
6315     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]'
6316     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6317     ;;
6318   *)
6319     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6320     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6321     ;;
6322   esac
6323   ;;
6324
6325 interix[3-9]*)
6326   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6327   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6328   ;;
6329
6330 irix5* | irix6* | nonstopux*)
6331   case $LD in
6332   *-32|*"-32 ") libmagic=32-bit;;
6333   *-n32|*"-n32 ") libmagic=N32;;
6334   *-64|*"-64 ") libmagic=64-bit;;
6335   *) libmagic=never-match;;
6336   esac
6337   lt_cv_deplibs_check_method=pass_all
6338   ;;
6339
6340 # This must be Linux ELF.
6341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 netbsd*)
6346   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6347     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6348   else
6349     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6350   fi
6351   ;;
6352
6353 newos6*)
6354   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6355   lt_cv_file_magic_cmd=/usr/bin/file
6356   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6357   ;;
6358
6359 *nto* | *qnx*)
6360   lt_cv_deplibs_check_method=pass_all
6361   ;;
6362
6363 openbsd*)
6364   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6365     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6366   else
6367     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6368   fi
6369   ;;
6370
6371 osf3* | osf4* | osf5*)
6372   lt_cv_deplibs_check_method=pass_all
6373   ;;
6374
6375 rdos*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 solaris*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6384   lt_cv_deplibs_check_method=pass_all
6385   ;;
6386
6387 sysv4 | sysv4.3*)
6388   case $host_vendor in
6389   motorola)
6390     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]'
6391     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6392     ;;
6393   ncr)
6394     lt_cv_deplibs_check_method=pass_all
6395     ;;
6396   sequent)
6397     lt_cv_file_magic_cmd='/bin/file'
6398     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6399     ;;
6400   sni)
6401     lt_cv_file_magic_cmd='/bin/file'
6402     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6403     lt_cv_file_magic_test_file=/lib/libc.so
6404     ;;
6405   siemens)
6406     lt_cv_deplibs_check_method=pass_all
6407     ;;
6408   pc)
6409     lt_cv_deplibs_check_method=pass_all
6410     ;;
6411   esac
6412   ;;
6413
6414 tpf*)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417 esac
6418
6419 fi
6420 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6421 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6422 file_magic_cmd=$lt_cv_file_magic_cmd
6423 deplibs_check_method=$lt_cv_deplibs_check_method
6424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 if test -n "$ac_tool_prefix"; then
6438   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}ar; ac_word=$2
6440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_AR+set}" = set; then
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$AR"; then
6446   ac_cv_prog_AR="$AR" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453   for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_AR="${ac_tool_prefix}ar"
6456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 AR=$ac_cv_prog_AR
6466 if test -n "$AR"; then
6467   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6468 $as_echo "$AR" >&6; }
6469 else
6470   { $as_echo "$as_me:$LINENO: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_AR"; then
6477   ac_ct_AR=$AR
6478   # Extract the first word of "ar", so it can be a program name with args.
6479 set dummy ar; ac_word=$2
6480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6483   $as_echo_n "(cached) " >&6
6484 else
6485   if test -n "$ac_ct_AR"; then
6486   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493   for ac_exec_ext in '' $ac_executable_extensions; do
6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495     ac_cv_prog_ac_ct_AR="ar"
6496     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6506 if test -n "$ac_ct_AR"; then
6507   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6508 $as_echo "$ac_ct_AR" >&6; }
6509 else
6510   { $as_echo "$as_me:$LINENO: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514   if test "x$ac_ct_AR" = x; then
6515     AR="false"
6516   else
6517     case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     AR=$ac_ct_AR
6524   fi
6525 else
6526   AR="$ac_cv_prog_AR"
6527 fi
6528
6529 test -z "$AR" && AR=ar
6530 test -z "$AR_FLAGS" && AR_FLAGS=cru
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542 if test -n "$ac_tool_prefix"; then
6543   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}strip; ac_word=$2
6545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_STRIP+set}" = set; then
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$STRIP"; then
6551   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6561     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 STRIP=$ac_cv_prog_STRIP
6571 if test -n "$STRIP"; then
6572   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6573 $as_echo "$STRIP" >&6; }
6574 else
6575   { $as_echo "$as_me:$LINENO: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_STRIP"; then
6582   ac_ct_STRIP=$STRIP
6583   # Extract the first word of "strip", so it can be a program name with args.
6584 set dummy strip; ac_word=$2
6585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6588   $as_echo_n "(cached) " >&6
6589 else
6590   if test -n "$ac_ct_STRIP"; then
6591   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_prog_ac_ct_STRIP="strip"
6601     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6611 if test -n "$ac_ct_STRIP"; then
6612   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6613 $as_echo "$ac_ct_STRIP" >&6; }
6614 else
6615   { $as_echo "$as_me:$LINENO: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619   if test "x$ac_ct_STRIP" = x; then
6620     STRIP=":"
6621   else
6622     case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626 ac_tool_warned=yes ;;
6627 esac
6628     STRIP=$ac_ct_STRIP
6629   fi
6630 else
6631   STRIP="$ac_cv_prog_STRIP"
6632 fi
6633
6634 test -z "$STRIP" && STRIP=:
6635
6636
6637
6638
6639
6640
6641 if test -n "$ac_tool_prefix"; then
6642   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6643 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_RANLIB+set}" = set; then
6647   $as_echo_n "(cached) " >&6
6648 else
6649   if test -n "$RANLIB"; then
6650   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657   for ac_exec_ext in '' $ac_executable_extensions; do
6658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 fi
6668 fi
6669 RANLIB=$ac_cv_prog_RANLIB
6670 if test -n "$RANLIB"; then
6671   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6672 $as_echo "$RANLIB" >&6; }
6673 else
6674   { $as_echo "$as_me:$LINENO: result: no" >&5
6675 $as_echo "no" >&6; }
6676 fi
6677
6678
6679 fi
6680 if test -z "$ac_cv_prog_RANLIB"; then
6681   ac_ct_RANLIB=$RANLIB
6682   # Extract the first word of "ranlib", so it can be a program name with args.
6683 set dummy ranlib; ac_word=$2
6684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6687   $as_echo_n "(cached) " >&6
6688 else
6689   if test -n "$ac_ct_RANLIB"; then
6690   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695   IFS=$as_save_IFS
6696   test -z "$as_dir" && as_dir=.
6697   for ac_exec_ext in '' $ac_executable_extensions; do
6698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699     ac_cv_prog_ac_ct_RANLIB="ranlib"
6700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701     break 2
6702   fi
6703 done
6704 done
6705 IFS=$as_save_IFS
6706
6707 fi
6708 fi
6709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6710 if test -n "$ac_ct_RANLIB"; then
6711   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6712 $as_echo "$ac_ct_RANLIB" >&6; }
6713 else
6714   { $as_echo "$as_me:$LINENO: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717
6718   if test "x$ac_ct_RANLIB" = x; then
6719     RANLIB=":"
6720   else
6721     case $cross_compiling:$ac_tool_warned in
6722 yes:)
6723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned=yes ;;
6726 esac
6727     RANLIB=$ac_ct_RANLIB
6728   fi
6729 else
6730   RANLIB="$ac_cv_prog_RANLIB"
6731 fi
6732
6733 test -z "$RANLIB" && RANLIB=:
6734
6735
6736
6737
6738
6739
6740 # Determine commands to create old-style static archives.
6741 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6742 old_postinstall_cmds='chmod 644 $oldlib'
6743 old_postuninstall_cmds=
6744
6745 if test -n "$RANLIB"; then
6746   case $host_os in
6747   openbsd*)
6748     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6749     ;;
6750   *)
6751     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6752     ;;
6753   esac
6754   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6755 fi
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790 # If no C compiler was specified, use CC.
6791 LTCC=${LTCC-"$CC"}
6792
6793 # If no C compiler flags were specified, use CFLAGS.
6794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6795
6796 # Allow CC to be a program name with arguments.
6797 compiler=$CC
6798
6799
6800 # Check for command to grab the raw symbol name followed by C symbol from nm.
6801 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6802 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6803 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6804   $as_echo_n "(cached) " >&6
6805 else
6806
6807 # These are sane defaults that work on at least a few old systems.
6808 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6809
6810 # Character class describing NM global symbol codes.
6811 symcode='[BCDEGRST]'
6812
6813 # Regexp to match symbols that can be accessed directly from C.
6814 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6815
6816 # Define system-specific variables.
6817 case $host_os in
6818 aix*)
6819   symcode='[BCDT]'
6820   ;;
6821 cygwin* | mingw* | pw32* | cegcc*)
6822   symcode='[ABCDGISTW]'
6823   ;;
6824 hpux*)
6825   if test "$host_cpu" = ia64; then
6826     symcode='[ABCDEGRST]'
6827   fi
6828   ;;
6829 irix* | nonstopux*)
6830   symcode='[BCDEGRST]'
6831   ;;
6832 osf*)
6833   symcode='[BCDEGQRST]'
6834   ;;
6835 solaris*)
6836   symcode='[BDRT]'
6837   ;;
6838 sco3.2v5*)
6839   symcode='[DT]'
6840   ;;
6841 sysv4.2uw2*)
6842   symcode='[DT]'
6843   ;;
6844 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6845   symcode='[ABDT]'
6846   ;;
6847 sysv4)
6848   symcode='[DFNSTU]'
6849   ;;
6850 esac
6851
6852 # If we're using GNU nm, then use its standard symbol codes.
6853 case `$NM -V 2>&1` in
6854 *GNU* | *'with BFD'*)
6855   symcode='[ABCDGIRSTW]' ;;
6856 esac
6857
6858 # Transform an extracted symbol line into a proper C declaration.
6859 # Some systems (esp. on ia64) link data and code symbols differently,
6860 # so use this general approach.
6861 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6862
6863 # Transform an extracted symbol line into symbol name and symbol address
6864 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6865 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6866
6867 # Handle CRLF in mingw tool chain
6868 opt_cr=
6869 case $build_os in
6870 mingw*)
6871   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6872   ;;
6873 esac
6874
6875 # Try without a prefix underscore, then with it.
6876 for ac_symprfx in "" "_"; do
6877
6878   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6879   symxfrm="\\1 $ac_symprfx\\2 \\2"
6880
6881   # Write the raw and C identifiers.
6882   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6883     # Fake it for dumpbin and say T for any non-static function
6884     # and D for any global variable.
6885     # Also find C++ and __fastcall symbols from MSVC++,
6886     # which start with @ or ?.
6887     lt_cv_sys_global_symbol_pipe="$AWK '"\
6888 "     {last_section=section; section=\$ 3};"\
6889 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6890 "     \$ 0!~/External *\|/{next};"\
6891 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6892 "     {if(hide[section]) next};"\
6893 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6894 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6895 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6896 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6897 "     ' prfx=^$ac_symprfx"
6898   else
6899     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6900   fi
6901
6902   # Check to see that the pipe works correctly.
6903   pipe_works=no
6904
6905   rm -f conftest*
6906   cat > conftest.$ac_ext <<_LT_EOF
6907 #ifdef __cplusplus
6908 extern "C" {
6909 #endif
6910 char nm_test_var;
6911 void nm_test_func(void);
6912 void nm_test_func(void){}
6913 #ifdef __cplusplus
6914 }
6915 #endif
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6917 _LT_EOF
6918
6919   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920   (eval $ac_compile) 2>&5
6921   ac_status=$?
6922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; then
6924     # Now try to grab the symbols.
6925     nlist=conftest.nm
6926     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6928   ac_status=$?
6929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } && test -s "$nlist"; then
6931       # Try sorting and uniquifying the output.
6932       if sort "$nlist" | uniq > "$nlist"T; then
6933         mv -f "$nlist"T "$nlist"
6934       else
6935         rm -f "$nlist"T
6936       fi
6937
6938       # Make sure that we snagged all the symbols we need.
6939       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6940         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6941           cat <<_LT_EOF > conftest.$ac_ext
6942 #ifdef __cplusplus
6943 extern "C" {
6944 #endif
6945
6946 _LT_EOF
6947           # Now generate the symbol file.
6948           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6949
6950           cat <<_LT_EOF >> conftest.$ac_ext
6951
6952 /* The mapping between symbol names and symbols.  */
6953 const struct {
6954   const char *name;
6955   void       *address;
6956 }
6957 lt__PROGRAM__LTX_preloaded_symbols[] =
6958 {
6959   { "@PROGRAM@", (void *) 0 },
6960 _LT_EOF
6961           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6962           cat <<\_LT_EOF >> conftest.$ac_ext
6963   {0, (void *) 0}
6964 };
6965
6966 /* This works around a problem in FreeBSD linker */
6967 #ifdef FREEBSD_WORKAROUND
6968 static const void *lt_preloaded_setup() {
6969   return lt__PROGRAM__LTX_preloaded_symbols;
6970 }
6971 #endif
6972
6973 #ifdef __cplusplus
6974 }
6975 #endif
6976 _LT_EOF
6977           # Now try linking the two files.
6978           mv conftest.$ac_objext conftstm.$ac_objext
6979           lt_save_LIBS="$LIBS"
6980           lt_save_CFLAGS="$CFLAGS"
6981           LIBS="conftstm.$ac_objext"
6982           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6983           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984   (eval $ac_link) 2>&5
6985   ac_status=$?
6986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6988             pipe_works=yes
6989           fi
6990           LIBS="$lt_save_LIBS"
6991           CFLAGS="$lt_save_CFLAGS"
6992         else
6993           echo "cannot find nm_test_func in $nlist" >&5
6994         fi
6995       else
6996         echo "cannot find nm_test_var in $nlist" >&5
6997       fi
6998     else
6999       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7000     fi
7001   else
7002     echo "$progname: failed program was:" >&5
7003     cat conftest.$ac_ext >&5
7004   fi
7005   rm -rf conftest* conftst*
7006
7007   # Do not use the global_symbol_pipe unless it works.
7008   if test "$pipe_works" = yes; then
7009     break
7010   else
7011     lt_cv_sys_global_symbol_pipe=
7012   fi
7013 done
7014
7015 fi
7016
7017 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7018   lt_cv_sys_global_symbol_to_cdecl=
7019 fi
7020 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7021   { $as_echo "$as_me:$LINENO: result: failed" >&5
7022 $as_echo "failed" >&6; }
7023 else
7024   { $as_echo "$as_me:$LINENO: result: ok" >&5
7025 $as_echo "ok" >&6; }
7026 fi
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050 # Check whether --enable-libtool-lock was given.
7051 if test "${enable_libtool_lock+set}" = set; then
7052   enableval=$enable_libtool_lock;
7053 fi
7054
7055 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7056
7057 # Some flags need to be propagated to the compiler or linker for good
7058 # libtool support.
7059 case $host in
7060 ia64-*-hpux*)
7061   # Find out which ABI we are using.
7062   echo 'int i;' > conftest.$ac_ext
7063   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064   (eval $ac_compile) 2>&5
7065   ac_status=$?
7066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; then
7068     case `/usr/bin/file conftest.$ac_objext` in
7069       *ELF-32*)
7070         HPUX_IA64_MODE="32"
7071         ;;
7072       *ELF-64*)
7073         HPUX_IA64_MODE="64"
7074         ;;
7075     esac
7076   fi
7077   rm -rf conftest*
7078   ;;
7079 *-*-irix6*)
7080   # Find out which ABI we are using.
7081   echo '#line 7081 "configure"' > conftest.$ac_ext
7082   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083   (eval $ac_compile) 2>&5
7084   ac_status=$?
7085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; then
7087     if test "$lt_cv_prog_gnu_ld" = yes; then
7088       case `/usr/bin/file conftest.$ac_objext` in
7089         *32-bit*)
7090           LD="${LD-ld} -melf32bsmip"
7091           ;;
7092         *N32*)
7093           LD="${LD-ld} -melf32bmipn32"
7094           ;;
7095         *64-bit*)
7096           LD="${LD-ld} -melf64bmip"
7097         ;;
7098       esac
7099     else
7100       case `/usr/bin/file conftest.$ac_objext` in
7101         *32-bit*)
7102           LD="${LD-ld} -32"
7103           ;;
7104         *N32*)
7105           LD="${LD-ld} -n32"
7106           ;;
7107         *64-bit*)
7108           LD="${LD-ld} -64"
7109           ;;
7110       esac
7111     fi
7112   fi
7113   rm -rf conftest*
7114   ;;
7115
7116 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7117 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7118   # Find out which ABI we are using.
7119   echo 'int i;' > conftest.$ac_ext
7120   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121   (eval $ac_compile) 2>&5
7122   ac_status=$?
7123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; then
7125     case `/usr/bin/file conftest.o` in
7126       *32-bit*)
7127         case $host in
7128           x86_64-*kfreebsd*-gnu)
7129             LD="${LD-ld} -m elf_i386_fbsd"
7130             ;;
7131           x86_64-*linux*)
7132             LD="${LD-ld} -m elf_i386"
7133             ;;
7134           ppc64-*linux*|powerpc64-*linux*)
7135             LD="${LD-ld} -m elf32ppclinux"
7136             ;;
7137           s390x-*linux*)
7138             LD="${LD-ld} -m elf_s390"
7139             ;;
7140           sparc64-*linux*)
7141             LD="${LD-ld} -m elf32_sparc"
7142             ;;
7143         esac
7144         ;;
7145       *64-bit*)
7146         case $host in
7147           x86_64-*kfreebsd*-gnu)
7148             LD="${LD-ld} -m elf_x86_64_fbsd"
7149             ;;
7150           x86_64-*linux*)
7151             LD="${LD-ld} -m elf_x86_64"
7152             ;;
7153           ppc*-*linux*|powerpc*-*linux*)
7154             LD="${LD-ld} -m elf64ppc"
7155             ;;
7156           s390*-*linux*|s390*-*tpf*)
7157             LD="${LD-ld} -m elf64_s390"
7158             ;;
7159           sparc*-*linux*)
7160             LD="${LD-ld} -m elf64_sparc"
7161             ;;
7162         esac
7163         ;;
7164     esac
7165   fi
7166   rm -rf conftest*
7167   ;;
7168
7169 *-*-sco3.2v5*)
7170   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7171   SAVE_CFLAGS="$CFLAGS"
7172   CFLAGS="$CFLAGS -belf"
7173   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7174 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7175 if test "${lt_cv_cc_needs_belf+set}" = set; then
7176   $as_echo_n "(cached) " >&6
7177 else
7178   ac_ext=c
7179 ac_cpp='$CPP $CPPFLAGS'
7180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183
7184      cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190
7191 int
7192 main ()
7193 {
7194
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 rm -f conftest.$ac_objext conftest$ac_exeext
7200 if { (ac_try="$ac_link"
7201 case "(($ac_try" in
7202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203   *) ac_try_echo=$ac_try;;
7204 esac
7205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7206 $as_echo "$ac_try_echo") >&5
7207   (eval "$ac_link") 2>conftest.er1
7208   ac_status=$?
7209   grep -v '^ *+' conftest.er1 >conftest.err
7210   rm -f conftest.er1
7211   cat conftest.err >&5
7212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } && {
7214          test -z "$ac_c_werror_flag" ||
7215          test ! -s conftest.err
7216        } && test -s conftest$ac_exeext && {
7217          test "$cross_compiling" = yes ||
7218          $as_test_x conftest$ac_exeext
7219        }; then
7220   lt_cv_cc_needs_belf=yes
7221 else
7222   $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7224
7225         lt_cv_cc_needs_belf=no
7226 fi
7227
7228 rm -rf conftest.dSYM
7229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7230       conftest$ac_exeext conftest.$ac_ext
7231      ac_ext=c
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7236
7237 fi
7238 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7239 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7240   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7241     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7242     CFLAGS="$SAVE_CFLAGS"
7243   fi
7244   ;;
7245 sparc*-*solaris*)
7246   # Find out which ABI we are using.
7247   echo 'int i;' > conftest.$ac_ext
7248   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249   (eval $ac_compile) 2>&5
7250   ac_status=$?
7251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); }; then
7253     case `/usr/bin/file conftest.o` in
7254     *64-bit*)
7255       case $lt_cv_prog_gnu_ld in
7256       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7257       *)
7258         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7259           LD="${LD-ld} -64"
7260         fi
7261         ;;
7262       esac
7263       ;;
7264     esac
7265   fi
7266   rm -rf conftest*
7267   ;;
7268 esac
7269
7270 need_locks="$enable_libtool_lock"
7271
7272
7273   case $host_os in
7274     rhapsody* | darwin*)
7275     if test -n "$ac_tool_prefix"; then
7276   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7281   $as_echo_n "(cached) " >&6
7282 else
7283   if test -n "$DSYMUTIL"; then
7284   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291   for ac_exec_ext in '' $ac_executable_extensions; do
7292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7294     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7304 if test -n "$DSYMUTIL"; then
7305   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7306 $as_echo "$DSYMUTIL" >&6; }
7307 else
7308   { $as_echo "$as_me:$LINENO: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311
7312
7313 fi
7314 if test -z "$ac_cv_prog_DSYMUTIL"; then
7315   ac_ct_DSYMUTIL=$DSYMUTIL
7316   # Extract the first word of "dsymutil", so it can be a program name with args.
7317 set dummy dsymutil; ac_word=$2
7318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -n "$ac_ct_DSYMUTIL"; then
7324   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331   for ac_exec_ext in '' $ac_executable_extensions; do
7332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7334     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7344 if test -n "$ac_ct_DSYMUTIL"; then
7345   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7346 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7347 else
7348   { $as_echo "$as_me:$LINENO: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352   if test "x$ac_ct_DSYMUTIL" = x; then
7353     DSYMUTIL=":"
7354   else
7355     case $cross_compiling:$ac_tool_warned in
7356 yes:)
7357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359 ac_tool_warned=yes ;;
7360 esac
7361     DSYMUTIL=$ac_ct_DSYMUTIL
7362   fi
7363 else
7364   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7365 fi
7366
7367     if test -n "$ac_tool_prefix"; then
7368   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7373   $as_echo_n "(cached) " >&6
7374 else
7375   if test -n "$NMEDIT"; then
7376   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383   for ac_exec_ext in '' $ac_executable_extensions; do
7384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 NMEDIT=$ac_cv_prog_NMEDIT
7396 if test -n "$NMEDIT"; then
7397   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7398 $as_echo "$NMEDIT" >&6; }
7399 else
7400   { $as_echo "$as_me:$LINENO: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405 fi
7406 if test -z "$ac_cv_prog_NMEDIT"; then
7407   ac_ct_NMEDIT=$NMEDIT
7408   # Extract the first word of "nmedit", so it can be a program name with args.
7409 set dummy nmedit; ac_word=$2
7410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7413   $as_echo_n "(cached) " >&6
7414 else
7415   if test -n "$ac_ct_NMEDIT"; then
7416   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7426     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7436 if test -n "$ac_ct_NMEDIT"; then
7437   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7438 $as_echo "$ac_ct_NMEDIT" >&6; }
7439 else
7440   { $as_echo "$as_me:$LINENO: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444   if test "x$ac_ct_NMEDIT" = x; then
7445     NMEDIT=":"
7446   else
7447     case $cross_compiling:$ac_tool_warned in
7448 yes:)
7449 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451 ac_tool_warned=yes ;;
7452 esac
7453     NMEDIT=$ac_ct_NMEDIT
7454   fi
7455 else
7456   NMEDIT="$ac_cv_prog_NMEDIT"
7457 fi
7458
7459     if test -n "$ac_tool_prefix"; then
7460   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_prog_LIPO+set}" = set; then
7465   $as_echo_n "(cached) " >&6
7466 else
7467   if test -n "$LIPO"; then
7468   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475   for ac_exec_ext in '' $ac_executable_extensions; do
7476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7478     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482 done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 LIPO=$ac_cv_prog_LIPO
7488 if test -n "$LIPO"; then
7489   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7490 $as_echo "$LIPO" >&6; }
7491 else
7492   { $as_echo "$as_me:$LINENO: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497 fi
7498 if test -z "$ac_cv_prog_LIPO"; then
7499   ac_ct_LIPO=$LIPO
7500   # Extract the first word of "lipo", so it can be a program name with args.
7501 set dummy lipo; ac_word=$2
7502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7505   $as_echo_n "(cached) " >&6
7506 else
7507   if test -n "$ac_ct_LIPO"; then
7508   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_prog_ac_ct_LIPO="lipo"
7518     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7528 if test -n "$ac_ct_LIPO"; then
7529   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7530 $as_echo "$ac_ct_LIPO" >&6; }
7531 else
7532   { $as_echo "$as_me:$LINENO: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536   if test "x$ac_ct_LIPO" = x; then
7537     LIPO=":"
7538   else
7539     case $cross_compiling:$ac_tool_warned in
7540 yes:)
7541 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7544 esac
7545     LIPO=$ac_ct_LIPO
7546   fi
7547 else
7548   LIPO="$ac_cv_prog_LIPO"
7549 fi
7550
7551     if test -n "$ac_tool_prefix"; then
7552   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7553 set dummy ${ac_tool_prefix}otool; ac_word=$2
7554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if test "${ac_cv_prog_OTOOL+set}" = set; then
7557   $as_echo_n "(cached) " >&6
7558 else
7559   if test -n "$OTOOL"; then
7560   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567   for ac_exec_ext in '' $ac_executable_extensions; do
7568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574 done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 OTOOL=$ac_cv_prog_OTOOL
7580 if test -n "$OTOOL"; then
7581   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7582 $as_echo "$OTOOL" >&6; }
7583 else
7584   { $as_echo "$as_me:$LINENO: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588
7589 fi
7590 if test -z "$ac_cv_prog_OTOOL"; then
7591   ac_ct_OTOOL=$OTOOL
7592   # Extract the first word of "otool", so it can be a program name with args.
7593 set dummy otool; ac_word=$2
7594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7597   $as_echo_n "(cached) " >&6
7598 else
7599   if test -n "$ac_ct_OTOOL"; then
7600   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607   for ac_exec_ext in '' $ac_executable_extensions; do
7608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609     ac_cv_prog_ac_ct_OTOOL="otool"
7610     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614 done
7615 IFS=$as_save_IFS
7616
7617 fi
7618 fi
7619 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7620 if test -n "$ac_ct_OTOOL"; then
7621   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7622 $as_echo "$ac_ct_OTOOL" >&6; }
7623 else
7624   { $as_echo "$as_me:$LINENO: result: no" >&5
7625 $as_echo "no" >&6; }
7626 fi
7627
7628   if test "x$ac_ct_OTOOL" = x; then
7629     OTOOL=":"
7630   else
7631     case $cross_compiling:$ac_tool_warned in
7632 yes:)
7633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     OTOOL=$ac_ct_OTOOL
7638   fi
7639 else
7640   OTOOL="$ac_cv_prog_OTOOL"
7641 fi
7642
7643     if test -n "$ac_tool_prefix"; then
7644   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7649   $as_echo_n "(cached) " >&6
7650 else
7651   if test -n "$OTOOL64"; then
7652   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 OTOOL64=$ac_cv_prog_OTOOL64
7672 if test -n "$OTOOL64"; then
7673   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7674 $as_echo "$OTOOL64" >&6; }
7675 else
7676   { $as_echo "$as_me:$LINENO: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680
7681 fi
7682 if test -z "$ac_cv_prog_OTOOL64"; then
7683   ac_ct_OTOOL64=$OTOOL64
7684   # Extract the first word of "otool64", so it can be a program name with args.
7685 set dummy otool64; ac_word=$2
7686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7689   $as_echo_n "(cached) " >&6
7690 else
7691   if test -n "$ac_ct_OTOOL64"; then
7692   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699   for ac_exec_ext in '' $ac_executable_extensions; do
7700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701     ac_cv_prog_ac_ct_OTOOL64="otool64"
7702     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706 done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7712 if test -n "$ac_ct_OTOOL64"; then
7713   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7714 $as_echo "$ac_ct_OTOOL64" >&6; }
7715 else
7716   { $as_echo "$as_me:$LINENO: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720   if test "x$ac_ct_OTOOL64" = x; then
7721     OTOOL64=":"
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729     OTOOL64=$ac_ct_OTOOL64
7730   fi
7731 else
7732   OTOOL64="$ac_cv_prog_OTOOL64"
7733 fi
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7762 $as_echo_n "checking for -single_module linker flag... " >&6; }
7763 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7764   $as_echo_n "(cached) " >&6
7765 else
7766   lt_cv_apple_cc_single_mod=no
7767       if test -z "${LT_MULTI_MODULE}"; then
7768         # By default we will add the -single_module flag. You can override
7769         # by either setting the environment variable LT_MULTI_MODULE
7770         # non-empty at configure time, or by adding -multi_module to the
7771         # link flags.
7772         rm -rf libconftest.dylib*
7773         echo "int foo(void){return 1;}" > conftest.c
7774         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7775 -dynamiclib -Wl,-single_module conftest.c" >&5
7776         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7777           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7778         _lt_result=$?
7779         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7780           lt_cv_apple_cc_single_mod=yes
7781         else
7782           cat conftest.err >&5
7783         fi
7784         rm -rf libconftest.dylib*
7785         rm -f conftest.*
7786       fi
7787 fi
7788 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7789 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7790     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7791 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7792 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7793   $as_echo_n "(cached) " >&6
7794 else
7795   lt_cv_ld_exported_symbols_list=no
7796       save_LDFLAGS=$LDFLAGS
7797       echo "_main" > conftest.sym
7798       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7799       cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h.  */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h.  */
7805
7806 int
7807 main ()
7808 {
7809
7810   ;
7811   return 0;
7812 }
7813 _ACEOF
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (ac_try="$ac_link"
7816 case "(($ac_try" in
7817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818   *) ac_try_echo=$ac_try;;
7819 esac
7820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7821 $as_echo "$ac_try_echo") >&5
7822   (eval "$ac_link") 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } && {
7829          test -z "$ac_c_werror_flag" ||
7830          test ! -s conftest.err
7831        } && test -s conftest$ac_exeext && {
7832          test "$cross_compiling" = yes ||
7833          $as_test_x conftest$ac_exeext
7834        }; then
7835   lt_cv_ld_exported_symbols_list=yes
7836 else
7837   $as_echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840         lt_cv_ld_exported_symbols_list=no
7841 fi
7842
7843 rm -rf conftest.dSYM
7844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7845       conftest$ac_exeext conftest.$ac_ext
7846         LDFLAGS="$save_LDFLAGS"
7847
7848 fi
7849 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7850 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7851     case $host_os in
7852     rhapsody* | darwin1.[012])
7853       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7854     darwin1.*)
7855       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7856     darwin*) # darwin 5.x on
7857       # if running on 10.5 or later, the deployment target defaults
7858       # to the OS version, if on x86, and 10.4, the deployment
7859       # target defaults to 10.4. Don't you love it?
7860       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7861         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7862           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7863         10.[012]*)
7864           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7865         10.*)
7866           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7867       esac
7868     ;;
7869   esac
7870     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7871       _lt_dar_single_mod='$single_module'
7872     fi
7873     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7874       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7875     else
7876       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7877     fi
7878     if test "$DSYMUTIL" != ":"; then
7879       _lt_dsymutil='~$DSYMUTIL $lib || :'
7880     else
7881       _lt_dsymutil=
7882     fi
7883     ;;
7884   esac
7885
7886 ac_ext=c
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7892 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7893 # On Suns, sometimes $CPP names a directory.
7894 if test -n "$CPP" && test -d "$CPP"; then
7895   CPP=
7896 fi
7897 if test -z "$CPP"; then
7898   if test "${ac_cv_prog_CPP+set}" = set; then
7899   $as_echo_n "(cached) " >&6
7900 else
7901       # Double quotes because CPP needs to be expanded
7902     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7903     do
7904       ac_preproc_ok=false
7905 for ac_c_preproc_warn_flag in '' yes
7906 do
7907   # Use a header file that comes with gcc, so configuring glibc
7908   # with a fresh cross-compiler works.
7909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7910   # <limits.h> exists even on freestanding compilers.
7911   # On the NeXT, cc -E runs the code through the compiler's parser,
7912   # not just through cpp. "Syntax error" is here to catch this case.
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 #ifdef __STDC__
7920 # include <limits.h>
7921 #else
7922 # include <assert.h>
7923 #endif
7924                      Syntax error
7925 _ACEOF
7926 if { (ac_try="$ac_cpp conftest.$ac_ext"
7927 case "(($ac_try" in
7928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929   *) ac_try_echo=$ac_try;;
7930 esac
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7934   ac_status=$?
7935   grep -v '^ *+' conftest.er1 >conftest.err
7936   rm -f conftest.er1
7937   cat conftest.err >&5
7938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); } >/dev/null && {
7940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7941          test ! -s conftest.err
7942        }; then
7943   :
7944 else
7945   $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948   # Broken: fails on valid input.
7949 continue
7950 fi
7951
7952 rm -f conftest.err conftest.$ac_ext
7953
7954   # OK, works on sane cases.  Now check whether nonexistent headers
7955   # can be detected and how.
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962 #include <ac_nonexistent.h>
7963 _ACEOF
7964 if { (ac_try="$ac_cpp conftest.$ac_ext"
7965 case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7970 $as_echo "$ac_try_echo") >&5
7971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } >/dev/null && {
7978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7979          test ! -s conftest.err
7980        }; then
7981   # Broken: success on invalid input.
7982 continue
7983 else
7984   $as_echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987   # Passes both tests.
7988 ac_preproc_ok=:
7989 break
7990 fi
7991
7992 rm -f conftest.err conftest.$ac_ext
7993
7994 done
7995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7996 rm -f conftest.err conftest.$ac_ext
7997 if $ac_preproc_ok; then
7998   break
7999 fi
8000
8001     done
8002     ac_cv_prog_CPP=$CPP
8003
8004 fi
8005   CPP=$ac_cv_prog_CPP
8006 else
8007   ac_cv_prog_CPP=$CPP
8008 fi
8009 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
8010 $as_echo "$CPP" >&6; }
8011 ac_preproc_ok=false
8012 for ac_c_preproc_warn_flag in '' yes
8013 do
8014   # Use a header file that comes with gcc, so configuring glibc
8015   # with a fresh cross-compiler works.
8016   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8017   # <limits.h> exists even on freestanding compilers.
8018   # On the NeXT, cc -E runs the code through the compiler's parser,
8019   # not just through cpp. "Syntax error" is here to catch this case.
8020   cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 #ifdef __STDC__
8027 # include <limits.h>
8028 #else
8029 # include <assert.h>
8030 #endif
8031                      Syntax error
8032 _ACEOF
8033 if { (ac_try="$ac_cpp conftest.$ac_ext"
8034 case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8039 $as_echo "$ac_try_echo") >&5
8040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } >/dev/null && {
8047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8048          test ! -s conftest.err
8049        }; then
8050   :
8051 else
8052   $as_echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055   # Broken: fails on valid input.
8056 continue
8057 fi
8058
8059 rm -f conftest.err conftest.$ac_ext
8060
8061   # OK, works on sane cases.  Now check whether nonexistent headers
8062   # can be detected and how.
8063   cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069 #include <ac_nonexistent.h>
8070 _ACEOF
8071 if { (ac_try="$ac_cpp conftest.$ac_ext"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077 $as_echo "$ac_try_echo") >&5
8078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } >/dev/null && {
8085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8086          test ! -s conftest.err
8087        }; then
8088   # Broken: success on invalid input.
8089 continue
8090 else
8091   $as_echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094   # Passes both tests.
8095 ac_preproc_ok=:
8096 break
8097 fi
8098
8099 rm -f conftest.err conftest.$ac_ext
8100
8101 done
8102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8103 rm -f conftest.err conftest.$ac_ext
8104 if $ac_preproc_ok; then
8105   :
8106 else
8107   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8109 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8110 See \`config.log' for more details." >&5
8111 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8112 See \`config.log' for more details." >&2;}
8113    { (exit 1); exit 1; }; }; }
8114 fi
8115
8116 ac_ext=c
8117 ac_cpp='$CPP $CPPFLAGS'
8118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122
8123 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8124 $as_echo_n "checking for ANSI C header files... " >&6; }
8125 if test "${ac_cv_header_stdc+set}" = set; then
8126   $as_echo_n "(cached) " >&6
8127 else
8128   cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h.  */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h.  */
8134 #include <stdlib.h>
8135 #include <stdarg.h>
8136 #include <string.h>
8137 #include <float.h>
8138
8139 int
8140 main ()
8141 {
8142
8143   ;
8144   return 0;
8145 }
8146 _ACEOF
8147 rm -f conftest.$ac_objext
8148 if { (ac_try="$ac_compile"
8149 case "(($ac_try" in
8150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151   *) ac_try_echo=$ac_try;;
8152 esac
8153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8154 $as_echo "$ac_try_echo") >&5
8155   (eval "$ac_compile") 2>conftest.er1
8156   ac_status=$?
8157   grep -v '^ *+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } && {
8162          test -z "$ac_c_werror_flag" ||
8163          test ! -s conftest.err
8164        } && test -s conftest.$ac_objext; then
8165   ac_cv_header_stdc=yes
8166 else
8167   $as_echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170         ac_cv_header_stdc=no
8171 fi
8172
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174
8175 if test $ac_cv_header_stdc = yes; then
8176   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8177   cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183 #include <string.h>
8184
8185 _ACEOF
8186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8187   $EGREP "memchr" >/dev/null 2>&1; then
8188   :
8189 else
8190   ac_cv_header_stdc=no
8191 fi
8192 rm -f conftest*
8193
8194 fi
8195
8196 if test $ac_cv_header_stdc = yes; then
8197   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8198   cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h.  */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h.  */
8204 #include <stdlib.h>
8205
8206 _ACEOF
8207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8208   $EGREP "free" >/dev/null 2>&1; then
8209   :
8210 else
8211   ac_cv_header_stdc=no
8212 fi
8213 rm -f conftest*
8214
8215 fi
8216
8217 if test $ac_cv_header_stdc = yes; then
8218   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8219   if test "$cross_compiling" = yes; then
8220   :
8221 else
8222   cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h.  */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h.  */
8228 #include <ctype.h>
8229 #include <stdlib.h>
8230 #if ((' ' & 0x0FF) == 0x020)
8231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8233 #else
8234 # define ISLOWER(c) \
8235                    (('a' <= (c) && (c) <= 'i') \
8236                      || ('j' <= (c) && (c) <= 'r') \
8237                      || ('s' <= (c) && (c) <= 'z'))
8238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8239 #endif
8240
8241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8242 int
8243 main ()
8244 {
8245   int i;
8246   for (i = 0; i < 256; i++)
8247     if (XOR (islower (i), ISLOWER (i))
8248         || toupper (i) != TOUPPER (i))
8249       return 2;
8250   return 0;
8251 }
8252 _ACEOF
8253 rm -f conftest$ac_exeext
8254 if { (ac_try="$ac_link"
8255 case "(($ac_try" in
8256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257   *) ac_try_echo=$ac_try;;
8258 esac
8259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8260 $as_echo "$ac_try_echo") >&5
8261   (eval "$ac_link") 2>&5
8262   ac_status=$?
8263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8265   { (case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8270 $as_echo "$ac_try_echo") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   :
8276 else
8277   $as_echo "$as_me: program exited with status $ac_status" >&5
8278 $as_echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8280
8281 ( exit $ac_status )
8282 ac_cv_header_stdc=no
8283 fi
8284 rm -rf conftest.dSYM
8285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8286 fi
8287
8288
8289 fi
8290 fi
8291 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8292 $as_echo "$ac_cv_header_stdc" >&6; }
8293 if test $ac_cv_header_stdc = yes; then
8294
8295 cat >>confdefs.h <<\_ACEOF
8296 #define STDC_HEADERS 1
8297 _ACEOF
8298
8299 fi
8300
8301 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8312                   inttypes.h stdint.h unistd.h
8313 do
8314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8316 $as_echo_n "checking for $ac_header... " >&6; }
8317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8318   $as_echo_n "(cached) " >&6
8319 else
8320   cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326 $ac_includes_default
8327
8328 #include <$ac_header>
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338   (eval "$ac_compile") 2>conftest.er1
8339   ac_status=$?
8340   grep -v '^ *+' conftest.er1 >conftest.err
8341   rm -f conftest.er1
8342   cat conftest.err >&5
8343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } && {
8345          test -z "$ac_c_werror_flag" ||
8346          test ! -s conftest.err
8347        } && test -s conftest.$ac_objext; then
8348   eval "$as_ac_Header=yes"
8349 else
8350   $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353         eval "$as_ac_Header=no"
8354 fi
8355
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 fi
8358 ac_res=`eval 'as_val=${'$as_ac_Header'}
8359                  $as_echo "$as_val"'`
8360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8361 $as_echo "$ac_res" >&6; }
8362 as_val=`eval 'as_val=${'$as_ac_Header'}
8363                  $as_echo "$as_val"'`
8364    if test "x$as_val" = x""yes; then
8365   cat >>confdefs.h <<_ACEOF
8366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367 _ACEOF
8368
8369 fi
8370
8371 done
8372
8373
8374
8375 for ac_header in dlfcn.h
8376 do
8377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8379 $as_echo_n "checking for $ac_header... " >&6; }
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381   $as_echo_n "(cached) " >&6
8382 else
8383   cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389 $ac_includes_default
8390
8391 #include <$ac_header>
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8400 $as_echo "$ac_try_echo") >&5
8401   (eval "$ac_compile") 2>conftest.er1
8402   ac_status=$?
8403   grep -v '^ *+' conftest.er1 >conftest.err
8404   rm -f conftest.er1
8405   cat conftest.err >&5
8406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } && {
8408          test -z "$ac_c_werror_flag" ||
8409          test ! -s conftest.err
8410        } && test -s conftest.$ac_objext; then
8411   eval "$as_ac_Header=yes"
8412 else
8413   $as_echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416         eval "$as_ac_Header=no"
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 fi
8421 ac_res=`eval 'as_val=${'$as_ac_Header'}
8422                  $as_echo "$as_val"'`
8423                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8424 $as_echo "$ac_res" >&6; }
8425 as_val=`eval 'as_val=${'$as_ac_Header'}
8426                  $as_echo "$as_val"'`
8427    if test "x$as_val" = x""yes; then
8428   cat >>confdefs.h <<_ACEOF
8429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8430 _ACEOF
8431
8432 fi
8433
8434 done
8435
8436
8437
8438 # Set options
8439
8440
8441
8442         enable_dlopen=no
8443
8444
8445
8446             # Check whether --enable-shared was given.
8447 if test "${enable_shared+set}" = set; then
8448   enableval=$enable_shared; p=${PACKAGE-default}
8449     case $enableval in
8450     yes) enable_shared=yes ;;
8451     no) enable_shared=no ;;
8452     *)
8453       enable_shared=no
8454       # Look at the argument we got.  We use all the common list separators.
8455       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8456       for pkg in $enableval; do
8457         IFS="$lt_save_ifs"
8458         if test "X$pkg" = "X$p"; then
8459           enable_shared=yes
8460         fi
8461       done
8462       IFS="$lt_save_ifs"
8463       ;;
8464     esac
8465 else
8466   enable_shared=yes
8467 fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477   # Check whether --enable-static was given.
8478 if test "${enable_static+set}" = set; then
8479   enableval=$enable_static; p=${PACKAGE-default}
8480     case $enableval in
8481     yes) enable_static=yes ;;
8482     no) enable_static=no ;;
8483     *)
8484      enable_static=no
8485       # Look at the argument we got.  We use all the common list separators.
8486       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8487       for pkg in $enableval; do
8488         IFS="$lt_save_ifs"
8489         if test "X$pkg" = "X$p"; then
8490           enable_static=yes
8491         fi
8492       done
8493       IFS="$lt_save_ifs"
8494       ;;
8495     esac
8496 else
8497   enable_static=yes
8498 fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509 # Check whether --with-pic was given.
8510 if test "${with_pic+set}" = set; then
8511   withval=$with_pic; pic_mode="$withval"
8512 else
8513   pic_mode=default
8514 fi
8515
8516
8517 test -z "$pic_mode" && pic_mode=default
8518
8519
8520
8521
8522
8523
8524
8525   # Check whether --enable-fast-install was given.
8526 if test "${enable_fast_install+set}" = set; then
8527   enableval=$enable_fast_install; p=${PACKAGE-default}
8528     case $enableval in
8529     yes) enable_fast_install=yes ;;
8530     no) enable_fast_install=no ;;
8531     *)
8532       enable_fast_install=no
8533       # Look at the argument we got.  We use all the common list separators.
8534       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8535       for pkg in $enableval; do
8536         IFS="$lt_save_ifs"
8537         if test "X$pkg" = "X$p"; then
8538           enable_fast_install=yes
8539         fi
8540       done
8541       IFS="$lt_save_ifs"
8542       ;;
8543     esac
8544 else
8545   enable_fast_install=yes
8546 fi
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558 # This can be used to rebuild libtool when needed
8559 LIBTOOL_DEPS="$ltmain"
8560
8561 # Always use our own libtool.
8562 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588 test -z "$LN_S" && LN_S="ln -s"
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 if test -n "${ZSH_VERSION+set}" ; then
8604    setopt NO_GLOB_SUBST
8605 fi
8606
8607 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8608 $as_echo_n "checking for objdir... " >&6; }
8609 if test "${lt_cv_objdir+set}" = set; then
8610   $as_echo_n "(cached) " >&6
8611 else
8612   rm -f .libs 2>/dev/null
8613 mkdir .libs 2>/dev/null
8614 if test -d .libs; then
8615   lt_cv_objdir=.libs
8616 else
8617   # MS-DOS does not allow filenames that begin with a dot.
8618   lt_cv_objdir=_libs
8619 fi
8620 rmdir .libs 2>/dev/null
8621 fi
8622 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8623 $as_echo "$lt_cv_objdir" >&6; }
8624 objdir=$lt_cv_objdir
8625
8626
8627
8628
8629
8630 cat >>confdefs.h <<_ACEOF
8631 #define LT_OBJDIR "$lt_cv_objdir/"
8632 _ACEOF
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650 case $host_os in
8651 aix3*)
8652   # AIX sometimes has problems with the GCC collect2 program.  For some
8653   # reason, if we set the COLLECT_NAMES environment variable, the problems
8654   # vanish in a puff of smoke.
8655   if test "X${COLLECT_NAMES+set}" != Xset; then
8656     COLLECT_NAMES=
8657     export COLLECT_NAMES
8658   fi
8659   ;;
8660 esac
8661
8662 # Sed substitution that helps us do robust quoting.  It backslashifies
8663 # metacharacters that are still active within double-quoted strings.
8664 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8665
8666 # Same as above, but do not quote variable references.
8667 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8668
8669 # Sed substitution to delay expansion of an escaped shell variable in a
8670 # double_quote_subst'ed string.
8671 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8672
8673 # Sed substitution to delay expansion of an escaped single quote.
8674 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8675
8676 # Sed substitution to avoid accidental globbing in evaled expressions
8677 no_glob_subst='s/\*/\\\*/g'
8678
8679 # Global variables:
8680 ofile=libtool
8681 can_build_shared=yes
8682
8683 # All known linkers require a `.a' archive for static linking (except MSVC,
8684 # which needs '.lib').
8685 libext=a
8686
8687 with_gnu_ld="$lt_cv_prog_gnu_ld"
8688
8689 old_CC="$CC"
8690 old_CFLAGS="$CFLAGS"
8691
8692 # Set sane defaults for various variables
8693 test -z "$CC" && CC=cc
8694 test -z "$LTCC" && LTCC=$CC
8695 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8696 test -z "$LD" && LD=ld
8697 test -z "$ac_objext" && ac_objext=o
8698
8699 for cc_temp in $compiler""; do
8700   case $cc_temp in
8701     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8702     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8703     \-*) ;;
8704     *) break;;
8705   esac
8706 done
8707 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8708
8709
8710 # Only perform the check for file, if the check method requires it
8711 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8712 case $deplibs_check_method in
8713 file_magic*)
8714   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8715     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8716 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8717 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8718   $as_echo_n "(cached) " >&6
8719 else
8720   case $MAGIC_CMD in
8721 [\\/*] |  ?:[\\/]*)
8722   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8723   ;;
8724 *)
8725   lt_save_MAGIC_CMD="$MAGIC_CMD"
8726   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8727   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8728   for ac_dir in $ac_dummy; do
8729     IFS="$lt_save_ifs"
8730     test -z "$ac_dir" && ac_dir=.
8731     if test -f $ac_dir/${ac_tool_prefix}file; then
8732       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8733       if test -n "$file_magic_test_file"; then
8734         case $deplibs_check_method in
8735         "file_magic "*)
8736           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8737           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8738           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8739             $EGREP "$file_magic_regex" > /dev/null; then
8740             :
8741           else
8742             cat <<_LT_EOF 1>&2
8743
8744 *** Warning: the command libtool uses to detect shared libraries,
8745 *** $file_magic_cmd, produces output that libtool cannot recognize.
8746 *** The result is that libtool may fail to recognize shared libraries
8747 *** as such.  This will affect the creation of libtool libraries that
8748 *** depend on shared libraries, but programs linked with such libtool
8749 *** libraries will work regardless of this problem.  Nevertheless, you
8750 *** may want to report the problem to your system manager and/or to
8751 *** bug-libtool@gnu.org
8752
8753 _LT_EOF
8754           fi ;;
8755         esac
8756       fi
8757       break
8758     fi
8759   done
8760   IFS="$lt_save_ifs"
8761   MAGIC_CMD="$lt_save_MAGIC_CMD"
8762   ;;
8763 esac
8764 fi
8765
8766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8767 if test -n "$MAGIC_CMD"; then
8768   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8769 $as_echo "$MAGIC_CMD" >&6; }
8770 else
8771   { $as_echo "$as_me:$LINENO: result: no" >&5
8772 $as_echo "no" >&6; }
8773 fi
8774
8775
8776
8777
8778
8779 if test -z "$lt_cv_path_MAGIC_CMD"; then
8780   if test -n "$ac_tool_prefix"; then
8781     { $as_echo "$as_me:$LINENO: checking for file" >&5
8782 $as_echo_n "checking for file... " >&6; }
8783 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8784   $as_echo_n "(cached) " >&6
8785 else
8786   case $MAGIC_CMD in
8787 [\\/*] |  ?:[\\/]*)
8788   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8789   ;;
8790 *)
8791   lt_save_MAGIC_CMD="$MAGIC_CMD"
8792   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8793   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8794   for ac_dir in $ac_dummy; do
8795     IFS="$lt_save_ifs"
8796     test -z "$ac_dir" && ac_dir=.
8797     if test -f $ac_dir/file; then
8798       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8799       if test -n "$file_magic_test_file"; then
8800         case $deplibs_check_method in
8801         "file_magic "*)
8802           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8803           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8804           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8805             $EGREP "$file_magic_regex" > /dev/null; then
8806             :
8807           else
8808             cat <<_LT_EOF 1>&2
8809
8810 *** Warning: the command libtool uses to detect shared libraries,
8811 *** $file_magic_cmd, produces output that libtool cannot recognize.
8812 *** The result is that libtool may fail to recognize shared libraries
8813 *** as such.  This will affect the creation of libtool libraries that
8814 *** depend on shared libraries, but programs linked with such libtool
8815 *** libraries will work regardless of this problem.  Nevertheless, you
8816 *** may want to report the problem to your system manager and/or to
8817 *** bug-libtool@gnu.org
8818
8819 _LT_EOF
8820           fi ;;
8821         esac
8822       fi
8823       break
8824     fi
8825   done
8826   IFS="$lt_save_ifs"
8827   MAGIC_CMD="$lt_save_MAGIC_CMD"
8828   ;;
8829 esac
8830 fi
8831
8832 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8833 if test -n "$MAGIC_CMD"; then
8834   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8835 $as_echo "$MAGIC_CMD" >&6; }
8836 else
8837   { $as_echo "$as_me:$LINENO: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842   else
8843     MAGIC_CMD=:
8844   fi
8845 fi
8846
8847   fi
8848   ;;
8849 esac
8850
8851 # Use C for the default configuration in the libtool script
8852
8853 lt_save_CC="$CC"
8854 ac_ext=c
8855 ac_cpp='$CPP $CPPFLAGS'
8856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8859
8860
8861 # Source file extension for C test sources.
8862 ac_ext=c
8863
8864 # Object file extension for compiled C test sources.
8865 objext=o
8866 objext=$objext
8867
8868 # Code to be used in simple compile tests
8869 lt_simple_compile_test_code="int some_variable = 0;"
8870
8871 # Code to be used in simple link tests
8872 lt_simple_link_test_code='int main(){return(0);}'
8873
8874
8875
8876
8877
8878
8879
8880 # If no C compiler was specified, use CC.
8881 LTCC=${LTCC-"$CC"}
8882
8883 # If no C compiler flags were specified, use CFLAGS.
8884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8885
8886 # Allow CC to be a program name with arguments.
8887 compiler=$CC
8888
8889 # Save the default compiler, since it gets overwritten when the other
8890 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8891 compiler_DEFAULT=$CC
8892
8893 # save warnings/boilerplate of simple test code
8894 ac_outfile=conftest.$ac_objext
8895 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8896 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8897 _lt_compiler_boilerplate=`cat conftest.err`
8898 $RM conftest*
8899
8900 ac_outfile=conftest.$ac_objext
8901 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8903 _lt_linker_boilerplate=`cat conftest.err`
8904 $RM -r conftest*
8905
8906
8907 ## CAVEAT EMPTOR:
8908 ## There is no encapsulation within the following macros, do not change
8909 ## the running order or otherwise move them around unless you know exactly
8910 ## what you are doing...
8911 if test -n "$compiler"; then
8912
8913 lt_prog_compiler_no_builtin_flag=
8914
8915 if test "$GCC" = yes; then
8916   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8917
8918   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8919 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8920 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8921   $as_echo_n "(cached) " >&6
8922 else
8923   lt_cv_prog_compiler_rtti_exceptions=no
8924    ac_outfile=conftest.$ac_objext
8925    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8926    lt_compiler_flag="-fno-rtti -fno-exceptions"
8927    # Insert the option either (1) after the last *FLAGS variable, or
8928    # (2) before a word containing "conftest.", or (3) at the end.
8929    # Note that $ac_compile itself does not contain backslashes and begins
8930    # with a dollar sign (not a hyphen), so the echo should work correctly.
8931    # The option is referenced via a variable to avoid confusing sed.
8932    lt_compile=`echo "$ac_compile" | $SED \
8933    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935    -e 's:$: $lt_compiler_flag:'`
8936    (eval echo "\"\$as_me:8936: $lt_compile\"" >&5)
8937    (eval "$lt_compile" 2>conftest.err)
8938    ac_status=$?
8939    cat conftest.err >&5
8940    echo "$as_me:8940: \$? = $ac_status" >&5
8941    if (exit $ac_status) && test -s "$ac_outfile"; then
8942      # The compiler can only warn and ignore the option if not recognized
8943      # So say no if there are warnings other than the usual output.
8944      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8945      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8947        lt_cv_prog_compiler_rtti_exceptions=yes
8948      fi
8949    fi
8950    $RM conftest*
8951
8952 fi
8953 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8954 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8955
8956 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8957     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8958 else
8959     :
8960 fi
8961
8962 fi
8963
8964
8965
8966
8967
8968
8969   lt_prog_compiler_wl=
8970 lt_prog_compiler_pic=
8971 lt_prog_compiler_static=
8972
8973 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8974 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8975
8976   if test "$GCC" = yes; then
8977     lt_prog_compiler_wl='-Wl,'
8978     lt_prog_compiler_static='-static'
8979
8980     case $host_os in
8981       aix*)
8982       # All AIX code is PIC.
8983       if test "$host_cpu" = ia64; then
8984         # AIX 5 now supports IA64 processor
8985         lt_prog_compiler_static='-Bstatic'
8986       fi
8987       ;;
8988
8989     amigaos*)
8990       case $host_cpu in
8991       powerpc)
8992             # see comment about AmigaOS4 .so support
8993             lt_prog_compiler_pic='-fPIC'
8994         ;;
8995       m68k)
8996             # FIXME: we need at least 68020 code to build shared libraries, but
8997             # adding the `-m68020' flag to GCC prevents building anything better,
8998             # like `-m68040'.
8999             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9000         ;;
9001       esac
9002       ;;
9003
9004     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9005       # PIC is the default for these OSes.
9006       ;;
9007
9008     mingw* | cygwin* | pw32* | os2* | cegcc*)
9009       # This hack is so that the source file can tell whether it is being
9010       # built for inclusion in a dll (and should export symbols for example).
9011       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9012       # (--disable-auto-import) libraries
9013       lt_prog_compiler_pic='-DDLL_EXPORT'
9014       ;;
9015
9016     darwin* | rhapsody*)
9017       # PIC is the default on this platform
9018       # Common symbols not allowed in MH_DYLIB files
9019       lt_prog_compiler_pic='-fno-common'
9020       ;;
9021
9022     hpux*)
9023       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9024       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9025       # sets the default TLS model and affects inlining.
9026       case $host_cpu in
9027       hppa*64*)
9028         # +Z the default
9029         ;;
9030       *)
9031         lt_prog_compiler_pic='-fPIC'
9032         ;;
9033       esac
9034       ;;
9035
9036     interix[3-9]*)
9037       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9038       # Instead, we relocate shared libraries at runtime.
9039       ;;
9040
9041     msdosdjgpp*)
9042       # Just because we use GCC doesn't mean we suddenly get shared libraries
9043       # on systems that don't support them.
9044       lt_prog_compiler_can_build_shared=no
9045       enable_shared=no
9046       ;;
9047
9048     *nto* | *qnx*)
9049       # QNX uses GNU C++, but need to define -shared option too, otherwise
9050       # it will coredump.
9051       lt_prog_compiler_pic='-fPIC -shared'
9052       ;;
9053
9054     sysv4*MP*)
9055       if test -d /usr/nec; then
9056         lt_prog_compiler_pic=-Kconform_pic
9057       fi
9058       ;;
9059
9060     *)
9061       lt_prog_compiler_pic='-fPIC'
9062       ;;
9063     esac
9064   else
9065     # PORTME Check for flag to pass linker flags through the system compiler.
9066     case $host_os in
9067     aix*)
9068       lt_prog_compiler_wl='-Wl,'
9069       if test "$host_cpu" = ia64; then
9070         # AIX 5 now supports IA64 processor
9071         lt_prog_compiler_static='-Bstatic'
9072       else
9073         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9074       fi
9075       ;;
9076
9077     mingw* | cygwin* | pw32* | os2* | cegcc*)
9078       # This hack is so that the source file can tell whether it is being
9079       # built for inclusion in a dll (and should export symbols for example).
9080       lt_prog_compiler_pic='-DDLL_EXPORT'
9081       ;;
9082
9083     hpux9* | hpux10* | hpux11*)
9084       lt_prog_compiler_wl='-Wl,'
9085       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9086       # not for PA HP-UX.
9087       case $host_cpu in
9088       hppa*64*|ia64*)
9089         # +Z the default
9090         ;;
9091       *)
9092         lt_prog_compiler_pic='+Z'
9093         ;;
9094       esac
9095       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9096       lt_prog_compiler_static='${wl}-a ${wl}archive'
9097       ;;
9098
9099     irix5* | irix6* | nonstopux*)
9100       lt_prog_compiler_wl='-Wl,'
9101       # PIC (with -KPIC) is the default.
9102       lt_prog_compiler_static='-non_shared'
9103       ;;
9104
9105     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9106       case $cc_basename in
9107       # old Intel for x86_64 which still supported -KPIC.
9108       ecc*)
9109         lt_prog_compiler_wl='-Wl,'
9110         lt_prog_compiler_pic='-KPIC'
9111         lt_prog_compiler_static='-static'
9112         ;;
9113       # icc used to be incompatible with GCC.
9114       # ICC 10 doesn't accept -KPIC any more.
9115       icc* | ifort*)
9116         lt_prog_compiler_wl='-Wl,'
9117         lt_prog_compiler_pic='-fPIC'
9118         lt_prog_compiler_static='-static'
9119         ;;
9120       # Lahey Fortran 8.1.
9121       lf95*)
9122         lt_prog_compiler_wl='-Wl,'
9123         lt_prog_compiler_pic='--shared'
9124         lt_prog_compiler_static='--static'
9125         ;;
9126       pgcc* | pgf77* | pgf90* | pgf95*)
9127         # Portland Group compilers (*not* the Pentium gcc compiler,
9128         # which looks to be a dead project)
9129         lt_prog_compiler_wl='-Wl,'
9130         lt_prog_compiler_pic='-fpic'
9131         lt_prog_compiler_static='-Bstatic'
9132         ;;
9133       ccc*)
9134         lt_prog_compiler_wl='-Wl,'
9135         # All Alpha code is PIC.
9136         lt_prog_compiler_static='-non_shared'
9137         ;;
9138       xl*)
9139         # IBM XL C 8.0/Fortran 10.1 on PPC
9140         lt_prog_compiler_wl='-Wl,'
9141         lt_prog_compiler_pic='-qpic'
9142         lt_prog_compiler_static='-qstaticlink'
9143         ;;
9144       *)
9145         case `$CC -V 2>&1 | sed 5q` in
9146         *Sun\ C*)
9147           # Sun C 5.9
9148           lt_prog_compiler_pic='-KPIC'
9149           lt_prog_compiler_static='-Bstatic'
9150           lt_prog_compiler_wl='-Wl,'
9151           ;;
9152         *Sun\ F*)
9153           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9154           lt_prog_compiler_pic='-KPIC'
9155           lt_prog_compiler_static='-Bstatic'
9156           lt_prog_compiler_wl=''
9157           ;;
9158         esac
9159         ;;
9160       esac
9161       ;;
9162
9163     newsos6)
9164       lt_prog_compiler_pic='-KPIC'
9165       lt_prog_compiler_static='-Bstatic'
9166       ;;
9167
9168     *nto* | *qnx*)
9169       # QNX uses GNU C++, but need to define -shared option too, otherwise
9170       # it will coredump.
9171       lt_prog_compiler_pic='-fPIC -shared'
9172       ;;
9173
9174     osf3* | osf4* | osf5*)
9175       lt_prog_compiler_wl='-Wl,'
9176       # All OSF/1 code is PIC.
9177       lt_prog_compiler_static='-non_shared'
9178       ;;
9179
9180     rdos*)
9181       lt_prog_compiler_static='-non_shared'
9182       ;;
9183
9184     solaris*)
9185       lt_prog_compiler_pic='-KPIC'
9186       lt_prog_compiler_static='-Bstatic'
9187       case $cc_basename in
9188       f77* | f90* | f95*)
9189         lt_prog_compiler_wl='-Qoption ld ';;
9190       *)
9191         lt_prog_compiler_wl='-Wl,';;
9192       esac
9193       ;;
9194
9195     sunos4*)
9196       lt_prog_compiler_wl='-Qoption ld '
9197       lt_prog_compiler_pic='-PIC'
9198       lt_prog_compiler_static='-Bstatic'
9199       ;;
9200
9201     sysv4 | sysv4.2uw2* | sysv4.3*)
9202       lt_prog_compiler_wl='-Wl,'
9203       lt_prog_compiler_pic='-KPIC'
9204       lt_prog_compiler_static='-Bstatic'
9205       ;;
9206
9207     sysv4*MP*)
9208       if test -d /usr/nec ;then
9209         lt_prog_compiler_pic='-Kconform_pic'
9210         lt_prog_compiler_static='-Bstatic'
9211       fi
9212       ;;
9213
9214     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9215       lt_prog_compiler_wl='-Wl,'
9216       lt_prog_compiler_pic='-KPIC'
9217       lt_prog_compiler_static='-Bstatic'
9218       ;;
9219
9220     unicos*)
9221       lt_prog_compiler_wl='-Wl,'
9222       lt_prog_compiler_can_build_shared=no
9223       ;;
9224
9225     uts4*)
9226       lt_prog_compiler_pic='-pic'
9227       lt_prog_compiler_static='-Bstatic'
9228       ;;
9229
9230     *)
9231       lt_prog_compiler_can_build_shared=no
9232       ;;
9233     esac
9234   fi
9235
9236 case $host_os in
9237   # For platforms which do not support PIC, -DPIC is meaningless:
9238   *djgpp*)
9239     lt_prog_compiler_pic=
9240     ;;
9241   *)
9242     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9243     ;;
9244 esac
9245 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9246 $as_echo "$lt_prog_compiler_pic" >&6; }
9247
9248
9249
9250
9251
9252
9253 #
9254 # Check to make sure the PIC flag actually works.
9255 #
9256 if test -n "$lt_prog_compiler_pic"; then
9257   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9258 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9259 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9260   $as_echo_n "(cached) " >&6
9261 else
9262   lt_cv_prog_compiler_pic_works=no
9263    ac_outfile=conftest.$ac_objext
9264    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9265    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9266    # Insert the option either (1) after the last *FLAGS variable, or
9267    # (2) before a word containing "conftest.", or (3) at the end.
9268    # Note that $ac_compile itself does not contain backslashes and begins
9269    # with a dollar sign (not a hyphen), so the echo should work correctly.
9270    # The option is referenced via a variable to avoid confusing sed.
9271    lt_compile=`echo "$ac_compile" | $SED \
9272    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9273    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9274    -e 's:$: $lt_compiler_flag:'`
9275    (eval echo "\"\$as_me:9275: $lt_compile\"" >&5)
9276    (eval "$lt_compile" 2>conftest.err)
9277    ac_status=$?
9278    cat conftest.err >&5
9279    echo "$as_me:9279: \$? = $ac_status" >&5
9280    if (exit $ac_status) && test -s "$ac_outfile"; then
9281      # The compiler can only warn and ignore the option if not recognized
9282      # So say no if there are warnings other than the usual output.
9283      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9284      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9285      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9286        lt_cv_prog_compiler_pic_works=yes
9287      fi
9288    fi
9289    $RM conftest*
9290
9291 fi
9292 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9293 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9294
9295 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9296     case $lt_prog_compiler_pic in
9297      "" | " "*) ;;
9298      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9299      esac
9300 else
9301     lt_prog_compiler_pic=
9302      lt_prog_compiler_can_build_shared=no
9303 fi
9304
9305 fi
9306
9307
9308
9309
9310
9311
9312 #
9313 # Check to make sure the static flag actually works.
9314 #
9315 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9316 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9317 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9318 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9319   $as_echo_n "(cached) " >&6
9320 else
9321   lt_cv_prog_compiler_static_works=no
9322    save_LDFLAGS="$LDFLAGS"
9323    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9324    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9325    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9326      # The linker can only warn and ignore the option if not recognized
9327      # So say no if there are warnings
9328      if test -s conftest.err; then
9329        # Append any errors to the config.log.
9330        cat conftest.err 1>&5
9331        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9332        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9333        if diff conftest.exp conftest.er2 >/dev/null; then
9334          lt_cv_prog_compiler_static_works=yes
9335        fi
9336      else
9337        lt_cv_prog_compiler_static_works=yes
9338      fi
9339    fi
9340    $RM -r conftest*
9341    LDFLAGS="$save_LDFLAGS"
9342
9343 fi
9344 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9345 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9346
9347 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9348     :
9349 else
9350     lt_prog_compiler_static=
9351 fi
9352
9353
9354
9355
9356
9357
9358
9359   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9361 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9362   $as_echo_n "(cached) " >&6
9363 else
9364   lt_cv_prog_compiler_c_o=no
9365    $RM -r conftest 2>/dev/null
9366    mkdir conftest
9367    cd conftest
9368    mkdir out
9369    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370
9371    lt_compiler_flag="-o out/conftest2.$ac_objext"
9372    # Insert the option either (1) after the last *FLAGS variable, or
9373    # (2) before a word containing "conftest.", or (3) at the end.
9374    # Note that $ac_compile itself does not contain backslashes and begins
9375    # with a dollar sign (not a hyphen), so the echo should work correctly.
9376    lt_compile=`echo "$ac_compile" | $SED \
9377    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9378    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9379    -e 's:$: $lt_compiler_flag:'`
9380    (eval echo "\"\$as_me:9380: $lt_compile\"" >&5)
9381    (eval "$lt_compile" 2>out/conftest.err)
9382    ac_status=$?
9383    cat out/conftest.err >&5
9384    echo "$as_me:9384: \$? = $ac_status" >&5
9385    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9386    then
9387      # The compiler can only warn and ignore the option if not recognized
9388      # So say no if there are warnings
9389      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9390      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9391      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9392        lt_cv_prog_compiler_c_o=yes
9393      fi
9394    fi
9395    chmod u+w . 2>&5
9396    $RM conftest*
9397    # SGI C++ compiler will create directory out/ii_files/ for
9398    # template instantiation
9399    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9400    $RM out/* && rmdir out
9401    cd ..
9402    $RM -r conftest
9403    $RM conftest*
9404
9405 fi
9406 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9407 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9408
9409
9410
9411
9412
9413
9414   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9415 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9416 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9417   $as_echo_n "(cached) " >&6
9418 else
9419   lt_cv_prog_compiler_c_o=no
9420    $RM -r conftest 2>/dev/null
9421    mkdir conftest
9422    cd conftest
9423    mkdir out
9424    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425
9426    lt_compiler_flag="-o out/conftest2.$ac_objext"
9427    # Insert the option either (1) after the last *FLAGS variable, or
9428    # (2) before a word containing "conftest.", or (3) at the end.
9429    # Note that $ac_compile itself does not contain backslashes and begins
9430    # with a dollar sign (not a hyphen), so the echo should work correctly.
9431    lt_compile=`echo "$ac_compile" | $SED \
9432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434    -e 's:$: $lt_compiler_flag:'`
9435    (eval echo "\"\$as_me:9435: $lt_compile\"" >&5)
9436    (eval "$lt_compile" 2>out/conftest.err)
9437    ac_status=$?
9438    cat out/conftest.err >&5
9439    echo "$as_me:9439: \$? = $ac_status" >&5
9440    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9441    then
9442      # The compiler can only warn and ignore the option if not recognized
9443      # So say no if there are warnings
9444      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9445      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9446      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9447        lt_cv_prog_compiler_c_o=yes
9448      fi
9449    fi
9450    chmod u+w . 2>&5
9451    $RM conftest*
9452    # SGI C++ compiler will create directory out/ii_files/ for
9453    # template instantiation
9454    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9455    $RM out/* && rmdir out
9456    cd ..
9457    $RM -r conftest
9458    $RM conftest*
9459
9460 fi
9461 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9462 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9463
9464
9465
9466
9467 hard_links="nottested"
9468 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9469   # do not overwrite the value of need_locks provided by the user
9470   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9471 $as_echo_n "checking if we can lock with hard links... " >&6; }
9472   hard_links=yes
9473   $RM conftest*
9474   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9475   touch conftest.a
9476   ln conftest.a conftest.b 2>&5 || hard_links=no
9477   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9478   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9479 $as_echo "$hard_links" >&6; }
9480   if test "$hard_links" = no; then
9481     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9482 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9483     need_locks=warn
9484   fi
9485 else
9486   need_locks=no
9487 fi
9488
9489
9490
9491
9492
9493
9494   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9495 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9496
9497   runpath_var=
9498   allow_undefined_flag=
9499   always_export_symbols=no
9500   archive_cmds=
9501   archive_expsym_cmds=
9502   compiler_needs_object=no
9503   enable_shared_with_static_runtimes=no
9504   export_dynamic_flag_spec=
9505   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9506   hardcode_automatic=no
9507   hardcode_direct=no
9508   hardcode_direct_absolute=no
9509   hardcode_libdir_flag_spec=
9510   hardcode_libdir_flag_spec_ld=
9511   hardcode_libdir_separator=
9512   hardcode_minus_L=no
9513   hardcode_shlibpath_var=unsupported
9514   inherit_rpath=no
9515   link_all_deplibs=unknown
9516   module_cmds=
9517   module_expsym_cmds=
9518   old_archive_from_new_cmds=
9519   old_archive_from_expsyms_cmds=
9520   thread_safe_flag_spec=
9521   whole_archive_flag_spec=
9522   # include_expsyms should be a list of space-separated symbols to be *always*
9523   # included in the symbol list
9524   include_expsyms=
9525   # exclude_expsyms can be an extended regexp of symbols to exclude
9526   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9527   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9528   # as well as any symbol that contains `d'.
9529   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9530   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9531   # platforms (ab)use it in PIC code, but their linkers get confused if
9532   # the symbol is explicitly referenced.  Since portable code cannot
9533   # rely on this symbol name, it's probably fine to never include it in
9534   # preloaded symbol tables.
9535   # Exclude shared library initialization/finalization symbols.
9536   extract_expsyms_cmds=
9537
9538   case $host_os in
9539   cygwin* | mingw* | pw32* | cegcc*)
9540     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9541     # When not using gcc, we currently assume that we are using
9542     # Microsoft Visual C++.
9543     if test "$GCC" != yes; then
9544       with_gnu_ld=no
9545     fi
9546     ;;
9547   interix*)
9548     # we just hope/assume this is gcc and not c89 (= MSVC++)
9549     with_gnu_ld=yes
9550     ;;
9551   openbsd*)
9552     with_gnu_ld=no
9553     ;;
9554   esac
9555
9556   ld_shlibs=yes
9557   if test "$with_gnu_ld" = yes; then
9558     # If archive_cmds runs LD, not CC, wlarc should be empty
9559     wlarc='${wl}'
9560
9561     # Set some defaults for GNU ld with shared library support. These
9562     # are reset later if shared libraries are not supported. Putting them
9563     # here allows them to be overridden if necessary.
9564     runpath_var=LD_RUN_PATH
9565     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566     export_dynamic_flag_spec='${wl}--export-dynamic'
9567     # ancient GNU ld didn't support --whole-archive et. al.
9568     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9569       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9570     else
9571       whole_archive_flag_spec=
9572     fi
9573     supports_anon_versioning=no
9574     case `$LD -v 2>&1` in
9575       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9576       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9577       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9578       *\ 2.11.*) ;; # other 2.11 versions
9579       *) supports_anon_versioning=yes ;;
9580     esac
9581
9582     # See if GNU ld supports shared libraries.
9583     case $host_os in
9584     aix[3-9]*)
9585       # On AIX/PPC, the GNU linker is very broken
9586       if test "$host_cpu" != ia64; then
9587         ld_shlibs=no
9588         cat <<_LT_EOF 1>&2
9589
9590 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9591 *** to be unable to reliably create shared libraries on AIX.
9592 *** Therefore, libtool is disabling shared libraries support.  If you
9593 *** really care for shared libraries, you may want to modify your PATH
9594 *** so that a non-GNU linker is found, and then restart.
9595
9596 _LT_EOF
9597       fi
9598       ;;
9599
9600     amigaos*)
9601       case $host_cpu in
9602       powerpc)
9603             # see comment about AmigaOS4 .so support
9604             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9605             archive_expsym_cmds=''
9606         ;;
9607       m68k)
9608             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)'
9609             hardcode_libdir_flag_spec='-L$libdir'
9610             hardcode_minus_L=yes
9611         ;;
9612       esac
9613       ;;
9614
9615     beos*)
9616       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9617         allow_undefined_flag=unsupported
9618         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9619         # support --undefined.  This deserves some investigation.  FIXME
9620         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621       else
9622         ld_shlibs=no
9623       fi
9624       ;;
9625
9626     cygwin* | mingw* | pw32* | cegcc*)
9627       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9628       # as there is no search path for DLLs.
9629       hardcode_libdir_flag_spec='-L$libdir'
9630       allow_undefined_flag=unsupported
9631       always_export_symbols=no
9632       enable_shared_with_static_runtimes=yes
9633       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9634
9635       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9636         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9637         # If the export-symbols file already is a .def file (1st line
9638         # is EXPORTS), use it as is; otherwise, prepend...
9639         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9640           cp $export_symbols $output_objdir/$soname.def;
9641         else
9642           echo EXPORTS > $output_objdir/$soname.def;
9643           cat $export_symbols >> $output_objdir/$soname.def;
9644         fi~
9645         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9646       else
9647         ld_shlibs=no
9648       fi
9649       ;;
9650
9651     interix[3-9]*)
9652       hardcode_direct=no
9653       hardcode_shlibpath_var=no
9654       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9655       export_dynamic_flag_spec='${wl}-E'
9656       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9657       # Instead, shared libraries are loaded at an image base (0x10000000 by
9658       # default) and relocated if they conflict, which is a slow very memory
9659       # consuming and fragmenting process.  To avoid this, we pick a random,
9660       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9661       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9662       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9663       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'
9664       ;;
9665
9666     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9667       tmp_diet=no
9668       if test "$host_os" = linux-dietlibc; then
9669         case $cc_basename in
9670           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9671         esac
9672       fi
9673       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9674          && test "$tmp_diet" = no
9675       then
9676         tmp_addflag=
9677         tmp_sharedflag='-shared'
9678         case $cc_basename,$host_cpu in
9679         pgcc*)                          # Portland Group C compiler
9680           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'
9681           tmp_addflag=' $pic_flag'
9682           ;;
9683         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9684           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'
9685           tmp_addflag=' $pic_flag -Mnomain' ;;
9686         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9687           tmp_addflag=' -i_dynamic' ;;
9688         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9689           tmp_addflag=' -i_dynamic -nofor_main' ;;
9690         ifc* | ifort*)                  # Intel Fortran compiler
9691           tmp_addflag=' -nofor_main' ;;
9692         lf95*)                          # Lahey Fortran 8.1
9693           whole_archive_flag_spec=
9694           tmp_sharedflag='--shared' ;;
9695         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9696           tmp_sharedflag='-qmkshrobj'
9697           tmp_addflag= ;;
9698         esac
9699         case `$CC -V 2>&1 | sed 5q` in
9700         *Sun\ C*)                       # Sun C 5.9
9701           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'
9702           compiler_needs_object=yes
9703           tmp_sharedflag='-G' ;;
9704         *Sun\ F*)                       # Sun Fortran 8.3
9705           tmp_sharedflag='-G' ;;
9706         esac
9707         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708
9709         if test "x$supports_anon_versioning" = xyes; then
9710           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9711             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9712             echo "local: *; };" >> $output_objdir/$libname.ver~
9713             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9714         fi
9715
9716         case $cc_basename in
9717         xlf*)
9718           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9719           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9720           hardcode_libdir_flag_spec=
9721           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9722           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9723           if test "x$supports_anon_versioning" = xyes; then
9724             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9725               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9726               echo "local: *; };" >> $output_objdir/$libname.ver~
9727               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9728           fi
9729           ;;
9730         esac
9731       else
9732         ld_shlibs=no
9733       fi
9734       ;;
9735
9736     netbsd*)
9737       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9738         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9739         wlarc=
9740       else
9741         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9742         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9743       fi
9744       ;;
9745
9746     solaris*)
9747       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9748         ld_shlibs=no
9749         cat <<_LT_EOF 1>&2
9750
9751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9752 *** create shared libraries on Solaris systems.  Therefore, libtool
9753 *** is disabling shared libraries support.  We urge you to upgrade GNU
9754 *** binutils to release 2.9.1 or newer.  Another option is to modify
9755 *** your PATH or compiler configuration so that the native linker is
9756 *** used, and then restart.
9757
9758 _LT_EOF
9759       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9760         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9761         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9762       else
9763         ld_shlibs=no
9764       fi
9765       ;;
9766
9767     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9768       case `$LD -v 2>&1` in
9769         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9770         ld_shlibs=no
9771         cat <<_LT_EOF 1>&2
9772
9773 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9774 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9775 *** is disabling shared libraries support.  We urge you to upgrade GNU
9776 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9777 *** your PATH or compiler configuration so that the native linker is
9778 *** used, and then restart.
9779
9780 _LT_EOF
9781         ;;
9782         *)
9783           # For security reasons, it is highly recommended that you always
9784           # use absolute paths for naming shared libraries, and exclude the
9785           # DT_RUNPATH tag from executables and libraries.  But doing so
9786           # requires that you compile everything twice, which is a pain.
9787           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9788             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9789             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791           else
9792             ld_shlibs=no
9793           fi
9794         ;;
9795       esac
9796       ;;
9797
9798     sunos4*)
9799       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9800       wlarc=
9801       hardcode_direct=yes
9802       hardcode_shlibpath_var=no
9803       ;;
9804
9805     *)
9806       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9807         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9809       else
9810         ld_shlibs=no
9811       fi
9812       ;;
9813     esac
9814
9815     if test "$ld_shlibs" = no; then
9816       runpath_var=
9817       hardcode_libdir_flag_spec=
9818       export_dynamic_flag_spec=
9819       whole_archive_flag_spec=
9820     fi
9821   else
9822     # PORTME fill in a description of your system's linker (not GNU ld)
9823     case $host_os in
9824     aix3*)
9825       allow_undefined_flag=unsupported
9826       always_export_symbols=yes
9827       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'
9828       # Note: this linker hardcodes the directories in LIBPATH if there
9829       # are no directories specified by -L.
9830       hardcode_minus_L=yes
9831       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9832         # Neither direct hardcoding nor static linking is supported with a
9833         # broken collect2.
9834         hardcode_direct=unsupported
9835       fi
9836       ;;
9837
9838     aix[4-9]*)
9839       if test "$host_cpu" = ia64; then
9840         # On IA64, the linker does run time linking by default, so we don't
9841         # have to do anything special.
9842         aix_use_runtimelinking=no
9843         exp_sym_flag='-Bexport'
9844         no_entry_flag=""
9845       else
9846         # If we're using GNU nm, then we don't want the "-C" option.
9847         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9848         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9849           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'
9850         else
9851           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'
9852         fi
9853         aix_use_runtimelinking=no
9854
9855         # Test if we are trying to use run time linking or normal
9856         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9857         # need to do runtime linking.
9858         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9859           for ld_flag in $LDFLAGS; do
9860           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9861             aix_use_runtimelinking=yes
9862             break
9863           fi
9864           done
9865           ;;
9866         esac
9867
9868         exp_sym_flag='-bexport'
9869         no_entry_flag='-bnoentry'
9870       fi
9871
9872       # When large executables or shared objects are built, AIX ld can
9873       # have problems creating the table of contents.  If linking a library
9874       # or program results in "error TOC overflow" add -mminimal-toc to
9875       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9876       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9877
9878       archive_cmds=''
9879       hardcode_direct=yes
9880       hardcode_direct_absolute=yes
9881       hardcode_libdir_separator=':'
9882       link_all_deplibs=yes
9883       file_list_spec='${wl}-f,'
9884
9885       if test "$GCC" = yes; then
9886         case $host_os in aix4.[012]|aix4.[012].*)
9887         # We only want to do this on AIX 4.2 and lower, the check
9888         # below for broken collect2 doesn't work under 4.3+
9889           collect2name=`${CC} -print-prog-name=collect2`
9890           if test -f "$collect2name" &&
9891            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9892           then
9893           # We have reworked collect2
9894           :
9895           else
9896           # We have old collect2
9897           hardcode_direct=unsupported
9898           # It fails to find uninstalled libraries when the uninstalled
9899           # path is not listed in the libpath.  Setting hardcode_minus_L
9900           # to unsupported forces relinking
9901           hardcode_minus_L=yes
9902           hardcode_libdir_flag_spec='-L$libdir'
9903           hardcode_libdir_separator=
9904           fi
9905           ;;
9906         esac
9907         shared_flag='-shared'
9908         if test "$aix_use_runtimelinking" = yes; then
9909           shared_flag="$shared_flag "'${wl}-G'
9910         fi
9911       else
9912         # not using gcc
9913         if test "$host_cpu" = ia64; then
9914         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9915         # chokes on -Wl,-G. The following line is correct:
9916           shared_flag='-G'
9917         else
9918           if test "$aix_use_runtimelinking" = yes; then
9919             shared_flag='${wl}-G'
9920           else
9921             shared_flag='${wl}-bM:SRE'
9922           fi
9923         fi
9924       fi
9925
9926       export_dynamic_flag_spec='${wl}-bexpall'
9927       # It seems that -bexpall does not export symbols beginning with
9928       # underscore (_), so it is better to generate a list of symbols to export.
9929       always_export_symbols=yes
9930       if test "$aix_use_runtimelinking" = yes; then
9931         # Warning - without using the other runtime loading flags (-brtl),
9932         # -berok will link without error, but may produce a broken library.
9933         allow_undefined_flag='-berok'
9934         # Determine the default libpath from the value encoded in an
9935         # empty executable.
9936         cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942
9943 int
9944 main ()
9945 {
9946
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958 $as_echo "$ac_try_echo") >&5
9959   (eval "$ac_link") 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } && {
9966          test -z "$ac_c_werror_flag" ||
9967          test ! -s conftest.err
9968        } && test -s conftest$ac_exeext && {
9969          test "$cross_compiling" = yes ||
9970          $as_test_x conftest$ac_exeext
9971        }; then
9972
9973 lt_aix_libpath_sed='
9974     /Import File Strings/,/^$/ {
9975         /^0/ {
9976             s/^0  *\(.*\)$/\1/
9977             p
9978         }
9979     }'
9980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9981 # Check for a 64-bit object if we didn't find anything.
9982 if test -z "$aix_libpath"; then
9983   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9984 fi
9985 else
9986   $as_echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989
9990 fi
9991
9992 rm -rf conftest.dSYM
9993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9994       conftest$ac_exeext conftest.$ac_ext
9995 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9996
9997         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9998         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9999       else
10000         if test "$host_cpu" = ia64; then
10001           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10002           allow_undefined_flag="-z nodefs"
10003           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"
10004         else
10005          # Determine the default libpath from the value encoded in an
10006          # empty executable.
10007          cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013
10014 int
10015 main ()
10016 {
10017
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10029 $as_echo "$ac_try_echo") >&5
10030   (eval "$ac_link") 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } && {
10037          test -z "$ac_c_werror_flag" ||
10038          test ! -s conftest.err
10039        } && test -s conftest$ac_exeext && {
10040          test "$cross_compiling" = yes ||
10041          $as_test_x conftest$ac_exeext
10042        }; then
10043
10044 lt_aix_libpath_sed='
10045     /Import File Strings/,/^$/ {
10046         /^0/ {
10047             s/^0  *\(.*\)$/\1/
10048             p
10049         }
10050     }'
10051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10052 # Check for a 64-bit object if we didn't find anything.
10053 if test -z "$aix_libpath"; then
10054   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10055 fi
10056 else
10057   $as_echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060
10061 fi
10062
10063 rm -rf conftest.dSYM
10064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10065       conftest$ac_exeext conftest.$ac_ext
10066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10067
10068          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10069           # Warning - without using the other run time loading flags,
10070           # -berok will link without error, but may produce a broken library.
10071           no_undefined_flag=' ${wl}-bernotok'
10072           allow_undefined_flag=' ${wl}-berok'
10073           # Exported symbols can be pulled into shared objects from archives
10074           whole_archive_flag_spec='$convenience'
10075           archive_cmds_need_lc=yes
10076           # This is similar to how AIX traditionally builds its shared libraries.
10077           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'
10078         fi
10079       fi
10080       ;;
10081
10082     amigaos*)
10083       case $host_cpu in
10084       powerpc)
10085             # see comment about AmigaOS4 .so support
10086             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087             archive_expsym_cmds=''
10088         ;;
10089       m68k)
10090             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)'
10091             hardcode_libdir_flag_spec='-L$libdir'
10092             hardcode_minus_L=yes
10093         ;;
10094       esac
10095       ;;
10096
10097     bsdi[45]*)
10098       export_dynamic_flag_spec=-rdynamic
10099       ;;
10100
10101     cygwin* | mingw* | pw32* | cegcc*)
10102       # When not using gcc, we currently assume that we are using
10103       # Microsoft Visual C++.
10104       # hardcode_libdir_flag_spec is actually meaningless, as there is
10105       # no search path for DLLs.
10106       hardcode_libdir_flag_spec=' '
10107       allow_undefined_flag=unsupported
10108       # Tell ltmain to make .lib files, not .a files.
10109       libext=lib
10110       # Tell ltmain to make .dll files, not .so files.
10111       shrext_cmds=".dll"
10112       # FIXME: Setting linknames here is a bad hack.
10113       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10114       # The linker will automatically build a .lib file if we build a DLL.
10115       old_archive_from_new_cmds='true'
10116       # FIXME: Should let the user specify the lib program.
10117       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10118       fix_srcfile_path='`cygpath -w "$srcfile"`'
10119       enable_shared_with_static_runtimes=yes
10120       ;;
10121
10122     darwin* | rhapsody*)
10123
10124
10125   archive_cmds_need_lc=no
10126   hardcode_direct=no
10127   hardcode_automatic=yes
10128   hardcode_shlibpath_var=unsupported
10129   whole_archive_flag_spec=''
10130   link_all_deplibs=yes
10131   allow_undefined_flag="$_lt_dar_allow_undefined"
10132   case $cc_basename in
10133      ifort*) _lt_dar_can_shared=yes ;;
10134      *) _lt_dar_can_shared=$GCC ;;
10135   esac
10136   if test "$_lt_dar_can_shared" = "yes"; then
10137     output_verbose_link_cmd=echo
10138     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10139     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10140     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}"
10141     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}"
10142
10143   else
10144   ld_shlibs=no
10145   fi
10146
10147       ;;
10148
10149     dgux*)
10150       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151       hardcode_libdir_flag_spec='-L$libdir'
10152       hardcode_shlibpath_var=no
10153       ;;
10154
10155     freebsd1*)
10156       ld_shlibs=no
10157       ;;
10158
10159     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10160     # support.  Future versions do this automatically, but an explicit c++rt0.o
10161     # does not break anything, and helps significantly (at the cost of a little
10162     # extra space).
10163     freebsd2.2*)
10164       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10165       hardcode_libdir_flag_spec='-R$libdir'
10166       hardcode_direct=yes
10167       hardcode_shlibpath_var=no
10168       ;;
10169
10170     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10171     freebsd2*)
10172       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10173       hardcode_direct=yes
10174       hardcode_minus_L=yes
10175       hardcode_shlibpath_var=no
10176       ;;
10177
10178     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10179     freebsd* | dragonfly*)
10180       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10181       hardcode_libdir_flag_spec='-R$libdir'
10182       hardcode_direct=yes
10183       hardcode_shlibpath_var=no
10184       ;;
10185
10186     hpux9*)
10187       if test "$GCC" = yes; then
10188         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'
10189       else
10190         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'
10191       fi
10192       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10193       hardcode_libdir_separator=:
10194       hardcode_direct=yes
10195
10196       # hardcode_minus_L: Not really in the search PATH,
10197       # but as the default location of the library.
10198       hardcode_minus_L=yes
10199       export_dynamic_flag_spec='${wl}-E'
10200       ;;
10201
10202     hpux10*)
10203       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10204         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10205       else
10206         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10207       fi
10208       if test "$with_gnu_ld" = no; then
10209         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10210         hardcode_libdir_flag_spec_ld='+b $libdir'
10211         hardcode_libdir_separator=:
10212         hardcode_direct=yes
10213         hardcode_direct_absolute=yes
10214         export_dynamic_flag_spec='${wl}-E'
10215         # hardcode_minus_L: Not really in the search PATH,
10216         # but as the default location of the library.
10217         hardcode_minus_L=yes
10218       fi
10219       ;;
10220
10221     hpux11*)
10222       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10223         case $host_cpu in
10224         hppa*64*)
10225           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10226           ;;
10227         ia64*)
10228           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10229           ;;
10230         *)
10231           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10232           ;;
10233         esac
10234       else
10235         case $host_cpu in
10236         hppa*64*)
10237           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10238           ;;
10239         ia64*)
10240           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10241           ;;
10242         *)
10243           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10244           ;;
10245         esac
10246       fi
10247       if test "$with_gnu_ld" = no; then
10248         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10249         hardcode_libdir_separator=:
10250
10251         case $host_cpu in
10252         hppa*64*|ia64*)
10253           hardcode_direct=no
10254           hardcode_shlibpath_var=no
10255           ;;
10256         *)
10257           hardcode_direct=yes
10258           hardcode_direct_absolute=yes
10259           export_dynamic_flag_spec='${wl}-E'
10260
10261           # hardcode_minus_L: Not really in the search PATH,
10262           # but as the default location of the library.
10263           hardcode_minus_L=yes
10264           ;;
10265         esac
10266       fi
10267       ;;
10268
10269     irix5* | irix6* | nonstopux*)
10270       if test "$GCC" = yes; then
10271         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10272         # Try to use the -exported_symbol ld option, if it does not
10273         # work, assume that -exports_file does not work either and
10274         # implicitly export all symbols.
10275         save_LDFLAGS="$LDFLAGS"
10276         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10277         cat >conftest.$ac_ext <<_ACEOF
10278 int foo(void) {}
10279 _ACEOF
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (ac_try="$ac_link"
10282 case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10287 $as_echo "$ac_try_echo") >&5
10288   (eval "$ac_link") 2>conftest.er1
10289   ac_status=$?
10290   grep -v '^ *+' conftest.er1 >conftest.err
10291   rm -f conftest.er1
10292   cat conftest.err >&5
10293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); } && {
10295          test -z "$ac_c_werror_flag" ||
10296          test ! -s conftest.err
10297        } && test -s conftest$ac_exeext && {
10298          test "$cross_compiling" = yes ||
10299          $as_test_x conftest$ac_exeext
10300        }; then
10301   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10302
10303 else
10304   $as_echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307
10308 fi
10309
10310 rm -rf conftest.dSYM
10311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10312       conftest$ac_exeext conftest.$ac_ext
10313         LDFLAGS="$save_LDFLAGS"
10314       else
10315         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10316         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10317       fi
10318       archive_cmds_need_lc='no'
10319       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10320       hardcode_libdir_separator=:
10321       inherit_rpath=yes
10322       link_all_deplibs=yes
10323       ;;
10324
10325     netbsd*)
10326       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10327         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10328       else
10329         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10330       fi
10331       hardcode_libdir_flag_spec='-R$libdir'
10332       hardcode_direct=yes
10333       hardcode_shlibpath_var=no
10334       ;;
10335
10336     newsos6)
10337       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338       hardcode_direct=yes
10339       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10340       hardcode_libdir_separator=:
10341       hardcode_shlibpath_var=no
10342       ;;
10343
10344     *nto* | *qnx*)
10345       ;;
10346
10347     openbsd*)
10348       if test -f /usr/libexec/ld.so; then
10349         hardcode_direct=yes
10350         hardcode_shlibpath_var=no
10351         hardcode_direct_absolute=yes
10352         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10353           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10354           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10355           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10356           export_dynamic_flag_spec='${wl}-E'
10357         else
10358           case $host_os in
10359            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10360              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10361              hardcode_libdir_flag_spec='-R$libdir'
10362              ;;
10363            *)
10364              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10365              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10366              ;;
10367           esac
10368         fi
10369       else
10370         ld_shlibs=no
10371       fi
10372       ;;
10373
10374     os2*)
10375       hardcode_libdir_flag_spec='-L$libdir'
10376       hardcode_minus_L=yes
10377       allow_undefined_flag=unsupported
10378       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'
10379       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10380       ;;
10381
10382     osf3*)
10383       if test "$GCC" = yes; then
10384         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10385         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10386       else
10387         allow_undefined_flag=' -expect_unresolved \*'
10388         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10389       fi
10390       archive_cmds_need_lc='no'
10391       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10392       hardcode_libdir_separator=:
10393       ;;
10394
10395     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10396       if test "$GCC" = yes; then
10397         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10398         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10399         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10400       else
10401         allow_undefined_flag=' -expect_unresolved \*'
10402         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10403         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10404         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10405
10406         # Both c and cxx compiler support -rpath directly
10407         hardcode_libdir_flag_spec='-rpath $libdir'
10408       fi
10409       archive_cmds_need_lc='no'
10410       hardcode_libdir_separator=:
10411       ;;
10412
10413     solaris*)
10414       no_undefined_flag=' -z defs'
10415       if test "$GCC" = yes; then
10416         wlarc='${wl}'
10417         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10418         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10419           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10420       else
10421         case `$CC -V 2>&1` in
10422         *"Compilers 5.0"*)
10423           wlarc=''
10424           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10426           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10427           ;;
10428         *)
10429           wlarc='${wl}'
10430           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10431           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10432           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10433           ;;
10434         esac
10435       fi
10436       hardcode_libdir_flag_spec='-R$libdir'
10437       hardcode_shlibpath_var=no
10438       case $host_os in
10439       solaris2.[0-5] | solaris2.[0-5].*) ;;
10440       *)
10441         # The compiler driver will combine and reorder linker options,
10442         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10443         # but is careful enough not to reorder.
10444         # Supported since Solaris 2.6 (maybe 2.5.1?)
10445         if test "$GCC" = yes; then
10446           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10447         else
10448           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10449         fi
10450         ;;
10451       esac
10452       link_all_deplibs=yes
10453       ;;
10454
10455     sunos4*)
10456       if test "x$host_vendor" = xsequent; then
10457         # Use $CC to link under sequent, because it throws in some extra .o
10458         # files that make .init and .fini sections work.
10459         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10460       else
10461         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10462       fi
10463       hardcode_libdir_flag_spec='-L$libdir'
10464       hardcode_direct=yes
10465       hardcode_minus_L=yes
10466       hardcode_shlibpath_var=no
10467       ;;
10468
10469     sysv4)
10470       case $host_vendor in
10471         sni)
10472           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10473           hardcode_direct=yes # is this really true???
10474         ;;
10475         siemens)
10476           ## LD is ld it makes a PLAMLIB
10477           ## CC just makes a GrossModule.
10478           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10479           reload_cmds='$CC -r -o $output$reload_objs'
10480           hardcode_direct=no
10481         ;;
10482         motorola)
10483           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10485         ;;
10486       esac
10487       runpath_var='LD_RUN_PATH'
10488       hardcode_shlibpath_var=no
10489       ;;
10490
10491     sysv4.3*)
10492       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493       hardcode_shlibpath_var=no
10494       export_dynamic_flag_spec='-Bexport'
10495       ;;
10496
10497     sysv4*MP*)
10498       if test -d /usr/nec; then
10499         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500         hardcode_shlibpath_var=no
10501         runpath_var=LD_RUN_PATH
10502         hardcode_runpath_var=yes
10503         ld_shlibs=yes
10504       fi
10505       ;;
10506
10507     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10508       no_undefined_flag='${wl}-z,text'
10509       archive_cmds_need_lc=no
10510       hardcode_shlibpath_var=no
10511       runpath_var='LD_RUN_PATH'
10512
10513       if test "$GCC" = yes; then
10514         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10516       else
10517         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10518         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10519       fi
10520       ;;
10521
10522     sysv5* | sco3.2v5* | sco5v6*)
10523       # Note: We can NOT use -z defs as we might desire, because we do not
10524       # link with -lc, and that would cause any symbols used from libc to
10525       # always be unresolved, which means just about no library would
10526       # ever link correctly.  If we're not using GNU ld we use -z text
10527       # though, which does catch some bad symbols but isn't as heavy-handed
10528       # as -z defs.
10529       no_undefined_flag='${wl}-z,text'
10530       allow_undefined_flag='${wl}-z,nodefs'
10531       archive_cmds_need_lc=no
10532       hardcode_shlibpath_var=no
10533       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10534       hardcode_libdir_separator=':'
10535       link_all_deplibs=yes
10536       export_dynamic_flag_spec='${wl}-Bexport'
10537       runpath_var='LD_RUN_PATH'
10538
10539       if test "$GCC" = yes; then
10540         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542       else
10543         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10545       fi
10546       ;;
10547
10548     uts4*)
10549       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550       hardcode_libdir_flag_spec='-L$libdir'
10551       hardcode_shlibpath_var=no
10552       ;;
10553
10554     *)
10555       ld_shlibs=no
10556       ;;
10557     esac
10558
10559     if test x$host_vendor = xsni; then
10560       case $host in
10561       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10562         export_dynamic_flag_spec='${wl}-Blargedynsym'
10563         ;;
10564       esac
10565     fi
10566   fi
10567
10568 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10569 $as_echo "$ld_shlibs" >&6; }
10570 test "$ld_shlibs" = no && can_build_shared=no
10571
10572 with_gnu_ld=$with_gnu_ld
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588 #
10589 # Do we need to explicitly link libc?
10590 #
10591 case "x$archive_cmds_need_lc" in
10592 x|xyes)
10593   # Assume -lc should be added
10594   archive_cmds_need_lc=yes
10595
10596   if test "$enable_shared" = yes && test "$GCC" = yes; then
10597     case $archive_cmds in
10598     *'~'*)
10599       # FIXME: we may have to deal with multi-command sequences.
10600       ;;
10601     '$CC '*)
10602       # Test whether the compiler implicitly links with -lc since on some
10603       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10604       # to ld, don't add -lc before -lgcc.
10605       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10606 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10607 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10608   $as_echo_n "(cached) " >&6
10609 else
10610   $RM conftest*
10611         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10612
10613         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614   (eval $ac_compile) 2>&5
10615   ac_status=$?
10616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } 2>conftest.err; then
10618           soname=conftest
10619           lib=conftest
10620           libobjs=conftest.$ac_objext
10621           deplibs=
10622           wl=$lt_prog_compiler_wl
10623           pic_flag=$lt_prog_compiler_pic
10624           compiler_flags=-v
10625           linker_flags=-v
10626           verstring=
10627           output_objdir=.
10628           libname=conftest
10629           lt_save_allow_undefined_flag=$allow_undefined_flag
10630           allow_undefined_flag=
10631           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10632   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10633   ac_status=$?
10634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); }
10636           then
10637             lt_cv_archive_cmds_need_lc=no
10638           else
10639             lt_cv_archive_cmds_need_lc=yes
10640           fi
10641           allow_undefined_flag=$lt_save_allow_undefined_flag
10642         else
10643           cat conftest.err 1>&5
10644         fi
10645         $RM conftest*
10646
10647 fi
10648 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10649 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10650       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10651       ;;
10652     esac
10653   fi
10654   ;;
10655 esac
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10814 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10815
10816 if test "$GCC" = yes; then
10817   case $host_os in
10818     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10819     *) lt_awk_arg="/^libraries:/" ;;
10820   esac
10821   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10822   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10823     # if the path contains ";" then we assume it to be the separator
10824     # otherwise default to the standard path separator (i.e. ":") - it is
10825     # assumed that no part of a normal pathname contains ";" but that should
10826     # okay in the real world where ";" in dirpaths is itself problematic.
10827     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10828   else
10829     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10830   fi
10831   # Ok, now we have the path, separated by spaces, we can step through it
10832   # and add multilib dir if necessary.
10833   lt_tmp_lt_search_path_spec=
10834   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10835   for lt_sys_path in $lt_search_path_spec; do
10836     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10837       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10838     else
10839       test -d "$lt_sys_path" && \
10840         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10841     fi
10842   done
10843   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10844 BEGIN {RS=" "; FS="/|\n";} {
10845   lt_foo="";
10846   lt_count=0;
10847   for (lt_i = NF; lt_i > 0; lt_i--) {
10848     if ($lt_i != "" && $lt_i != ".") {
10849       if ($lt_i == "..") {
10850         lt_count++;
10851       } else {
10852         if (lt_count == 0) {
10853           lt_foo="/" $lt_i lt_foo;
10854         } else {
10855           lt_count--;
10856         }
10857       }
10858     }
10859   }
10860   if (lt_foo != "") { lt_freq[lt_foo]++; }
10861   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10862 }'`
10863   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10864 else
10865   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10866 fi
10867 library_names_spec=
10868 libname_spec='lib$name'
10869 soname_spec=
10870 shrext_cmds=".so"
10871 postinstall_cmds=
10872 postuninstall_cmds=
10873 finish_cmds=
10874 finish_eval=
10875 shlibpath_var=
10876 shlibpath_overrides_runpath=unknown
10877 version_type=none
10878 dynamic_linker="$host_os ld.so"
10879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10880 need_lib_prefix=unknown
10881 hardcode_into_libs=no
10882
10883 # when you set need_version to no, make sure it does not cause -set_version
10884 # flags to be left without arguments
10885 need_version=unknown
10886
10887 case $host_os in
10888 aix3*)
10889   version_type=linux
10890   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10891   shlibpath_var=LIBPATH
10892
10893   # AIX 3 has no versioning support, so we append a major version to the name.
10894   soname_spec='${libname}${release}${shared_ext}$major'
10895   ;;
10896
10897 aix[4-9]*)
10898   version_type=linux
10899   need_lib_prefix=no
10900   need_version=no
10901   hardcode_into_libs=yes
10902   if test "$host_cpu" = ia64; then
10903     # AIX 5 supports IA64
10904     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10905     shlibpath_var=LD_LIBRARY_PATH
10906   else
10907     # With GCC up to 2.95.x, collect2 would create an import file
10908     # for dependence libraries.  The import file would start with
10909     # the line `#! .'.  This would cause the generated library to
10910     # depend on `.', always an invalid library.  This was fixed in
10911     # development snapshots of GCC prior to 3.0.
10912     case $host_os in
10913       aix4 | aix4.[01] | aix4.[01].*)
10914       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10915            echo ' yes '
10916            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10917         :
10918       else
10919         can_build_shared=no
10920       fi
10921       ;;
10922     esac
10923     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10924     # soname into executable. Probably we can add versioning support to
10925     # collect2, so additional links can be useful in future.
10926     if test "$aix_use_runtimelinking" = yes; then
10927       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10928       # instead of lib<name>.a to let people know that these are not
10929       # typical AIX shared libraries.
10930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931     else
10932       # We preserve .a as extension for shared libraries through AIX4.2
10933       # and later when we are not doing run time linking.
10934       library_names_spec='${libname}${release}.a $libname.a'
10935       soname_spec='${libname}${release}${shared_ext}$major'
10936     fi
10937     shlibpath_var=LIBPATH
10938   fi
10939   ;;
10940
10941 amigaos*)
10942   case $host_cpu in
10943   powerpc)
10944     # Since July 2007 AmigaOS4 officially supports .so libraries.
10945     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947     ;;
10948   m68k)
10949     library_names_spec='$libname.ixlibrary $libname.a'
10950     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10951     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'
10952     ;;
10953   esac
10954   ;;
10955
10956 beos*)
10957   library_names_spec='${libname}${shared_ext}'
10958   dynamic_linker="$host_os ld.so"
10959   shlibpath_var=LIBRARY_PATH
10960   ;;
10961
10962 bsdi[45]*)
10963   version_type=linux
10964   need_version=no
10965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966   soname_spec='${libname}${release}${shared_ext}$major'
10967   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10968   shlibpath_var=LD_LIBRARY_PATH
10969   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10970   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10971   # the default ld.so.conf also contains /usr/contrib/lib and
10972   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10973   # libtool to hard-code these into programs
10974   ;;
10975
10976 cygwin* | mingw* | pw32* | cegcc*)
10977   version_type=windows
10978   shrext_cmds=".dll"
10979   need_version=no
10980   need_lib_prefix=no
10981
10982   case $GCC,$host_os in
10983   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10984     library_names_spec='$libname.dll.a'
10985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10986     postinstall_cmds='base_file=`basename \${file}`~
10987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10988       dldir=$destdir/`dirname \$dlpath`~
10989       test -d \$dldir || mkdir -p \$dldir~
10990       $install_prog $dir/$dlname \$dldir/$dlname~
10991       chmod a+x \$dldir/$dlname~
10992       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10993         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10994       fi'
10995     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10996       dlpath=$dir/\$dldll~
10997        $RM \$dlpath'
10998     shlibpath_overrides_runpath=yes
10999
11000     case $host_os in
11001     cygwin*)
11002       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11003       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11004       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11005       ;;
11006     mingw* | cegcc*)
11007       # MinGW DLLs use traditional 'lib' prefix
11008       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11009       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11010       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11011         # It is most probably a Windows format PATH printed by
11012         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11013         # path with ; separators, and with drive letters. We can handle the
11014         # drive letters (cygwin fileutils understands them), so leave them,
11015         # especially as we might pass files found there to a mingw objdump,
11016         # which wouldn't understand a cygwinified path. Ahh.
11017         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11018       else
11019         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11020       fi
11021       ;;
11022     pw32*)
11023       # pw32 DLLs use 'pw' prefix rather than 'lib'
11024       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11025       ;;
11026     esac
11027     ;;
11028
11029   *)
11030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11031     ;;
11032   esac
11033   dynamic_linker='Win32 ld.exe'
11034   # FIXME: first we should search . and the directory the executable is in
11035   shlibpath_var=PATH
11036   ;;
11037
11038 darwin* | rhapsody*)
11039   dynamic_linker="$host_os dyld"
11040   version_type=darwin
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11044   soname_spec='${libname}${release}${major}$shared_ext'
11045   shlibpath_overrides_runpath=yes
11046   shlibpath_var=DYLD_LIBRARY_PATH
11047   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11048
11049   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11050   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11051   ;;
11052
11053 dgux*)
11054   version_type=linux
11055   need_lib_prefix=no
11056   need_version=no
11057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11058   soname_spec='${libname}${release}${shared_ext}$major'
11059   shlibpath_var=LD_LIBRARY_PATH
11060   ;;
11061
11062 freebsd1*)
11063   dynamic_linker=no
11064   ;;
11065
11066 freebsd* | dragonfly*)
11067   # DragonFly does not have aout.  When/if they implement a new
11068   # versioning mechanism, adjust this.
11069   if test -x /usr/bin/objformat; then
11070     objformat=`/usr/bin/objformat`
11071   else
11072     case $host_os in
11073     freebsd[123]*) objformat=aout ;;
11074     *) objformat=elf ;;
11075     esac
11076   fi
11077   version_type=freebsd-$objformat
11078   case $version_type in
11079     freebsd-elf*)
11080       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081       need_version=no
11082       need_lib_prefix=no
11083       ;;
11084     freebsd-*)
11085       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11086       need_version=yes
11087       ;;
11088   esac
11089   shlibpath_var=LD_LIBRARY_PATH
11090   case $host_os in
11091   freebsd2*)
11092     shlibpath_overrides_runpath=yes
11093     ;;
11094   freebsd3.[01]* | freebsdelf3.[01]*)
11095     shlibpath_overrides_runpath=yes
11096     hardcode_into_libs=yes
11097     ;;
11098   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11099   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11100     shlibpath_overrides_runpath=no
11101     hardcode_into_libs=yes
11102     ;;
11103   *) # from 4.6 on, and DragonFly
11104     shlibpath_overrides_runpath=yes
11105     hardcode_into_libs=yes
11106     ;;
11107   esac
11108   ;;
11109
11110 gnu*)
11111   version_type=linux
11112   need_lib_prefix=no
11113   need_version=no
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11115   soname_spec='${libname}${release}${shared_ext}$major'
11116   shlibpath_var=LD_LIBRARY_PATH
11117   hardcode_into_libs=yes
11118   ;;
11119
11120 hpux9* | hpux10* | hpux11*)
11121   # Give a soname corresponding to the major version so that dld.sl refuses to
11122   # link against other versions.
11123   version_type=sunos
11124   need_lib_prefix=no
11125   need_version=no
11126   case $host_cpu in
11127   ia64*)
11128     shrext_cmds='.so'
11129     hardcode_into_libs=yes
11130     dynamic_linker="$host_os dld.so"
11131     shlibpath_var=LD_LIBRARY_PATH
11132     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134     soname_spec='${libname}${release}${shared_ext}$major'
11135     if test "X$HPUX_IA64_MODE" = X32; then
11136       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11137     else
11138       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11139     fi
11140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11141     ;;
11142   hppa*64*)
11143     shrext_cmds='.sl'
11144     hardcode_into_libs=yes
11145     dynamic_linker="$host_os dld.sl"
11146     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149     soname_spec='${libname}${release}${shared_ext}$major'
11150     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11151     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11152     ;;
11153   *)
11154     shrext_cmds='.sl'
11155     dynamic_linker="$host_os dld.sl"
11156     shlibpath_var=SHLIB_PATH
11157     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159     soname_spec='${libname}${release}${shared_ext}$major'
11160     ;;
11161   esac
11162   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11163   postinstall_cmds='chmod 555 $lib'
11164   ;;
11165
11166 interix[3-9]*)
11167   version_type=linux
11168   need_lib_prefix=no
11169   need_version=no
11170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11171   soname_spec='${libname}${release}${shared_ext}$major'
11172   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=no
11175   hardcode_into_libs=yes
11176   ;;
11177
11178 irix5* | irix6* | nonstopux*)
11179   case $host_os in
11180     nonstopux*) version_type=nonstopux ;;
11181     *)
11182         if test "$lt_cv_prog_gnu_ld" = yes; then
11183                 version_type=linux
11184         else
11185                 version_type=irix
11186         fi ;;
11187   esac
11188   need_lib_prefix=no
11189   need_version=no
11190   soname_spec='${libname}${release}${shared_ext}$major'
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11192   case $host_os in
11193   irix5* | nonstopux*)
11194     libsuff= shlibsuff=
11195     ;;
11196   *)
11197     case $LD in # libtool.m4 will add one of these switches to LD
11198     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11199       libsuff= shlibsuff= libmagic=32-bit;;
11200     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11201       libsuff=32 shlibsuff=N32 libmagic=N32;;
11202     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11203       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11204     *) libsuff= shlibsuff= libmagic=never-match;;
11205     esac
11206     ;;
11207   esac
11208   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11209   shlibpath_overrides_runpath=no
11210   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11211   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11212   hardcode_into_libs=yes
11213   ;;
11214
11215 # No shared lib support for Linux oldld, aout, or coff.
11216 linux*oldld* | linux*aout* | linux*coff*)
11217   dynamic_linker=no
11218   ;;
11219
11220 # This must be Linux ELF.
11221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11222   version_type=linux
11223   need_lib_prefix=no
11224   need_version=no
11225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226   soname_spec='${libname}${release}${shared_ext}$major'
11227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11228   shlibpath_var=LD_LIBRARY_PATH
11229   shlibpath_overrides_runpath=no
11230
11231   # Some binutils ld are patched to set DT_RUNPATH
11232   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11233   $as_echo_n "(cached) " >&6
11234 else
11235   lt_cv_shlibpath_overrides_runpath=no
11236     save_LDFLAGS=$LDFLAGS
11237     save_libdir=$libdir
11238     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11239          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11240     cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246
11247 int
11248 main ()
11249 {
11250
11251   ;
11252   return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11262 $as_echo "$ac_try_echo") >&5
11263   (eval "$ac_link") 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } && {
11270          test -z "$ac_c_werror_flag" ||
11271          test ! -s conftest.err
11272        } && test -s conftest$ac_exeext && {
11273          test "$cross_compiling" = yes ||
11274          $as_test_x conftest$ac_exeext
11275        }; then
11276   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11277   lt_cv_shlibpath_overrides_runpath=yes
11278 fi
11279
11280 else
11281   $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284
11285 fi
11286
11287 rm -rf conftest.dSYM
11288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289       conftest$ac_exeext conftest.$ac_ext
11290     LDFLAGS=$save_LDFLAGS
11291     libdir=$save_libdir
11292
11293 fi
11294
11295   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11296
11297   # This implies no fast_install, which is unacceptable.
11298   # Some rework will be needed to allow for fast_install
11299   # before this can be enabled.
11300   hardcode_into_libs=yes
11301
11302   # Append ld.so.conf contents to the search path
11303   if test -f /etc/ld.so.conf; then
11304     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' ' '`
11305     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11306   fi
11307
11308   # We used to test for /lib/ld.so.1 and disable shared libraries on
11309   # powerpc, because MkLinux only supported shared libraries with the
11310   # GNU dynamic linker.  Since this was broken with cross compilers,
11311   # most powerpc-linux boxes support dynamic linking these days and
11312   # people can always --disable-shared, the test was removed, and we
11313   # assume the GNU/Linux dynamic linker is in use.
11314   dynamic_linker='GNU/Linux ld.so'
11315   ;;
11316
11317 netbsd*)
11318   version_type=sunos
11319   need_lib_prefix=no
11320   need_version=no
11321   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11323     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11324     dynamic_linker='NetBSD (a.out) ld.so'
11325   else
11326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11327     soname_spec='${libname}${release}${shared_ext}$major'
11328     dynamic_linker='NetBSD ld.elf_so'
11329   fi
11330   shlibpath_var=LD_LIBRARY_PATH
11331   shlibpath_overrides_runpath=yes
11332   hardcode_into_libs=yes
11333   ;;
11334
11335 newsos6)
11336   version_type=linux
11337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338   shlibpath_var=LD_LIBRARY_PATH
11339   shlibpath_overrides_runpath=yes
11340   ;;
11341
11342 *nto* | *qnx*)
11343   version_type=qnx
11344   need_lib_prefix=no
11345   need_version=no
11346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   shlibpath_overrides_runpath=no
11350   hardcode_into_libs=yes
11351   dynamic_linker='ldqnx.so'
11352   ;;
11353
11354 openbsd*)
11355   version_type=sunos
11356   sys_lib_dlsearch_path_spec="/usr/lib"
11357   need_lib_prefix=no
11358   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11359   case $host_os in
11360     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11361     *)                          need_version=no  ;;
11362   esac
11363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11364   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11365   shlibpath_var=LD_LIBRARY_PATH
11366   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11367     case $host_os in
11368       openbsd2.[89] | openbsd2.[89].*)
11369         shlibpath_overrides_runpath=no
11370         ;;
11371       *)
11372         shlibpath_overrides_runpath=yes
11373         ;;
11374       esac
11375   else
11376     shlibpath_overrides_runpath=yes
11377   fi
11378   ;;
11379
11380 os2*)
11381   libname_spec='$name'
11382   shrext_cmds=".dll"
11383   need_lib_prefix=no
11384   library_names_spec='$libname${shared_ext} $libname.a'
11385   dynamic_linker='OS/2 ld.exe'
11386   shlibpath_var=LIBPATH
11387   ;;
11388
11389 osf3* | osf4* | osf5*)
11390   version_type=osf
11391   need_lib_prefix=no
11392   need_version=no
11393   soname_spec='${libname}${release}${shared_ext}$major'
11394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11395   shlibpath_var=LD_LIBRARY_PATH
11396   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11397   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11398   ;;
11399
11400 rdos*)
11401   dynamic_linker=no
11402   ;;
11403
11404 solaris*)
11405   version_type=linux
11406   need_lib_prefix=no
11407   need_version=no
11408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409   soname_spec='${libname}${release}${shared_ext}$major'
11410   shlibpath_var=LD_LIBRARY_PATH
11411   shlibpath_overrides_runpath=yes
11412   hardcode_into_libs=yes
11413   # ldd complains unless libraries are executable
11414   postinstall_cmds='chmod +x $lib'
11415   ;;
11416
11417 sunos4*)
11418   version_type=sunos
11419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11420   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11421   shlibpath_var=LD_LIBRARY_PATH
11422   shlibpath_overrides_runpath=yes
11423   if test "$with_gnu_ld" = yes; then
11424     need_lib_prefix=no
11425   fi
11426   need_version=yes
11427   ;;
11428
11429 sysv4 | sysv4.3*)
11430   version_type=linux
11431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432   soname_spec='${libname}${release}${shared_ext}$major'
11433   shlibpath_var=LD_LIBRARY_PATH
11434   case $host_vendor in
11435     sni)
11436       shlibpath_overrides_runpath=no
11437       need_lib_prefix=no
11438       runpath_var=LD_RUN_PATH
11439       ;;
11440     siemens)
11441       need_lib_prefix=no
11442       ;;
11443     motorola)
11444       need_lib_prefix=no
11445       need_version=no
11446       shlibpath_overrides_runpath=no
11447       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11448       ;;
11449   esac
11450   ;;
11451
11452 sysv4*MP*)
11453   if test -d /usr/nec ;then
11454     version_type=linux
11455     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11456     soname_spec='$libname${shared_ext}.$major'
11457     shlibpath_var=LD_LIBRARY_PATH
11458   fi
11459   ;;
11460
11461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11462   version_type=freebsd-elf
11463   need_lib_prefix=no
11464   need_version=no
11465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11466   soname_spec='${libname}${release}${shared_ext}$major'
11467   shlibpath_var=LD_LIBRARY_PATH
11468   shlibpath_overrides_runpath=yes
11469   hardcode_into_libs=yes
11470   if test "$with_gnu_ld" = yes; then
11471     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11472   else
11473     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11474     case $host_os in
11475       sco3.2v5*)
11476         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11477         ;;
11478     esac
11479   fi
11480   sys_lib_dlsearch_path_spec='/usr/lib'
11481   ;;
11482
11483 tpf*)
11484   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11485   version_type=linux
11486   need_lib_prefix=no
11487   need_version=no
11488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   shlibpath_overrides_runpath=no
11491   hardcode_into_libs=yes
11492   ;;
11493
11494 uts4*)
11495   version_type=linux
11496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497   soname_spec='${libname}${release}${shared_ext}$major'
11498   shlibpath_var=LD_LIBRARY_PATH
11499   ;;
11500
11501 *)
11502   dynamic_linker=no
11503   ;;
11504 esac
11505 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11506 $as_echo "$dynamic_linker" >&6; }
11507 test "$dynamic_linker" = no && can_build_shared=no
11508
11509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11510 if test "$GCC" = yes; then
11511   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11512 fi
11513
11514 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11515   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11516 fi
11517 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11518   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11519 fi
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11608 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11609 hardcode_action=
11610 if test -n "$hardcode_libdir_flag_spec" ||
11611    test -n "$runpath_var" ||
11612    test "X$hardcode_automatic" = "Xyes" ; then
11613
11614   # We can hardcode non-existent directories.
11615   if test "$hardcode_direct" != no &&
11616      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11617      # have to relink, otherwise we might link with an installed library
11618      # when we should be linking with a yet-to-be-installed one
11619      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11620      test "$hardcode_minus_L" != no; then
11621     # Linking always hardcodes the temporary library directory.
11622     hardcode_action=relink
11623   else
11624     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11625     hardcode_action=immediate
11626   fi
11627 else
11628   # We cannot hardcode anything, or else we can only hardcode existing
11629   # directories.
11630   hardcode_action=unsupported
11631 fi
11632 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11633 $as_echo "$hardcode_action" >&6; }
11634
11635 if test "$hardcode_action" = relink ||
11636    test "$inherit_rpath" = yes; then
11637   # Fast installation is not supported
11638   enable_fast_install=no
11639 elif test "$shlibpath_overrides_runpath" = yes ||
11640      test "$enable_shared" = no; then
11641   # Fast installation is not necessary
11642   enable_fast_install=needless
11643 fi
11644
11645
11646
11647
11648
11649
11650   if test "x$enable_dlopen" != xyes; then
11651   enable_dlopen=unknown
11652   enable_dlopen_self=unknown
11653   enable_dlopen_self_static=unknown
11654 else
11655   lt_cv_dlopen=no
11656   lt_cv_dlopen_libs=
11657
11658   case $host_os in
11659   beos*)
11660     lt_cv_dlopen="load_add_on"
11661     lt_cv_dlopen_libs=
11662     lt_cv_dlopen_self=yes
11663     ;;
11664
11665   mingw* | pw32* | cegcc*)
11666     lt_cv_dlopen="LoadLibrary"
11667     lt_cv_dlopen_libs=
11668     ;;
11669
11670   cygwin*)
11671     lt_cv_dlopen="dlopen"
11672     lt_cv_dlopen_libs=
11673     ;;
11674
11675   darwin*)
11676   # if libdl is installed we need to link against it
11677     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11680   $as_echo_n "(cached) " >&6
11681 else
11682   ac_check_lib_save_LIBS=$LIBS
11683 LIBS="-ldl  $LIBS"
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690
11691 /* Override any GCC internal prototype to avoid an error.
11692    Use char because int might match the return type of a GCC
11693    builtin and then its argument prototype would still apply.  */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char dlopen ();
11698 int
11699 main ()
11700 {
11701 return dlopen ();
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710   *) ac_try_echo=$ac_try;;
11711 esac
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714   (eval "$ac_link") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } && {
11721          test -z "$ac_c_werror_flag" ||
11722          test ! -s conftest.err
11723        } && test -s conftest$ac_exeext && {
11724          test "$cross_compiling" = yes ||
11725          $as_test_x conftest$ac_exeext
11726        }; then
11727   ac_cv_lib_dl_dlopen=yes
11728 else
11729   $as_echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732         ac_cv_lib_dl_dlopen=no
11733 fi
11734
11735 rm -rf conftest.dSYM
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737       conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11742 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11743   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11744 else
11745
11746     lt_cv_dlopen="dyld"
11747     lt_cv_dlopen_libs=
11748     lt_cv_dlopen_self=yes
11749
11750 fi
11751
11752     ;;
11753
11754   *)
11755     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11756 $as_echo_n "checking for shl_load... " >&6; }
11757 if test "${ac_cv_func_shl_load+set}" = set; then
11758   $as_echo_n "(cached) " >&6
11759 else
11760   cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11768 #define shl_load innocuous_shl_load
11769
11770 /* System header to define __stub macros and hopefully few prototypes,
11771     which can conflict with char shl_load (); below.
11772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11773     <limits.h> exists even on freestanding compilers.  */
11774
11775 #ifdef __STDC__
11776 # include <limits.h>
11777 #else
11778 # include <assert.h>
11779 #endif
11780
11781 #undef shl_load
11782
11783 /* Override any GCC internal prototype to avoid an error.
11784    Use char because int might match the return type of a GCC
11785    builtin and then its argument prototype would still apply.  */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char shl_load ();
11790 /* The GNU C library defines this for functions which it implements
11791     to always fail with ENOSYS.  Some functions are actually named
11792     something starting with __ and the normal name is an alias.  */
11793 #if defined __stub_shl_load || defined __stub___shl_load
11794 choke me
11795 #endif
11796
11797 int
11798 main ()
11799 {
11800 return shl_load ();
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (ac_try="$ac_link"
11807 case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11812 $as_echo "$ac_try_echo") >&5
11813   (eval "$ac_link") 2>conftest.er1
11814   ac_status=$?
11815   grep -v '^ *+' conftest.er1 >conftest.err
11816   rm -f conftest.er1
11817   cat conftest.err >&5
11818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); } && {
11820          test -z "$ac_c_werror_flag" ||
11821          test ! -s conftest.err
11822        } && test -s conftest$ac_exeext && {
11823          test "$cross_compiling" = yes ||
11824          $as_test_x conftest$ac_exeext
11825        }; then
11826   ac_cv_func_shl_load=yes
11827 else
11828   $as_echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831         ac_cv_func_shl_load=no
11832 fi
11833
11834 rm -rf conftest.dSYM
11835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11836       conftest$ac_exeext conftest.$ac_ext
11837 fi
11838 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11839 $as_echo "$ac_cv_func_shl_load" >&6; }
11840 if test "x$ac_cv_func_shl_load" = x""yes; then
11841   lt_cv_dlopen="shl_load"
11842 else
11843   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11844 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11845 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11846   $as_echo_n "(cached) " >&6
11847 else
11848   ac_check_lib_save_LIBS=$LIBS
11849 LIBS="-ldld  $LIBS"
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858    Use char because int might match the return type of a GCC
11859    builtin and then its argument prototype would still apply.  */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char shl_load ();
11864 int
11865 main ()
11866 {
11867 return shl_load ();
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (ac_try="$ac_link"
11874 case "(($ac_try" in
11875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876   *) ac_try_echo=$ac_try;;
11877 esac
11878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11879 $as_echo "$ac_try_echo") >&5
11880   (eval "$ac_link") 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } && {
11887          test -z "$ac_c_werror_flag" ||
11888          test ! -s conftest.err
11889        } && test -s conftest$ac_exeext && {
11890          test "$cross_compiling" = yes ||
11891          $as_test_x conftest$ac_exeext
11892        }; then
11893   ac_cv_lib_dld_shl_load=yes
11894 else
11895   $as_echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11897
11898         ac_cv_lib_dld_shl_load=no
11899 fi
11900
11901 rm -rf conftest.dSYM
11902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11903       conftest$ac_exeext conftest.$ac_ext
11904 LIBS=$ac_check_lib_save_LIBS
11905 fi
11906 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11907 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11908 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11909   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11910 else
11911   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11912 $as_echo_n "checking for dlopen... " >&6; }
11913 if test "${ac_cv_func_dlopen+set}" = set; then
11914   $as_echo_n "(cached) " >&6
11915 else
11916   cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11924 #define dlopen innocuous_dlopen
11925
11926 /* System header to define __stub macros and hopefully few prototypes,
11927     which can conflict with char dlopen (); below.
11928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929     <limits.h> exists even on freestanding compilers.  */
11930
11931 #ifdef __STDC__
11932 # include <limits.h>
11933 #else
11934 # include <assert.h>
11935 #endif
11936
11937 #undef dlopen
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940    Use char because int might match the return type of a GCC
11941    builtin and then its argument prototype would still apply.  */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char dlopen ();
11946 /* The GNU C library defines this for functions which it implements
11947     to always fail with ENOSYS.  Some functions are actually named
11948     something starting with __ and the normal name is an alias.  */
11949 #if defined __stub_dlopen || defined __stub___dlopen
11950 choke me
11951 #endif
11952
11953 int
11954 main ()
11955 {
11956 return dlopen ();
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11968 $as_echo "$ac_try_echo") >&5
11969   (eval "$ac_link") 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } && {
11976          test -z "$ac_c_werror_flag" ||
11977          test ! -s conftest.err
11978        } && test -s conftest$ac_exeext && {
11979          test "$cross_compiling" = yes ||
11980          $as_test_x conftest$ac_exeext
11981        }; then
11982   ac_cv_func_dlopen=yes
11983 else
11984   $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         ac_cv_func_dlopen=no
11988 fi
11989
11990 rm -rf conftest.dSYM
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992       conftest$ac_exeext conftest.$ac_ext
11993 fi
11994 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11995 $as_echo "$ac_cv_func_dlopen" >&6; }
11996 if test "x$ac_cv_func_dlopen" = x""yes; then
11997   lt_cv_dlopen="dlopen"
11998 else
11999   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12002   $as_echo_n "(cached) " >&6
12003 else
12004   ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-ldl  $LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012
12013 /* Override any GCC internal prototype to avoid an error.
12014    Use char because int might match the return type of a GCC
12015    builtin and then its argument prototype would still apply.  */
12016 #ifdef __cplusplus
12017 extern "C"
12018 #endif
12019 char dlopen ();
12020 int
12021 main ()
12022 {
12023 return dlopen ();
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12035 $as_echo "$ac_try_echo") >&5
12036   (eval "$ac_link") 2>conftest.er1
12037   ac_status=$?
12038   grep -v '^ *+' conftest.er1 >conftest.err
12039   rm -f conftest.er1
12040   cat conftest.err >&5
12041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } && {
12043          test -z "$ac_c_werror_flag" ||
12044          test ! -s conftest.err
12045        } && test -s conftest$ac_exeext && {
12046          test "$cross_compiling" = yes ||
12047          $as_test_x conftest$ac_exeext
12048        }; then
12049   ac_cv_lib_dl_dlopen=yes
12050 else
12051   $as_echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12053
12054         ac_cv_lib_dl_dlopen=no
12055 fi
12056
12057 rm -rf conftest.dSYM
12058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12059       conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12063 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12064 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12065   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12066 else
12067   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12068 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12069 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12070   $as_echo_n "(cached) " >&6
12071 else
12072   ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-lsvld  $LIBS"
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h.  */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h.  */
12080
12081 /* Override any GCC internal prototype to avoid an error.
12082    Use char because int might match the return type of a GCC
12083    builtin and then its argument prototype would still apply.  */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 char dlopen ();
12088 int
12089 main ()
12090 {
12091 return dlopen ();
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (ac_try="$ac_link"
12098 case "(($ac_try" in
12099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100   *) ac_try_echo=$ac_try;;
12101 esac
12102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12103 $as_echo "$ac_try_echo") >&5
12104   (eval "$ac_link") 2>conftest.er1
12105   ac_status=$?
12106   grep -v '^ *+' conftest.er1 >conftest.err
12107   rm -f conftest.er1
12108   cat conftest.err >&5
12109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); } && {
12111          test -z "$ac_c_werror_flag" ||
12112          test ! -s conftest.err
12113        } && test -s conftest$ac_exeext && {
12114          test "$cross_compiling" = yes ||
12115          $as_test_x conftest$ac_exeext
12116        }; then
12117   ac_cv_lib_svld_dlopen=yes
12118 else
12119   $as_echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12121
12122         ac_cv_lib_svld_dlopen=no
12123 fi
12124
12125 rm -rf conftest.dSYM
12126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12127       conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12129 fi
12130 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12131 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12132 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12133   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12134 else
12135   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12136 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12137 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12138   $as_echo_n "(cached) " >&6
12139 else
12140   ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-ldld  $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150    Use char because int might match the return type of a GCC
12151    builtin and then its argument prototype would still apply.  */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char dld_link ();
12156 int
12157 main ()
12158 {
12159 return dld_link ();
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172   (eval "$ac_link") 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
12176   cat conftest.err >&5
12177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } && {
12179          test -z "$ac_c_werror_flag" ||
12180          test ! -s conftest.err
12181        } && test -s conftest$ac_exeext && {
12182          test "$cross_compiling" = yes ||
12183          $as_test_x conftest$ac_exeext
12184        }; then
12185   ac_cv_lib_dld_dld_link=yes
12186 else
12187   $as_echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190         ac_cv_lib_dld_dld_link=no
12191 fi
12192
12193 rm -rf conftest.dSYM
12194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12195       conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12199 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12200 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12201   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12202 fi
12203
12204
12205 fi
12206
12207
12208 fi
12209
12210
12211 fi
12212
12213
12214 fi
12215
12216
12217 fi
12218
12219     ;;
12220   esac
12221
12222   if test "x$lt_cv_dlopen" != xno; then
12223     enable_dlopen=yes
12224   else
12225     enable_dlopen=no
12226   fi
12227
12228   case $lt_cv_dlopen in
12229   dlopen)
12230     save_CPPFLAGS="$CPPFLAGS"
12231     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12232
12233     save_LDFLAGS="$LDFLAGS"
12234     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12235
12236     save_LIBS="$LIBS"
12237     LIBS="$lt_cv_dlopen_libs $LIBS"
12238
12239     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12240 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12241 if test "${lt_cv_dlopen_self+set}" = set; then
12242   $as_echo_n "(cached) " >&6
12243 else
12244           if test "$cross_compiling" = yes; then :
12245   lt_cv_dlopen_self=cross
12246 else
12247   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12248   lt_status=$lt_dlunknown
12249   cat > conftest.$ac_ext <<_LT_EOF
12250 #line 12250 "configure"
12251 #include "confdefs.h"
12252
12253 #if HAVE_DLFCN_H
12254 #include <dlfcn.h>
12255 #endif
12256
12257 #include <stdio.h>
12258
12259 #ifdef RTLD_GLOBAL
12260 #  define LT_DLGLOBAL           RTLD_GLOBAL
12261 #else
12262 #  ifdef DL_GLOBAL
12263 #    define LT_DLGLOBAL         DL_GLOBAL
12264 #  else
12265 #    define LT_DLGLOBAL         0
12266 #  endif
12267 #endif
12268
12269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12270    find out it does not work in some platform. */
12271 #ifndef LT_DLLAZY_OR_NOW
12272 #  ifdef RTLD_LAZY
12273 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12274 #  else
12275 #    ifdef DL_LAZY
12276 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12277 #    else
12278 #      ifdef RTLD_NOW
12279 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12280 #      else
12281 #        ifdef DL_NOW
12282 #          define LT_DLLAZY_OR_NOW      DL_NOW
12283 #        else
12284 #          define LT_DLLAZY_OR_NOW      0
12285 #        endif
12286 #      endif
12287 #    endif
12288 #  endif
12289 #endif
12290
12291 void fnord() { int i=42;}
12292 int main ()
12293 {
12294   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12295   int status = $lt_dlunknown;
12296
12297   if (self)
12298     {
12299       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12300       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12301       /* dlclose (self); */
12302     }
12303   else
12304     puts (dlerror ());
12305
12306   return status;
12307 }
12308 _LT_EOF
12309   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310   (eval $ac_link) 2>&5
12311   ac_status=$?
12312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12314     (./conftest; exit; ) >&5 2>/dev/null
12315     lt_status=$?
12316     case x$lt_status in
12317       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12318       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12319       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12320     esac
12321   else :
12322     # compilation failed
12323     lt_cv_dlopen_self=no
12324   fi
12325 fi
12326 rm -fr conftest*
12327
12328
12329 fi
12330 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12331 $as_echo "$lt_cv_dlopen_self" >&6; }
12332
12333     if test "x$lt_cv_dlopen_self" = xyes; then
12334       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12335       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12336 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12337 if test "${lt_cv_dlopen_self_static+set}" = set; then
12338   $as_echo_n "(cached) " >&6
12339 else
12340           if test "$cross_compiling" = yes; then :
12341   lt_cv_dlopen_self_static=cross
12342 else
12343   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12344   lt_status=$lt_dlunknown
12345   cat > conftest.$ac_ext <<_LT_EOF
12346 #line 12346 "configure"
12347 #include "confdefs.h"
12348
12349 #if HAVE_DLFCN_H
12350 #include <dlfcn.h>
12351 #endif
12352
12353 #include <stdio.h>
12354
12355 #ifdef RTLD_GLOBAL
12356 #  define LT_DLGLOBAL           RTLD_GLOBAL
12357 #else
12358 #  ifdef DL_GLOBAL
12359 #    define LT_DLGLOBAL         DL_GLOBAL
12360 #  else
12361 #    define LT_DLGLOBAL         0
12362 #  endif
12363 #endif
12364
12365 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12366    find out it does not work in some platform. */
12367 #ifndef LT_DLLAZY_OR_NOW
12368 #  ifdef RTLD_LAZY
12369 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12370 #  else
12371 #    ifdef DL_LAZY
12372 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12373 #    else
12374 #      ifdef RTLD_NOW
12375 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12376 #      else
12377 #        ifdef DL_NOW
12378 #          define LT_DLLAZY_OR_NOW      DL_NOW
12379 #        else
12380 #          define LT_DLLAZY_OR_NOW      0
12381 #        endif
12382 #      endif
12383 #    endif
12384 #  endif
12385 #endif
12386
12387 void fnord() { int i=42;}
12388 int main ()
12389 {
12390   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12391   int status = $lt_dlunknown;
12392
12393   if (self)
12394     {
12395       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12396       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12397       /* dlclose (self); */
12398     }
12399   else
12400     puts (dlerror ());
12401
12402   return status;
12403 }
12404 _LT_EOF
12405   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12406   (eval $ac_link) 2>&5
12407   ac_status=$?
12408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12410     (./conftest; exit; ) >&5 2>/dev/null
12411     lt_status=$?
12412     case x$lt_status in
12413       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12414       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12415       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12416     esac
12417   else :
12418     # compilation failed
12419     lt_cv_dlopen_self_static=no
12420   fi
12421 fi
12422 rm -fr conftest*
12423
12424
12425 fi
12426 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12427 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12428     fi
12429
12430     CPPFLAGS="$save_CPPFLAGS"
12431     LDFLAGS="$save_LDFLAGS"
12432     LIBS="$save_LIBS"
12433     ;;
12434   esac
12435
12436   case $lt_cv_dlopen_self in
12437   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12438   *) enable_dlopen_self=unknown ;;
12439   esac
12440
12441   case $lt_cv_dlopen_self_static in
12442   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12443   *) enable_dlopen_self_static=unknown ;;
12444   esac
12445 fi
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463 striplib=
12464 old_striplib=
12465 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12466 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12467 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12468   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12469   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12470   { $as_echo "$as_me:$LINENO: result: yes" >&5
12471 $as_echo "yes" >&6; }
12472 else
12473 # FIXME - insert some real tests, host_os isn't really good enough
12474   case $host_os in
12475   darwin*)
12476     if test -n "$STRIP" ; then
12477       striplib="$STRIP -x"
12478       old_striplib="$STRIP -S"
12479       { $as_echo "$as_me:$LINENO: result: yes" >&5
12480 $as_echo "yes" >&6; }
12481     else
12482       { $as_echo "$as_me:$LINENO: result: no" >&5
12483 $as_echo "no" >&6; }
12484     fi
12485     ;;
12486   *)
12487     { $as_echo "$as_me:$LINENO: result: no" >&5
12488 $as_echo "no" >&6; }
12489     ;;
12490   esac
12491 fi
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504   # Report which library types will actually be built
12505   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12506 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12507   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12508 $as_echo "$can_build_shared" >&6; }
12509
12510   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12511 $as_echo_n "checking whether to build shared libraries... " >&6; }
12512   test "$can_build_shared" = "no" && enable_shared=no
12513
12514   # On AIX, shared libraries and static libraries use the same namespace, and
12515   # are all built from PIC.
12516   case $host_os in
12517   aix3*)
12518     test "$enable_shared" = yes && enable_static=no
12519     if test -n "$RANLIB"; then
12520       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12521       postinstall_cmds='$RANLIB $lib'
12522     fi
12523     ;;
12524
12525   aix[4-9]*)
12526     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12527       test "$enable_shared" = yes && enable_static=no
12528     fi
12529     ;;
12530   esac
12531   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12532 $as_echo "$enable_shared" >&6; }
12533
12534   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12535 $as_echo_n "checking whether to build static libraries... " >&6; }
12536   # Make sure either enable_shared or enable_static is yes.
12537   test "$enable_shared" = yes || enable_static=yes
12538   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12539 $as_echo "$enable_static" >&6; }
12540
12541
12542
12543
12544 fi
12545 ac_ext=c
12546 ac_cpp='$CPP $CPPFLAGS'
12547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12550
12551 CC="$lt_save_CC"
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565         ac_config_commands="$ac_config_commands libtool"
12566
12567
12568
12569
12570 # Only expand once:
12571
12572
12573 fi
12574
12575 if test -n "${machine_dir}"; then
12576   case ${machine_dir} in
12577         i386)
12578
12579 subdirs="$subdirs i386"
12580  ;;
12581   esac;
12582 fi
12583
12584 CRT0=
12585 if test -n "${machine_dir}"; then
12586   CRT0=crt0.o
12587 fi
12588
12589
12590  if test x${machine_dir} != x; then
12591   HAVE_MACHINE_DIR_TRUE=
12592   HAVE_MACHINE_DIR_FALSE='#'
12593 else
12594   HAVE_MACHINE_DIR_TRUE='#'
12595   HAVE_MACHINE_DIR_FALSE=
12596 fi
12597
12598
12599 ac_config_files="$ac_config_files Makefile"
12600
12601 cat >confcache <<\_ACEOF
12602 # This file is a shell script that caches the results of configure
12603 # tests run on this system so they can be shared between configure
12604 # scripts and configure runs, see configure's option --config-cache.
12605 # It is not useful on other systems.  If it contains results you don't
12606 # want to keep, you may remove or edit it.
12607 #
12608 # config.status only pays attention to the cache file if you give it
12609 # the --recheck option to rerun configure.
12610 #
12611 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12612 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12613 # following values.
12614
12615 _ACEOF
12616
12617 # The following way of writing the cache mishandles newlines in values,
12618 # but we know of no workaround that is simple, portable, and efficient.
12619 # So, we kill variables containing newlines.
12620 # Ultrix sh set writes to stderr and can't be redirected directly,
12621 # and sets the high bit in the cache file unless we assign to the vars.
12622 (
12623   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12624     eval ac_val=\$$ac_var
12625     case $ac_val in #(
12626     *${as_nl}*)
12627       case $ac_var in #(
12628       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12630       esac
12631       case $ac_var in #(
12632       _ | IFS | as_nl) ;; #(
12633       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12634       *) $as_unset $ac_var ;;
12635       esac ;;
12636     esac
12637   done
12638
12639   (set) 2>&1 |
12640     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12641     *${as_nl}ac_space=\ *)
12642       # `set' does not quote correctly, so add quotes (double-quote
12643       # substitution turns \\\\ into \\, and sed turns \\ into \).
12644       sed -n \
12645         "s/'/'\\\\''/g;
12646           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12647       ;; #(
12648     *)
12649       # `set' quotes correctly as required by POSIX, so do not add quotes.
12650       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12651       ;;
12652     esac |
12653     sort
12654 ) |
12655   sed '
12656      /^ac_cv_env_/b end
12657      t clear
12658      :clear
12659      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12660      t end
12661      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12662      :end' >>confcache
12663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12664   if test -w "$cache_file"; then
12665     test "x$cache_file" != "x/dev/null" &&
12666       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12667 $as_echo "$as_me: updating cache $cache_file" >&6;}
12668     cat confcache >$cache_file
12669   else
12670     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12671 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12672   fi
12673 fi
12674 rm -f confcache
12675
12676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12677 # Let make expand exec_prefix.
12678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12679
12680 # Transform confdefs.h into DEFS.
12681 # Protect against shell expansion while executing Makefile rules.
12682 # Protect against Makefile macro expansion.
12683 #
12684 # If the first sed substitution is executed (which looks for macros that
12685 # take arguments), then branch to the quote section.  Otherwise,
12686 # look for a macro that doesn't take arguments.
12687 ac_script='
12688 :mline
12689 /\\$/{
12690  N
12691  s,\\\n,,
12692  b mline
12693 }
12694 t clear
12695 :clear
12696 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12697 t quote
12698 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12699 t quote
12700 b any
12701 :quote
12702 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12703 s/\[/\\&/g
12704 s/\]/\\&/g
12705 s/\$/$$/g
12706 H
12707 :any
12708 ${
12709         g
12710         s/^\n//
12711         s/\n/ /g
12712         p
12713 }
12714 '
12715 DEFS=`sed -n "$ac_script" confdefs.h`
12716
12717
12718 ac_libobjs=
12719 ac_ltlibobjs=
12720 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12721   # 1. Remove the extension, and $U if already installed.
12722   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12723   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12724   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12725   #    will be set to the directory where LIBOBJS objects are built.
12726   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12727   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12728 done
12729 LIBOBJS=$ac_libobjs
12730
12731 LTLIBOBJS=$ac_ltlibobjs
12732
12733
12734 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12735   { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12736 Usually this means the macro was only invoked conditionally." >&5
12737 $as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12738 Usually this means the macro was only invoked conditionally." >&2;}
12739    { (exit 1); exit 1; }; }
12740 fi
12741  if test -n "$EXEEXT"; then
12742   am__EXEEXT_TRUE=
12743   am__EXEEXT_FALSE='#'
12744 else
12745   am__EXEEXT_TRUE='#'
12746   am__EXEEXT_FALSE=
12747 fi
12748
12749 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12750   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12751 Usually this means the macro was only invoked conditionally." >&5
12752 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12753 Usually this means the macro was only invoked conditionally." >&2;}
12754    { (exit 1); exit 1; }; }
12755 fi
12756 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12757   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12758 Usually this means the macro was only invoked conditionally." >&5
12759 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12760 Usually this means the macro was only invoked conditionally." >&2;}
12761    { (exit 1); exit 1; }; }
12762 fi
12763 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12764   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12765 Usually this means the macro was only invoked conditionally." >&5
12766 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12767 Usually this means the macro was only invoked conditionally." >&2;}
12768    { (exit 1); exit 1; }; }
12769 fi
12770 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12771   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12772 Usually this means the macro was only invoked conditionally." >&5
12773 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12774 Usually this means the macro was only invoked conditionally." >&2;}
12775    { (exit 1); exit 1; }; }
12776 fi
12777 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12778   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12779 Usually this means the macro was only invoked conditionally." >&5
12780 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12781 Usually this means the macro was only invoked conditionally." >&2;}
12782    { (exit 1); exit 1; }; }
12783 fi
12784 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12785   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12786 Usually this means the macro was only invoked conditionally." >&5
12787 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12788 Usually this means the macro was only invoked conditionally." >&2;}
12789    { (exit 1); exit 1; }; }
12790 fi
12791 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12792   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12793 Usually this means the macro was only invoked conditionally." >&5
12794 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12795 Usually this means the macro was only invoked conditionally." >&2;}
12796    { (exit 1); exit 1; }; }
12797 fi
12798 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12799   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12800 Usually this means the macro was only invoked conditionally." >&5
12801 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12802 Usually this means the macro was only invoked conditionally." >&2;}
12803    { (exit 1); exit 1; }; }
12804 fi
12805 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12806   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12807 Usually this means the macro was only invoked conditionally." >&5
12808 $as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12809 Usually this means the macro was only invoked conditionally." >&2;}
12810    { (exit 1); exit 1; }; }
12811 fi
12812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12813   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12814 Usually this means the macro was only invoked conditionally." >&5
12815 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12816 Usually this means the macro was only invoked conditionally." >&2;}
12817    { (exit 1); exit 1; }; }
12818 fi
12819 if test -z "${HAVE_MACHINE_DIR_TRUE}" && test -z "${HAVE_MACHINE_DIR_FALSE}"; then
12820   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
12821 Usually this means the macro was only invoked conditionally." >&5
12822 $as_echo "$as_me: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
12823 Usually this means the macro was only invoked conditionally." >&2;}
12824    { (exit 1); exit 1; }; }
12825 fi
12826
12827 : ${CONFIG_STATUS=./config.status}
12828 ac_write_fail=0
12829 ac_clean_files_save=$ac_clean_files
12830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12831 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12833 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12834 #! $SHELL
12835 # Generated by $as_me.
12836 # Run this file to recreate the current configuration.
12837 # Compiler output produced by configure, useful for debugging
12838 # configure, is in config.log if it exists.
12839
12840 debug=false
12841 ac_cs_recheck=false
12842 ac_cs_silent=false
12843 SHELL=\${CONFIG_SHELL-$SHELL}
12844 _ACEOF
12845
12846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12847 ## --------------------- ##
12848 ## M4sh Initialization.  ##
12849 ## --------------------- ##
12850
12851 # Be more Bourne compatible
12852 DUALCASE=1; export DUALCASE # for MKS sh
12853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12854   emulate sh
12855   NULLCMD=:
12856   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12857   # is contrary to our usage.  Disable this feature.
12858   alias -g '${1+"$@"}'='"$@"'
12859   setopt NO_GLOB_SUBST
12860 else
12861   case `(set -o) 2>/dev/null` in
12862   *posix*) set -o posix ;;
12863 esac
12864
12865 fi
12866
12867
12868
12869
12870 # PATH needs CR
12871 # Avoid depending upon Character Ranges.
12872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12875 as_cr_digits='0123456789'
12876 as_cr_alnum=$as_cr_Letters$as_cr_digits
12877
12878 as_nl='
12879 '
12880 export as_nl
12881 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12882 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12885 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12886   as_echo='printf %s\n'
12887   as_echo_n='printf %s'
12888 else
12889   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12890     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12891     as_echo_n='/usr/ucb/echo -n'
12892   else
12893     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12894     as_echo_n_body='eval
12895       arg=$1;
12896       case $arg in
12897       *"$as_nl"*)
12898         expr "X$arg" : "X\\(.*\\)$as_nl";
12899         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12900       esac;
12901       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12902     '
12903     export as_echo_n_body
12904     as_echo_n='sh -c $as_echo_n_body as_echo'
12905   fi
12906   export as_echo_body
12907   as_echo='sh -c $as_echo_body as_echo'
12908 fi
12909
12910 # The user is always right.
12911 if test "${PATH_SEPARATOR+set}" != set; then
12912   PATH_SEPARATOR=:
12913   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12914     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12915       PATH_SEPARATOR=';'
12916   }
12917 fi
12918
12919 # Support unset when possible.
12920 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12921   as_unset=unset
12922 else
12923   as_unset=false
12924 fi
12925
12926
12927 # IFS
12928 # We need space, tab and new line, in precisely that order.  Quoting is
12929 # there to prevent editors from complaining about space-tab.
12930 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12931 # splitting by setting IFS to empty value.)
12932 IFS=" ""        $as_nl"
12933
12934 # Find who we are.  Look in the path if we contain no directory separator.
12935 case $0 in
12936   *[\\/]* ) as_myself=$0 ;;
12937   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938 for as_dir in $PATH
12939 do
12940   IFS=$as_save_IFS
12941   test -z "$as_dir" && as_dir=.
12942   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12943 done
12944 IFS=$as_save_IFS
12945
12946      ;;
12947 esac
12948 # We did not find ourselves, most probably we were run as `sh COMMAND'
12949 # in which case we are not to be found in the path.
12950 if test "x$as_myself" = x; then
12951   as_myself=$0
12952 fi
12953 if test ! -f "$as_myself"; then
12954   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12955   { (exit 1); exit 1; }
12956 fi
12957
12958 # Work around bugs in pre-3.0 UWIN ksh.
12959 for as_var in ENV MAIL MAILPATH
12960 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12961 done
12962 PS1='$ '
12963 PS2='> '
12964 PS4='+ '
12965
12966 # NLS nuisances.
12967 LC_ALL=C
12968 export LC_ALL
12969 LANGUAGE=C
12970 export LANGUAGE
12971
12972 # Required to use basename.
12973 if expr a : '\(a\)' >/dev/null 2>&1 &&
12974    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12975   as_expr=expr
12976 else
12977   as_expr=false
12978 fi
12979
12980 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12981   as_basename=basename
12982 else
12983   as_basename=false
12984 fi
12985
12986
12987 # Name of the executable.
12988 as_me=`$as_basename -- "$0" ||
12989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12990          X"$0" : 'X\(//\)$' \| \
12991          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12992 $as_echo X/"$0" |
12993     sed '/^.*\/\([^/][^/]*\)\/*$/{
12994             s//\1/
12995             q
12996           }
12997           /^X\/\(\/\/\)$/{
12998             s//\1/
12999             q
13000           }
13001           /^X\/\(\/\).*/{
13002             s//\1/
13003             q
13004           }
13005           s/.*/./; q'`
13006
13007 # CDPATH.
13008 $as_unset CDPATH
13009
13010
13011
13012   as_lineno_1=$LINENO
13013   as_lineno_2=$LINENO
13014   test "x$as_lineno_1" != "x$as_lineno_2" &&
13015   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13016
13017   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13018   # uniformly replaced by the line number.  The first 'sed' inserts a
13019   # line-number line after each line using $LINENO; the second 'sed'
13020   # does the real work.  The second script uses 'N' to pair each
13021   # line-number line with the line containing $LINENO, and appends
13022   # trailing '-' during substitution so that $LINENO is not a special
13023   # case at line end.
13024   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13025   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13026   # E. McMahon (1931-1989) for sed's syntax.  :-)
13027   sed -n '
13028     p
13029     /[$]LINENO/=
13030   ' <$as_myself |
13031     sed '
13032       s/[$]LINENO.*/&-/
13033       t lineno
13034       b
13035       :lineno
13036       N
13037       :loop
13038       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13039       t loop
13040       s/-\n.*//
13041     ' >$as_me.lineno &&
13042   chmod +x "$as_me.lineno" ||
13043     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13044    { (exit 1); exit 1; }; }
13045
13046   # Don't try to exec as it changes $[0], causing all sort of problems
13047   # (the dirname of $[0] is not the place where we might find the
13048   # original and so on.  Autoconf is especially sensitive to this).
13049   . "./$as_me.lineno"
13050   # Exit status is that of the last command.
13051   exit
13052 }
13053
13054
13055 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13056   as_dirname=dirname
13057 else
13058   as_dirname=false
13059 fi
13060
13061 ECHO_C= ECHO_N= ECHO_T=
13062 case `echo -n x` in
13063 -n*)
13064   case `echo 'x\c'` in
13065   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13066   *)   ECHO_C='\c';;
13067   esac;;
13068 *)
13069   ECHO_N='-n';;
13070 esac
13071 if expr a : '\(a\)' >/dev/null 2>&1 &&
13072    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13073   as_expr=expr
13074 else
13075   as_expr=false
13076 fi
13077
13078 rm -f conf$$ conf$$.exe conf$$.file
13079 if test -d conf$$.dir; then
13080   rm -f conf$$.dir/conf$$.file
13081 else
13082   rm -f conf$$.dir
13083   mkdir conf$$.dir 2>/dev/null
13084 fi
13085 if (echo >conf$$.file) 2>/dev/null; then
13086   if ln -s conf$$.file conf$$ 2>/dev/null; then
13087     as_ln_s='ln -s'
13088     # ... but there are two gotchas:
13089     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13090     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13091     # In both cases, we have to default to `cp -p'.
13092     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13093       as_ln_s='cp -p'
13094   elif ln conf$$.file conf$$ 2>/dev/null; then
13095     as_ln_s=ln
13096   else
13097     as_ln_s='cp -p'
13098   fi
13099 else
13100   as_ln_s='cp -p'
13101 fi
13102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13103 rmdir conf$$.dir 2>/dev/null
13104
13105 if mkdir -p . 2>/dev/null; then
13106   as_mkdir_p=:
13107 else
13108   test -d ./-p && rmdir ./-p
13109   as_mkdir_p=false
13110 fi
13111
13112 if test -x / >/dev/null 2>&1; then
13113   as_test_x='test -x'
13114 else
13115   if ls -dL / >/dev/null 2>&1; then
13116     as_ls_L_option=L
13117   else
13118     as_ls_L_option=
13119   fi
13120   as_test_x='
13121     eval sh -c '\''
13122       if test -d "$1"; then
13123         test -d "$1/.";
13124       else
13125         case $1 in
13126         -*)set "./$1";;
13127         esac;
13128         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13129         ???[sx]*):;;*)false;;esac;fi
13130     '\'' sh
13131   '
13132 fi
13133 as_executable_p=$as_test_x
13134
13135 # Sed expression to map a string onto a valid CPP name.
13136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13137
13138 # Sed expression to map a string onto a valid variable name.
13139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13140
13141
13142 exec 6>&1
13143
13144 # Save the log message, to keep $[0] and so on meaningful, and to
13145 # report actual input values of CONFIG_FILES etc. instead of their
13146 # values after options handling.
13147 ac_log="
13148 This file was extended by newlib $as_me 1.17.0, which was
13149 generated by GNU Autoconf 2.63.  Invocation command line was
13150
13151   CONFIG_FILES    = $CONFIG_FILES
13152   CONFIG_HEADERS  = $CONFIG_HEADERS
13153   CONFIG_LINKS    = $CONFIG_LINKS
13154   CONFIG_COMMANDS = $CONFIG_COMMANDS
13155   $ $0 $@
13156
13157 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13158 "
13159
13160 _ACEOF
13161
13162 case $ac_config_files in *"
13163 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13164 esac
13165
13166
13167
13168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13169 # Files that config.status was made for.
13170 config_files="$ac_config_files"
13171 config_commands="$ac_config_commands"
13172
13173 _ACEOF
13174
13175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13176 ac_cs_usage="\
13177 \`$as_me' instantiates files from templates according to the
13178 current configuration.
13179
13180 Usage: $0 [OPTION]... [FILE]...
13181
13182   -h, --help       print this help, then exit
13183   -V, --version    print version number and configuration settings, then exit
13184   -q, --quiet, --silent
13185                    do not print progress messages
13186   -d, --debug      don't remove temporary files
13187       --recheck    update $as_me by reconfiguring in the same conditions
13188       --file=FILE[:TEMPLATE]
13189                    instantiate the configuration file FILE
13190
13191 Configuration files:
13192 $config_files
13193
13194 Configuration commands:
13195 $config_commands
13196
13197 Report bugs to <bug-autoconf@gnu.org>."
13198
13199 _ACEOF
13200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13201 ac_cs_version="\\
13202 newlib config.status 1.17.0
13203 configured by $0, generated by GNU Autoconf 2.63,
13204   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13205
13206 Copyright (C) 2008 Free Software Foundation, Inc.
13207 This config.status script is free software; the Free Software Foundation
13208 gives unlimited permission to copy, distribute and modify it."
13209
13210 ac_pwd='$ac_pwd'
13211 srcdir='$srcdir'
13212 INSTALL='$INSTALL'
13213 MKDIR_P='$MKDIR_P'
13214 AWK='$AWK'
13215 test -n "\$AWK" || AWK=awk
13216 _ACEOF
13217
13218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13219 # The default lists apply if the user does not specify any file.
13220 ac_need_defaults=:
13221 while test $# != 0
13222 do
13223   case $1 in
13224   --*=*)
13225     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13226     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13227     ac_shift=:
13228     ;;
13229   *)
13230     ac_option=$1
13231     ac_optarg=$2
13232     ac_shift=shift
13233     ;;
13234   esac
13235
13236   case $ac_option in
13237   # Handling of the options.
13238   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13239     ac_cs_recheck=: ;;
13240   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13241     $as_echo "$ac_cs_version"; exit ;;
13242   --debug | --debu | --deb | --de | --d | -d )
13243     debug=: ;;
13244   --file | --fil | --fi | --f )
13245     $ac_shift
13246     case $ac_optarg in
13247     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13248     esac
13249     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13250     ac_need_defaults=false;;
13251   --he | --h |  --help | --hel | -h )
13252     $as_echo "$ac_cs_usage"; exit ;;
13253   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13254   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13255     ac_cs_silent=: ;;
13256
13257   # This is an error.
13258   -*) { $as_echo "$as_me: error: unrecognized option: $1
13259 Try \`$0 --help' for more information." >&2
13260    { (exit 1); exit 1; }; } ;;
13261
13262   *) ac_config_targets="$ac_config_targets $1"
13263      ac_need_defaults=false ;;
13264
13265   esac
13266   shift
13267 done
13268
13269 ac_configure_extra_args=
13270
13271 if $ac_cs_silent; then
13272   exec 6>/dev/null
13273   ac_configure_extra_args="$ac_configure_extra_args --silent"
13274 fi
13275
13276 _ACEOF
13277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13278 if \$ac_cs_recheck; then
13279   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13280   shift
13281   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13282   CONFIG_SHELL='$SHELL'
13283   export CONFIG_SHELL
13284   exec "\$@"
13285 fi
13286
13287 _ACEOF
13288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13289 exec 5>>config.log
13290 {
13291   echo
13292   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13293 ## Running $as_me. ##
13294 _ASBOX
13295   $as_echo "$ac_log"
13296 } >&5
13297
13298 _ACEOF
13299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13300 #
13301 # INIT-COMMANDS
13302 #
13303 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13304
13305
13306 # The HP-UX ksh and POSIX shell print the target directory to stdout
13307 # if CDPATH is set.
13308 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13309
13310 sed_quote_subst='$sed_quote_subst'
13311 double_quote_subst='$double_quote_subst'
13312 delay_variable_subst='$delay_variable_subst'
13313 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13314 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13315 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13316 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13317 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13318 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13319 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13320 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13321 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13322 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13323 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13324 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13325 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13326 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13327 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13328 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13329 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13330 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13331 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13332 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13333 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13334 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13335 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13336 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13337 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13338 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13339 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13340 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13341 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13342 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13343 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13344 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13345 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13346 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13347 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13348 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13349 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13350 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13351 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13352 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13353 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13354 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13355 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13356 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13357 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13358 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13359 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13360 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13361 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13362 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13363 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13364 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13365 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13366 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13367 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13368 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13369 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13370 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13371 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13372 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13373 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13374 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13375 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13376 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13377 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13378 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13379 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13380 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13381 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13382 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13383 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13384 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13385 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13386 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13387 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13388 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13389 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13390 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13391 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13392 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13393 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13394 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13395 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13396 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13397 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13398 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13399 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13400 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13401 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13402 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13403 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13404 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13405 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13406 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13407 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13408 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13409 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13410 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13411 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13412 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13413 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13414 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13415 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13416 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13417 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13418 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13419 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13420 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13421 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13422 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13423 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13424 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13425 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13426 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13427 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13428 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13429 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13430 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13431 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13432 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13433
13434 LTCC='$LTCC'
13435 LTCFLAGS='$LTCFLAGS'
13436 compiler='$compiler_DEFAULT'
13437
13438 # Quote evaled strings.
13439 for var in SED \
13440 GREP \
13441 EGREP \
13442 FGREP \
13443 LD \
13444 NM \
13445 LN_S \
13446 lt_SP2NL \
13447 lt_NL2SP \
13448 reload_flag \
13449 deplibs_check_method \
13450 file_magic_cmd \
13451 AR \
13452 AR_FLAGS \
13453 STRIP \
13454 RANLIB \
13455 CC \
13456 CFLAGS \
13457 compiler \
13458 lt_cv_sys_global_symbol_pipe \
13459 lt_cv_sys_global_symbol_to_cdecl \
13460 lt_cv_sys_global_symbol_to_c_name_address \
13461 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13462 SHELL \
13463 ECHO \
13464 lt_prog_compiler_no_builtin_flag \
13465 lt_prog_compiler_wl \
13466 lt_prog_compiler_pic \
13467 lt_prog_compiler_static \
13468 lt_cv_prog_compiler_c_o \
13469 need_locks \
13470 DSYMUTIL \
13471 NMEDIT \
13472 LIPO \
13473 OTOOL \
13474 OTOOL64 \
13475 shrext_cmds \
13476 export_dynamic_flag_spec \
13477 whole_archive_flag_spec \
13478 compiler_needs_object \
13479 with_gnu_ld \
13480 allow_undefined_flag \
13481 no_undefined_flag \
13482 hardcode_libdir_flag_spec \
13483 hardcode_libdir_flag_spec_ld \
13484 hardcode_libdir_separator \
13485 fix_srcfile_path \
13486 exclude_expsyms \
13487 include_expsyms \
13488 file_list_spec \
13489 variables_saved_for_relink \
13490 libname_spec \
13491 library_names_spec \
13492 soname_spec \
13493 finish_eval \
13494 old_striplib \
13495 striplib; do
13496     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13497     *[\\\\\\\`\\"\\\$]*)
13498       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13499       ;;
13500     *)
13501       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13502       ;;
13503     esac
13504 done
13505
13506 # Double-quote double-evaled strings.
13507 for var in reload_cmds \
13508 old_postinstall_cmds \
13509 old_postuninstall_cmds \
13510 old_archive_cmds \
13511 extract_expsyms_cmds \
13512 old_archive_from_new_cmds \
13513 old_archive_from_expsyms_cmds \
13514 archive_cmds \
13515 archive_expsym_cmds \
13516 module_cmds \
13517 module_expsym_cmds \
13518 export_symbols_cmds \
13519 prelink_cmds \
13520 postinstall_cmds \
13521 postuninstall_cmds \
13522 finish_cmds \
13523 sys_lib_search_path_spec \
13524 sys_lib_dlsearch_path_spec; do
13525     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13526     *[\\\\\\\`\\"\\\$]*)
13527       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13528       ;;
13529     *)
13530       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13531       ;;
13532     esac
13533 done
13534
13535 # Fix-up fallback echo if it was mangled by the above quoting rules.
13536 case \$lt_ECHO in
13537 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13538   ;;
13539 esac
13540
13541 ac_aux_dir='$ac_aux_dir'
13542 xsi_shell='$xsi_shell'
13543 lt_shell_append='$lt_shell_append'
13544
13545 # See if we are running on zsh, and set the options which allow our
13546 # commands through without removal of \ escapes INIT.
13547 if test -n "\${ZSH_VERSION+set}" ; then
13548    setopt NO_GLOB_SUBST
13549 fi
13550
13551
13552     PACKAGE='$PACKAGE'
13553     VERSION='$VERSION'
13554     TIMESTAMP='$TIMESTAMP'
13555     RM='$RM'
13556     ofile='$ofile'
13557
13558
13559
13560
13561 _ACEOF
13562
13563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13564
13565 # Handling of arguments.
13566 for ac_config_target in $ac_config_targets
13567 do
13568   case $ac_config_target in
13569     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13570     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13571     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13572
13573   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13574 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13575    { (exit 1); exit 1; }; };;
13576   esac
13577 done
13578
13579
13580 # If the user did not use the arguments to specify the items to instantiate,
13581 # then the envvar interface is used.  Set only those that are not.
13582 # We use the long form for the default assignment because of an extremely
13583 # bizarre bug on SunOS 4.1.3.
13584 if $ac_need_defaults; then
13585   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13586   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13587 fi
13588
13589 # Have a temporary directory for convenience.  Make it in the build tree
13590 # simply because there is no reason against having it here, and in addition,
13591 # creating and moving files from /tmp can sometimes cause problems.
13592 # Hook for its removal unless debugging.
13593 # Note that there is a small window in which the directory will not be cleaned:
13594 # after its creation but before its name has been assigned to `$tmp'.
13595 $debug ||
13596 {
13597   tmp=
13598   trap 'exit_status=$?
13599   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13600 ' 0
13601   trap '{ (exit 1); exit 1; }' 1 2 13 15
13602 }
13603 # Create a (secure) tmp directory for tmp files.
13604
13605 {
13606   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13607   test -n "$tmp" && test -d "$tmp"
13608 }  ||
13609 {
13610   tmp=./conf$$-$RANDOM
13611   (umask 077 && mkdir "$tmp")
13612 } ||
13613 {
13614    $as_echo "$as_me: cannot create a temporary directory in ." >&2
13615    { (exit 1); exit 1; }
13616 }
13617
13618 # Set up the scripts for CONFIG_FILES section.
13619 # No need to generate them if there are no CONFIG_FILES.
13620 # This happens for instance with `./config.status config.h'.
13621 if test -n "$CONFIG_FILES"; then
13622
13623
13624 ac_cr='\r'
13625 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13626 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13627   ac_cs_awk_cr='\\r'
13628 else
13629   ac_cs_awk_cr=$ac_cr
13630 fi
13631
13632 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13633 _ACEOF
13634
13635
13636 {
13637   echo "cat >conf$$subs.awk <<_ACEOF" &&
13638   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13639   echo "_ACEOF"
13640 } >conf$$subs.sh ||
13641   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13642 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13643    { (exit 1); exit 1; }; }
13644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13645 ac_delim='%!_!# '
13646 for ac_last_try in false false false false false :; do
13647   . ./conf$$subs.sh ||
13648     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13649 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13650    { (exit 1); exit 1; }; }
13651
13652   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13653   if test $ac_delim_n = $ac_delim_num; then
13654     break
13655   elif $ac_last_try; then
13656     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13657 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13658    { (exit 1); exit 1; }; }
13659   else
13660     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13661   fi
13662 done
13663 rm -f conf$$subs.sh
13664
13665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13666 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13667 _ACEOF
13668 sed -n '
13669 h
13670 s/^/S["/; s/!.*/"]=/
13671 p
13672 g
13673 s/^[^!]*!//
13674 :repl
13675 t repl
13676 s/'"$ac_delim"'$//
13677 t delim
13678 :nl
13679 h
13680 s/\(.\{148\}\).*/\1/
13681 t more1
13682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13683 p
13684 n
13685 b repl
13686 :more1
13687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13688 p
13689 g
13690 s/.\{148\}//
13691 t nl
13692 :delim
13693 h
13694 s/\(.\{148\}\).*/\1/
13695 t more2
13696 s/["\\]/\\&/g; s/^/"/; s/$/"/
13697 p
13698 b
13699 :more2
13700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13701 p
13702 g
13703 s/.\{148\}//
13704 t delim
13705 ' <conf$$subs.awk | sed '
13706 /^[^""]/{
13707   N
13708   s/\n//
13709 }
13710 ' >>$CONFIG_STATUS || ac_write_fail=1
13711 rm -f conf$$subs.awk
13712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13713 _ACAWK
13714 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13715   for (key in S) S_is_set[key] = 1
13716   FS = "\a"
13717
13718 }
13719 {
13720   line = $ 0
13721   nfields = split(line, field, "@")
13722   substed = 0
13723   len = length(field[1])
13724   for (i = 2; i < nfields; i++) {
13725     key = field[i]
13726     keylen = length(key)
13727     if (S_is_set[key]) {
13728       value = S[key]
13729       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13730       len += length(value) + length(field[++i])
13731       substed = 1
13732     } else
13733       len += 1 + keylen
13734   }
13735
13736   print line
13737 }
13738
13739 _ACAWK
13740 _ACEOF
13741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13743   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13744 else
13745   cat
13746 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13747   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13748 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13749    { (exit 1); exit 1; }; }
13750 _ACEOF
13751
13752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13754 # trailing colons and then remove the whole line if VPATH becomes empty
13755 # (actually we leave an empty line to preserve line numbers).
13756 if test "x$srcdir" = x.; then
13757   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13758 s/:*\$(srcdir):*/:/
13759 s/:*\${srcdir}:*/:/
13760 s/:*@srcdir@:*/:/
13761 s/^\([^=]*=[     ]*\):*/\1/
13762 s/:*$//
13763 s/^[^=]*=[       ]*$//
13764 }'
13765 fi
13766
13767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13768 fi # test -n "$CONFIG_FILES"
13769
13770
13771 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13772 shift
13773 for ac_tag
13774 do
13775   case $ac_tag in
13776   :[FHLC]) ac_mode=$ac_tag; continue;;
13777   esac
13778   case $ac_mode$ac_tag in
13779   :[FHL]*:*);;
13780   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13781 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13782    { (exit 1); exit 1; }; };;
13783   :[FH]-) ac_tag=-:-;;
13784   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13785   esac
13786   ac_save_IFS=$IFS
13787   IFS=:
13788   set x $ac_tag
13789   IFS=$ac_save_IFS
13790   shift
13791   ac_file=$1
13792   shift
13793
13794   case $ac_mode in
13795   :L) ac_source=$1;;
13796   :[FH])
13797     ac_file_inputs=
13798     for ac_f
13799     do
13800       case $ac_f in
13801       -) ac_f="$tmp/stdin";;
13802       *) # Look for the file first in the build tree, then in the source tree
13803          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13804          # because $ac_f cannot contain `:'.
13805          test -f "$ac_f" ||
13806            case $ac_f in
13807            [\\/$]*) false;;
13808            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13809            esac ||
13810            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13811 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13812    { (exit 1); exit 1; }; };;
13813       esac
13814       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13815       ac_file_inputs="$ac_file_inputs '$ac_f'"
13816     done
13817
13818     # Let's still pretend it is `configure' which instantiates (i.e., don't
13819     # use $as_me), people would be surprised to read:
13820     #    /* config.h.  Generated by config.status.  */
13821     configure_input='Generated from '`
13822           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13823         `' by configure.'
13824     if test x"$ac_file" != x-; then
13825       configure_input="$ac_file.  $configure_input"
13826       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13827 $as_echo "$as_me: creating $ac_file" >&6;}
13828     fi
13829     # Neutralize special characters interpreted by sed in replacement strings.
13830     case $configure_input in #(
13831     *\&* | *\|* | *\\* )
13832        ac_sed_conf_input=`$as_echo "$configure_input" |
13833        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13834     *) ac_sed_conf_input=$configure_input;;
13835     esac
13836
13837     case $ac_tag in
13838     *:-:* | *:-) cat >"$tmp/stdin" \
13839       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13840 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13841    { (exit 1); exit 1; }; } ;;
13842     esac
13843     ;;
13844   esac
13845
13846   ac_dir=`$as_dirname -- "$ac_file" ||
13847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13848          X"$ac_file" : 'X\(//\)[^/]' \| \
13849          X"$ac_file" : 'X\(//\)$' \| \
13850          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13851 $as_echo X"$ac_file" |
13852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13853             s//\1/
13854             q
13855           }
13856           /^X\(\/\/\)[^/].*/{
13857             s//\1/
13858             q
13859           }
13860           /^X\(\/\/\)$/{
13861             s//\1/
13862             q
13863           }
13864           /^X\(\/\).*/{
13865             s//\1/
13866             q
13867           }
13868           s/.*/./; q'`
13869   { as_dir="$ac_dir"
13870   case $as_dir in #(
13871   -*) as_dir=./$as_dir;;
13872   esac
13873   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13874     as_dirs=
13875     while :; do
13876       case $as_dir in #(
13877       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13878       *) as_qdir=$as_dir;;
13879       esac
13880       as_dirs="'$as_qdir' $as_dirs"
13881       as_dir=`$as_dirname -- "$as_dir" ||
13882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13883          X"$as_dir" : 'X\(//\)[^/]' \| \
13884          X"$as_dir" : 'X\(//\)$' \| \
13885          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13886 $as_echo X"$as_dir" |
13887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13888             s//\1/
13889             q
13890           }
13891           /^X\(\/\/\)[^/].*/{
13892             s//\1/
13893             q
13894           }
13895           /^X\(\/\/\)$/{
13896             s//\1/
13897             q
13898           }
13899           /^X\(\/\).*/{
13900             s//\1/
13901             q
13902           }
13903           s/.*/./; q'`
13904       test -d "$as_dir" && break
13905     done
13906     test -z "$as_dirs" || eval "mkdir $as_dirs"
13907   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13908 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13909    { (exit 1); exit 1; }; }; }
13910   ac_builddir=.
13911
13912 case "$ac_dir" in
13913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13914 *)
13915   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13916   # A ".." for each directory in $ac_dir_suffix.
13917   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13918   case $ac_top_builddir_sub in
13919   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13920   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13921   esac ;;
13922 esac
13923 ac_abs_top_builddir=$ac_pwd
13924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13925 # for backward compatibility:
13926 ac_top_builddir=$ac_top_build_prefix
13927
13928 case $srcdir in
13929   .)  # We are building in place.
13930     ac_srcdir=.
13931     ac_top_srcdir=$ac_top_builddir_sub
13932     ac_abs_top_srcdir=$ac_pwd ;;
13933   [\\/]* | ?:[\\/]* )  # Absolute name.
13934     ac_srcdir=$srcdir$ac_dir_suffix;
13935     ac_top_srcdir=$srcdir
13936     ac_abs_top_srcdir=$srcdir ;;
13937   *) # Relative name.
13938     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13939     ac_top_srcdir=$ac_top_build_prefix$srcdir
13940     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13941 esac
13942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13943
13944
13945   case $ac_mode in
13946   :F)
13947   #
13948   # CONFIG_FILE
13949   #
13950
13951   case $INSTALL in
13952   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13953   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13954   esac
13955   ac_MKDIR_P=$MKDIR_P
13956   case $MKDIR_P in
13957   [\\/$]* | ?:[\\/]* ) ;;
13958   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13959   esac
13960 _ACEOF
13961
13962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13963 # If the template does not know about datarootdir, expand it.
13964 # FIXME: This hack should be removed a few years after 2.60.
13965 ac_datarootdir_hack=; ac_datarootdir_seen=
13966
13967 ac_sed_dataroot='
13968 /datarootdir/ {
13969   p
13970   q
13971 }
13972 /@datadir@/p
13973 /@docdir@/p
13974 /@infodir@/p
13975 /@localedir@/p
13976 /@mandir@/p
13977 '
13978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13979 *datarootdir*) ac_datarootdir_seen=yes;;
13980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13981   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13983 _ACEOF
13984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13985   ac_datarootdir_hack='
13986   s&@datadir@&$datadir&g
13987   s&@docdir@&$docdir&g
13988   s&@infodir@&$infodir&g
13989   s&@localedir@&$localedir&g
13990   s&@mandir@&$mandir&g
13991     s&\\\${datarootdir}&$datarootdir&g' ;;
13992 esac
13993 _ACEOF
13994
13995 # Neutralize VPATH when `$srcdir' = `.'.
13996 # Shell code in configure.ac might set extrasub.
13997 # FIXME: do we really want to maintain this feature?
13998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13999 ac_sed_extra="$ac_vpsub
14000 $extrasub
14001 _ACEOF
14002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14003 :t
14004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14005 s|@configure_input@|$ac_sed_conf_input|;t t
14006 s&@top_builddir@&$ac_top_builddir_sub&;t t
14007 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14008 s&@srcdir@&$ac_srcdir&;t t
14009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14010 s&@top_srcdir@&$ac_top_srcdir&;t t
14011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14012 s&@builddir@&$ac_builddir&;t t
14013 s&@abs_builddir@&$ac_abs_builddir&;t t
14014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14015 s&@INSTALL@&$ac_INSTALL&;t t
14016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14017 $ac_datarootdir_hack
14018 "
14019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14020   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14022    { (exit 1); exit 1; }; }
14023
14024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14025   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14026   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14027   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14028 which seems to be undefined.  Please make sure it is defined." >&5
14029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14030 which seems to be undefined.  Please make sure it is defined." >&2;}
14031
14032   rm -f "$tmp/stdin"
14033   case $ac_file in
14034   -) cat "$tmp/out" && rm -f "$tmp/out";;
14035   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14036   esac \
14037   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14038 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14039    { (exit 1); exit 1; }; }
14040  ;;
14041
14042
14043   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14044 $as_echo "$as_me: executing $ac_file commands" >&6;}
14045  ;;
14046   esac
14047
14048
14049   case $ac_file$ac_mode in
14050     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14051   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14052   # are listed without --file.  Let's play safe and only enable the eval
14053   # if we detect the quoting.
14054   case $CONFIG_FILES in
14055   *\'*) eval set x "$CONFIG_FILES" ;;
14056   *)   set x $CONFIG_FILES ;;
14057   esac
14058   shift
14059   for mf
14060   do
14061     # Strip MF so we end up with the name of the file.
14062     mf=`echo "$mf" | sed -e 's/:.*$//'`
14063     # Check whether this is an Automake generated Makefile or not.
14064     # We used to match only the files named `Makefile.in', but
14065     # some people rename them; so instead we look at the file content.
14066     # Grep'ing the first line is not enough: some people post-process
14067     # each Makefile.in and add a new line on top of each file to say so.
14068     # Grep'ing the whole file is not good either: AIX grep has a line
14069     # limit of 2048, but all sed's we know have understand at least 4000.
14070     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14071       dirpart=`$as_dirname -- "$mf" ||
14072 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073          X"$mf" : 'X\(//\)[^/]' \| \
14074          X"$mf" : 'X\(//\)$' \| \
14075          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14076 $as_echo X"$mf" |
14077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14078             s//\1/
14079             q
14080           }
14081           /^X\(\/\/\)[^/].*/{
14082             s//\1/
14083             q
14084           }
14085           /^X\(\/\/\)$/{
14086             s//\1/
14087             q
14088           }
14089           /^X\(\/\).*/{
14090             s//\1/
14091             q
14092           }
14093           s/.*/./; q'`
14094     else
14095       continue
14096     fi
14097     # Extract the definition of DEPDIR, am__include, and am__quote
14098     # from the Makefile without running `make'.
14099     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14100     test -z "$DEPDIR" && continue
14101     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14102     test -z "am__include" && continue
14103     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14104     # When using ansi2knr, U may be empty or an underscore; expand it
14105     U=`sed -n 's/^U = //p' < "$mf"`
14106     # Find all dependency output files, they are included files with
14107     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14108     # simplest approach to changing $(DEPDIR) to its actual value in the
14109     # expansion.
14110     for file in `sed -n "
14111       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14112          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14113       # Make sure the directory exists.
14114       test -f "$dirpart/$file" && continue
14115       fdir=`$as_dirname -- "$file" ||
14116 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14117          X"$file" : 'X\(//\)[^/]' \| \
14118          X"$file" : 'X\(//\)$' \| \
14119          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14120 $as_echo X"$file" |
14121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14122             s//\1/
14123             q
14124           }
14125           /^X\(\/\/\)[^/].*/{
14126             s//\1/
14127             q
14128           }
14129           /^X\(\/\/\)$/{
14130             s//\1/
14131             q
14132           }
14133           /^X\(\/\).*/{
14134             s//\1/
14135             q
14136           }
14137           s/.*/./; q'`
14138       { as_dir=$dirpart/$fdir
14139   case $as_dir in #(
14140   -*) as_dir=./$as_dir;;
14141   esac
14142   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14143     as_dirs=
14144     while :; do
14145       case $as_dir in #(
14146       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14147       *) as_qdir=$as_dir;;
14148       esac
14149       as_dirs="'$as_qdir' $as_dirs"
14150       as_dir=`$as_dirname -- "$as_dir" ||
14151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14152          X"$as_dir" : 'X\(//\)[^/]' \| \
14153          X"$as_dir" : 'X\(//\)$' \| \
14154          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14155 $as_echo X"$as_dir" |
14156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14157             s//\1/
14158             q
14159           }
14160           /^X\(\/\/\)[^/].*/{
14161             s//\1/
14162             q
14163           }
14164           /^X\(\/\/\)$/{
14165             s//\1/
14166             q
14167           }
14168           /^X\(\/\).*/{
14169             s//\1/
14170             q
14171           }
14172           s/.*/./; q'`
14173       test -d "$as_dir" && break
14174     done
14175     test -z "$as_dirs" || eval "mkdir $as_dirs"
14176   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14177 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14178    { (exit 1); exit 1; }; }; }
14179       # echo "creating $dirpart/$file"
14180       echo '# dummy' > "$dirpart/$file"
14181     done
14182   done
14183 }
14184  ;;
14185     "libtool":C)
14186
14187     # See if we are running on zsh, and set the options which allow our
14188     # commands through without removal of \ escapes.
14189     if test -n "${ZSH_VERSION+set}" ; then
14190       setopt NO_GLOB_SUBST
14191     fi
14192
14193     cfgfile="${ofile}T"
14194     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14195     $RM "$cfgfile"
14196
14197     cat <<_LT_EOF >> "$cfgfile"
14198 #! $SHELL
14199
14200 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14201 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14203 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14204 #
14205 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14206 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14207 #   Written by Gordon Matzigkeit, 1996
14208 #
14209 #   This file is part of GNU Libtool.
14210 #
14211 # GNU Libtool is free software; you can redistribute it and/or
14212 # modify it under the terms of the GNU General Public License as
14213 # published by the Free Software Foundation; either version 2 of
14214 # the License, or (at your option) any later version.
14215 #
14216 # As a special exception to the GNU General Public License,
14217 # if you distribute this file as part of a program or library that
14218 # is built using GNU Libtool, you may include this file under the
14219 # same distribution terms that you use for the rest of that program.
14220 #
14221 # GNU Libtool is distributed in the hope that it will be useful,
14222 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14223 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14224 # GNU General Public License for more details.
14225 #
14226 # You should have received a copy of the GNU General Public License
14227 # along with GNU Libtool; see the file COPYING.  If not, a copy
14228 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14229 # obtained by writing to the Free Software Foundation, Inc.,
14230 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14231
14232
14233 # The names of the tagged configurations supported by this script.
14234 available_tags=""
14235
14236 # ### BEGIN LIBTOOL CONFIG
14237
14238 # A sed program that does not truncate output.
14239 SED=$lt_SED
14240
14241 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14242 Xsed="\$SED -e 1s/^X//"
14243
14244 # Assembler program.
14245 AS=$AS
14246
14247 # DLL creation program.
14248 DLLTOOL=$DLLTOOL
14249
14250 # Object dumper program.
14251 OBJDUMP=$OBJDUMP
14252
14253 # Which release of libtool.m4 was used?
14254 macro_version=$macro_version
14255 macro_revision=$macro_revision
14256
14257 # Whether or not to build shared libraries.
14258 build_libtool_libs=$enable_shared
14259
14260 # Whether or not to build static libraries.
14261 build_old_libs=$enable_static
14262
14263 # What type of objects to build.
14264 pic_mode=$pic_mode
14265
14266 # Whether or not to optimize for fast installation.
14267 fast_install=$enable_fast_install
14268
14269 # The host system.
14270 host_alias=$host_alias
14271 host=$host
14272 host_os=$host_os
14273
14274 # The build system.
14275 build_alias=$build_alias
14276 build=$build
14277 build_os=$build_os
14278
14279 # A grep program that handles long lines.
14280 GREP=$lt_GREP
14281
14282 # An ERE matcher.
14283 EGREP=$lt_EGREP
14284
14285 # A literal string matcher.
14286 FGREP=$lt_FGREP
14287
14288 # A BSD- or MS-compatible name lister.
14289 NM=$lt_NM
14290
14291 # Whether we need soft or hard links.
14292 LN_S=$lt_LN_S
14293
14294 # What is the maximum length of a command?
14295 max_cmd_len=$max_cmd_len
14296
14297 # Object file suffix (normally "o").
14298 objext=$ac_objext
14299
14300 # Executable file suffix (normally "").
14301 exeext=$exeext
14302
14303 # whether the shell understands "unset".
14304 lt_unset=$lt_unset
14305
14306 # turn spaces into newlines.
14307 SP2NL=$lt_lt_SP2NL
14308
14309 # turn newlines into spaces.
14310 NL2SP=$lt_lt_NL2SP
14311
14312 # How to create reloadable object files.
14313 reload_flag=$lt_reload_flag
14314 reload_cmds=$lt_reload_cmds
14315
14316 # Method to check whether dependent libraries are shared objects.
14317 deplibs_check_method=$lt_deplibs_check_method
14318
14319 # Command to use when deplibs_check_method == "file_magic".
14320 file_magic_cmd=$lt_file_magic_cmd
14321
14322 # The archiver.
14323 AR=$lt_AR
14324 AR_FLAGS=$lt_AR_FLAGS
14325
14326 # A symbol stripping program.
14327 STRIP=$lt_STRIP
14328
14329 # Commands used to install an old-style archive.
14330 RANLIB=$lt_RANLIB
14331 old_postinstall_cmds=$lt_old_postinstall_cmds
14332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14333
14334 # A C compiler.
14335 LTCC=$lt_CC
14336
14337 # LTCC compiler flags.
14338 LTCFLAGS=$lt_CFLAGS
14339
14340 # Take the output of nm and produce a listing of raw symbols and C names.
14341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14342
14343 # Transform the output of nm in a proper C declaration.
14344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14345
14346 # Transform the output of nm in a C name address pair.
14347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14348
14349 # Transform the output of nm in a C name address pair when lib prefix is needed.
14350 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14351
14352 # The name of the directory that contains temporary libtool files.
14353 objdir=$objdir
14354
14355 # Shell to use when invoking shell scripts.
14356 SHELL=$lt_SHELL
14357
14358 # An echo program that does not interpret backslashes.
14359 ECHO=$lt_ECHO
14360
14361 # Used to examine libraries when file_magic_cmd begins with "file".
14362 MAGIC_CMD=$MAGIC_CMD
14363
14364 # Must we lock files when doing compilation?
14365 need_locks=$lt_need_locks
14366
14367 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14368 DSYMUTIL=$lt_DSYMUTIL
14369
14370 # Tool to change global to local symbols on Mac OS X.
14371 NMEDIT=$lt_NMEDIT
14372
14373 # Tool to manipulate fat objects and archives on Mac OS X.
14374 LIPO=$lt_LIPO
14375
14376 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14377 OTOOL=$lt_OTOOL
14378
14379 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14380 OTOOL64=$lt_OTOOL64
14381
14382 # Old archive suffix (normally "a").
14383 libext=$libext
14384
14385 # Shared library suffix (normally ".so").
14386 shrext_cmds=$lt_shrext_cmds
14387
14388 # The commands to extract the exported symbol list from a shared archive.
14389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14390
14391 # Variables whose values should be saved in libtool wrapper scripts and
14392 # restored at link time.
14393 variables_saved_for_relink=$lt_variables_saved_for_relink
14394
14395 # Do we need the "lib" prefix for modules?
14396 need_lib_prefix=$need_lib_prefix
14397
14398 # Do we need a version for libraries?
14399 need_version=$need_version
14400
14401 # Library versioning type.
14402 version_type=$version_type
14403
14404 # Shared library runtime path variable.
14405 runpath_var=$runpath_var
14406
14407 # Shared library path variable.
14408 shlibpath_var=$shlibpath_var
14409
14410 # Is shlibpath searched before the hard-coded library search path?
14411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14412
14413 # Format of library name prefix.
14414 libname_spec=$lt_libname_spec
14415
14416 # List of archive names.  First name is the real one, the rest are links.
14417 # The last name is the one that the linker finds with -lNAME
14418 library_names_spec=$lt_library_names_spec
14419
14420 # The coded name of the library, if different from the real name.
14421 soname_spec=$lt_soname_spec
14422
14423 # Command to use after installation of a shared archive.
14424 postinstall_cmds=$lt_postinstall_cmds
14425
14426 # Command to use after uninstallation of a shared archive.
14427 postuninstall_cmds=$lt_postuninstall_cmds
14428
14429 # Commands used to finish a libtool library installation in a directory.
14430 finish_cmds=$lt_finish_cmds
14431
14432 # As "finish_cmds", except a single script fragment to be evaled but
14433 # not shown.
14434 finish_eval=$lt_finish_eval
14435
14436 # Whether we should hardcode library paths into libraries.
14437 hardcode_into_libs=$hardcode_into_libs
14438
14439 # Compile-time system search path for libraries.
14440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14441
14442 # Run-time system search path for libraries.
14443 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14444
14445 # Whether dlopen is supported.
14446 dlopen_support=$enable_dlopen
14447
14448 # Whether dlopen of programs is supported.
14449 dlopen_self=$enable_dlopen_self
14450
14451 # Whether dlopen of statically linked programs is supported.
14452 dlopen_self_static=$enable_dlopen_self_static
14453
14454 # Commands to strip libraries.
14455 old_striplib=$lt_old_striplib
14456 striplib=$lt_striplib
14457
14458
14459 # The linker used to build libraries.
14460 LD=$lt_LD
14461
14462 # Commands used to build an old-style archive.
14463 old_archive_cmds=$lt_old_archive_cmds
14464
14465 # A language specific compiler.
14466 CC=$lt_compiler
14467
14468 # Is the compiler the GNU compiler?
14469 with_gcc=$GCC
14470
14471 # Compiler flag to turn off builtin functions.
14472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14473
14474 # How to pass a linker flag through the compiler.
14475 wl=$lt_lt_prog_compiler_wl
14476
14477 # Additional compiler flags for building library objects.
14478 pic_flag=$lt_lt_prog_compiler_pic
14479
14480 # Compiler flag to prevent dynamic linking.
14481 link_static_flag=$lt_lt_prog_compiler_static
14482
14483 # Does compiler simultaneously support -c and -o options?
14484 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14485
14486 # Whether or not to add -lc for building shared libraries.
14487 build_libtool_need_lc=$archive_cmds_need_lc
14488
14489 # Whether or not to disallow shared libs when runtime libs are static.
14490 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14491
14492 # Compiler flag to allow reflexive dlopens.
14493 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14494
14495 # Compiler flag to generate shared objects directly from archives.
14496 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14497
14498 # Whether the compiler copes with passing no objects directly.
14499 compiler_needs_object=$lt_compiler_needs_object
14500
14501 # Create an old-style archive from a shared archive.
14502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14503
14504 # Create a temporary old-style archive to link instead of a shared archive.
14505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14506
14507 # Commands used to build a shared archive.
14508 archive_cmds=$lt_archive_cmds
14509 archive_expsym_cmds=$lt_archive_expsym_cmds
14510
14511 # Commands used to build a loadable module if different from building
14512 # a shared archive.
14513 module_cmds=$lt_module_cmds
14514 module_expsym_cmds=$lt_module_expsym_cmds
14515
14516 # Whether we are building with GNU ld or not.
14517 with_gnu_ld=$lt_with_gnu_ld
14518
14519 # Flag that allows shared libraries with undefined symbols to be built.
14520 allow_undefined_flag=$lt_allow_undefined_flag
14521
14522 # Flag that enforces no undefined symbols.
14523 no_undefined_flag=$lt_no_undefined_flag
14524
14525 # Flag to hardcode \$libdir into a binary during linking.
14526 # This must work even if \$libdir does not exist
14527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14528
14529 # If ld is used when linking, flag to hardcode \$libdir into a binary
14530 # during linking.  This must work even if \$libdir does not exist.
14531 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14532
14533 # Whether we need a single "-rpath" flag with a separated argument.
14534 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14535
14536 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14537 # DIR into the resulting binary.
14538 hardcode_direct=$hardcode_direct
14539
14540 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14541 # DIR into the resulting binary and the resulting library dependency is
14542 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14543 # library is relocated.
14544 hardcode_direct_absolute=$hardcode_direct_absolute
14545
14546 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14547 # into the resulting binary.
14548 hardcode_minus_L=$hardcode_minus_L
14549
14550 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14551 # into the resulting binary.
14552 hardcode_shlibpath_var=$hardcode_shlibpath_var
14553
14554 # Set to "yes" if building a shared library automatically hardcodes DIR
14555 # into the library and all subsequent libraries and executables linked
14556 # against it.
14557 hardcode_automatic=$hardcode_automatic
14558
14559 # Set to yes if linker adds runtime paths of dependent libraries
14560 # to runtime path list.
14561 inherit_rpath=$inherit_rpath
14562
14563 # Whether libtool must link a program against all its dependency libraries.
14564 link_all_deplibs=$link_all_deplibs
14565
14566 # Fix the shell variable \$srcfile for the compiler.
14567 fix_srcfile_path=$lt_fix_srcfile_path
14568
14569 # Set to "yes" if exported symbols are required.
14570 always_export_symbols=$always_export_symbols
14571
14572 # The commands to list exported symbols.
14573 export_symbols_cmds=$lt_export_symbols_cmds
14574
14575 # Symbols that should not be listed in the preloaded symbols.
14576 exclude_expsyms=$lt_exclude_expsyms
14577
14578 # Symbols that must always be exported.
14579 include_expsyms=$lt_include_expsyms
14580
14581 # Commands necessary for linking programs (against libraries) with templates.
14582 prelink_cmds=$lt_prelink_cmds
14583
14584 # Specify filename containing input files.
14585 file_list_spec=$lt_file_list_spec
14586
14587 # How to hardcode a shared library path into an executable.
14588 hardcode_action=$hardcode_action
14589
14590 # ### END LIBTOOL CONFIG
14591
14592 _LT_EOF
14593
14594   case $host_os in
14595   aix3*)
14596     cat <<\_LT_EOF >> "$cfgfile"
14597 # AIX sometimes has problems with the GCC collect2 program.  For some
14598 # reason, if we set the COLLECT_NAMES environment variable, the problems
14599 # vanish in a puff of smoke.
14600 if test "X${COLLECT_NAMES+set}" != Xset; then
14601   COLLECT_NAMES=
14602   export COLLECT_NAMES
14603 fi
14604 _LT_EOF
14605     ;;
14606   esac
14607
14608
14609 ltmain="$ac_aux_dir/ltmain.sh"
14610
14611
14612   # We use sed instead of cat because bash on DJGPP gets confused if
14613   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14614   # text mode, it properly converts lines to CR/LF.  This bash problem
14615   # is reportedly fixed, but why not run on old versions too?
14616   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14617     || (rm -f "$cfgfile"; exit 1)
14618
14619   case $xsi_shell in
14620   yes)
14621     cat << \_LT_EOF >> "$cfgfile"
14622
14623 # func_dirname file append nondir_replacement
14624 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14625 # otherwise set result to NONDIR_REPLACEMENT.
14626 func_dirname ()
14627 {
14628   case ${1} in
14629     */*) func_dirname_result="${1%/*}${2}" ;;
14630     *  ) func_dirname_result="${3}" ;;
14631   esac
14632 }
14633
14634 # func_basename file
14635 func_basename ()
14636 {
14637   func_basename_result="${1##*/}"
14638 }
14639
14640 # func_dirname_and_basename file append nondir_replacement
14641 # perform func_basename and func_dirname in a single function
14642 # call:
14643 #   dirname:  Compute the dirname of FILE.  If nonempty,
14644 #             add APPEND to the result, otherwise set result
14645 #             to NONDIR_REPLACEMENT.
14646 #             value returned in "$func_dirname_result"
14647 #   basename: Compute filename of FILE.
14648 #             value retuned in "$func_basename_result"
14649 # Implementation must be kept synchronized with func_dirname
14650 # and func_basename. For efficiency, we do not delegate to
14651 # those functions but instead duplicate the functionality here.
14652 func_dirname_and_basename ()
14653 {
14654   case ${1} in
14655     */*) func_dirname_result="${1%/*}${2}" ;;
14656     *  ) func_dirname_result="${3}" ;;
14657   esac
14658   func_basename_result="${1##*/}"
14659 }
14660
14661 # func_stripname prefix suffix name
14662 # strip PREFIX and SUFFIX off of NAME.
14663 # PREFIX and SUFFIX must not contain globbing or regex special
14664 # characters, hashes, percent signs, but SUFFIX may contain a leading
14665 # dot (in which case that matches only a dot).
14666 func_stripname ()
14667 {
14668   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14669   # positional parameters, so assign one to ordinary parameter first.
14670   func_stripname_result=${3}
14671   func_stripname_result=${func_stripname_result#"${1}"}
14672   func_stripname_result=${func_stripname_result%"${2}"}
14673 }
14674
14675 # func_opt_split
14676 func_opt_split ()
14677 {
14678   func_opt_split_opt=${1%%=*}
14679   func_opt_split_arg=${1#*=}
14680 }
14681
14682 # func_lo2o object
14683 func_lo2o ()
14684 {
14685   case ${1} in
14686     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14687     *)    func_lo2o_result=${1} ;;
14688   esac
14689 }
14690
14691 # func_xform libobj-or-source
14692 func_xform ()
14693 {
14694   func_xform_result=${1%.*}.lo
14695 }
14696
14697 # func_arith arithmetic-term...
14698 func_arith ()
14699 {
14700   func_arith_result=$(( $* ))
14701 }
14702
14703 # func_len string
14704 # STRING may not start with a hyphen.
14705 func_len ()
14706 {
14707   func_len_result=${#1}
14708 }
14709
14710 _LT_EOF
14711     ;;
14712   *) # Bourne compatible functions.
14713     cat << \_LT_EOF >> "$cfgfile"
14714
14715 # func_dirname file append nondir_replacement
14716 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14717 # otherwise set result to NONDIR_REPLACEMENT.
14718 func_dirname ()
14719 {
14720   # Extract subdirectory from the argument.
14721   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14722   if test "X$func_dirname_result" = "X${1}"; then
14723     func_dirname_result="${3}"
14724   else
14725     func_dirname_result="$func_dirname_result${2}"
14726   fi
14727 }
14728
14729 # func_basename file
14730 func_basename ()
14731 {
14732   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14733 }
14734
14735
14736 # func_stripname prefix suffix name
14737 # strip PREFIX and SUFFIX off of NAME.
14738 # PREFIX and SUFFIX must not contain globbing or regex special
14739 # characters, hashes, percent signs, but SUFFIX may contain a leading
14740 # dot (in which case that matches only a dot).
14741 # func_strip_suffix prefix name
14742 func_stripname ()
14743 {
14744   case ${2} in
14745     .*) func_stripname_result=`$ECHO "X${3}" \
14746            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14747     *)  func_stripname_result=`$ECHO "X${3}" \
14748            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14749   esac
14750 }
14751
14752 # sed scripts:
14753 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14754 my_sed_long_arg='1s/^-[^=]*=//'
14755
14756 # func_opt_split
14757 func_opt_split ()
14758 {
14759   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14760   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14761 }
14762
14763 # func_lo2o object
14764 func_lo2o ()
14765 {
14766   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14767 }
14768
14769 # func_xform libobj-or-source
14770 func_xform ()
14771 {
14772   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14773 }
14774
14775 # func_arith arithmetic-term...
14776 func_arith ()
14777 {
14778   func_arith_result=`expr "$@"`
14779 }
14780
14781 # func_len string
14782 # STRING may not start with a hyphen.
14783 func_len ()
14784 {
14785   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14786 }
14787
14788 _LT_EOF
14789 esac
14790
14791 case $lt_shell_append in
14792   yes)
14793     cat << \_LT_EOF >> "$cfgfile"
14794
14795 # func_append var value
14796 # Append VALUE to the end of shell variable VAR.
14797 func_append ()
14798 {
14799   eval "$1+=\$2"
14800 }
14801 _LT_EOF
14802     ;;
14803   *)
14804     cat << \_LT_EOF >> "$cfgfile"
14805
14806 # func_append var value
14807 # Append VALUE to the end of shell variable VAR.
14808 func_append ()
14809 {
14810   eval "$1=\$$1\$2"
14811 }
14812
14813 _LT_EOF
14814     ;;
14815   esac
14816
14817
14818   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14819     || (rm -f "$cfgfile"; exit 1)
14820
14821   mv -f "$cfgfile" "$ofile" ||
14822     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14823   chmod +x "$ofile"
14824
14825  ;;
14826
14827   esac
14828 done # for ac_tag
14829
14830
14831 { (exit 0); exit 0; }
14832 _ACEOF
14833 chmod +x $CONFIG_STATUS
14834 ac_clean_files=$ac_clean_files_save
14835
14836 test $ac_write_fail = 0 ||
14837   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14838 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14839    { (exit 1); exit 1; }; }
14840
14841
14842 # configure is writing to config.log, and then calls config.status.
14843 # config.status does its own redirection, appending to config.log.
14844 # Unfortunately, on DOS this fails, as config.log is still kept open
14845 # by configure, so config.status won't be able to write to it; its
14846 # output is simply discarded.  So we exec the FD to /dev/null,
14847 # effectively closing config.log, so it can be properly (re)opened and
14848 # appended to by config.status.  When coming back to configure, we
14849 # need to make the FD available again.
14850 if test "$no_create" != yes; then
14851   ac_cs_success=:
14852   ac_config_status_args=
14853   test "$silent" = yes &&
14854     ac_config_status_args="$ac_config_status_args --quiet"
14855   exec 5>/dev/null
14856   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14857   exec 5>>config.log
14858   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14859   # would make configure fail if this is the last instruction.
14860   $ac_cs_success || { (exit 1); exit 1; }
14861 fi
14862
14863 #
14864 # CONFIG_SUBDIRS section.
14865 #
14866 if test "$no_recursion" != yes; then
14867
14868   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14869   # so they do not pile up.
14870   ac_sub_configure_args=
14871   ac_prev=
14872   eval "set x $ac_configure_args"
14873   shift
14874   for ac_arg
14875   do
14876     if test -n "$ac_prev"; then
14877       ac_prev=
14878       continue
14879     fi
14880     case $ac_arg in
14881     -cache-file | --cache-file | --cache-fil | --cache-fi \
14882     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14883       ac_prev=cache_file ;;
14884     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14885     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14886     | --c=*)
14887       ;;
14888     --config-cache | -C)
14889       ;;
14890     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14891       ac_prev=srcdir ;;
14892     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14893       ;;
14894     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14895       ac_prev=prefix ;;
14896     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14897       ;;
14898     --disable-option-checking)
14899       ;;
14900     *)
14901       case $ac_arg in
14902       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14903       esac
14904       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14905     esac
14906   done
14907
14908   # Always prepend --prefix to ensure using the same prefix
14909   # in subdir configurations.
14910   ac_arg="--prefix=$prefix"
14911   case $ac_arg in
14912   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14913   esac
14914   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14915
14916   # Pass --silent
14917   if test "$silent" = yes; then
14918     ac_sub_configure_args="--silent $ac_sub_configure_args"
14919   fi
14920
14921   # Always prepend --disable-option-checking to silence warnings, since
14922   # different subdirs can have different --enable and --with options.
14923   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14924
14925   ac_popdir=`pwd`
14926   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14927
14928     # Do not complain, so a configure script can configure whichever
14929     # parts of a large source tree are present.
14930     test -d "$srcdir/$ac_dir" || continue
14931
14932     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14933     $as_echo "$as_me:$LINENO: $ac_msg" >&5
14934     $as_echo "$ac_msg" >&6
14935     { as_dir="$ac_dir"
14936   case $as_dir in #(
14937   -*) as_dir=./$as_dir;;
14938   esac
14939   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14940     as_dirs=
14941     while :; do
14942       case $as_dir in #(
14943       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14944       *) as_qdir=$as_dir;;
14945       esac
14946       as_dirs="'$as_qdir' $as_dirs"
14947       as_dir=`$as_dirname -- "$as_dir" ||
14948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14949          X"$as_dir" : 'X\(//\)[^/]' \| \
14950          X"$as_dir" : 'X\(//\)$' \| \
14951          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14952 $as_echo X"$as_dir" |
14953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14954             s//\1/
14955             q
14956           }
14957           /^X\(\/\/\)[^/].*/{
14958             s//\1/
14959             q
14960           }
14961           /^X\(\/\/\)$/{
14962             s//\1/
14963             q
14964           }
14965           /^X\(\/\).*/{
14966             s//\1/
14967             q
14968           }
14969           s/.*/./; q'`
14970       test -d "$as_dir" && break
14971     done
14972     test -z "$as_dirs" || eval "mkdir $as_dirs"
14973   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14974 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14975    { (exit 1); exit 1; }; }; }
14976     ac_builddir=.
14977
14978 case "$ac_dir" in
14979 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14980 *)
14981   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14982   # A ".." for each directory in $ac_dir_suffix.
14983   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14984   case $ac_top_builddir_sub in
14985   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14986   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14987   esac ;;
14988 esac
14989 ac_abs_top_builddir=$ac_pwd
14990 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14991 # for backward compatibility:
14992 ac_top_builddir=$ac_top_build_prefix
14993
14994 case $srcdir in
14995   .)  # We are building in place.
14996     ac_srcdir=.
14997     ac_top_srcdir=$ac_top_builddir_sub
14998     ac_abs_top_srcdir=$ac_pwd ;;
14999   [\\/]* | ?:[\\/]* )  # Absolute name.
15000     ac_srcdir=$srcdir$ac_dir_suffix;
15001     ac_top_srcdir=$srcdir
15002     ac_abs_top_srcdir=$srcdir ;;
15003   *) # Relative name.
15004     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15005     ac_top_srcdir=$ac_top_build_prefix$srcdir
15006     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15007 esac
15008 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15009
15010
15011     cd "$ac_dir"
15012
15013     # Check for guested configure; otherwise get Cygnus style configure.
15014     if test -f "$ac_srcdir/configure.gnu"; then
15015       ac_sub_configure=$ac_srcdir/configure.gnu
15016     elif test -f "$ac_srcdir/configure"; then
15017       ac_sub_configure=$ac_srcdir/configure
15018     elif test -f "$ac_srcdir/configure.in"; then
15019       # This should be Cygnus configure.
15020       ac_sub_configure=$ac_aux_dir/configure
15021     else
15022       { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15023 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15024       ac_sub_configure=
15025     fi
15026
15027     # The recursion is here.
15028     if test -n "$ac_sub_configure"; then
15029       # Make the cache file name correct relative to the subdirectory.
15030       case $cache_file in
15031       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15032       *) # Relative name.
15033         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15034       esac
15035
15036       { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15037 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15038       # The eval makes quoting arguments work.
15039       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15040            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15041         { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15042 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15043    { (exit 1); exit 1; }; }
15044     fi
15045
15046     cd "$ac_popdir"
15047   done
15048 fi
15049 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15050   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15051 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15052 fi
15053