OSDN Git Service

2009-12-17 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / sys / linux / linuxthreads / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for newlib 1.18.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.18.0'
747 PACKAGE_STRING='newlib 1.18.0'
748 PACKAGE_BUGREPORT=''
749
750 ac_unique_file="attr.c"
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 subdirs
793 MACHINE_LIB
794 MACHINE_OBJLIST
795 CPP
796 OTOOL64
797 OTOOL
798 LIPO
799 NMEDIT
800 DSYMUTIL
801 lt_ECHO
802 LN_S
803 NM
804 ac_ct_DUMPBIN
805 DUMPBIN
806 LD
807 FGREP
808 EGREP
809 GREP
810 EXEEXT
811 ac_ct_CC
812 CPPFLAGS
813 CFLAGS
814 LIBTOOL
815 OBJDUMP
816 DLLTOOL
817 SED
818 sys_dir
819 machine_dir
820 libm_machine_dir
821 lpfx
822 aext
823 oext
824 OBJEXT
825 USE_LIBTOOL_FALSE
826 USE_LIBTOOL_TRUE
827 ELIX_LEVEL_4_FALSE
828 ELIX_LEVEL_4_TRUE
829 ELIX_LEVEL_3_FALSE
830 ELIX_LEVEL_3_TRUE
831 ELIX_LEVEL_2_FALSE
832 ELIX_LEVEL_2_TRUE
833 ELIX_LEVEL_1_FALSE
834 ELIX_LEVEL_1_TRUE
835 ELIX_LEVEL_0_FALSE
836 ELIX_LEVEL_0_TRUE
837 LDFLAGS
838 NEWLIB_CFLAGS
839 CCASFLAGS
840 CCAS
841 MAINT
842 MAINTAINER_MODE_FALSE
843 MAINTAINER_MODE_TRUE
844 READELF
845 RANLIB
846 AR
847 AS
848 am__fastdepCC_FALSE
849 am__fastdepCC_TRUE
850 CCDEPMODE
851 AMDEPBACKSLASH
852 AMDEP_FALSE
853 AMDEP_TRUE
854 am__quote
855 am__include
856 DEPDIR
857 CC
858 am__untar
859 am__tar
860 AMTAR
861 am__leading_dot
862 SET_MAKE
863 AWK
864 mkdir_p
865 MKDIR_P
866 INSTALL_STRIP_PROGRAM
867 STRIP
868 install_sh
869 MAKEINFO
870 AUTOHEADER
871 AUTOMAKE
872 AUTOCONF
873 ACLOCAL
874 VERSION
875 PACKAGE
876 CYGPATH_W
877 am__isrc
878 INSTALL_DATA
879 INSTALL_SCRIPT
880 INSTALL_PROGRAM
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 newlib_basedir
890 MAY_SUPPLY_SYSCALLS_FALSE
891 MAY_SUPPLY_SYSCALLS_TRUE
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 localstatedir
912 sharedstatedir
913 sysconfdir
914 datadir
915 datarootdir
916 libexecdir
917 sbindir
918 bindir
919 program_transform_name
920 prefix
921 exec_prefix
922 PACKAGE_BUGREPORT
923 PACKAGE_STRING
924 PACKAGE_VERSION
925 PACKAGE_TARNAME
926 PACKAGE_NAME
927 PATH_SEPARATOR
928 SHELL'
929 ac_subst_files=''
930 ac_user_opts='
931 enable_option_checking
932 enable_multilib
933 enable_target_optspace
934 enable_malloc_debugging
935 enable_newlib_multithread
936 enable_newlib_iconv
937 enable_newlib_elix_level
938 enable_newlib_io_float
939 enable_newlib_supplied_syscalls
940 enable_dependency_tracking
941 enable_maintainer_mode
942 enable_shared
943 enable_static
944 with_pic
945 enable_fast_install
946 with_gnu_ld
947 enable_libtool_lock
948 '
949       ac_precious_vars='build_alias
950 host_alias
951 target_alias
952 CCAS
953 CCASFLAGS
954 CC
955 CFLAGS
956 LDFLAGS
957 LIBS
958 CPPFLAGS
959 CPP'
960 ac_subdirs_all='machine'
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1009
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1013 do
1014   # If the previous option needs an argument, assign it.
1015   if test -n "$ac_prev"; then
1016     eval $ac_prev=\$ac_option
1017     ac_prev=
1018     continue
1019   fi
1020
1021   case $ac_option in
1022   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023   *)    ac_optarg=yes ;;
1024   esac
1025
1026   # Accept the important Cygnus configure options, so we can diagnose typos.
1027
1028   case $ac_dashdash$ac_option in
1029   --)
1030     ac_dashdash=yes ;;
1031
1032   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033     ac_prev=bindir ;;
1034   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035     bindir=$ac_optarg ;;
1036
1037   -build | --build | --buil | --bui | --bu)
1038     ac_prev=build_alias ;;
1039   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040     build_alias=$ac_optarg ;;
1041
1042   -cache-file | --cache-file | --cache-fil | --cache-fi \
1043   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044     ac_prev=cache_file ;;
1045   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047     cache_file=$ac_optarg ;;
1048
1049   --config-cache | -C)
1050     cache_file=config.cache ;;
1051
1052   -datadir | --datadir | --datadi | --datad)
1053     ac_prev=datadir ;;
1054   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055     datadir=$ac_optarg ;;
1056
1057   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058   | --dataroo | --dataro | --datar)
1059     ac_prev=datarootdir ;;
1060   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062     datarootdir=$ac_optarg ;;
1063
1064   -disable-* | --disable-*)
1065     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_useropt_orig=$ac_useropt
1098     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099     case $ac_user_opts in
1100       *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104          ac_unrecognized_sep=', ';;
1105     esac
1106     eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110   | --exec | --exe | --ex)
1111     ac_prev=exec_prefix ;;
1112   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114   | --exec=* | --exe=* | --ex=*)
1115     exec_prefix=$ac_optarg ;;
1116
1117   -gas | --gas | --ga | --g)
1118     # Obsolete; use --with-gas.
1119     with_gas=yes ;;
1120
1121   -help | --help | --hel | --he | -h)
1122     ac_init_help=long ;;
1123   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124     ac_init_help=recursive ;;
1125   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126     ac_init_help=short ;;
1127
1128   -host | --host | --hos | --ho)
1129     ac_prev=host_alias ;;
1130   -host=* | --host=* | --hos=* | --ho=*)
1131     host_alias=$ac_optarg ;;
1132
1133   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134     ac_prev=htmldir ;;
1135   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136   | --ht=*)
1137     htmldir=$ac_optarg ;;
1138
1139   -includedir | --includedir | --includedi | --included | --include \
1140   | --includ | --inclu | --incl | --inc)
1141     ac_prev=includedir ;;
1142   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143   | --includ=* | --inclu=* | --incl=* | --inc=*)
1144     includedir=$ac_optarg ;;
1145
1146   -infodir | --infodir | --infodi | --infod | --info | --inf)
1147     ac_prev=infodir ;;
1148   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149     infodir=$ac_optarg ;;
1150
1151   -libdir | --libdir | --libdi | --libd)
1152     ac_prev=libdir ;;
1153   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154     libdir=$ac_optarg ;;
1155
1156   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157   | --libexe | --libex | --libe)
1158     ac_prev=libexecdir ;;
1159   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160   | --libexe=* | --libex=* | --libe=*)
1161     libexecdir=$ac_optarg ;;
1162
1163   -localedir | --localedir | --localedi | --localed | --locale)
1164     ac_prev=localedir ;;
1165   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166     localedir=$ac_optarg ;;
1167
1168   -localstatedir | --localstatedir | --localstatedi | --localstated \
1169   | --localstate | --localstat | --localsta | --localst | --locals)
1170     ac_prev=localstatedir ;;
1171   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173     localstatedir=$ac_optarg ;;
1174
1175   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176     ac_prev=mandir ;;
1177   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178     mandir=$ac_optarg ;;
1179
1180   -nfp | --nfp | --nf)
1181     # Obsolete; use --without-fp.
1182     with_fp=no ;;
1183
1184   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185   | --no-cr | --no-c | -n)
1186     no_create=yes ;;
1187
1188   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190     no_recursion=yes ;;
1191
1192   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194   | --oldin | --oldi | --old | --ol | --o)
1195     ac_prev=oldincludedir ;;
1196   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199     oldincludedir=$ac_optarg ;;
1200
1201   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202     ac_prev=prefix ;;
1203   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204     prefix=$ac_optarg ;;
1205
1206   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207   | --program-pre | --program-pr | --program-p)
1208     ac_prev=program_prefix ;;
1209   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211     program_prefix=$ac_optarg ;;
1212
1213   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214   | --program-suf | --program-su | --program-s)
1215     ac_prev=program_suffix ;;
1216   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218     program_suffix=$ac_optarg ;;
1219
1220   -program-transform-name | --program-transform-name \
1221   | --program-transform-nam | --program-transform-na \
1222   | --program-transform-n | --program-transform- \
1223   | --program-transform | --program-transfor \
1224   | --program-transfo | --program-transf \
1225   | --program-trans | --program-tran \
1226   | --progr-tra | --program-tr | --program-t)
1227     ac_prev=program_transform_name ;;
1228   -program-transform-name=* | --program-transform-name=* \
1229   | --program-transform-nam=* | --program-transform-na=* \
1230   | --program-transform-n=* | --program-transform-=* \
1231   | --program-transform=* | --program-transfor=* \
1232   | --program-transfo=* | --program-transf=* \
1233   | --program-trans=* | --program-tran=* \
1234   | --progr-tra=* | --program-tr=* | --program-t=*)
1235     program_transform_name=$ac_optarg ;;
1236
1237   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238     ac_prev=pdfdir ;;
1239   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240     pdfdir=$ac_optarg ;;
1241
1242   -psdir | --psdir | --psdi | --psd | --ps)
1243     ac_prev=psdir ;;
1244   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245     psdir=$ac_optarg ;;
1246
1247   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248   | -silent | --silent | --silen | --sile | --sil)
1249     silent=yes ;;
1250
1251   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252     ac_prev=sbindir ;;
1253   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254   | --sbi=* | --sb=*)
1255     sbindir=$ac_optarg ;;
1256
1257   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259   | --sharedst | --shareds | --shared | --share | --shar \
1260   | --sha | --sh)
1261     ac_prev=sharedstatedir ;;
1262   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265   | --sha=* | --sh=*)
1266     sharedstatedir=$ac_optarg ;;
1267
1268   -site | --site | --sit)
1269     ac_prev=site ;;
1270   -site=* | --site=* | --sit=*)
1271     site=$ac_optarg ;;
1272
1273   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274     ac_prev=srcdir ;;
1275   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276     srcdir=$ac_optarg ;;
1277
1278   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279   | --syscon | --sysco | --sysc | --sys | --sy)
1280     ac_prev=sysconfdir ;;
1281   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283     sysconfdir=$ac_optarg ;;
1284
1285   -target | --target | --targe | --targ | --tar | --ta | --t)
1286     ac_prev=target_alias ;;
1287   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288     target_alias=$ac_optarg ;;
1289
1290   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291     verbose=yes ;;
1292
1293   -version | --version | --versio | --versi | --vers | -V)
1294     ac_init_version=: ;;
1295
1296   -with-* | --with-*)
1297     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301    { (exit 1); exit 1; }; }
1302     ac_useropt_orig=$ac_useropt
1303     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304     case $ac_user_opts in
1305       *"
1306 "with_$ac_useropt"
1307 "*) ;;
1308       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309          ac_unrecognized_sep=', ';;
1310     esac
1311     eval with_$ac_useropt=\$ac_optarg ;;
1312
1313   -without-* | --without-*)
1314     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318    { (exit 1); exit 1; }; }
1319     ac_useropt_orig=$ac_useropt
1320     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321     case $ac_user_opts in
1322       *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326          ac_unrecognized_sep=', ';;
1327     esac
1328     eval with_$ac_useropt=no ;;
1329
1330   --x)
1331     # Obsolete; use --with-x.
1332     with_x=yes ;;
1333
1334   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335   | --x-incl | --x-inc | --x-in | --x-i)
1336     ac_prev=x_includes ;;
1337   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339     x_includes=$ac_optarg ;;
1340
1341   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343     ac_prev=x_libraries ;;
1344   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346     x_libraries=$ac_optarg ;;
1347
1348   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350    { (exit 1); exit 1; }; }
1351     ;;
1352
1353   *=*)
1354     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355     # Reject names that are not valid shell variable names.
1356     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358    { (exit 1); exit 1; }; }
1359     eval $ac_envvar=\$ac_optarg
1360     export $ac_envvar ;;
1361
1362   *)
1363     # FIXME: should be removed in autoconf 3.0.
1364     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368     ;;
1369
1370   esac
1371 done
1372
1373 if test -n "$ac_prev"; then
1374   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376    { (exit 1); exit 1; }; }
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380   case $enable_option_checking in
1381     no) ;;
1382     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1383    { (exit 1); exit 1; }; } ;;
1384     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385   esac
1386 fi
1387
1388 # Check all directory arguments for consistency.
1389 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390                 datadir sysconfdir sharedstatedir localstatedir includedir \
1391                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392                 libdir localedir mandir
1393 do
1394   eval ac_val=\$$ac_var
1395   # Remove trailing slashes.
1396   case $ac_val in
1397     */ )
1398       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399       eval $ac_var=\$ac_val;;
1400   esac
1401   # Be sure to have absolute directory names.
1402   case $ac_val in
1403     [\\/$]* | ?:[\\/]* )  continue;;
1404     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1405   esac
1406   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407    { (exit 1); exit 1; }; }
1408 done
1409
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1413 build=$build_alias
1414 host=$host_alias
1415 target=$target_alias
1416
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419   if test "x$build_alias" = x; then
1420     cross_compiling=maybe
1421     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422     If a cross compiler is detected then cross compile mode will be used." >&2
1423   elif test "x$build_alias" != "x$host_alias"; then
1424     cross_compiling=yes
1425   fi
1426 fi
1427
1428 ac_tool_prefix=
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1430
1431 test "$silent" = yes && exec 6>/dev/null
1432
1433
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1438    { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441    { (exit 1); exit 1; }; }
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446   ac_srcdir_defaulted=yes
1447   # Try the directory containing this script, then the parent directory.
1448   ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450          X"$as_myself" : 'X\(//\)[^/]' \| \
1451          X"$as_myself" : 'X\(//\)$' \| \
1452          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)[^/].*/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)$/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\).*/{
1467             s//\1/
1468             q
1469           }
1470           s/.*/./; q'`
1471   srcdir=$ac_confdir
1472   if test ! -r "$srcdir/$ac_unique_file"; then
1473     srcdir=..
1474   fi
1475 else
1476   ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481    { (exit 1); exit 1; }; }
1482 fi
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 ac_abs_confdir=`(
1485         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486    { (exit 1); exit 1; }; }
1487         pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490   srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500   eval ac_env_${ac_var}_value=\$${ac_var}
1501   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509   # Omit some internal or obsolete options to make the list less imposing.
1510   # This message is too long to be a string in the A/UX 3.1 sh.
1511   cat <<_ACEOF
1512 \`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE.  See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522   -h, --help              display this help and exit
1523       --help=short        display options specific to this package
1524       --help=recursive    display the short help of all the included packages
1525   -V, --version           display version information and exit
1526   -q, --quiet, --silent   do not print \`checking...' messages
1527       --cache-file=FILE   cache test results in FILE [disabled]
1528   -C, --config-cache      alias for \`--cache-file=config.cache'
1529   -n, --no-create         do not create output files
1530       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533   --prefix=PREFIX         install architecture-independent files in PREFIX
1534                           [$ac_default_prefix]
1535   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1536                           [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546   --bindir=DIR            user executables [EPREFIX/bin]
1547   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1548   --libexecdir=DIR        program executables [EPREFIX/libexec]
1549   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1550   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1551   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1552   --libdir=DIR            object code libraries [EPREFIX/lib]
1553   --includedir=DIR        C header files [PREFIX/include]
1554   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1555   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1556   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1557   --infodir=DIR           info documentation [DATAROOTDIR/info]
1558   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1559   --mandir=DIR            man documentation [DATAROOTDIR/man]
1560   --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1561   --htmldir=DIR           html documentation [DOCDIR]
1562   --dvidir=DIR            dvi documentation [DOCDIR]
1563   --pdfdir=DIR            pdf documentation [DOCDIR]
1564   --psdir=DIR             ps documentation [DOCDIR]
1565 _ACEOF
1566
1567   cat <<\_ACEOF
1568
1569 Program names:
1570   --program-prefix=PREFIX            prepend PREFIX to installed program names
1571   --program-suffix=SUFFIX            append SUFFIX to installed program names
1572   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1573
1574 System types:
1575   --build=BUILD     configure for building on BUILD [guessed]
1576   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1577 _ACEOF
1578 fi
1579
1580 if test -n "$ac_init_help"; then
1581   case $ac_init_help in
1582      short | recursive ) echo "Configuration of newlib 1.18.0:";;
1583    esac
1584   cat <<\_ACEOF
1585
1586 Optional Features:
1587   --disable-option-checking  ignore unrecognized --enable/--with options
1588   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1589   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1590   --enable-multilib         build many library versions (default)
1591   --enable-target-optspace  optimize for space
1592   --enable-malloc-debugging indicate malloc debugging requested
1593   --enable-newlib-multithread        enable support for multiple threads
1594   --enable-newlib-iconv     enable iconv library support
1595   --enable-newlib-elix-level         supply desired elix library level (1-4)
1596   --disable-newlib-io-float disable printf/scanf family float support
1597   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1598   --disable-dependency-tracking  speeds up one-time build
1599   --enable-dependency-tracking   do not reject slow dependency extractors
1600   --enable-maintainer-mode  enable make rules and dependencies not useful
1601                           (and sometimes confusing) to the casual installer
1602   --enable-shared[=PKGS]  build shared libraries [default=yes]
1603   --enable-static[=PKGS]  build static libraries [default=yes]
1604   --enable-fast-install[=PKGS]
1605                           optimize for fast installation [default=yes]
1606   --disable-libtool-lock  avoid locking (might break parallel builds)
1607
1608 Optional Packages:
1609   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1610   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1611   --with-pic              try to use only PIC/non-PIC objects [default=use
1612                           both]
1613   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1614
1615 Some influential environment variables:
1616   CCAS        assembler compiler command (defaults to CC)
1617   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1618   CC          C compiler command
1619   CFLAGS      C compiler flags
1620   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1621               nonstandard directory <lib dir>
1622   LIBS        libraries to pass to the linker, e.g. -l<library>
1623   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624               you have headers in a nonstandard directory <include dir>
1625   CPP         C preprocessor
1626
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1629
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635   # If there are subdirs, report their specific --help.
1636   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637     test -d "$ac_dir" ||
1638       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639       continue
1640     ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646   # A ".." for each directory in $ac_dir_suffix.
1647   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648   case $ac_top_builddir_sub in
1649   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651   esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659   .)  # We are building in place.
1660     ac_srcdir=.
1661     ac_top_srcdir=$ac_top_builddir_sub
1662     ac_abs_top_srcdir=$ac_pwd ;;
1663   [\\/]* | ?:[\\/]* )  # Absolute name.
1664     ac_srcdir=$srcdir$ac_dir_suffix;
1665     ac_top_srcdir=$srcdir
1666     ac_abs_top_srcdir=$srcdir ;;
1667   *) # Relative name.
1668     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669     ac_top_srcdir=$ac_top_build_prefix$srcdir
1670     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674     cd "$ac_dir" || { ac_status=$?; continue; }
1675     # Check for guested configure.
1676     if test -f "$ac_srcdir/configure.gnu"; then
1677       echo &&
1678       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679     elif test -f "$ac_srcdir/configure"; then
1680       echo &&
1681       $SHELL "$ac_srcdir/configure" --help=recursive
1682     else
1683       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684     fi || ac_status=$?
1685     cd "$ac_pwd" || { ac_status=$?; break; }
1686   done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691   cat <<\_ACEOF
1692 newlib configure 1.18.0
1693 generated by GNU Autoconf 2.63
1694
1695 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1696 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700   exit
1701 fi
1702 cat >config.log <<_ACEOF
1703 This file contains any messages produced by compilers while
1704 running configure, to aid debugging if configure makes a mistake.
1705
1706 It was created by newlib $as_me 1.18.0, which was
1707 generated by GNU Autoconf 2.63.  Invocation command line was
1708
1709   $ $0 $@
1710
1711 _ACEOF
1712 exec 5>>config.log
1713 {
1714 cat <<_ASUNAME
1715 ## --------- ##
1716 ## Platform. ##
1717 ## --------- ##
1718
1719 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1727
1728 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1729 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1730 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1732 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1733 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1734 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1735
1736 _ASUNAME
1737
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741   IFS=$as_save_IFS
1742   test -z "$as_dir" && as_dir=.
1743   $as_echo "PATH: $as_dir"
1744 done
1745 IFS=$as_save_IFS
1746
1747 } >&5
1748
1749 cat >&5 <<_ACEOF
1750
1751
1752 ## ----------- ##
1753 ## Core tests. ##
1754 ## ----------- ##
1755
1756 _ACEOF
1757
1758
1759 # Keep a trace of the command line.
1760 # Strip out --no-create and --no-recursion so they do not pile up.
1761 # Strip out --silent because we don't want to record it for future runs.
1762 # Also quote any args containing shell meta-characters.
1763 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_configure_args=
1765 ac_configure_args0=
1766 ac_configure_args1=
1767 ac_must_keep_next=false
1768 for ac_pass in 1 2
1769 do
1770   for ac_arg
1771   do
1772     case $ac_arg in
1773     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775     | -silent | --silent | --silen | --sile | --sil)
1776       continue ;;
1777     *\'*)
1778       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779     esac
1780     case $ac_pass in
1781     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782     2)
1783       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784       if test $ac_must_keep_next = true; then
1785         ac_must_keep_next=false # Got value, back to normal.
1786       else
1787         case $ac_arg in
1788           *=* | --config-cache | -C | -disable-* | --disable-* \
1789           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791           | -with-* | --with-* | -without-* | --without-* | --x)
1792             case "$ac_configure_args0 " in
1793               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794             esac
1795             ;;
1796           -* ) ac_must_keep_next=true ;;
1797         esac
1798       fi
1799       ac_configure_args="$ac_configure_args '$ac_arg'"
1800       ;;
1801     esac
1802   done
1803 done
1804 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807 # When interrupted or exit'd, cleanup temporary files, and complete
1808 # config.log.  We remove comments because anyway the quotes in there
1809 # would cause problems or look ugly.
1810 # WARNING: Use '\'' to represent an apostrophe within the trap.
1811 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812 trap 'exit_status=$?
1813   # Save into config.log some information that might help in debugging.
1814   {
1815     echo
1816
1817     cat <<\_ASBOX
1818 ## ---------------- ##
1819 ## Cache variables. ##
1820 ## ---------------- ##
1821 _ASBOX
1822     echo
1823     # The following way of writing the cache mishandles newlines in values,
1824 (
1825   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826     eval ac_val=\$$ac_var
1827     case $ac_val in #(
1828     *${as_nl}*)
1829       case $ac_var in #(
1830       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1832       esac
1833       case $ac_var in #(
1834       _ | IFS | as_nl) ;; #(
1835       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1836       *) $as_unset $ac_var ;;
1837       esac ;;
1838     esac
1839   done
1840   (set) 2>&1 |
1841     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1842     *${as_nl}ac_space=\ *)
1843       sed -n \
1844         "s/'\''/'\''\\\\'\'''\''/g;
1845           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1846       ;; #(
1847     *)
1848       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849       ;;
1850     esac |
1851     sort
1852 )
1853     echo
1854
1855     cat <<\_ASBOX
1856 ## ----------------- ##
1857 ## Output variables. ##
1858 ## ----------------- ##
1859 _ASBOX
1860     echo
1861     for ac_var in $ac_subst_vars
1862     do
1863       eval ac_val=\$$ac_var
1864       case $ac_val in
1865       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866       esac
1867       $as_echo "$ac_var='\''$ac_val'\''"
1868     done | sort
1869     echo
1870
1871     if test -n "$ac_subst_files"; then
1872       cat <<\_ASBOX
1873 ## ------------------- ##
1874 ## File substitutions. ##
1875 ## ------------------- ##
1876 _ASBOX
1877       echo
1878       for ac_var in $ac_subst_files
1879       do
1880         eval ac_val=\$$ac_var
1881         case $ac_val in
1882         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883         esac
1884         $as_echo "$ac_var='\''$ac_val'\''"
1885       done | sort
1886       echo
1887     fi
1888
1889     if test -s confdefs.h; then
1890       cat <<\_ASBOX
1891 ## ----------- ##
1892 ## confdefs.h. ##
1893 ## ----------- ##
1894 _ASBOX
1895       echo
1896       cat confdefs.h
1897       echo
1898     fi
1899     test "$ac_signal" != 0 &&
1900       $as_echo "$as_me: caught signal $ac_signal"
1901     $as_echo "$as_me: exit $exit_status"
1902   } >&5
1903   rm -f core *.core core.conftest.* &&
1904     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1905     exit $exit_status
1906 ' 0
1907 for ac_signal in 1 2 13 15; do
1908   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1909 done
1910 ac_signal=0
1911
1912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1913 rm -f -r conftest* confdefs.h
1914
1915 # Predefined preprocessor variables.
1916
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_NAME "$PACKAGE_NAME"
1919 _ACEOF
1920
1921
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1924 _ACEOF
1925
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_STRING "$PACKAGE_STRING"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1939 _ACEOF
1940
1941
1942 # Let the site file select an alternate cache file if it wants to.
1943 # Prefer an explicitly selected file to automatically selected ones.
1944 ac_site_file1=NONE
1945 ac_site_file2=NONE
1946 if test -n "$CONFIG_SITE"; then
1947   ac_site_file1=$CONFIG_SITE
1948 elif test "x$prefix" != xNONE; then
1949   ac_site_file1=$prefix/share/config.site
1950   ac_site_file2=$prefix/etc/config.site
1951 else
1952   ac_site_file1=$ac_default_prefix/share/config.site
1953   ac_site_file2=$ac_default_prefix/etc/config.site
1954 fi
1955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1956 do
1957   test "x$ac_site_file" = xNONE && continue
1958   if test -r "$ac_site_file"; then
1959     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1961     sed 's/^/| /' "$ac_site_file" >&5
1962     . "$ac_site_file"
1963   fi
1964 done
1965
1966 if test -r "$cache_file"; then
1967   # Some versions of bash will fail to source /dev/null (special
1968   # files actually), so we avoid doing that.
1969   if test -f "$cache_file"; then
1970     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1971 $as_echo "$as_me: loading cache $cache_file" >&6;}
1972     case $cache_file in
1973       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1974       *)                      . "./$cache_file";;
1975     esac
1976   fi
1977 else
1978   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1979 $as_echo "$as_me: creating cache $cache_file" >&6;}
1980   >$cache_file
1981 fi
1982
1983 # Check that the precious variables saved in the cache have kept the same
1984 # value.
1985 ac_cache_corrupted=false
1986 for ac_var in $ac_precious_vars; do
1987   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1988   eval ac_new_set=\$ac_env_${ac_var}_set
1989   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1990   eval ac_new_val=\$ac_env_${ac_var}_value
1991   case $ac_old_set,$ac_new_set in
1992     set,)
1993       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1995       ac_cache_corrupted=: ;;
1996     ,set)
1997       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1998 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1999       ac_cache_corrupted=: ;;
2000     ,);;
2001     *)
2002       if test "x$ac_old_val" != "x$ac_new_val"; then
2003         # differences in whitespace do not lead to failure.
2004         ac_old_val_w=`echo x $ac_old_val`
2005         ac_new_val_w=`echo x $ac_new_val`
2006         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2007           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009           ac_cache_corrupted=:
2010         else
2011           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2012 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2013           eval $ac_var=\$ac_old_val
2014         fi
2015         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2016 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2017         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2018 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2019       fi;;
2020   esac
2021   # Pass precious variables to config.status.
2022   if test "$ac_new_set" = set; then
2023     case $ac_new_val in
2024     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025     *) ac_arg=$ac_var=$ac_new_val ;;
2026     esac
2027     case " $ac_configure_args " in
2028       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2029       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030     esac
2031   fi
2032 done
2033 if $ac_cache_corrupted; then
2034   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2037 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2038   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2039 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2040    { (exit 1); exit 1; }; }
2041 fi
2042
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 ac_ext=c
2068 ac_cpp='$CPP $CPPFLAGS'
2069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072
2073
2074
2075
2076 ac_aux_dir=
2077 for ac_dir in ../../../../.. "$srcdir"/../../../../..; do
2078   if test -f "$ac_dir/install-sh"; then
2079     ac_aux_dir=$ac_dir
2080     ac_install_sh="$ac_aux_dir/install-sh -c"
2081     break
2082   elif test -f "$ac_dir/install.sh"; then
2083     ac_aux_dir=$ac_dir
2084     ac_install_sh="$ac_aux_dir/install.sh -c"
2085     break
2086   elif test -f "$ac_dir/shtool"; then
2087     ac_aux_dir=$ac_dir
2088     ac_install_sh="$ac_aux_dir/shtool install -c"
2089     break
2090   fi
2091 done
2092 if test -z "$ac_aux_dir"; then
2093   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../.. \"$srcdir\"/../../../../.." >&5
2094 $as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../../.. \"$srcdir\"/../../../../.." >&2;}
2095    { (exit 1); exit 1; }; }
2096 fi
2097
2098 # These three variables are undocumented and unsupported,
2099 # and are intended to be withdrawn in a future Autoconf release.
2100 # They can cause serious problems if a builder's source tree is in a directory
2101 # whose full name contains unusual characters.
2102 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2103 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2104 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2105
2106
2107
2108
2109 # Make sure we can run config.sub.
2110 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2111   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2112 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2113    { (exit 1); exit 1; }; }
2114
2115 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2116 $as_echo_n "checking build system type... " >&6; }
2117 if test "${ac_cv_build+set}" = set; then
2118   $as_echo_n "(cached) " >&6
2119 else
2120   ac_build_alias=$build_alias
2121 test "x$ac_build_alias" = x &&
2122   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2123 test "x$ac_build_alias" = x &&
2124   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2125 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2126    { (exit 1); exit 1; }; }
2127 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2128   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2129 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2130    { (exit 1); exit 1; }; }
2131
2132 fi
2133 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2134 $as_echo "$ac_cv_build" >&6; }
2135 case $ac_cv_build in
2136 *-*-*) ;;
2137 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2138 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2139    { (exit 1); exit 1; }; };;
2140 esac
2141 build=$ac_cv_build
2142 ac_save_IFS=$IFS; IFS='-'
2143 set x $ac_cv_build
2144 shift
2145 build_cpu=$1
2146 build_vendor=$2
2147 shift; shift
2148 # Remember, the first character of IFS is used to create $*,
2149 # except with old shells:
2150 build_os=$*
2151 IFS=$ac_save_IFS
2152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2153
2154
2155 am__api_version='1.11'
2156
2157 # Find a good install program.  We prefer a C program (faster),
2158 # so one script is as good as another.  But avoid the broken or
2159 # incompatible versions:
2160 # SysV /etc/install, /usr/sbin/install
2161 # SunOS /usr/etc/install
2162 # IRIX /sbin/install
2163 # AIX /bin/install
2164 # AmigaOS /C/install, which installs bootblocks on floppy discs
2165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168 # OS/2's system install, which has a completely different semantic
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 # Reject install programs that cannot install multiple files.
2171 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2172 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2173 if test -z "$INSTALL"; then
2174 if test "${ac_cv_path_install+set}" = set; then
2175   $as_echo_n "(cached) " >&6
2176 else
2177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   # Account for people who put trailing slashes in PATH elements.
2183 case $as_dir/ in
2184   ./ | .// | /cC/* | \
2185   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2186   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2187   /usr/ucb/* ) ;;
2188   *)
2189     # OSF1 and SCO ODT 3.0 have their own names for install.
2190     # Don't use installbsd from OSF since it installs stuff as root
2191     # by default.
2192     for ac_prog in ginstall scoinst install; do
2193       for ac_exec_ext in '' $ac_executable_extensions; do
2194         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2195           if test $ac_prog = install &&
2196             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197             # AIX install.  It has an incompatible calling convention.
2198             :
2199           elif test $ac_prog = install &&
2200             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201             # program-specific install script used by HP pwplus--don't use.
2202             :
2203           else
2204             rm -rf conftest.one conftest.two conftest.dir
2205             echo one > conftest.one
2206             echo two > conftest.two
2207             mkdir conftest.dir
2208             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2209               test -s conftest.one && test -s conftest.two &&
2210               test -s conftest.dir/conftest.one &&
2211               test -s conftest.dir/conftest.two
2212             then
2213               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2214               break 3
2215             fi
2216           fi
2217         fi
2218       done
2219     done
2220     ;;
2221 esac
2222
2223 done
2224 IFS=$as_save_IFS
2225
2226 rm -rf conftest.one conftest.two conftest.dir
2227
2228 fi
2229   if test "${ac_cv_path_install+set}" = set; then
2230     INSTALL=$ac_cv_path_install
2231   else
2232     # As a last resort, use the slow shell script.  Don't cache a
2233     # value for INSTALL within a source directory, because that will
2234     # break other packages using the cache if that directory is
2235     # removed, or if the value is a relative name.
2236     INSTALL=$ac_install_sh
2237   fi
2238 fi
2239 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2240 $as_echo "$INSTALL" >&6; }
2241
2242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2243 # It thinks the first close brace ends the variable substitution.
2244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2245
2246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2247
2248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2249
2250 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2251 $as_echo_n "checking whether build environment is sane... " >&6; }
2252 # Just in case
2253 sleep 1
2254 echo timestamp > conftest.file
2255 # Reject unsafe characters in $srcdir or the absolute working directory
2256 # name.  Accept space and tab only in the latter.
2257 am_lf='
2258 '
2259 case `pwd` in
2260   *[\\\"\#\$\&\'\`$am_lf]*)
2261     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2262 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2263    { (exit 1); exit 1; }; };;
2264 esac
2265 case $srcdir in
2266   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2267     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2268 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2269    { (exit 1); exit 1; }; };;
2270 esac
2271
2272 # Do `set' in a subshell so we don't clobber the current shell's
2273 # arguments.  Must try -L first in case configure is actually a
2274 # symlink; some systems play weird games with the mod time of symlinks
2275 # (eg FreeBSD returns the mod time of the symlink's containing
2276 # directory).
2277 if (
2278    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2279    if test "$*" = "X"; then
2280       # -L didn't work.
2281       set X `ls -t "$srcdir/configure" conftest.file`
2282    fi
2283    rm -f conftest.file
2284    if test "$*" != "X $srcdir/configure conftest.file" \
2285       && test "$*" != "X conftest.file $srcdir/configure"; then
2286
2287       # If neither matched, then we have a broken ls.  This can happen
2288       # if, for instance, CONFIG_SHELL is bash and it inherits a
2289       # broken ls alias from the environment.  This has actually
2290       # happened.  Such a system could not be considered "sane".
2291       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2292 alias in your environment" >&5
2293 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2294 alias in your environment" >&2;}
2295    { (exit 1); exit 1; }; }
2296    fi
2297
2298    test "$2" = conftest.file
2299    )
2300 then
2301    # Ok.
2302    :
2303 else
2304    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2305 Check your system clock" >&5
2306 $as_echo "$as_me: error: newly created file is older than distributed files!
2307 Check your system clock" >&2;}
2308    { (exit 1); exit 1; }; }
2309 fi
2310 { $as_echo "$as_me:$LINENO: result: yes" >&5
2311 $as_echo "yes" >&6; }
2312 test "$program_prefix" != NONE &&
2313   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2314 # Use a double $ so make ignores it.
2315 test "$program_suffix" != NONE &&
2316   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317 # Double any \ or $.
2318 # By default was `s,x,x', remove it if useless.
2319 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2320 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2321
2322 # expand $ac_aux_dir to an absolute path
2323 am_aux_dir=`cd $ac_aux_dir && pwd`
2324
2325 if test x"${MISSING+set}" != xset; then
2326   case $am_aux_dir in
2327   *\ * | *\     *)
2328     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2329   *)
2330     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2331   esac
2332 fi
2333 # Use eval to expand $SHELL
2334 if eval "$MISSING --run true"; then
2335   am_missing_run="$MISSING --run "
2336 else
2337   am_missing_run=
2338   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2339 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2340 fi
2341
2342 if test x"${install_sh}" != xset; then
2343   case $am_aux_dir in
2344   *\ * | *\     *)
2345     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2346   *)
2347     install_sh="\${SHELL} $am_aux_dir/install-sh"
2348   esac
2349 fi
2350
2351 # Installed binaries are usually stripped using `strip' when the user
2352 # run `make install-strip'.  However `strip' might not be the right
2353 # tool to use in cross-compilation environments, therefore Automake
2354 # will honor the `STRIP' environment variable to overrule this program.
2355 if test "$cross_compiling" != no; then
2356   if test -n "$ac_tool_prefix"; then
2357   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}strip; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_STRIP+set}" = set; then
2362   $as_echo_n "(cached) " >&6
2363 else
2364   if test -n "$STRIP"; then
2365   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   for ac_exec_ext in '' $ac_executable_extensions; do
2373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383 fi
2384 STRIP=$ac_cv_prog_STRIP
2385 if test -n "$STRIP"; then
2386   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2387 $as_echo "$STRIP" >&6; }
2388 else
2389   { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 fi
2392
2393
2394 fi
2395 if test -z "$ac_cv_prog_STRIP"; then
2396   ac_ct_STRIP=$STRIP
2397   # Extract the first word of "strip", so it can be a program name with args.
2398 set dummy strip; ac_word=$2
2399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2402   $as_echo_n "(cached) " >&6
2403 else
2404   if test -n "$ac_ct_STRIP"; then
2405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414     ac_cv_prog_ac_ct_STRIP="strip"
2415     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2425 if test -n "$ac_ct_STRIP"; then
2426   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2427 $as_echo "$ac_ct_STRIP" >&6; }
2428 else
2429   { $as_echo "$as_me:$LINENO: result: no" >&5
2430 $as_echo "no" >&6; }
2431 fi
2432
2433   if test "x$ac_ct_STRIP" = x; then
2434     STRIP=":"
2435   else
2436     case $cross_compiling:$ac_tool_warned in
2437 yes:)
2438 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     STRIP=$ac_ct_STRIP
2443   fi
2444 else
2445   STRIP="$ac_cv_prog_STRIP"
2446 fi
2447
2448 fi
2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2450
2451 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2452 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2453 if test -z "$MKDIR_P"; then
2454   if test "${ac_cv_path_mkdir+set}" = set; then
2455   $as_echo_n "(cached) " >&6
2456 else
2457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2459 do
2460   IFS=$as_save_IFS
2461   test -z "$as_dir" && as_dir=.
2462   for ac_prog in mkdir gmkdir; do
2463          for ac_exec_ext in '' $ac_executable_extensions; do
2464            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2465            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2466              'mkdir (GNU coreutils) '* | \
2467              'mkdir (coreutils) '* | \
2468              'mkdir (fileutils) '4.1*)
2469                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2470                break 3;;
2471            esac
2472          done
2473        done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478
2479   if test "${ac_cv_path_mkdir+set}" = set; then
2480     MKDIR_P="$ac_cv_path_mkdir -p"
2481   else
2482     # As a last resort, use the slow shell script.  Don't cache a
2483     # value for MKDIR_P within a source directory, because that will
2484     # break other packages using the cache if that directory is
2485     # removed, or if the value is a relative name.
2486     test -d ./--version && rmdir ./--version
2487     MKDIR_P="$ac_install_sh -d"
2488   fi
2489 fi
2490 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2491 $as_echo "$MKDIR_P" >&6; }
2492
2493 mkdir_p="$MKDIR_P"
2494 case $mkdir_p in
2495   [\\/$]* | ?:[\\/]*) ;;
2496   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2497 esac
2498
2499 for ac_prog in gawk mawk nawk awk
2500 do
2501   # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 $as_echo_n "checking for $ac_word... " >&6; }
2505 if test "${ac_cv_prog_AWK+set}" = set; then
2506   $as_echo_n "(cached) " >&6
2507 else
2508   if test -n "$AWK"; then
2509   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   for ac_exec_ext in '' $ac_executable_extensions; do
2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518     ac_cv_prog_AWK="$ac_prog"
2519     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 AWK=$ac_cv_prog_AWK
2529 if test -n "$AWK"; then
2530   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2531 $as_echo "$AWK" >&6; }
2532 else
2533   { $as_echo "$as_me:$LINENO: result: no" >&5
2534 $as_echo "no" >&6; }
2535 fi
2536
2537
2538   test -n "$AWK" && break
2539 done
2540
2541 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2542 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2543 set x ${MAKE-make}
2544 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2545 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2546   $as_echo_n "(cached) " >&6
2547 else
2548   cat >conftest.make <<\_ACEOF
2549 SHELL = /bin/sh
2550 all:
2551         @echo '@@@%%%=$(MAKE)=@@@%%%'
2552 _ACEOF
2553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2554 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2555   *@@@%%%=?*=@@@%%%*)
2556     eval ac_cv_prog_make_${ac_make}_set=yes;;
2557   *)
2558     eval ac_cv_prog_make_${ac_make}_set=no;;
2559 esac
2560 rm -f conftest.make
2561 fi
2562 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2563   { $as_echo "$as_me:$LINENO: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565   SET_MAKE=
2566 else
2567   { $as_echo "$as_me:$LINENO: result: no" >&5
2568 $as_echo "no" >&6; }
2569   SET_MAKE="MAKE=${MAKE-make}"
2570 fi
2571
2572 rm -rf .tst 2>/dev/null
2573 mkdir .tst 2>/dev/null
2574 if test -d .tst; then
2575   am__leading_dot=.
2576 else
2577   am__leading_dot=_
2578 fi
2579 rmdir .tst 2>/dev/null
2580
2581 DEPDIR="${am__leading_dot}deps"
2582
2583 ac_config_commands="$ac_config_commands depfiles"
2584
2585
2586 am_make=${MAKE-make}
2587 cat > confinc << 'END'
2588 am__doit:
2589         @echo this is the am__doit target
2590 .PHONY: am__doit
2591 END
2592 # If we don't find an include directive, just comment out the code.
2593 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2594 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2595 am__include="#"
2596 am__quote=
2597 _am_result=none
2598 # First try GNU make style include.
2599 echo "include confinc" > confmf
2600 # Ignore all kinds of additional output from `make'.
2601 case `$am_make -s -f confmf 2> /dev/null` in #(
2602 *the\ am__doit\ target*)
2603   am__include=include
2604   am__quote=
2605   _am_result=GNU
2606   ;;
2607 esac
2608 # Now try BSD make style include.
2609 if test "$am__include" = "#"; then
2610    echo '.include "confinc"' > confmf
2611    case `$am_make -s -f confmf 2> /dev/null` in #(
2612    *the\ am__doit\ target*)
2613      am__include=.include
2614      am__quote="\""
2615      _am_result=BSD
2616      ;;
2617    esac
2618 fi
2619
2620
2621 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2622 $as_echo "$_am_result" >&6; }
2623 rm -f confinc confmf
2624
2625 # Check whether --enable-dependency-tracking was given.
2626 if test "${enable_dependency_tracking+set}" = set; then
2627   enableval=$enable_dependency_tracking;
2628 fi
2629
2630 if test "x$enable_dependency_tracking" != xno; then
2631   am_depcomp="$ac_aux_dir/depcomp"
2632   AMDEPBACKSLASH='\'
2633 fi
2634  if test "x$enable_dependency_tracking" != xno; then
2635   AMDEP_TRUE=
2636   AMDEP_FALSE='#'
2637 else
2638   AMDEP_TRUE='#'
2639   AMDEP_FALSE=
2640 fi
2641
2642
2643
2644 # Check whether --enable-multilib was given.
2645 if test "${enable_multilib+set}" = set; then
2646   enableval=$enable_multilib; case "${enableval}" in
2647   yes) multilib=yes ;;
2648   no)  multilib=no ;;
2649   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2650 $as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2651    { (exit 1); exit 1; }; } ;;
2652  esac
2653 else
2654   multilib=yes
2655 fi
2656
2657 # Check whether --enable-target-optspace was given.
2658 if test "${enable_target_optspace+set}" = set; then
2659   enableval=$enable_target_optspace; case "${enableval}" in
2660   yes) target_optspace=yes ;;
2661   no)  target_optspace=no ;;
2662   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2663 $as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2664    { (exit 1); exit 1; }; } ;;
2665  esac
2666 else
2667   target_optspace=
2668 fi
2669
2670 # Check whether --enable-malloc-debugging was given.
2671 if test "${enable_malloc_debugging+set}" = set; then
2672   enableval=$enable_malloc_debugging; case "${enableval}" in
2673   yes) malloc_debugging=yes ;;
2674   no)  malloc_debugging=no ;;
2675   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2676 $as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2677    { (exit 1); exit 1; }; } ;;
2678  esac
2679 else
2680   malloc_debugging=
2681 fi
2682
2683 # Check whether --enable-newlib-multithread was given.
2684 if test "${enable_newlib_multithread+set}" = set; then
2685   enableval=$enable_newlib_multithread; case "${enableval}" in
2686   yes) newlib_multithread=yes ;;
2687   no)  newlib_multithread=no ;;
2688   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2689 $as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2690    { (exit 1); exit 1; }; } ;;
2691  esac
2692 else
2693   newlib_multithread=yes
2694 fi
2695
2696 # Check whether --enable-newlib-iconv was given.
2697 if test "${enable_newlib_iconv+set}" = set; then
2698   enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2699    case "${enableval}" in
2700      yes) newlib_iconv=yes ;;
2701      no)  newlib_iconv=no ;;
2702      *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2703 $as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2704    { (exit 1); exit 1; }; } ;;
2705    esac
2706  fi
2707 else
2708   newlib_iconv=${newlib_iconv}
2709 fi
2710
2711 # Check whether --enable-newlib-elix-level was given.
2712 if test "${enable_newlib_elix_level+set}" = set; then
2713   enableval=$enable_newlib_elix_level; case "${enableval}" in
2714   0)   newlib_elix_level=0 ;;
2715   1)   newlib_elix_level=1 ;;
2716   2)   newlib_elix_level=2 ;;
2717   3)   newlib_elix_level=3 ;;
2718   4)   newlib_elix_level=4 ;;
2719   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2720 $as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2721    { (exit 1); exit 1; }; } ;;
2722  esac
2723 else
2724   newlib_elix_level=0
2725 fi
2726
2727 # Check whether --enable-newlib-io-float was given.
2728 if test "${enable_newlib_io_float+set}" = set; then
2729   enableval=$enable_newlib_io_float; case "${enableval}" in
2730   yes) newlib_io_float=yes ;;
2731   no)  newlib_io_float=no ;;
2732   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2733 $as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2734    { (exit 1); exit 1; }; } ;;
2735  esac
2736 else
2737   newlib_io_float=yes
2738 fi
2739
2740 # Check whether --enable-newlib-supplied-syscalls was given.
2741 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2742   enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2743   yes) newlib_may_supply_syscalls=yes ;;
2744   no)  newlib_may_supply_syscalls=no ;;
2745   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2746 $as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2747    { (exit 1); exit 1; }; } ;;
2748  esac
2749 else
2750   newlib_may_supply_syscalls=yes
2751 fi
2752
2753  if test x${newlib_may_supply_syscalls} = xyes; then
2754   MAY_SUPPLY_SYSCALLS_TRUE=
2755   MAY_SUPPLY_SYSCALLS_FALSE='#'
2756 else
2757   MAY_SUPPLY_SYSCALLS_TRUE='#'
2758   MAY_SUPPLY_SYSCALLS_FALSE=
2759 fi
2760
2761
2762
2763 test -z "${with_target_subdir}" && with_target_subdir=.
2764
2765 if test "${srcdir}" = "."; then
2766   if test "${with_target_subdir}" != "."; then
2767     newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2768   else
2769     newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2770   fi
2771 else
2772   newlib_basedir="${srcdir}/../../../.."
2773 fi
2774
2775
2776 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2777 $as_echo_n "checking host system type... " >&6; }
2778 if test "${ac_cv_host+set}" = set; then
2779   $as_echo_n "(cached) " >&6
2780 else
2781   if test "x$host_alias" = x; then
2782   ac_cv_host=$ac_cv_build
2783 else
2784   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2785     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2786 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2787    { (exit 1); exit 1; }; }
2788 fi
2789
2790 fi
2791 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2792 $as_echo "$ac_cv_host" >&6; }
2793 case $ac_cv_host in
2794 *-*-*) ;;
2795 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2796 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2797    { (exit 1); exit 1; }; };;
2798 esac
2799 host=$ac_cv_host
2800 ac_save_IFS=$IFS; IFS='-'
2801 set x $ac_cv_host
2802 shift
2803 host_cpu=$1
2804 host_vendor=$2
2805 shift; shift
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2808 host_os=$*
2809 IFS=$ac_save_IFS
2810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2811
2812
2813
2814 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2815   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2816   # is not polluted with repeated "-I."
2817   am__isrc=' -I$(srcdir)'
2818   # test to see if srcdir already configured
2819   if test -f $srcdir/config.status; then
2820     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822    { (exit 1); exit 1; }; }
2823   fi
2824 fi
2825
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828   if (cygpath --version) >/dev/null 2>/dev/null; then
2829     CYGPATH_W='cygpath -w'
2830   else
2831     CYGPATH_W=echo
2832   fi
2833 fi
2834
2835
2836 # Define the identity of the package.
2837  PACKAGE='newlib'
2838  VERSION='1.18.0'
2839
2840
2841 # Some tools Automake needs.
2842
2843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844
2845
2846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847
2848
2849 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850
2851
2852 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853
2854
2855 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2856
2857 # We need awk for the "check" target.  The system "awk" is bad on
2858 # some platforms.
2859 # Always define AMTAR for backward compatibility.
2860
2861 AMTAR=${AMTAR-"${am_missing_run}tar"}
2862
2863 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2864
2865
2866
2867
2868
2869
2870 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2871 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2872 # are probably using a cross compiler, which will not be able to fully
2873 # link an executable.  This should really be fixed in autoconf
2874 # itself.
2875
2876
2877
2878
2879
2880
2881
2882 # Extract the first word of "gcc", so it can be a program name with args.
2883 set dummy gcc; ac_word=$2
2884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887   $as_echo_n "(cached) " >&6
2888 else
2889   if test -n "$CC"; then
2890   ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897   for ac_exec_ext in '' $ac_executable_extensions; do
2898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899     ac_cv_prog_CC="gcc"
2900     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914   { $as_echo "$as_me:$LINENO: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919
2920 depcc="$CC"   am_compiler_list=
2921
2922 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2923 $as_echo_n "checking dependency style of $depcc... " >&6; }
2924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2928   # We make a subdir and do the tests there.  Otherwise we can end up
2929   # making bogus files that we don't know about and never remove.  For
2930   # instance it was reported that on HP-UX the gcc test will end up
2931   # making a dummy file named `D' -- because `-MD' means `put the output
2932   # in D'.
2933   mkdir conftest.dir
2934   # Copy depcomp to subdir because otherwise we won't find it if we're
2935   # using a relative directory.
2936   cp "$am_depcomp" conftest.dir
2937   cd conftest.dir
2938   # We will build objects and dependencies in a subdirectory because
2939   # it helps to detect inapplicable dependency modes.  For instance
2940   # both Tru64's cc and ICC support -MD to output dependencies as a
2941   # side effect of compilation, but ICC will put the dependencies in
2942   # the current directory while Tru64 will put them in the object
2943   # directory.
2944   mkdir sub
2945
2946   am_cv_CC_dependencies_compiler_type=none
2947   if test "$am_compiler_list" = ""; then
2948      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2949   fi
2950   am__universal=false
2951   case " $depcc " in #(
2952      *\ -arch\ *\ -arch\ *) am__universal=true ;;
2953      esac
2954
2955   for depmode in $am_compiler_list; do
2956     # Setup a source with many dependencies, because some compilers
2957     # like to wrap large dependency lists on column 80 (with \), and
2958     # we should not choose a depcomp mode which is confused by this.
2959     #
2960     # We need to recreate these files for each test, as the compiler may
2961     # overwrite some of them when testing with obscure command lines.
2962     # This happens at least with the AIX C compiler.
2963     : > sub/conftest.c
2964     for i in 1 2 3 4 5 6; do
2965       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2966       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2967       # Solaris 8's {/usr,}/bin/sh.
2968       touch sub/conftst$i.h
2969     done
2970     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2971
2972     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2973     # mode.  It turns out that the SunPro C++ compiler does not properly
2974     # handle `-M -o', and we need to detect this.  Also, some Intel
2975     # versions had trouble with output in subdirs
2976     am__obj=sub/conftest.${OBJEXT-o}
2977     am__minus_obj="-o $am__obj"
2978     case $depmode in
2979     gcc)
2980       # This depmode causes a compiler race in universal mode.
2981       test "$am__universal" = false || continue
2982       ;;
2983     nosideeffect)
2984       # after this tag, mechanisms are not by side-effect, so they'll
2985       # only be used when explicitly requested
2986       if test "x$enable_dependency_tracking" = xyes; then
2987         continue
2988       else
2989         break
2990       fi
2991       ;;
2992     msvisualcpp | msvcmsys)
2993       # This compiler won't grok `-c -o', but also, the minuso test has
2994       # not run yet.  These depmodes are late enough in the game, and
2995       # so weak that their functioning should not be impacted.
2996       am__obj=conftest.${OBJEXT-o}
2997       am__minus_obj=
2998       ;;
2999     none) break ;;
3000     esac
3001     if depmode=$depmode \
3002        source=sub/conftest.c object=$am__obj \
3003        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3004        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3005          >/dev/null 2>conftest.err &&
3006        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3007        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3008        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3009        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3010       # icc doesn't choke on unknown options, it will just issue warnings
3011       # or remarks (even with -Werror).  So we grep stderr for any message
3012       # that says an option was ignored or not supported.
3013       # When given -MP, icc 7.0 and 7.1 complain thusly:
3014       #   icc: Command line warning: ignoring option '-M'; no argument required
3015       # The diagnosis changed in icc 8.0:
3016       #   icc: Command line remark: option '-MP' not supported
3017       if (grep 'ignoring option' conftest.err ||
3018           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3019         am_cv_CC_dependencies_compiler_type=$depmode
3020         break
3021       fi
3022     fi
3023   done
3024
3025   cd ..
3026   rm -rf conftest.dir
3027 else
3028   am_cv_CC_dependencies_compiler_type=none
3029 fi
3030
3031 fi
3032 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3035
3036  if
3037   test "x$enable_dependency_tracking" != xno \
3038   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3039   am__fastdepCC_TRUE=
3040   am__fastdepCC_FALSE='#'
3041 else
3042   am__fastdepCC_TRUE='#'
3043   am__fastdepCC_FALSE=
3044 fi
3045
3046
3047 if test -z "$CC"; then
3048   # Extract the first word of "cc", so it can be a program name with args.
3049 set dummy cc; ac_word=$2
3050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then
3053   $as_echo_n "(cached) " >&6
3054 else
3055   if test -n "$CC"; then
3056   ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058   ac_prog_rejected=no
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064   for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3067        ac_prog_rejected=yes
3068        continue
3069      fi
3070     ac_cv_prog_CC="cc"
3071     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072     break 2
3073   fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 if test $ac_prog_rejected = yes; then
3079   # We found a bogon in the path, so make sure we never use it.
3080   set dummy $ac_cv_prog_CC
3081   shift
3082   if test $# != 0; then
3083     # We chose a different compiler from the bogus one.
3084     # However, it has the same basename, so the bogon will be chosen
3085     # first if we set CC to just the basename; use the full file name.
3086     shift
3087     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088   fi
3089 fi
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097   { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102   test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3103 $as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3104    { (exit 1); exit 1; }; }
3105 fi
3106
3107 { $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3108 $as_echo_n "checking whether we are using GNU C... " >&6; }
3109 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3110   $as_echo_n "(cached) " >&6
3111 else
3112   cat > conftest.c <<EOF
3113 #ifdef __GNUC__
3114   yes;
3115 #endif
3116 EOF
3117 if { ac_try='${CC-cc} -E conftest.c'
3118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119   (eval $ac_try) 2>&5
3120   ac_status=$?
3121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3123   ac_cv_c_compiler_gnu=yes
3124 else
3125   ac_cv_c_compiler_gnu=no
3126 fi
3127 fi
3128 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3130
3131 if test $ac_cv_c_compiler_gnu = yes; then
3132   GCC=yes
3133   ac_test_CFLAGS="${CFLAGS+set}"
3134   ac_save_CFLAGS="$CFLAGS"
3135   ac_test_CFLAGS=${CFLAGS+set}
3136 ac_save_CFLAGS=$CFLAGS
3137 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3139 if test "${ac_cv_prog_cc_g+set}" = set; then
3140   $as_echo_n "(cached) " >&6
3141 else
3142   ac_save_c_werror_flag=$ac_c_werror_flag
3143    ac_c_werror_flag=yes
3144    ac_cv_prog_cc_g=no
3145    CFLAGS="-g"
3146    cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156
3157   ;
3158   return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3168 $as_echo "$ac_try_echo") >&5
3169   (eval "$ac_compile") 2>conftest.er1
3170   ac_status=$?
3171   grep -v '^ *+' conftest.er1 >conftest.err
3172   rm -f conftest.er1
3173   cat conftest.err >&5
3174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); } && {
3176          test -z "$ac_c_werror_flag" ||
3177          test ! -s conftest.err
3178        } && test -s conftest.$ac_objext; then
3179   ac_cv_prog_cc_g=yes
3180 else
3181   $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184         CFLAGS=""
3185       cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207 $as_echo "$ac_try_echo") >&5
3208   (eval "$ac_compile") 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } && {
3215          test -z "$ac_c_werror_flag" ||
3216          test ! -s conftest.err
3217        } && test -s conftest.$ac_objext; then
3218   :
3219 else
3220   $as_echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223         ac_c_werror_flag=$ac_save_c_werror_flag
3224          CFLAGS="-g"
3225          cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231
3232 int
3233 main ()
3234 {
3235
3236   ;
3237   return 0;
3238 }
3239 _ACEOF
3240 rm -f conftest.$ac_objext
3241 if { (ac_try="$ac_compile"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3247 $as_echo "$ac_try_echo") >&5
3248   (eval "$ac_compile") 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } && {
3255          test -z "$ac_c_werror_flag" ||
3256          test ! -s conftest.err
3257        } && test -s conftest.$ac_objext; then
3258   ac_cv_prog_cc_g=yes
3259 else
3260   $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263
3264 fi
3265
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 fi
3271
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273    ac_c_werror_flag=$ac_save_c_werror_flag
3274 fi
3275 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 $as_echo "$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278   CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280   if test "$GCC" = yes; then
3281     CFLAGS="-g -O2"
3282   else
3283     CFLAGS="-g"
3284   fi
3285 else
3286   if test "$GCC" = yes; then
3287     CFLAGS="-O2"
3288   else
3289     CFLAGS=
3290   fi
3291 fi
3292   if test "$ac_test_CFLAGS" = set; then
3293     CFLAGS="$ac_save_CFLAGS"
3294   elif test $ac_cv_prog_cc_g = yes; then
3295     CFLAGS="-g -O2"
3296   else
3297     CFLAGS="-O2"
3298   fi
3299 else
3300   GCC=
3301   test "${CFLAGS+set}" = set || CFLAGS="-g"
3302 fi
3303
3304
3305 if test -n "$ac_tool_prefix"; then
3306   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}as; ac_word=$2
3308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if test "${ac_cv_prog_AS+set}" = set; then
3311   $as_echo_n "(cached) " >&6
3312 else
3313   if test -n "$AS"; then
3314   ac_cv_prog_AS="$AS" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323     ac_cv_prog_AS="${ac_tool_prefix}as"
3324     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 AS=$ac_cv_prog_AS
3334 if test -n "$AS"; then
3335   { $as_echo "$as_me:$LINENO: result: $AS" >&5
3336 $as_echo "$AS" >&6; }
3337 else
3338   { $as_echo "$as_me:$LINENO: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343 fi
3344 if test -z "$ac_cv_prog_AS"; then
3345   ac_ct_AS=$AS
3346   # Extract the first word of "as", so it can be a program name with args.
3347 set dummy as; ac_word=$2
3348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3351   $as_echo_n "(cached) " >&6
3352 else
3353   if test -n "$ac_ct_AS"; then
3354   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361   for ac_exec_ext in '' $ac_executable_extensions; do
3362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363     ac_cv_prog_ac_ct_AS="as"
3364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3374 if test -n "$ac_ct_AS"; then
3375   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3376 $as_echo "$ac_ct_AS" >&6; }
3377 else
3378   { $as_echo "$as_me:$LINENO: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382   if test "x$ac_ct_AS" = x; then
3383     AS=""
3384   else
3385     case $cross_compiling:$ac_tool_warned in
3386 yes:)
3387 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389 ac_tool_warned=yes ;;
3390 esac
3391     AS=$ac_ct_AS
3392   fi
3393 else
3394   AS="$ac_cv_prog_AS"
3395 fi
3396
3397 if test -n "$ac_tool_prefix"; then
3398   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}ar; ac_word=$2
3400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_AR+set}" = set; then
3403   $as_echo_n "(cached) " >&6
3404 else
3405   if test -n "$AR"; then
3406   ac_cv_prog_AR="$AR" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411   IFS=$as_save_IFS
3412   test -z "$as_dir" && as_dir=.
3413   for ac_exec_ext in '' $ac_executable_extensions; do
3414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415     ac_cv_prog_AR="${ac_tool_prefix}ar"
3416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417     break 2
3418   fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 AR=$ac_cv_prog_AR
3426 if test -n "$AR"; then
3427   { $as_echo "$as_me:$LINENO: result: $AR" >&5
3428 $as_echo "$AR" >&6; }
3429 else
3430   { $as_echo "$as_me:$LINENO: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435 fi
3436 if test -z "$ac_cv_prog_AR"; then
3437   ac_ct_AR=$AR
3438   # Extract the first word of "ar", so it can be a program name with args.
3439 set dummy ar; ac_word=$2
3440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3443   $as_echo_n "(cached) " >&6
3444 else
3445   if test -n "$ac_ct_AR"; then
3446   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453   for ac_exec_ext in '' $ac_executable_extensions; do
3454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455     ac_cv_prog_ac_ct_AR="ar"
3456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3466 if test -n "$ac_ct_AR"; then
3467   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3468 $as_echo "$ac_ct_AR" >&6; }
3469 else
3470   { $as_echo "$as_me:$LINENO: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474   if test "x$ac_ct_AR" = x; then
3475     AR=""
3476   else
3477     case $cross_compiling:$ac_tool_warned in
3478 yes:)
3479 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481 ac_tool_warned=yes ;;
3482 esac
3483     AR=$ac_ct_AR
3484   fi
3485 else
3486   AR="$ac_cv_prog_AR"
3487 fi
3488
3489 if test -n "$ac_tool_prefix"; then
3490   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_RANLIB+set}" = set; then
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if test -n "$RANLIB"; then
3498   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503   IFS=$as_save_IFS
3504   test -z "$as_dir" && as_dir=.
3505   for ac_exec_ext in '' $ac_executable_extensions; do
3506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3508     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509     break 2
3510   fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 RANLIB=$ac_cv_prog_RANLIB
3518 if test -n "$RANLIB"; then
3519   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3520 $as_echo "$RANLIB" >&6; }
3521 else
3522   { $as_echo "$as_me:$LINENO: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527 fi
3528 if test -z "$ac_cv_prog_RANLIB"; then
3529   ac_ct_RANLIB=$RANLIB
3530   # Extract the first word of "ranlib", so it can be a program name with args.
3531 set dummy ranlib; ac_word=$2
3532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3535   $as_echo_n "(cached) " >&6
3536 else
3537   if test -n "$ac_ct_RANLIB"; then
3538   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545   for ac_exec_ext in '' $ac_executable_extensions; do
3546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547     ac_cv_prog_ac_ct_RANLIB="ranlib"
3548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3558 if test -n "$ac_ct_RANLIB"; then
3559   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3560 $as_echo "$ac_ct_RANLIB" >&6; }
3561 else
3562   { $as_echo "$as_me:$LINENO: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566   if test "x$ac_ct_RANLIB" = x; then
3567     RANLIB=":"
3568   else
3569     case $cross_compiling:$ac_tool_warned in
3570 yes:)
3571 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573 ac_tool_warned=yes ;;
3574 esac
3575     RANLIB=$ac_ct_RANLIB
3576   fi
3577 else
3578   RANLIB="$ac_cv_prog_RANLIB"
3579 fi
3580
3581 if test -n "$ac_tool_prefix"; then
3582   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3584 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_READELF+set}" = set; then
3587   $as_echo_n "(cached) " >&6
3588 else
3589   if test -n "$READELF"; then
3590   ac_cv_prog_READELF="$READELF" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597   for ac_exec_ext in '' $ac_executable_extensions; do
3598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3600     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604 done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 READELF=$ac_cv_prog_READELF
3610 if test -n "$READELF"; then
3611   { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3612 $as_echo "$READELF" >&6; }
3613 else
3614   { $as_echo "$as_me:$LINENO: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618
3619 fi
3620 if test -z "$ac_cv_prog_READELF"; then
3621   ac_ct_READELF=$READELF
3622   # Extract the first word of "readelf", so it can be a program name with args.
3623 set dummy readelf; ac_word=$2
3624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3627   $as_echo_n "(cached) " >&6
3628 else
3629   if test -n "$ac_ct_READELF"; then
3630   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_exec_ext in '' $ac_executable_extensions; do
3638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639     ac_cv_prog_ac_ct_READELF="readelf"
3640     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644 done
3645 IFS=$as_save_IFS
3646
3647 fi
3648 fi
3649 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3650 if test -n "$ac_ct_READELF"; then
3651   { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3652 $as_echo "$ac_ct_READELF" >&6; }
3653 else
3654   { $as_echo "$as_me:$LINENO: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658   if test "x$ac_ct_READELF" = x; then
3659     READELF=":"
3660   else
3661     case $cross_compiling:$ac_tool_warned in
3662 yes:)
3663 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3666 esac
3667     READELF=$ac_ct_READELF
3668   fi
3669 else
3670   READELF="$ac_cv_prog_READELF"
3671 fi
3672
3673
3674 # Find a good install program.  We prefer a C program (faster),
3675 # so one script is as good as another.  But avoid the broken or
3676 # incompatible versions:
3677 # SysV /etc/install, /usr/sbin/install
3678 # SunOS /usr/etc/install
3679 # IRIX /sbin/install
3680 # AIX /bin/install
3681 # AmigaOS /C/install, which installs bootblocks on floppy discs
3682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685 # OS/2's system install, which has a completely different semantic
3686 # ./install, which can be erroneously created by make from ./install.sh.
3687 # Reject install programs that cannot install multiple files.
3688 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3690 if test -z "$INSTALL"; then
3691 if test "${ac_cv_path_install+set}" = set; then
3692   $as_echo_n "(cached) " >&6
3693 else
3694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699   # Account for people who put trailing slashes in PATH elements.
3700 case $as_dir/ in
3701   ./ | .// | /cC/* | \
3702   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3704   /usr/ucb/* ) ;;
3705   *)
3706     # OSF1 and SCO ODT 3.0 have their own names for install.
3707     # Don't use installbsd from OSF since it installs stuff as root
3708     # by default.
3709     for ac_prog in ginstall scoinst install; do
3710       for ac_exec_ext in '' $ac_executable_extensions; do
3711         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712           if test $ac_prog = install &&
3713             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714             # AIX install.  It has an incompatible calling convention.
3715             :
3716           elif test $ac_prog = install &&
3717             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718             # program-specific install script used by HP pwplus--don't use.
3719             :
3720           else
3721             rm -rf conftest.one conftest.two conftest.dir
3722             echo one > conftest.one
3723             echo two > conftest.two
3724             mkdir conftest.dir
3725             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726               test -s conftest.one && test -s conftest.two &&
3727               test -s conftest.dir/conftest.one &&
3728               test -s conftest.dir/conftest.two
3729             then
3730               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731               break 3
3732             fi
3733           fi
3734         fi
3735       done
3736     done
3737     ;;
3738 esac
3739
3740 done
3741 IFS=$as_save_IFS
3742
3743 rm -rf conftest.one conftest.two conftest.dir
3744
3745 fi
3746   if test "${ac_cv_path_install+set}" = set; then
3747     INSTALL=$ac_cv_path_install
3748   else
3749     # As a last resort, use the slow shell script.  Don't cache a
3750     # value for INSTALL within a source directory, because that will
3751     # break other packages using the cache if that directory is
3752     # removed, or if the value is a relative name.
3753     INSTALL=$ac_install_sh
3754   fi
3755 fi
3756 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3757 $as_echo "$INSTALL" >&6; }
3758
3759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760 # It thinks the first close brace ends the variable substitution.
3761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
3763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
3765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
3767
3768 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3769 ac_given_INSTALL=$INSTALL
3770
3771
3772 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3773 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3774     # Check whether --enable-maintainer-mode was given.
3775 if test "${enable_maintainer_mode+set}" = set; then
3776   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3777 else
3778   USE_MAINTAINER_MODE=no
3779 fi
3780
3781   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3782 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3783    if test $USE_MAINTAINER_MODE = yes; then
3784   MAINTAINER_MODE_TRUE=
3785   MAINTAINER_MODE_FALSE='#'
3786 else
3787   MAINTAINER_MODE_TRUE='#'
3788   MAINTAINER_MODE_FALSE=
3789 fi
3790
3791   MAINT=$MAINTAINER_MODE_TRUE
3792
3793
3794 # By default we simply use the C compiler to build assembly code.
3795
3796 test "${CCAS+set}" = set || CCAS=$CC
3797 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3798
3799
3800
3801
3802 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3803 # at least currently, we never actually build a program, so we never
3804 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3805 # fails, because we are probably configuring with a cross compiler
3806 # which can't create executables.  So we include AC_EXEEXT to keep
3807 # automake happy, but we don't execute it, since we don't care about
3808 # the result.
3809 if false; then
3810
3811   dummy_var=1
3812 fi
3813
3814 . ${newlib_basedir}/configure.host
3815
3816 newlib_cflags="${newlib_cflags} -fno-builtin"
3817
3818 NEWLIB_CFLAGS=${newlib_cflags}
3819
3820
3821 LDFLAGS=${ldflags}
3822
3823
3824  if test x${newlib_elix_level} = x0; then
3825   ELIX_LEVEL_0_TRUE=
3826   ELIX_LEVEL_0_FALSE='#'
3827 else
3828   ELIX_LEVEL_0_TRUE='#'
3829   ELIX_LEVEL_0_FALSE=
3830 fi
3831
3832  if test x${newlib_elix_level} = x1; then
3833   ELIX_LEVEL_1_TRUE=
3834   ELIX_LEVEL_1_FALSE='#'
3835 else
3836   ELIX_LEVEL_1_TRUE='#'
3837   ELIX_LEVEL_1_FALSE=
3838 fi
3839
3840  if test x${newlib_elix_level} = x2; then
3841   ELIX_LEVEL_2_TRUE=
3842   ELIX_LEVEL_2_FALSE='#'
3843 else
3844   ELIX_LEVEL_2_TRUE='#'
3845   ELIX_LEVEL_2_FALSE=
3846 fi
3847
3848  if test x${newlib_elix_level} = x3; then
3849   ELIX_LEVEL_3_TRUE=
3850   ELIX_LEVEL_3_FALSE='#'
3851 else
3852   ELIX_LEVEL_3_TRUE='#'
3853   ELIX_LEVEL_3_FALSE=
3854 fi
3855
3856  if test x${newlib_elix_level} = x4; then
3857   ELIX_LEVEL_4_TRUE=
3858   ELIX_LEVEL_4_FALSE='#'
3859 else
3860   ELIX_LEVEL_4_TRUE='#'
3861   ELIX_LEVEL_4_FALSE=
3862 fi
3863
3864
3865  if test x${use_libtool} = xyes; then
3866   USE_LIBTOOL_TRUE=
3867   USE_LIBTOOL_FALSE='#'
3868 else
3869   USE_LIBTOOL_TRUE='#'
3870   USE_LIBTOOL_FALSE=
3871 fi
3872
3873
3874 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3875 # use oext, which is set in configure.host based on the target platform.
3876 OBJEXT=${oext}
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3889 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3890 if test "${ac_cv_path_SED+set}" = set; then
3891   $as_echo_n "(cached) " >&6
3892 else
3893             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3894      for ac_i in 1 2 3 4 5 6 7; do
3895        ac_script="$ac_script$as_nl$ac_script"
3896      done
3897      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3898      $as_unset ac_script || ac_script=
3899      if test -z "$SED"; then
3900   ac_path_SED_found=false
3901   # Loop through the user's path and test for each of PROGNAME-LIST
3902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907   for ac_prog in sed gsed; do
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3910       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3911 # Check for GNU ac_path_SED and select it if it is found.
3912   # Check for GNU $ac_path_SED
3913 case `"$ac_path_SED" --version 2>&1` in
3914 *GNU*)
3915   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3916 *)
3917   ac_count=0
3918   $as_echo_n 0123456789 >"conftest.in"
3919   while :
3920   do
3921     cat "conftest.in" "conftest.in" >"conftest.tmp"
3922     mv "conftest.tmp" "conftest.in"
3923     cp "conftest.in" "conftest.nl"
3924     $as_echo '' >> "conftest.nl"
3925     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927     ac_count=`expr $ac_count + 1`
3928     if test $ac_count -gt ${ac_path_SED_max-0}; then
3929       # Best one so far, save it but keep looking for a better one
3930       ac_cv_path_SED="$ac_path_SED"
3931       ac_path_SED_max=$ac_count
3932     fi
3933     # 10*(2^10) chars as input seems more than enough
3934     test $ac_count -gt 10 && break
3935   done
3936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3938
3939       $ac_path_SED_found && break 3
3940     done
3941   done
3942 done
3943 IFS=$as_save_IFS
3944   if test -z "$ac_cv_path_SED"; then
3945     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3946 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3947    { (exit 1); exit 1; }; }
3948   fi
3949 else
3950   ac_cv_path_SED=$SED
3951 fi
3952
3953 fi
3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3955 $as_echo "$ac_cv_path_SED" >&6; }
3956  SED="$ac_cv_path_SED"
3957   rm -f conftest.sed
3958
3959 test -z "$SED" && SED=sed
3960 Xsed="$SED -e 1s/^X//"
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972 for ac_prog in gawk mawk nawk awk
3973 do
3974   # Extract the first word of "$ac_prog", so it can be a program name with args.
3975 set dummy $ac_prog; ac_word=$2
3976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_AWK+set}" = set; then
3979   $as_echo_n "(cached) " >&6
3980 else
3981   if test -n "$AWK"; then
3982   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989   for ac_exec_ext in '' $ac_executable_extensions; do
3990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991     ac_cv_prog_AWK="$ac_prog"
3992     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993     break 2
3994   fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 AWK=$ac_cv_prog_AWK
4002 if test -n "$AWK"; then
4003   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4004 $as_echo "$AWK" >&6; }
4005 else
4006   { $as_echo "$as_me:$LINENO: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010
4011   test -n "$AWK" && break
4012 done
4013
4014 if test "${use_libtool}" = "yes"; then
4015 enable_win32_dll=yes
4016
4017 case $host in
4018 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4019   if test -n "$ac_tool_prefix"; then
4020   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}as; ac_word=$2
4022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if test "${ac_cv_prog_AS+set}" = set; then
4025   $as_echo_n "(cached) " >&6
4026 else
4027   if test -n "$AS"; then
4028   ac_cv_prog_AS="$AS" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035   for ac_exec_ext in '' $ac_executable_extensions; do
4036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4037     ac_cv_prog_AS="${ac_tool_prefix}as"
4038     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042 done
4043 IFS=$as_save_IFS
4044
4045 fi
4046 fi
4047 AS=$ac_cv_prog_AS
4048 if test -n "$AS"; then
4049   { $as_echo "$as_me:$LINENO: result: $AS" >&5
4050 $as_echo "$AS" >&6; }
4051 else
4052   { $as_echo "$as_me:$LINENO: result: no" >&5
4053 $as_echo "no" >&6; }
4054 fi
4055
4056
4057 fi
4058 if test -z "$ac_cv_prog_AS"; then
4059   ac_ct_AS=$AS
4060   # Extract the first word of "as", so it can be a program name with args.
4061 set dummy as; ac_word=$2
4062 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4065   $as_echo_n "(cached) " >&6
4066 else
4067   if test -n "$ac_ct_AS"; then
4068   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073   IFS=$as_save_IFS
4074   test -z "$as_dir" && as_dir=.
4075   for ac_exec_ext in '' $ac_executable_extensions; do
4076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077     ac_cv_prog_ac_ct_AS="as"
4078     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079     break 2
4080   fi
4081 done
4082 done
4083 IFS=$as_save_IFS
4084
4085 fi
4086 fi
4087 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4088 if test -n "$ac_ct_AS"; then
4089   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4090 $as_echo "$ac_ct_AS" >&6; }
4091 else
4092   { $as_echo "$as_me:$LINENO: result: no" >&5
4093 $as_echo "no" >&6; }
4094 fi
4095
4096   if test "x$ac_ct_AS" = x; then
4097     AS="false"
4098   else
4099     case $cross_compiling:$ac_tool_warned in
4100 yes:)
4101 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4103 ac_tool_warned=yes ;;
4104 esac
4105     AS=$ac_ct_AS
4106   fi
4107 else
4108   AS="$ac_cv_prog_AS"
4109 fi
4110
4111   if test -n "$ac_tool_prefix"; then
4112   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4113 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4117   $as_echo_n "(cached) " >&6
4118 else
4119   if test -n "$DLLTOOL"; then
4120   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127   for ac_exec_ext in '' $ac_executable_extensions; do
4128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134 done
4135 IFS=$as_save_IFS
4136
4137 fi
4138 fi
4139 DLLTOOL=$ac_cv_prog_DLLTOOL
4140 if test -n "$DLLTOOL"; then
4141   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4142 $as_echo "$DLLTOOL" >&6; }
4143 else
4144   { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147
4148
4149 fi
4150 if test -z "$ac_cv_prog_DLLTOOL"; then
4151   ac_ct_DLLTOOL=$DLLTOOL
4152   # Extract the first word of "dlltool", so it can be a program name with args.
4153 set dummy dlltool; ac_word=$2
4154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4157   $as_echo_n "(cached) " >&6
4158 else
4159   if test -n "$ac_ct_DLLTOOL"; then
4160   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4170     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174 done
4175 IFS=$as_save_IFS
4176
4177 fi
4178 fi
4179 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4180 if test -n "$ac_ct_DLLTOOL"; then
4181   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4182 $as_echo "$ac_ct_DLLTOOL" >&6; }
4183 else
4184   { $as_echo "$as_me:$LINENO: result: no" >&5
4185 $as_echo "no" >&6; }
4186 fi
4187
4188   if test "x$ac_ct_DLLTOOL" = x; then
4189     DLLTOOL="false"
4190   else
4191     case $cross_compiling:$ac_tool_warned in
4192 yes:)
4193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4195 ac_tool_warned=yes ;;
4196 esac
4197     DLLTOOL=$ac_ct_DLLTOOL
4198   fi
4199 else
4200   DLLTOOL="$ac_cv_prog_DLLTOOL"
4201 fi
4202
4203   if test -n "$ac_tool_prefix"; then
4204   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4209   $as_echo_n "(cached) " >&6
4210 else
4211   if test -n "$OBJDUMP"; then
4212   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4222     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223     break 2
4224   fi
4225 done
4226 done
4227 IFS=$as_save_IFS
4228
4229 fi
4230 fi
4231 OBJDUMP=$ac_cv_prog_OBJDUMP
4232 if test -n "$OBJDUMP"; then
4233   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4234 $as_echo "$OBJDUMP" >&6; }
4235 else
4236   { $as_echo "$as_me:$LINENO: result: no" >&5
4237 $as_echo "no" >&6; }
4238 fi
4239
4240
4241 fi
4242 if test -z "$ac_cv_prog_OBJDUMP"; then
4243   ac_ct_OBJDUMP=$OBJDUMP
4244   # Extract the first word of "objdump", so it can be a program name with args.
4245 set dummy objdump; ac_word=$2
4246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4249   $as_echo_n "(cached) " >&6
4250 else
4251   if test -n "$ac_ct_OBJDUMP"; then
4252   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259   for ac_exec_ext in '' $ac_executable_extensions; do
4260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4262     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4272 if test -n "$ac_ct_OBJDUMP"; then
4273   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4274 $as_echo "$ac_ct_OBJDUMP" >&6; }
4275 else
4276   { $as_echo "$as_me:$LINENO: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280   if test "x$ac_ct_OBJDUMP" = x; then
4281     OBJDUMP="false"
4282   else
4283     case $cross_compiling:$ac_tool_warned in
4284 yes:)
4285 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287 ac_tool_warned=yes ;;
4288 esac
4289     OBJDUMP=$ac_ct_OBJDUMP
4290   fi
4291 else
4292   OBJDUMP="$ac_cv_prog_OBJDUMP"
4293 fi
4294
4295   ;;
4296 esac
4297
4298 test -z "$AS" && AS=as
4299
4300
4301
4302
4303
4304 test -z "$DLLTOOL" && DLLTOOL=dlltool
4305
4306
4307
4308
4309
4310 test -z "$OBJDUMP" && OBJDUMP=objdump
4311
4312
4313
4314
4315
4316
4317
4318 case `pwd` in
4319   *\ * | *\     *)
4320     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4321 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4322 esac
4323
4324
4325
4326 macro_version='2.2.6'
4327 macro_revision='1.3012'
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341 ltmain="$ac_aux_dir/ltmain.sh"
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 if test -n "$ac_tool_prefix"; then
4349   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_CC+set}" = set; then
4354   $as_echo_n "(cached) " >&6
4355 else
4356   if test -n "$CC"; then
4357   ac_cv_prog_CC="$CC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362   IFS=$as_save_IFS
4363   test -z "$as_dir" && as_dir=.
4364   for ac_exec_ext in '' $ac_executable_extensions; do
4365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4367     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368     break 2
4369   fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374 fi
4375 fi
4376 CC=$ac_cv_prog_CC
4377 if test -n "$CC"; then
4378   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4379 $as_echo "$CC" >&6; }
4380 else
4381   { $as_echo "$as_me:$LINENO: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385
4386 fi
4387 if test -z "$ac_cv_prog_CC"; then
4388   ac_ct_CC=$CC
4389   # Extract the first word of "gcc", so it can be a program name with args.
4390 set dummy gcc; ac_word=$2
4391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4394   $as_echo_n "(cached) " >&6
4395 else
4396   if test -n "$ac_ct_CC"; then
4397   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_ac_ct_CC="gcc"
4407     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4417 if test -n "$ac_ct_CC"; then
4418   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4419 $as_echo "$ac_ct_CC" >&6; }
4420 else
4421   { $as_echo "$as_me:$LINENO: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425   if test "x$ac_ct_CC" = x; then
4426     CC=""
4427   else
4428     case $cross_compiling:$ac_tool_warned in
4429 yes:)
4430 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4433 esac
4434     CC=$ac_ct_CC
4435   fi
4436 else
4437   CC="$ac_cv_prog_CC"
4438 fi
4439
4440 if test -z "$CC"; then
4441           if test -n "$ac_tool_prefix"; then
4442     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}cc; ac_word=$2
4444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_CC+set}" = set; then
4447   $as_echo_n "(cached) " >&6
4448 else
4449   if test -n "$CC"; then
4450   ac_cv_prog_CC="$CC" # Let the user override the test.
4451 else
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     ac_cv_prog_CC="${ac_tool_prefix}cc"
4460     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 fi
4468 fi
4469 CC=$ac_cv_prog_CC
4470 if test -n "$CC"; then
4471   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4472 $as_echo "$CC" >&6; }
4473 else
4474   { $as_echo "$as_me:$LINENO: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478
4479   fi
4480 fi
4481 if test -z "$CC"; then
4482   # Extract the first word of "cc", so it can be a program name with args.
4483 set dummy cc; ac_word=$2
4484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if test "${ac_cv_prog_CC+set}" = set; then
4487   $as_echo_n "(cached) " >&6
4488 else
4489   if test -n "$CC"; then
4490   ac_cv_prog_CC="$CC" # Let the user override the test.
4491 else
4492   ac_prog_rejected=no
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498   for ac_exec_ext in '' $ac_executable_extensions; do
4499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4501        ac_prog_rejected=yes
4502        continue
4503      fi
4504     ac_cv_prog_CC="cc"
4505     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 if test $ac_prog_rejected = yes; then
4513   # We found a bogon in the path, so make sure we never use it.
4514   set dummy $ac_cv_prog_CC
4515   shift
4516   if test $# != 0; then
4517     # We chose a different compiler from the bogus one.
4518     # However, it has the same basename, so the bogon will be chosen
4519     # first if we set CC to just the basename; use the full file name.
4520     shift
4521     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4522   fi
4523 fi
4524 fi
4525 fi
4526 CC=$ac_cv_prog_CC
4527 if test -n "$CC"; then
4528   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4529 $as_echo "$CC" >&6; }
4530 else
4531   { $as_echo "$as_me:$LINENO: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535
4536 fi
4537 if test -z "$CC"; then
4538   if test -n "$ac_tool_prefix"; then
4539   for ac_prog in cl.exe
4540   do
4541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_CC+set}" = set; then
4546   $as_echo_n "(cached) " >&6
4547 else
4548   if test -n "$CC"; then
4549   ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556   for ac_exec_ext in '' $ac_executable_extensions; do
4557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4559     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563 done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4572 else
4573   { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578     test -n "$CC" && break
4579   done
4580 fi
4581 if test -z "$CC"; then
4582   ac_ct_CC=$CC
4583   for ac_prog in cl.exe
4584 do
4585   # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if test -n "$ac_ct_CC"; then
4593   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600   for ac_exec_ext in '' $ac_executable_extensions; do
4601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602     ac_cv_prog_ac_ct_CC="$ac_prog"
4603     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613 if test -n "$ac_ct_CC"; then
4614   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4615 $as_echo "$ac_ct_CC" >&6; }
4616 else
4617   { $as_echo "$as_me:$LINENO: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621
4622   test -n "$ac_ct_CC" && break
4623 done
4624
4625   if test "x$ac_ct_CC" = x; then
4626     CC=""
4627   else
4628     case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634     CC=$ac_ct_CC
4635   fi
4636 fi
4637
4638 fi
4639
4640
4641 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4643 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4644 See \`config.log' for more details." >&5
4645 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4646 See \`config.log' for more details." >&2;}
4647    { (exit 1); exit 1; }; }; }
4648
4649 # Provide some information about the compiler.
4650 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4651 set X $ac_compile
4652 ac_compiler=$2
4653 { (ac_try="$ac_compiler --version >&5"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660   (eval "$ac_compiler --version >&5") 2>&5
4661   ac_status=$?
4662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }
4664 { (ac_try="$ac_compiler -v >&5"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671   (eval "$ac_compiler -v >&5") 2>&5
4672   ac_status=$?
4673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }
4675 { (ac_try="$ac_compiler -V >&5"
4676 case "(($ac_try" in
4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678   *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681 $as_echo "$ac_try_echo") >&5
4682   (eval "$ac_compiler -V >&5") 2>&5
4683   ac_status=$?
4684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }
4686
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 ac_clean_files_save=$ac_clean_files
4703 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4704 # Try to create an executable without -o first, disregard a.out.
4705 # It will help us diagnose broken compilers, and finding out an intuition
4706 # of exeext.
4707 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4708 $as_echo_n "checking for C compiler default output file name... " >&6; }
4709 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4710
4711 # The possible output files:
4712 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4713
4714 ac_rmfiles=
4715 for ac_file in $ac_files
4716 do
4717   case $ac_file in
4718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4719     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4720   esac
4721 done
4722 rm -f $ac_rmfiles
4723
4724 if { (ac_try="$ac_link_default"
4725 case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730 $as_echo "$ac_try_echo") >&5
4731   (eval "$ac_link_default") 2>&5
4732   ac_status=$?
4733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; then
4735   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4736 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4737 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4738 # so that the user can short-circuit this test for compilers unknown to
4739 # Autoconf.
4740 for ac_file in $ac_files ''
4741 do
4742   test -f "$ac_file" || continue
4743   case $ac_file in
4744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4745         ;;
4746     [ab].out )
4747         # We found the default executable, but exeext='' is most
4748         # certainly right.
4749         break;;
4750     *.* )
4751         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4752         then :; else
4753            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4754         fi
4755         # We set ac_cv_exeext here because the later test for it is not
4756         # safe: cross compilers may not add the suffix if given an `-o'
4757         # argument, so we may need to know it at that point already.
4758         # Even if this section looks crufty: it has the advantage of
4759         # actually working.
4760         break;;
4761     * )
4762         break;;
4763   esac
4764 done
4765 test "$ac_cv_exeext" = no && ac_cv_exeext=
4766
4767 else
4768   ac_file=''
4769 fi
4770
4771 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4772 $as_echo "$ac_file" >&6; }
4773 if test -z "$ac_file"; then
4774   $as_echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4779 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4780 See \`config.log' for more details." >&5
4781 $as_echo "$as_me: error: C compiler cannot create executables
4782 See \`config.log' for more details." >&2;}
4783    { (exit 77); exit 77; }; }; }
4784 fi
4785
4786 ac_exeext=$ac_cv_exeext
4787
4788 # Check that the compiler produces executables we can run.  If not, either
4789 # the compiler is broken, or we cross compile.
4790 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4791 $as_echo_n "checking whether the C compiler works... " >&6; }
4792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4793 # If not cross compiling, check that we can run a simple program.
4794 if test "$cross_compiling" != yes; then
4795   if { ac_try='./$ac_file'
4796   { (case "(($ac_try" in
4797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798   *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4801 $as_echo "$ac_try_echo") >&5
4802   (eval "$ac_try") 2>&5
4803   ac_status=$?
4804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; }; then
4806     cross_compiling=no
4807   else
4808     if test "$cross_compiling" = maybe; then
4809         cross_compiling=yes
4810     else
4811         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4813 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4814 If you meant to cross compile, use \`--host'.
4815 See \`config.log' for more details." >&5
4816 $as_echo "$as_me: error: cannot run C compiled programs.
4817 If you meant to cross compile, use \`--host'.
4818 See \`config.log' for more details." >&2;}
4819    { (exit 1); exit 1; }; }; }
4820     fi
4821   fi
4822 fi
4823 { $as_echo "$as_me:$LINENO: result: yes" >&5
4824 $as_echo "yes" >&6; }
4825
4826 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4827 ac_clean_files=$ac_clean_files_save
4828 # Check that the compiler produces executables we can run.  If not, either
4829 # the compiler is broken, or we cross compile.
4830 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4831 $as_echo_n "checking whether we are cross compiling... " >&6; }
4832 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4833 $as_echo "$cross_compiling" >&6; }
4834
4835 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4836 $as_echo_n "checking for suffix of executables... " >&6; }
4837 if { (ac_try="$ac_link"
4838 case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4843 $as_echo "$ac_try_echo") >&5
4844   (eval "$ac_link") 2>&5
4845   ac_status=$?
4846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; then
4848   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4849 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4850 # work properly (i.e., refer to `conftest.exe'), while it won't with
4851 # `rm'.
4852 for ac_file in conftest.exe conftest conftest.*; do
4853   test -f "$ac_file" || continue
4854   case $ac_file in
4855     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4856     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4857           break;;
4858     * ) break;;
4859   esac
4860 done
4861 else
4862   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4864 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4865 See \`config.log' for more details." >&5
4866 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4867 See \`config.log' for more details." >&2;}
4868    { (exit 1); exit 1; }; }; }
4869 fi
4870
4871 rm -f conftest$ac_cv_exeext
4872 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4873 $as_echo "$ac_cv_exeext" >&6; }
4874
4875 rm -f conftest.$ac_ext
4876 EXEEXT=$ac_cv_exeext
4877 ac_exeext=$EXEEXT
4878 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4879 $as_echo_n "checking for suffix of object files... " >&6; }
4880 if test "${ac_cv_objext+set}" = set; then
4881   $as_echo_n "(cached) " >&6
4882 else
4883   cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889
4890 int
4891 main ()
4892 {
4893
4894   ;
4895   return 0;
4896 }
4897 _ACEOF
4898 rm -f conftest.o conftest.obj
4899 if { (ac_try="$ac_compile"
4900 case "(($ac_try" in
4901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902   *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4905 $as_echo "$ac_try_echo") >&5
4906   (eval "$ac_compile") 2>&5
4907   ac_status=$?
4908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; then
4910   for ac_file in conftest.o conftest.obj conftest.*; do
4911   test -f "$ac_file" || continue;
4912   case $ac_file in
4913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4914     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4915        break;;
4916   esac
4917 done
4918 else
4919   $as_echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4924 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4925 See \`config.log' for more details." >&5
4926 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4927 See \`config.log' for more details." >&2;}
4928    { (exit 1); exit 1; }; }; }
4929 fi
4930
4931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4932 fi
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4934 $as_echo "$ac_cv_objext" >&6; }
4935 OBJEXT=$ac_cv_objext
4936 ac_objext=$OBJEXT
4937 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4938 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4940   $as_echo_n "(cached) " >&6
4941 else
4942   cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948
4949 int
4950 main ()
4951 {
4952 #ifndef __GNUC__
4953        choke me
4954 #endif
4955
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4962 case "(($ac_try" in
4963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964   *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968   (eval "$ac_compile") 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } && {
4975          test -z "$ac_c_werror_flag" ||
4976          test ! -s conftest.err
4977        } && test -s conftest.$ac_objext; then
4978   ac_compiler_gnu=yes
4979 else
4980   $as_echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983         ac_compiler_gnu=no
4984 fi
4985
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4988
4989 fi
4990 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4992 if test $ac_compiler_gnu = yes; then
4993   GCC=yes
4994 else
4995   GCC=
4996 fi
4997 ac_test_CFLAGS=${CFLAGS+set}
4998 ac_save_CFLAGS=$CFLAGS
4999 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5001 if test "${ac_cv_prog_cc_g+set}" = set; then
5002   $as_echo_n "(cached) " >&6
5003 else
5004   ac_save_c_werror_flag=$ac_c_werror_flag
5005    ac_c_werror_flag=yes
5006    ac_cv_prog_cc_g=no
5007    CFLAGS="-g"
5008    cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h.  */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h.  */
5014
5015 int
5016 main ()
5017 {
5018
5019   ;
5020   return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (ac_try="$ac_compile"
5025 case "(($ac_try" in
5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027   *) ac_try_echo=$ac_try;;
5028 esac
5029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5030 $as_echo "$ac_try_echo") >&5
5031   (eval "$ac_compile") 2>conftest.er1
5032   ac_status=$?
5033   grep -v '^ *+' conftest.er1 >conftest.err
5034   rm -f conftest.er1
5035   cat conftest.err >&5
5036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037   (exit $ac_status); } && {
5038          test -z "$ac_c_werror_flag" ||
5039          test ! -s conftest.err
5040        } && test -s conftest.$ac_objext; then
5041   ac_cv_prog_cc_g=yes
5042 else
5043   $as_echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046         CFLAGS=""
5047       cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h.  */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h.  */
5053
5054 int
5055 main ()
5056 {
5057
5058   ;
5059   return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (ac_try="$ac_compile"
5064 case "(($ac_try" in
5065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066   *) ac_try_echo=$ac_try;;
5067 esac
5068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5069 $as_echo "$ac_try_echo") >&5
5070   (eval "$ac_compile") 2>conftest.er1
5071   ac_status=$?
5072   grep -v '^ *+' conftest.er1 >conftest.err
5073   rm -f conftest.er1
5074   cat conftest.err >&5
5075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); } && {
5077          test -z "$ac_c_werror_flag" ||
5078          test ! -s conftest.err
5079        } && test -s conftest.$ac_objext; then
5080   :
5081 else
5082   $as_echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085         ac_c_werror_flag=$ac_save_c_werror_flag
5086          CFLAGS="-g"
5087          cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093
5094 int
5095 main ()
5096 {
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest.$ac_objext
5103 if { (ac_try="$ac_compile"
5104 case "(($ac_try" in
5105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106   *) ac_try_echo=$ac_try;;
5107 esac
5108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5109 $as_echo "$ac_try_echo") >&5
5110   (eval "$ac_compile") 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } && {
5117          test -z "$ac_c_werror_flag" ||
5118          test ! -s conftest.err
5119        } && test -s conftest.$ac_objext; then
5120   ac_cv_prog_cc_g=yes
5121 else
5122   $as_echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125
5126 fi
5127
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 fi
5130
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 fi
5133
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135    ac_c_werror_flag=$ac_save_c_werror_flag
5136 fi
5137 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5138 $as_echo "$ac_cv_prog_cc_g" >&6; }
5139 if test "$ac_test_CFLAGS" = set; then
5140   CFLAGS=$ac_save_CFLAGS
5141 elif test $ac_cv_prog_cc_g = yes; then
5142   if test "$GCC" = yes; then
5143     CFLAGS="-g -O2"
5144   else
5145     CFLAGS="-g"
5146   fi
5147 else
5148   if test "$GCC" = yes; then
5149     CFLAGS="-O2"
5150   else
5151     CFLAGS=
5152   fi
5153 fi
5154 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5155 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5156 if test "${ac_cv_prog_cc_c89+set}" = set; then
5157   $as_echo_n "(cached) " >&6
5158 else
5159   ac_cv_prog_cc_c89=no
5160 ac_save_CC=$CC
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 #include <stdarg.h>
5168 #include <stdio.h>
5169 #include <sys/types.h>
5170 #include <sys/stat.h>
5171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5172 struct buf { int x; };
5173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5174 static char *e (p, i)
5175      char **p;
5176      int i;
5177 {
5178   return p[i];
5179 }
5180 static char *f (char * (*g) (char **, int), char **p, ...)
5181 {
5182   char *s;
5183   va_list v;
5184   va_start (v,p);
5185   s = g (p, va_arg (v,int));
5186   va_end (v);
5187   return s;
5188 }
5189
5190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5191    function prototypes and stuff, but not '\xHH' hex character constants.
5192    These don't provoke an error unfortunately, instead are silently treated
5193    as 'x'.  The following induces an error, until -std is added to get
5194    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5195    array size at least.  It's necessary to write '\x00'==0 to get something
5196    that's true only with -std.  */
5197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5198
5199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5200    inside strings and character constants.  */
5201 #define FOO(x) 'x'
5202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5203
5204 int test (int i, double x);
5205 struct s1 {int (*f) (int a);};
5206 struct s2 {int (*f) (double a);};
5207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5208 int argc;
5209 char **argv;
5210 int
5211 main ()
5212 {
5213 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5219         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5220 do
5221   CC="$ac_save_CC $ac_arg"
5222   rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5224 case "(($ac_try" in
5225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226   *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229 $as_echo "$ac_try_echo") >&5
5230   (eval "$ac_compile") 2>conftest.er1
5231   ac_status=$?
5232   grep -v '^ *+' conftest.er1 >conftest.err
5233   rm -f conftest.er1
5234   cat conftest.err >&5
5235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); } && {
5237          test -z "$ac_c_werror_flag" ||
5238          test ! -s conftest.err
5239        } && test -s conftest.$ac_objext; then
5240   ac_cv_prog_cc_c89=$ac_arg
5241 else
5242   $as_echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245
5246 fi
5247
5248 rm -f core conftest.err conftest.$ac_objext
5249   test "x$ac_cv_prog_cc_c89" != "xno" && break
5250 done
5251 rm -f conftest.$ac_ext
5252 CC=$ac_save_CC
5253
5254 fi
5255 # AC_CACHE_VAL
5256 case "x$ac_cv_prog_cc_c89" in
5257   x)
5258     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5259 $as_echo "none needed" >&6; } ;;
5260   xno)
5261     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5262 $as_echo "unsupported" >&6; } ;;
5263   *)
5264     CC="$CC $ac_cv_prog_cc_c89"
5265     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5266 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5267 esac
5268
5269
5270 ac_ext=c
5271 ac_cpp='$CPP $CPPFLAGS'
5272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275
5276 depcc="$CC"   am_compiler_list=
5277
5278 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5279 $as_echo_n "checking dependency style of $depcc... " >&6; }
5280 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5281   $as_echo_n "(cached) " >&6
5282 else
5283   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5284   # We make a subdir and do the tests there.  Otherwise we can end up
5285   # making bogus files that we don't know about and never remove.  For
5286   # instance it was reported that on HP-UX the gcc test will end up
5287   # making a dummy file named `D' -- because `-MD' means `put the output
5288   # in D'.
5289   mkdir conftest.dir
5290   # Copy depcomp to subdir because otherwise we won't find it if we're
5291   # using a relative directory.
5292   cp "$am_depcomp" conftest.dir
5293   cd conftest.dir
5294   # We will build objects and dependencies in a subdirectory because
5295   # it helps to detect inapplicable dependency modes.  For instance
5296   # both Tru64's cc and ICC support -MD to output dependencies as a
5297   # side effect of compilation, but ICC will put the dependencies in
5298   # the current directory while Tru64 will put them in the object
5299   # directory.
5300   mkdir sub
5301
5302   am_cv_CC_dependencies_compiler_type=none
5303   if test "$am_compiler_list" = ""; then
5304      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5305   fi
5306   am__universal=false
5307   case " $depcc " in #(
5308      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5309      esac
5310
5311   for depmode in $am_compiler_list; do
5312     # Setup a source with many dependencies, because some compilers
5313     # like to wrap large dependency lists on column 80 (with \), and
5314     # we should not choose a depcomp mode which is confused by this.
5315     #
5316     # We need to recreate these files for each test, as the compiler may
5317     # overwrite some of them when testing with obscure command lines.
5318     # This happens at least with the AIX C compiler.
5319     : > sub/conftest.c
5320     for i in 1 2 3 4 5 6; do
5321       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5322       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5323       # Solaris 8's {/usr,}/bin/sh.
5324       touch sub/conftst$i.h
5325     done
5326     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5327
5328     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5329     # mode.  It turns out that the SunPro C++ compiler does not properly
5330     # handle `-M -o', and we need to detect this.  Also, some Intel
5331     # versions had trouble with output in subdirs
5332     am__obj=sub/conftest.${OBJEXT-o}
5333     am__minus_obj="-o $am__obj"
5334     case $depmode in
5335     gcc)
5336       # This depmode causes a compiler race in universal mode.
5337       test "$am__universal" = false || continue
5338       ;;
5339     nosideeffect)
5340       # after this tag, mechanisms are not by side-effect, so they'll
5341       # only be used when explicitly requested
5342       if test "x$enable_dependency_tracking" = xyes; then
5343         continue
5344       else
5345         break
5346       fi
5347       ;;
5348     msvisualcpp | msvcmsys)
5349       # This compiler won't grok `-c -o', but also, the minuso test has
5350       # not run yet.  These depmodes are late enough in the game, and
5351       # so weak that their functioning should not be impacted.
5352       am__obj=conftest.${OBJEXT-o}
5353       am__minus_obj=
5354       ;;
5355     none) break ;;
5356     esac
5357     if depmode=$depmode \
5358        source=sub/conftest.c object=$am__obj \
5359        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5361          >/dev/null 2>conftest.err &&
5362        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5363        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5364        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5365        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5366       # icc doesn't choke on unknown options, it will just issue warnings
5367       # or remarks (even with -Werror).  So we grep stderr for any message
5368       # that says an option was ignored or not supported.
5369       # When given -MP, icc 7.0 and 7.1 complain thusly:
5370       #   icc: Command line warning: ignoring option '-M'; no argument required
5371       # The diagnosis changed in icc 8.0:
5372       #   icc: Command line remark: option '-MP' not supported
5373       if (grep 'ignoring option' conftest.err ||
5374           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5375         am_cv_CC_dependencies_compiler_type=$depmode
5376         break
5377       fi
5378     fi
5379   done
5380
5381   cd ..
5382   rm -rf conftest.dir
5383 else
5384   am_cv_CC_dependencies_compiler_type=none
5385 fi
5386
5387 fi
5388 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5389 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5390 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5391
5392  if
5393   test "x$enable_dependency_tracking" != xno \
5394   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5395   am__fastdepCC_TRUE=
5396   am__fastdepCC_FALSE='#'
5397 else
5398   am__fastdepCC_TRUE='#'
5399   am__fastdepCC_FALSE=
5400 fi
5401
5402
5403 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5404 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5405 if test "${ac_cv_path_GREP+set}" = set; then
5406   $as_echo_n "(cached) " >&6
5407 else
5408   if test -z "$GREP"; then
5409   ac_path_GREP_found=false
5410   # Loop through the user's path and test for each of PROGNAME-LIST
5411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_prog in grep ggrep; do
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5419       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5420 # Check for GNU ac_path_GREP and select it if it is found.
5421   # Check for GNU $ac_path_GREP
5422 case `"$ac_path_GREP" --version 2>&1` in
5423 *GNU*)
5424   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5425 *)
5426   ac_count=0
5427   $as_echo_n 0123456789 >"conftest.in"
5428   while :
5429   do
5430     cat "conftest.in" "conftest.in" >"conftest.tmp"
5431     mv "conftest.tmp" "conftest.in"
5432     cp "conftest.in" "conftest.nl"
5433     $as_echo 'GREP' >> "conftest.nl"
5434     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5436     ac_count=`expr $ac_count + 1`
5437     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5438       # Best one so far, save it but keep looking for a better one
5439       ac_cv_path_GREP="$ac_path_GREP"
5440       ac_path_GREP_max=$ac_count
5441     fi
5442     # 10*(2^10) chars as input seems more than enough
5443     test $ac_count -gt 10 && break
5444   done
5445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5446 esac
5447
5448       $ac_path_GREP_found && break 3
5449     done
5450   done
5451 done
5452 IFS=$as_save_IFS
5453   if test -z "$ac_cv_path_GREP"; then
5454     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5455 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5456    { (exit 1); exit 1; }; }
5457   fi
5458 else
5459   ac_cv_path_GREP=$GREP
5460 fi
5461
5462 fi
5463 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5464 $as_echo "$ac_cv_path_GREP" >&6; }
5465  GREP="$ac_cv_path_GREP"
5466
5467
5468 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5469 $as_echo_n "checking for egrep... " >&6; }
5470 if test "${ac_cv_path_EGREP+set}" = set; then
5471   $as_echo_n "(cached) " >&6
5472 else
5473   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5474    then ac_cv_path_EGREP="$GREP -E"
5475    else
5476      if test -z "$EGREP"; then
5477   ac_path_EGREP_found=false
5478   # Loop through the user's path and test for each of PROGNAME-LIST
5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484   for ac_prog in egrep; do
5485     for ac_exec_ext in '' $ac_executable_extensions; do
5486       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5487       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5488 # Check for GNU ac_path_EGREP and select it if it is found.
5489   # Check for GNU $ac_path_EGREP
5490 case `"$ac_path_EGREP" --version 2>&1` in
5491 *GNU*)
5492   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5493 *)
5494   ac_count=0
5495   $as_echo_n 0123456789 >"conftest.in"
5496   while :
5497   do
5498     cat "conftest.in" "conftest.in" >"conftest.tmp"
5499     mv "conftest.tmp" "conftest.in"
5500     cp "conftest.in" "conftest.nl"
5501     $as_echo 'EGREP' >> "conftest.nl"
5502     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504     ac_count=`expr $ac_count + 1`
5505     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5506       # Best one so far, save it but keep looking for a better one
5507       ac_cv_path_EGREP="$ac_path_EGREP"
5508       ac_path_EGREP_max=$ac_count
5509     fi
5510     # 10*(2^10) chars as input seems more than enough
5511     test $ac_count -gt 10 && break
5512   done
5513   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514 esac
5515
5516       $ac_path_EGREP_found && break 3
5517     done
5518   done
5519 done
5520 IFS=$as_save_IFS
5521   if test -z "$ac_cv_path_EGREP"; then
5522     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5523 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5524    { (exit 1); exit 1; }; }
5525   fi
5526 else
5527   ac_cv_path_EGREP=$EGREP
5528 fi
5529
5530    fi
5531 fi
5532 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5533 $as_echo "$ac_cv_path_EGREP" >&6; }
5534  EGREP="$ac_cv_path_EGREP"
5535
5536
5537 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5538 $as_echo_n "checking for fgrep... " >&6; }
5539 if test "${ac_cv_path_FGREP+set}" = set; then
5540   $as_echo_n "(cached) " >&6
5541 else
5542   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5543    then ac_cv_path_FGREP="$GREP -F"
5544    else
5545      if test -z "$FGREP"; then
5546   ac_path_FGREP_found=false
5547   # Loop through the user's path and test for each of PROGNAME-LIST
5548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553   for ac_prog in fgrep; do
5554     for ac_exec_ext in '' $ac_executable_extensions; do
5555       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5556       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5557 # Check for GNU ac_path_FGREP and select it if it is found.
5558   # Check for GNU $ac_path_FGREP
5559 case `"$ac_path_FGREP" --version 2>&1` in
5560 *GNU*)
5561   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5562 *)
5563   ac_count=0
5564   $as_echo_n 0123456789 >"conftest.in"
5565   while :
5566   do
5567     cat "conftest.in" "conftest.in" >"conftest.tmp"
5568     mv "conftest.tmp" "conftest.in"
5569     cp "conftest.in" "conftest.nl"
5570     $as_echo 'FGREP' >> "conftest.nl"
5571     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5573     ac_count=`expr $ac_count + 1`
5574     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5575       # Best one so far, save it but keep looking for a better one
5576       ac_cv_path_FGREP="$ac_path_FGREP"
5577       ac_path_FGREP_max=$ac_count
5578     fi
5579     # 10*(2^10) chars as input seems more than enough
5580     test $ac_count -gt 10 && break
5581   done
5582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5583 esac
5584
5585       $ac_path_FGREP_found && break 3
5586     done
5587   done
5588 done
5589 IFS=$as_save_IFS
5590   if test -z "$ac_cv_path_FGREP"; then
5591     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5592 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5593    { (exit 1); exit 1; }; }
5594   fi
5595 else
5596   ac_cv_path_FGREP=$FGREP
5597 fi
5598
5599    fi
5600 fi
5601 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5602 $as_echo "$ac_cv_path_FGREP" >&6; }
5603  FGREP="$ac_cv_path_FGREP"
5604
5605
5606 test -z "$GREP" && GREP=grep
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626 # Check whether --with-gnu-ld was given.
5627 if test "${with_gnu_ld+set}" = set; then
5628   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5629 else
5630   with_gnu_ld=no
5631 fi
5632
5633 ac_prog=ld
5634 if test "$GCC" = yes; then
5635   # Check if gcc -print-prog-name=ld gives a path.
5636   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5637 $as_echo_n "checking for ld used by $CC... " >&6; }
5638   case $host in
5639   *-*-mingw*)
5640     # gcc leaves a trailing carriage return which upsets mingw
5641     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5642   *)
5643     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5644   esac
5645   case $ac_prog in
5646     # Accept absolute paths.
5647     [\\/]* | ?:[\\/]*)
5648       re_direlt='/[^/][^/]*/\.\./'
5649       # Canonicalize the pathname of ld
5650       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5651       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5652         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5653       done
5654       test -z "$LD" && LD="$ac_prog"
5655       ;;
5656   "")
5657     # If it fails, then pretend we aren't using GCC.
5658     ac_prog=ld
5659     ;;
5660   *)
5661     # If it is relative, then search for the first ld in PATH.
5662     with_gnu_ld=unknown
5663     ;;
5664   esac
5665 elif test "$with_gnu_ld" = yes; then
5666   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5667 $as_echo_n "checking for GNU ld... " >&6; }
5668 else
5669   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5670 $as_echo_n "checking for non-GNU ld... " >&6; }
5671 fi
5672 if test "${lt_cv_path_LD+set}" = set; then
5673   $as_echo_n "(cached) " >&6
5674 else
5675   if test -z "$LD"; then
5676   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677   for ac_dir in $PATH; do
5678     IFS="$lt_save_ifs"
5679     test -z "$ac_dir" && ac_dir=.
5680     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5681       lt_cv_path_LD="$ac_dir/$ac_prog"
5682       # Check to see if the program is GNU ld.  I'd rather use --version,
5683       # but apparently some variants of GNU ld only accept -v.
5684       # Break only if it was the GNU/non-GNU ld that we prefer.
5685       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5686       *GNU* | *'with BFD'*)
5687         test "$with_gnu_ld" != no && break
5688         ;;
5689       *)
5690         test "$with_gnu_ld" != yes && break
5691         ;;
5692       esac
5693     fi
5694   done
5695   IFS="$lt_save_ifs"
5696 else
5697   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5698 fi
5699 fi
5700
5701 LD="$lt_cv_path_LD"
5702 if test -n "$LD"; then
5703   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5704 $as_echo "$LD" >&6; }
5705 else
5706   { $as_echo "$as_me:$LINENO: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5710 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5711    { (exit 1); exit 1; }; }
5712 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5713 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5714 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5715   $as_echo_n "(cached) " >&6
5716 else
5717   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5718 case `$LD -v 2>&1 </dev/null` in
5719 *GNU* | *'with BFD'*)
5720   lt_cv_prog_gnu_ld=yes
5721   ;;
5722 *)
5723   lt_cv_prog_gnu_ld=no
5724   ;;
5725 esac
5726 fi
5727 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5728 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5729 with_gnu_ld=$lt_cv_prog_gnu_ld
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5740 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5741 if test "${lt_cv_path_NM+set}" = set; then
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if test -n "$NM"; then
5745   # Let the user override the test.
5746   lt_cv_path_NM="$NM"
5747 else
5748   lt_nm_to_check="${ac_tool_prefix}nm"
5749   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5750     lt_nm_to_check="$lt_nm_to_check nm"
5751   fi
5752   for lt_tmp_nm in $lt_nm_to_check; do
5753     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5755       IFS="$lt_save_ifs"
5756       test -z "$ac_dir" && ac_dir=.
5757       tmp_nm="$ac_dir/$lt_tmp_nm"
5758       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5759         # Check to see if the nm accepts a BSD-compat flag.
5760         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5761         #   nm: unknown option "B" ignored
5762         # Tru64's nm complains that /dev/null is an invalid object file
5763         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5764         */dev/null* | *'Invalid file or object type'*)
5765           lt_cv_path_NM="$tmp_nm -B"
5766           break
5767           ;;
5768         *)
5769           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5770           */dev/null*)
5771             lt_cv_path_NM="$tmp_nm -p"
5772             break
5773             ;;
5774           *)
5775             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5776             continue # so that we can try to find one that supports BSD flags
5777             ;;
5778           esac
5779           ;;
5780         esac
5781       fi
5782     done
5783     IFS="$lt_save_ifs"
5784   done
5785   : ${lt_cv_path_NM=no}
5786 fi
5787 fi
5788 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5789 $as_echo "$lt_cv_path_NM" >&6; }
5790 if test "$lt_cv_path_NM" != "no"; then
5791   NM="$lt_cv_path_NM"
5792 else
5793   # Didn't find any BSD compatible name lister, look for dumpbin.
5794   if test -n "$ac_tool_prefix"; then
5795   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5796   do
5797     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5802   $as_echo_n "(cached) " >&6
5803 else
5804   if test -n "$DUMPBIN"; then
5805   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810   IFS=$as_save_IFS
5811   test -z "$as_dir" && as_dir=.
5812   for ac_exec_ext in '' $ac_executable_extensions; do
5813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816     break 2
5817   fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 DUMPBIN=$ac_cv_prog_DUMPBIN
5825 if test -n "$DUMPBIN"; then
5826   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5827 $as_echo "$DUMPBIN" >&6; }
5828 else
5829   { $as_echo "$as_me:$LINENO: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5832
5833
5834     test -n "$DUMPBIN" && break
5835   done
5836 fi
5837 if test -z "$DUMPBIN"; then
5838   ac_ct_DUMPBIN=$DUMPBIN
5839   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5840 do
5841   # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5846   $as_echo_n "(cached) " >&6
5847 else
5848   if test -n "$ac_ct_DUMPBIN"; then
5849   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5859     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5869 if test -n "$ac_ct_DUMPBIN"; then
5870   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5871 $as_echo "$ac_ct_DUMPBIN" >&6; }
5872 else
5873   { $as_echo "$as_me:$LINENO: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877
5878   test -n "$ac_ct_DUMPBIN" && break
5879 done
5880
5881   if test "x$ac_ct_DUMPBIN" = x; then
5882     DUMPBIN=":"
5883   else
5884     case $cross_compiling:$ac_tool_warned in
5885 yes:)
5886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5889 esac
5890     DUMPBIN=$ac_ct_DUMPBIN
5891   fi
5892 fi
5893
5894
5895   if test "$DUMPBIN" != ":"; then
5896     NM="$DUMPBIN"
5897   fi
5898 fi
5899 test -z "$NM" && NM=nm
5900
5901
5902
5903
5904
5905
5906 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5907 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5908 if test "${lt_cv_nm_interface+set}" = set; then
5909   $as_echo_n "(cached) " >&6
5910 else
5911   lt_cv_nm_interface="BSD nm"
5912   echo "int some_variable = 0;" > conftest.$ac_ext
5913   (eval echo "\"\$as_me:5913: $ac_compile\"" >&5)
5914   (eval "$ac_compile" 2>conftest.err)
5915   cat conftest.err >&5
5916   (eval echo "\"\$as_me:5916: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5917   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5918   cat conftest.err >&5
5919   (eval echo "\"\$as_me:5919: output\"" >&5)
5920   cat conftest.out >&5
5921   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5922     lt_cv_nm_interface="MS dumpbin"
5923   fi
5924   rm -f conftest*
5925 fi
5926 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5927 $as_echo "$lt_cv_nm_interface" >&6; }
5928
5929 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5930 $as_echo_n "checking whether ln -s works... " >&6; }
5931 LN_S=$as_ln_s
5932 if test "$LN_S" = "ln -s"; then
5933   { $as_echo "$as_me:$LINENO: result: yes" >&5
5934 $as_echo "yes" >&6; }
5935 else
5936   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5937 $as_echo "no, using $LN_S" >&6; }
5938 fi
5939
5940 # find the maximum length of command line arguments
5941 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5942 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5943 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5944   $as_echo_n "(cached) " >&6
5945 else
5946     i=0
5947   teststring="ABCD"
5948
5949   case $build_os in
5950   msdosdjgpp*)
5951     # On DJGPP, this test can blow up pretty badly due to problems in libc
5952     # (any single argument exceeding 2000 bytes causes a buffer overrun
5953     # during glob expansion).  Even if it were fixed, the result of this
5954     # check would be larger than it should be.
5955     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5956     ;;
5957
5958   gnu*)
5959     # Under GNU Hurd, this test is not required because there is
5960     # no limit to the length of command line arguments.
5961     # Libtool will interpret -1 as no limit whatsoever
5962     lt_cv_sys_max_cmd_len=-1;
5963     ;;
5964
5965   cygwin* | mingw* | cegcc*)
5966     # On Win9x/ME, this test blows up -- it succeeds, but takes
5967     # about 5 minutes as the teststring grows exponentially.
5968     # Worse, since 9x/ME are not pre-emptively multitasking,
5969     # you end up with a "frozen" computer, even though with patience
5970     # the test eventually succeeds (with a max line length of 256k).
5971     # Instead, let's just punt: use the minimum linelength reported by
5972     # all of the supported platforms: 8192 (on NT/2K/XP).
5973     lt_cv_sys_max_cmd_len=8192;
5974     ;;
5975
5976   amigaos*)
5977     # On AmigaOS with pdksh, this test takes hours, literally.
5978     # So we just punt and use a minimum line length of 8192.
5979     lt_cv_sys_max_cmd_len=8192;
5980     ;;
5981
5982   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5983     # This has been around since 386BSD, at least.  Likely further.
5984     if test -x /sbin/sysctl; then
5985       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5986     elif test -x /usr/sbin/sysctl; then
5987       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5988     else
5989       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5990     fi
5991     # And add a safety zone
5992     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5993     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5994     ;;
5995
5996   interix*)
5997     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5998     lt_cv_sys_max_cmd_len=196608
5999     ;;
6000
6001   osf*)
6002     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6003     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6004     # nice to cause kernel panics so lets avoid the loop below.
6005     # First set a reasonable default.
6006     lt_cv_sys_max_cmd_len=16384
6007     #
6008     if test -x /sbin/sysconfig; then
6009       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6010         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6011       esac
6012     fi
6013     ;;
6014   sco3.2v5*)
6015     lt_cv_sys_max_cmd_len=102400
6016     ;;
6017   sysv5* | sco5v6* | sysv4.2uw2*)
6018     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6019     if test -n "$kargmax"; then
6020       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6021     else
6022       lt_cv_sys_max_cmd_len=32768
6023     fi
6024     ;;
6025   *)
6026     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6027     if test -n "$lt_cv_sys_max_cmd_len"; then
6028       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6029       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6030     else
6031       # Make teststring a little bigger before we do anything with it.
6032       # a 1K string should be a reasonable start.
6033       for i in 1 2 3 4 5 6 7 8 ; do
6034         teststring=$teststring$teststring
6035       done
6036       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6037       # If test is not a shell built-in, we'll probably end up computing a
6038       # maximum length that is only half of the actual maximum length, but
6039       # we can't tell.
6040       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6041                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6042               test $i != 17 # 1/2 MB should be enough
6043       do
6044         i=`expr $i + 1`
6045         teststring=$teststring$teststring
6046       done
6047       # Only check the string length outside the loop.
6048       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6049       teststring=
6050       # Add a significant safety factor because C++ compilers can tack on
6051       # massive amounts of additional arguments before passing them to the
6052       # linker.  It appears as though 1/2 is a usable value.
6053       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6054     fi
6055     ;;
6056   esac
6057
6058 fi
6059
6060 if test -n $lt_cv_sys_max_cmd_len ; then
6061   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6062 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6063 else
6064   { $as_echo "$as_me:$LINENO: result: none" >&5
6065 $as_echo "none" >&6; }
6066 fi
6067 max_cmd_len=$lt_cv_sys_max_cmd_len
6068
6069
6070
6071
6072
6073
6074 : ${CP="cp -f"}
6075 : ${MV="mv -f"}
6076 : ${RM="rm -f"}
6077
6078 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6079 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6080 # Try some XSI features
6081 xsi_shell=no
6082 ( _lt_dummy="a/b/c"
6083   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6084       = c,a/b,, \
6085     && eval 'test $(( 1 + 1 )) -eq 2 \
6086     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6087   && xsi_shell=yes
6088 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6089 $as_echo "$xsi_shell" >&6; }
6090
6091
6092 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6093 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6094 lt_shell_append=no
6095 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6096     >/dev/null 2>&1 \
6097   && lt_shell_append=yes
6098 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6099 $as_echo "$lt_shell_append" >&6; }
6100
6101
6102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6103   lt_unset=unset
6104 else
6105   lt_unset=false
6106 fi
6107
6108
6109
6110
6111
6112 # test EBCDIC or ASCII
6113 case `echo X|tr X '\101'` in
6114  A) # ASCII based system
6115     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6116   lt_SP2NL='tr \040 \012'
6117   lt_NL2SP='tr \015\012 \040\040'
6118   ;;
6119  *) # EBCDIC based system
6120   lt_SP2NL='tr \100 \n'
6121   lt_NL2SP='tr \r\n \100\100'
6122   ;;
6123 esac
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6134 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6135 if test "${lt_cv_ld_reload_flag+set}" = set; then
6136   $as_echo_n "(cached) " >&6
6137 else
6138   lt_cv_ld_reload_flag='-r'
6139 fi
6140 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6141 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6142 reload_flag=$lt_cv_ld_reload_flag
6143 case $reload_flag in
6144 "" | " "*) ;;
6145 *) reload_flag=" $reload_flag" ;;
6146 esac
6147 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6148 case $host_os in
6149   darwin*)
6150     if test "$GCC" = yes; then
6151       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6152     else
6153       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6154     fi
6155     ;;
6156 esac
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166 if test -n "$ac_tool_prefix"; then
6167   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6172   $as_echo_n "(cached) " >&6
6173 else
6174   if test -n "$OBJDUMP"; then
6175   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182   for ac_exec_ext in '' $ac_executable_extensions; do
6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6185     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 OBJDUMP=$ac_cv_prog_OBJDUMP
6195 if test -n "$OBJDUMP"; then
6196   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6197 $as_echo "$OBJDUMP" >&6; }
6198 else
6199   { $as_echo "$as_me:$LINENO: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203
6204 fi
6205 if test -z "$ac_cv_prog_OBJDUMP"; then
6206   ac_ct_OBJDUMP=$OBJDUMP
6207   # Extract the first word of "objdump", so it can be a program name with args.
6208 set dummy objdump; ac_word=$2
6209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6212   $as_echo_n "(cached) " >&6
6213 else
6214   if test -n "$ac_ct_OBJDUMP"; then
6215   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220   IFS=$as_save_IFS
6221   test -z "$as_dir" && as_dir=.
6222   for ac_exec_ext in '' $ac_executable_extensions; do
6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226     break 2
6227   fi
6228 done
6229 done
6230 IFS=$as_save_IFS
6231
6232 fi
6233 fi
6234 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6235 if test -n "$ac_ct_OBJDUMP"; then
6236   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6237 $as_echo "$ac_ct_OBJDUMP" >&6; }
6238 else
6239   { $as_echo "$as_me:$LINENO: result: no" >&5
6240 $as_echo "no" >&6; }
6241 fi
6242
6243   if test "x$ac_ct_OBJDUMP" = x; then
6244     OBJDUMP="false"
6245   else
6246     case $cross_compiling:$ac_tool_warned in
6247 yes:)
6248 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned=yes ;;
6251 esac
6252     OBJDUMP=$ac_ct_OBJDUMP
6253   fi
6254 else
6255   OBJDUMP="$ac_cv_prog_OBJDUMP"
6256 fi
6257
6258 test -z "$OBJDUMP" && OBJDUMP=objdump
6259
6260
6261
6262
6263
6264
6265 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6266 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6267 if test "${lt_cv_deplibs_check_method+set}" = set; then
6268   $as_echo_n "(cached) " >&6
6269 else
6270   lt_cv_file_magic_cmd='$MAGIC_CMD'
6271 lt_cv_file_magic_test_file=
6272 lt_cv_deplibs_check_method='unknown'
6273 # Need to set the preceding variable on all platforms that support
6274 # interlibrary dependencies.
6275 # 'none' -- dependencies not supported.
6276 # `unknown' -- same as none, but documents that we really don't know.
6277 # 'pass_all' -- all dependencies passed with no checks.
6278 # 'test_compile' -- check by making test program.
6279 # 'file_magic [[regex]]' -- check by looking for files in library path
6280 # which responds to the $file_magic_cmd with a given extended regex.
6281 # If you have `file' or equivalent on your system and you're not sure
6282 # whether `pass_all' will *always* work, you probably want this one.
6283
6284 case $host_os in
6285 aix[4-9]*)
6286   lt_cv_deplibs_check_method=pass_all
6287   ;;
6288
6289 beos*)
6290   lt_cv_deplibs_check_method=pass_all
6291   ;;
6292
6293 bsdi[45]*)
6294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6295   lt_cv_file_magic_cmd='/usr/bin/file -L'
6296   lt_cv_file_magic_test_file=/shlib/libc.so
6297   ;;
6298
6299 cygwin*)
6300   # func_win32_libid is a shell function defined in ltmain.sh
6301   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6302   lt_cv_file_magic_cmd='func_win32_libid'
6303   ;;
6304
6305 mingw* | pw32*)
6306   # Base MSYS/MinGW do not provide the 'file' command needed by
6307   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6308   # unless we find 'file', for example because we are cross-compiling.
6309   if ( file / ) >/dev/null 2>&1; then
6310     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311     lt_cv_file_magic_cmd='func_win32_libid'
6312   else
6313     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6314     lt_cv_file_magic_cmd='$OBJDUMP -f'
6315   fi
6316   ;;
6317
6318 cegcc)
6319   # use the weaker test based on 'objdump'. See mingw*.
6320   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6321   lt_cv_file_magic_cmd='$OBJDUMP -f'
6322   ;;
6323
6324 darwin* | rhapsody*)
6325   lt_cv_deplibs_check_method=pass_all
6326   ;;
6327
6328 freebsd* | dragonfly*)
6329   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6330     case $host_cpu in
6331     i*86 )
6332       # Not sure whether the presence of OpenBSD here was a mistake.
6333       # Let's accept both of them until this is cleared up.
6334       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6335       lt_cv_file_magic_cmd=/usr/bin/file
6336       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6337       ;;
6338     esac
6339   else
6340     lt_cv_deplibs_check_method=pass_all
6341   fi
6342   ;;
6343
6344 gnu*)
6345   lt_cv_deplibs_check_method=pass_all
6346   ;;
6347
6348 hpux10.20* | hpux11*)
6349   lt_cv_file_magic_cmd=/usr/bin/file
6350   case $host_cpu in
6351   ia64*)
6352     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6353     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6354     ;;
6355   hppa*64*)
6356     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]'
6357     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6358     ;;
6359   *)
6360     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6361     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6362     ;;
6363   esac
6364   ;;
6365
6366 interix[3-9]*)
6367   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6368   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6369   ;;
6370
6371 irix5* | irix6* | nonstopux*)
6372   case $LD in
6373   *-32|*"-32 ") libmagic=32-bit;;
6374   *-n32|*"-n32 ") libmagic=N32;;
6375   *-64|*"-64 ") libmagic=64-bit;;
6376   *) libmagic=never-match;;
6377   esac
6378   lt_cv_deplibs_check_method=pass_all
6379   ;;
6380
6381 # This must be Linux ELF.
6382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6383   lt_cv_deplibs_check_method=pass_all
6384   ;;
6385
6386 netbsd*)
6387   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6388     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6389   else
6390     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6391   fi
6392   ;;
6393
6394 newos6*)
6395   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6396   lt_cv_file_magic_cmd=/usr/bin/file
6397   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6398   ;;
6399
6400 *nto* | *qnx*)
6401   lt_cv_deplibs_check_method=pass_all
6402   ;;
6403
6404 openbsd*)
6405   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6406     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6407   else
6408     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409   fi
6410   ;;
6411
6412 osf3* | osf4* | osf5*)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415
6416 rdos*)
6417   lt_cv_deplibs_check_method=pass_all
6418   ;;
6419
6420 solaris*)
6421   lt_cv_deplibs_check_method=pass_all
6422   ;;
6423
6424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6425   lt_cv_deplibs_check_method=pass_all
6426   ;;
6427
6428 sysv4 | sysv4.3*)
6429   case $host_vendor in
6430   motorola)
6431     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]'
6432     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6433     ;;
6434   ncr)
6435     lt_cv_deplibs_check_method=pass_all
6436     ;;
6437   sequent)
6438     lt_cv_file_magic_cmd='/bin/file'
6439     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6440     ;;
6441   sni)
6442     lt_cv_file_magic_cmd='/bin/file'
6443     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6444     lt_cv_file_magic_test_file=/lib/libc.so
6445     ;;
6446   siemens)
6447     lt_cv_deplibs_check_method=pass_all
6448     ;;
6449   pc)
6450     lt_cv_deplibs_check_method=pass_all
6451     ;;
6452   esac
6453   ;;
6454
6455 tpf*)
6456   lt_cv_deplibs_check_method=pass_all
6457   ;;
6458 esac
6459
6460 fi
6461 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6462 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6463 file_magic_cmd=$lt_cv_file_magic_cmd
6464 deplibs_check_method=$lt_cv_deplibs_check_method
6465 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478 if test -n "$ac_tool_prefix"; then
6479   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}ar; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_AR+set}" = set; then
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$AR"; then
6487   ac_cv_prog_AR="$AR" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_prog_AR="${ac_tool_prefix}ar"
6497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 AR=$ac_cv_prog_AR
6507 if test -n "$AR"; then
6508   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6509 $as_echo "$AR" >&6; }
6510 else
6511   { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516 fi
6517 if test -z "$ac_cv_prog_AR"; then
6518   ac_ct_AR=$AR
6519   # Extract the first word of "ar", so it can be a program name with args.
6520 set dummy ar; ac_word=$2
6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6524   $as_echo_n "(cached) " >&6
6525 else
6526   if test -n "$ac_ct_AR"; then
6527   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_prog_ac_ct_AR="ar"
6537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi
6545 fi
6546 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6547 if test -n "$ac_ct_AR"; then
6548   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6549 $as_echo "$ac_ct_AR" >&6; }
6550 else
6551   { $as_echo "$as_me:$LINENO: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554
6555   if test "x$ac_ct_AR" = x; then
6556     AR="false"
6557   else
6558     case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564     AR=$ac_ct_AR
6565   fi
6566 else
6567   AR="$ac_cv_prog_AR"
6568 fi
6569
6570 test -z "$AR" && AR=ar
6571 test -z "$AR_FLAGS" && AR_FLAGS=cru
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583 if test -n "$ac_tool_prefix"; then
6584   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}strip; ac_word=$2
6586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_STRIP+set}" = set; then
6589   $as_echo_n "(cached) " >&6
6590 else
6591   if test -n "$STRIP"; then
6592   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599   for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6602     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 STRIP=$ac_cv_prog_STRIP
6612 if test -n "$STRIP"; then
6613   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6614 $as_echo "$STRIP" >&6; }
6615 else
6616   { $as_echo "$as_me:$LINENO: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620
6621 fi
6622 if test -z "$ac_cv_prog_STRIP"; then
6623   ac_ct_STRIP=$STRIP
6624   # Extract the first word of "strip", so it can be a program name with args.
6625 set dummy strip; ac_word=$2
6626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$ac_ct_STRIP"; then
6632   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639   for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_ac_ct_STRIP="strip"
6642     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646 done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6652 if test -n "$ac_ct_STRIP"; then
6653   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6654 $as_echo "$ac_ct_STRIP" >&6; }
6655 else
6656   { $as_echo "$as_me:$LINENO: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660   if test "x$ac_ct_STRIP" = x; then
6661     STRIP=":"
6662   else
6663     case $cross_compiling:$ac_tool_warned in
6664 yes:)
6665 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6668 esac
6669     STRIP=$ac_ct_STRIP
6670   fi
6671 else
6672   STRIP="$ac_cv_prog_STRIP"
6673 fi
6674
6675 test -z "$STRIP" && STRIP=:
6676
6677
6678
6679
6680
6681
6682 if test -n "$ac_tool_prefix"; then
6683   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_RANLIB+set}" = set; then
6688   $as_echo_n "(cached) " >&6
6689 else
6690   if test -n "$RANLIB"; then
6691   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6701     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 RANLIB=$ac_cv_prog_RANLIB
6711 if test -n "$RANLIB"; then
6712   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6713 $as_echo "$RANLIB" >&6; }
6714 else
6715   { $as_echo "$as_me:$LINENO: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719
6720 fi
6721 if test -z "$ac_cv_prog_RANLIB"; then
6722   ac_ct_RANLIB=$RANLIB
6723   # Extract the first word of "ranlib", so it can be a program name with args.
6724 set dummy ranlib; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6728   $as_echo_n "(cached) " >&6
6729 else
6730   if test -n "$ac_ct_RANLIB"; then
6731   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_ac_ct_RANLIB="ranlib"
6741     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6751 if test -n "$ac_ct_RANLIB"; then
6752   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6753 $as_echo "$ac_ct_RANLIB" >&6; }
6754 else
6755   { $as_echo "$as_me:$LINENO: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759   if test "x$ac_ct_RANLIB" = x; then
6760     RANLIB=":"
6761   else
6762     case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768     RANLIB=$ac_ct_RANLIB
6769   fi
6770 else
6771   RANLIB="$ac_cv_prog_RANLIB"
6772 fi
6773
6774 test -z "$RANLIB" && RANLIB=:
6775
6776
6777
6778
6779
6780
6781 # Determine commands to create old-style static archives.
6782 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6783 old_postinstall_cmds='chmod 644 $oldlib'
6784 old_postuninstall_cmds=
6785
6786 if test -n "$RANLIB"; then
6787   case $host_os in
6788   openbsd*)
6789     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6790     ;;
6791   *)
6792     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6793     ;;
6794   esac
6795   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6796 fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 # If no C compiler was specified, use CC.
6832 LTCC=${LTCC-"$CC"}
6833
6834 # If no C compiler flags were specified, use CFLAGS.
6835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6836
6837 # Allow CC to be a program name with arguments.
6838 compiler=$CC
6839
6840
6841 # Check for command to grab the raw symbol name followed by C symbol from nm.
6842 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6843 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6844 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6845   $as_echo_n "(cached) " >&6
6846 else
6847
6848 # These are sane defaults that work on at least a few old systems.
6849 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6850
6851 # Character class describing NM global symbol codes.
6852 symcode='[BCDEGRST]'
6853
6854 # Regexp to match symbols that can be accessed directly from C.
6855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6856
6857 # Define system-specific variables.
6858 case $host_os in
6859 aix*)
6860   symcode='[BCDT]'
6861   ;;
6862 cygwin* | mingw* | pw32* | cegcc*)
6863   symcode='[ABCDGISTW]'
6864   ;;
6865 hpux*)
6866   if test "$host_cpu" = ia64; then
6867     symcode='[ABCDEGRST]'
6868   fi
6869   ;;
6870 irix* | nonstopux*)
6871   symcode='[BCDEGRST]'
6872   ;;
6873 osf*)
6874   symcode='[BCDEGQRST]'
6875   ;;
6876 solaris*)
6877   symcode='[BDRT]'
6878   ;;
6879 sco3.2v5*)
6880   symcode='[DT]'
6881   ;;
6882 sysv4.2uw2*)
6883   symcode='[DT]'
6884   ;;
6885 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6886   symcode='[ABDT]'
6887   ;;
6888 sysv4)
6889   symcode='[DFNSTU]'
6890   ;;
6891 esac
6892
6893 # If we're using GNU nm, then use its standard symbol codes.
6894 case `$NM -V 2>&1` in
6895 *GNU* | *'with BFD'*)
6896   symcode='[ABCDGIRSTW]' ;;
6897 esac
6898
6899 # Transform an extracted symbol line into a proper C declaration.
6900 # Some systems (esp. on ia64) link data and code symbols differently,
6901 # so use this general approach.
6902 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6903
6904 # Transform an extracted symbol line into symbol name and symbol address
6905 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6906 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'"
6907
6908 # Handle CRLF in mingw tool chain
6909 opt_cr=
6910 case $build_os in
6911 mingw*)
6912   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6913   ;;
6914 esac
6915
6916 # Try without a prefix underscore, then with it.
6917 for ac_symprfx in "" "_"; do
6918
6919   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6920   symxfrm="\\1 $ac_symprfx\\2 \\2"
6921
6922   # Write the raw and C identifiers.
6923   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6924     # Fake it for dumpbin and say T for any non-static function
6925     # and D for any global variable.
6926     # Also find C++ and __fastcall symbols from MSVC++,
6927     # which start with @ or ?.
6928     lt_cv_sys_global_symbol_pipe="$AWK '"\
6929 "     {last_section=section; section=\$ 3};"\
6930 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6931 "     \$ 0!~/External *\|/{next};"\
6932 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6933 "     {if(hide[section]) next};"\
6934 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6935 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6936 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6937 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6938 "     ' prfx=^$ac_symprfx"
6939   else
6940     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6941   fi
6942
6943   # Check to see that the pipe works correctly.
6944   pipe_works=no
6945
6946   rm -f conftest*
6947   cat > conftest.$ac_ext <<_LT_EOF
6948 #ifdef __cplusplus
6949 extern "C" {
6950 #endif
6951 char nm_test_var;
6952 void nm_test_func(void);
6953 void nm_test_func(void){}
6954 #ifdef __cplusplus
6955 }
6956 #endif
6957 int main(){nm_test_var='a';nm_test_func();return(0);}
6958 _LT_EOF
6959
6960   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961   (eval $ac_compile) 2>&5
6962   ac_status=$?
6963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); }; then
6965     # Now try to grab the symbols.
6966     nlist=conftest.nm
6967     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6968   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6969   ac_status=$?
6970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } && test -s "$nlist"; then
6972       # Try sorting and uniquifying the output.
6973       if sort "$nlist" | uniq > "$nlist"T; then
6974         mv -f "$nlist"T "$nlist"
6975       else
6976         rm -f "$nlist"T
6977       fi
6978
6979       # Make sure that we snagged all the symbols we need.
6980       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6981         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6982           cat <<_LT_EOF > conftest.$ac_ext
6983 #ifdef __cplusplus
6984 extern "C" {
6985 #endif
6986
6987 _LT_EOF
6988           # Now generate the symbol file.
6989           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6990
6991           cat <<_LT_EOF >> conftest.$ac_ext
6992
6993 /* The mapping between symbol names and symbols.  */
6994 const struct {
6995   const char *name;
6996   void       *address;
6997 }
6998 lt__PROGRAM__LTX_preloaded_symbols[] =
6999 {
7000   { "@PROGRAM@", (void *) 0 },
7001 _LT_EOF
7002           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7003           cat <<\_LT_EOF >> conftest.$ac_ext
7004   {0, (void *) 0}
7005 };
7006
7007 /* This works around a problem in FreeBSD linker */
7008 #ifdef FREEBSD_WORKAROUND
7009 static const void *lt_preloaded_setup() {
7010   return lt__PROGRAM__LTX_preloaded_symbols;
7011 }
7012 #endif
7013
7014 #ifdef __cplusplus
7015 }
7016 #endif
7017 _LT_EOF
7018           # Now try linking the two files.
7019           mv conftest.$ac_objext conftstm.$ac_objext
7020           lt_save_LIBS="$LIBS"
7021           lt_save_CFLAGS="$CFLAGS"
7022           LIBS="conftstm.$ac_objext"
7023           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025   (eval $ac_link) 2>&5
7026   ac_status=$?
7027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7029             pipe_works=yes
7030           fi
7031           LIBS="$lt_save_LIBS"
7032           CFLAGS="$lt_save_CFLAGS"
7033         else
7034           echo "cannot find nm_test_func in $nlist" >&5
7035         fi
7036       else
7037         echo "cannot find nm_test_var in $nlist" >&5
7038       fi
7039     else
7040       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7041     fi
7042   else
7043     echo "$progname: failed program was:" >&5
7044     cat conftest.$ac_ext >&5
7045   fi
7046   rm -rf conftest* conftst*
7047
7048   # Do not use the global_symbol_pipe unless it works.
7049   if test "$pipe_works" = yes; then
7050     break
7051   else
7052     lt_cv_sys_global_symbol_pipe=
7053   fi
7054 done
7055
7056 fi
7057
7058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059   lt_cv_sys_global_symbol_to_cdecl=
7060 fi
7061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062   { $as_echo "$as_me:$LINENO: result: failed" >&5
7063 $as_echo "failed" >&6; }
7064 else
7065   { $as_echo "$as_me:$LINENO: result: ok" >&5
7066 $as_echo "ok" >&6; }
7067 fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091 # Check whether --enable-libtool-lock was given.
7092 if test "${enable_libtool_lock+set}" = set; then
7093   enableval=$enable_libtool_lock;
7094 fi
7095
7096 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7097
7098 # Some flags need to be propagated to the compiler or linker for good
7099 # libtool support.
7100 case $host in
7101 ia64-*-hpux*)
7102   # Find out which ABI we are using.
7103   echo 'int i;' > conftest.$ac_ext
7104   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105   (eval $ac_compile) 2>&5
7106   ac_status=$?
7107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); }; then
7109     case `/usr/bin/file conftest.$ac_objext` in
7110       *ELF-32*)
7111         HPUX_IA64_MODE="32"
7112         ;;
7113       *ELF-64*)
7114         HPUX_IA64_MODE="64"
7115         ;;
7116     esac
7117   fi
7118   rm -rf conftest*
7119   ;;
7120 *-*-irix6*)
7121   # Find out which ABI we are using.
7122   echo '#line 7122 "configure"' > conftest.$ac_ext
7123   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124   (eval $ac_compile) 2>&5
7125   ac_status=$?
7126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; then
7128     if test "$lt_cv_prog_gnu_ld" = yes; then
7129       case `/usr/bin/file conftest.$ac_objext` in
7130         *32-bit*)
7131           LD="${LD-ld} -melf32bsmip"
7132           ;;
7133         *N32*)
7134           LD="${LD-ld} -melf32bmipn32"
7135           ;;
7136         *64-bit*)
7137           LD="${LD-ld} -melf64bmip"
7138         ;;
7139       esac
7140     else
7141       case `/usr/bin/file conftest.$ac_objext` in
7142         *32-bit*)
7143           LD="${LD-ld} -32"
7144           ;;
7145         *N32*)
7146           LD="${LD-ld} -n32"
7147           ;;
7148         *64-bit*)
7149           LD="${LD-ld} -64"
7150           ;;
7151       esac
7152     fi
7153   fi
7154   rm -rf conftest*
7155   ;;
7156
7157 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7158 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7159   # Find out which ABI we are using.
7160   echo 'int i;' > conftest.$ac_ext
7161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162   (eval $ac_compile) 2>&5
7163   ac_status=$?
7164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); }; then
7166     case `/usr/bin/file conftest.o` in
7167       *32-bit*)
7168         case $host in
7169           x86_64-*kfreebsd*-gnu)
7170             LD="${LD-ld} -m elf_i386_fbsd"
7171             ;;
7172           x86_64-*linux*)
7173             LD="${LD-ld} -m elf_i386"
7174             ;;
7175           ppc64-*linux*|powerpc64-*linux*)
7176             LD="${LD-ld} -m elf32ppclinux"
7177             ;;
7178           s390x-*linux*)
7179             LD="${LD-ld} -m elf_s390"
7180             ;;
7181           sparc64-*linux*)
7182             LD="${LD-ld} -m elf32_sparc"
7183             ;;
7184         esac
7185         ;;
7186       *64-bit*)
7187         case $host in
7188           x86_64-*kfreebsd*-gnu)
7189             LD="${LD-ld} -m elf_x86_64_fbsd"
7190             ;;
7191           x86_64-*linux*)
7192             LD="${LD-ld} -m elf_x86_64"
7193             ;;
7194           ppc*-*linux*|powerpc*-*linux*)
7195             LD="${LD-ld} -m elf64ppc"
7196             ;;
7197           s390*-*linux*|s390*-*tpf*)
7198             LD="${LD-ld} -m elf64_s390"
7199             ;;
7200           sparc*-*linux*)
7201             LD="${LD-ld} -m elf64_sparc"
7202             ;;
7203         esac
7204         ;;
7205     esac
7206   fi
7207   rm -rf conftest*
7208   ;;
7209
7210 *-*-sco3.2v5*)
7211   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7212   SAVE_CFLAGS="$CFLAGS"
7213   CFLAGS="$CFLAGS -belf"
7214   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7215 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7216 if test "${lt_cv_cc_needs_belf+set}" = set; then
7217   $as_echo_n "(cached) " >&6
7218 else
7219   ac_ext=c
7220 ac_cpp='$CPP $CPPFLAGS'
7221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7224
7225      cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h.  */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h.  */
7231
7232 int
7233 main ()
7234 {
7235
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (ac_try="$ac_link"
7242 case "(($ac_try" in
7243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244   *) ac_try_echo=$ac_try;;
7245 esac
7246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247 $as_echo "$ac_try_echo") >&5
7248   (eval "$ac_link") 2>conftest.er1
7249   ac_status=$?
7250   grep -v '^ *+' conftest.er1 >conftest.err
7251   rm -f conftest.er1
7252   cat conftest.err >&5
7253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } && {
7255          test -z "$ac_c_werror_flag" ||
7256          test ! -s conftest.err
7257        } && test -s conftest$ac_exeext && {
7258          test "$cross_compiling" = yes ||
7259          $as_test_x conftest$ac_exeext
7260        }; then
7261   lt_cv_cc_needs_belf=yes
7262 else
7263   $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266         lt_cv_cc_needs_belf=no
7267 fi
7268
7269 rm -rf conftest.dSYM
7270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7271       conftest$ac_exeext conftest.$ac_ext
7272      ac_ext=c
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278 fi
7279 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7280 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7281   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7282     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7283     CFLAGS="$SAVE_CFLAGS"
7284   fi
7285   ;;
7286 sparc*-*solaris*)
7287   # Find out which ABI we are using.
7288   echo 'int i;' > conftest.$ac_ext
7289   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290   (eval $ac_compile) 2>&5
7291   ac_status=$?
7292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; then
7294     case `/usr/bin/file conftest.o` in
7295     *64-bit*)
7296       case $lt_cv_prog_gnu_ld in
7297       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7298       *)
7299         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7300           LD="${LD-ld} -64"
7301         fi
7302         ;;
7303       esac
7304       ;;
7305     esac
7306   fi
7307   rm -rf conftest*
7308   ;;
7309 esac
7310
7311 need_locks="$enable_libtool_lock"
7312
7313
7314   case $host_os in
7315     rhapsody* | darwin*)
7316     if test -n "$ac_tool_prefix"; then
7317   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7318 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7322   $as_echo_n "(cached) " >&6
7323 else
7324   if test -n "$DSYMUTIL"; then
7325   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332   for ac_exec_ext in '' $ac_executable_extensions; do
7333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7335     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339 done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7345 if test -n "$DSYMUTIL"; then
7346   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7347 $as_echo "$DSYMUTIL" >&6; }
7348 else
7349   { $as_echo "$as_me:$LINENO: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353
7354 fi
7355 if test -z "$ac_cv_prog_DSYMUTIL"; then
7356   ac_ct_DSYMUTIL=$DSYMUTIL
7357   # Extract the first word of "dsymutil", so it can be a program name with args.
7358 set dummy dsymutil; ac_word=$2
7359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7362   $as_echo_n "(cached) " >&6
7363 else
7364   if test -n "$ac_ct_DSYMUTIL"; then
7365   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370   IFS=$as_save_IFS
7371   test -z "$as_dir" && as_dir=.
7372   for ac_exec_ext in '' $ac_executable_extensions; do
7373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376     break 2
7377   fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7385 if test -n "$ac_ct_DSYMUTIL"; then
7386   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7387 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7388 else
7389   { $as_echo "$as_me:$LINENO: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393   if test "x$ac_ct_DSYMUTIL" = x; then
7394     DSYMUTIL=":"
7395   else
7396     case $cross_compiling:$ac_tool_warned in
7397 yes:)
7398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400 ac_tool_warned=yes ;;
7401 esac
7402     DSYMUTIL=$ac_ct_DSYMUTIL
7403   fi
7404 else
7405   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7406 fi
7407
7408     if test -n "$ac_tool_prefix"; then
7409   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7414   $as_echo_n "(cached) " >&6
7415 else
7416   if test -n "$NMEDIT"; then
7417   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424   for ac_exec_ext in '' $ac_executable_extensions; do
7425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7427     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 NMEDIT=$ac_cv_prog_NMEDIT
7437 if test -n "$NMEDIT"; then
7438   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7439 $as_echo "$NMEDIT" >&6; }
7440 else
7441   { $as_echo "$as_me:$LINENO: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445
7446 fi
7447 if test -z "$ac_cv_prog_NMEDIT"; then
7448   ac_ct_NMEDIT=$NMEDIT
7449   # Extract the first word of "nmedit", so it can be a program name with args.
7450 set dummy nmedit; ac_word=$2
7451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7454   $as_echo_n "(cached) " >&6
7455 else
7456   if test -n "$ac_ct_NMEDIT"; then
7457   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7467     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7477 if test -n "$ac_ct_NMEDIT"; then
7478   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7479 $as_echo "$ac_ct_NMEDIT" >&6; }
7480 else
7481   { $as_echo "$as_me:$LINENO: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485   if test "x$ac_ct_NMEDIT" = x; then
7486     NMEDIT=":"
7487   else
7488     case $cross_compiling:$ac_tool_warned in
7489 yes:)
7490 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492 ac_tool_warned=yes ;;
7493 esac
7494     NMEDIT=$ac_ct_NMEDIT
7495   fi
7496 else
7497   NMEDIT="$ac_cv_prog_NMEDIT"
7498 fi
7499
7500     if test -n "$ac_tool_prefix"; then
7501   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7502 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if test "${ac_cv_prog_LIPO+set}" = set; then
7506   $as_echo_n "(cached) " >&6
7507 else
7508   if test -n "$LIPO"; then
7509   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7519     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526 fi
7527 fi
7528 LIPO=$ac_cv_prog_LIPO
7529 if test -n "$LIPO"; then
7530   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7531 $as_echo "$LIPO" >&6; }
7532 else
7533   { $as_echo "$as_me:$LINENO: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537
7538 fi
7539 if test -z "$ac_cv_prog_LIPO"; then
7540   ac_ct_LIPO=$LIPO
7541   # Extract the first word of "lipo", so it can be a program name with args.
7542 set dummy lipo; ac_word=$2
7543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7546   $as_echo_n "(cached) " >&6
7547 else
7548   if test -n "$ac_ct_LIPO"; then
7549   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558     ac_cv_prog_ac_ct_LIPO="lipo"
7559     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7569 if test -n "$ac_ct_LIPO"; then
7570   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7571 $as_echo "$ac_ct_LIPO" >&6; }
7572 else
7573   { $as_echo "$as_me:$LINENO: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577   if test "x$ac_ct_LIPO" = x; then
7578     LIPO=":"
7579   else
7580     case $cross_compiling:$ac_tool_warned in
7581 yes:)
7582 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586     LIPO=$ac_ct_LIPO
7587   fi
7588 else
7589   LIPO="$ac_cv_prog_LIPO"
7590 fi
7591
7592     if test -n "$ac_tool_prefix"; then
7593   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}otool; ac_word=$2
7595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_OTOOL+set}" = set; then
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$OTOOL"; then
7601   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608   for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7611     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 OTOOL=$ac_cv_prog_OTOOL
7621 if test -n "$OTOOL"; then
7622   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7623 $as_echo "$OTOOL" >&6; }
7624 else
7625   { $as_echo "$as_me:$LINENO: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630 fi
7631 if test -z "$ac_cv_prog_OTOOL"; then
7632   ac_ct_OTOOL=$OTOOL
7633   # Extract the first word of "otool", so it can be a program name with args.
7634 set dummy otool; ac_word=$2
7635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7638   $as_echo_n "(cached) " >&6
7639 else
7640   if test -n "$ac_ct_OTOOL"; then
7641   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648   for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_ac_ct_OTOOL="otool"
7651     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7661 if test -n "$ac_ct_OTOOL"; then
7662   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7663 $as_echo "$ac_ct_OTOOL" >&6; }
7664 else
7665   { $as_echo "$as_me:$LINENO: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669   if test "x$ac_ct_OTOOL" = x; then
7670     OTOOL=":"
7671   else
7672     case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7677 esac
7678     OTOOL=$ac_ct_OTOOL
7679   fi
7680 else
7681   OTOOL="$ac_cv_prog_OTOOL"
7682 fi
7683
7684     if test -n "$ac_tool_prefix"; then
7685   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7686 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7690   $as_echo_n "(cached) " >&6
7691 else
7692   if test -n "$OTOOL64"; then
7693   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700   for ac_exec_ext in '' $ac_executable_extensions; do
7701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7703     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 OTOOL64=$ac_cv_prog_OTOOL64
7713 if test -n "$OTOOL64"; then
7714   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7715 $as_echo "$OTOOL64" >&6; }
7716 else
7717   { $as_echo "$as_me:$LINENO: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721
7722 fi
7723 if test -z "$ac_cv_prog_OTOOL64"; then
7724   ac_ct_OTOOL64=$OTOOL64
7725   # Extract the first word of "otool64", so it can be a program name with args.
7726 set dummy otool64; ac_word=$2
7727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7730   $as_echo_n "(cached) " >&6
7731 else
7732   if test -n "$ac_ct_OTOOL64"; then
7733   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740   for ac_exec_ext in '' $ac_executable_extensions; do
7741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742     ac_cv_prog_ac_ct_OTOOL64="otool64"
7743     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7753 if test -n "$ac_ct_OTOOL64"; then
7754   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7755 $as_echo "$ac_ct_OTOOL64" >&6; }
7756 else
7757   { $as_echo "$as_me:$LINENO: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761   if test "x$ac_ct_OTOOL64" = x; then
7762     OTOOL64=":"
7763   else
7764     case $cross_compiling:$ac_tool_warned in
7765 yes:)
7766 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768 ac_tool_warned=yes ;;
7769 esac
7770     OTOOL64=$ac_ct_OTOOL64
7771   fi
7772 else
7773   OTOOL64="$ac_cv_prog_OTOOL64"
7774 fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7803 $as_echo_n "checking for -single_module linker flag... " >&6; }
7804 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7805   $as_echo_n "(cached) " >&6
7806 else
7807   lt_cv_apple_cc_single_mod=no
7808       if test -z "${LT_MULTI_MODULE}"; then
7809         # By default we will add the -single_module flag. You can override
7810         # by either setting the environment variable LT_MULTI_MODULE
7811         # non-empty at configure time, or by adding -multi_module to the
7812         # link flags.
7813         rm -rf libconftest.dylib*
7814         echo "int foo(void){return 1;}" > conftest.c
7815         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7816 -dynamiclib -Wl,-single_module conftest.c" >&5
7817         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7819         _lt_result=$?
7820         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7821           lt_cv_apple_cc_single_mod=yes
7822         else
7823           cat conftest.err >&5
7824         fi
7825         rm -rf libconftest.dylib*
7826         rm -f conftest.*
7827       fi
7828 fi
7829 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7830 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7831     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7832 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7833 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7834   $as_echo_n "(cached) " >&6
7835 else
7836   lt_cv_ld_exported_symbols_list=no
7837       save_LDFLAGS=$LDFLAGS
7838       echo "_main" > conftest.sym
7839       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7840       cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h.  */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h.  */
7846
7847 int
7848 main ()
7849 {
7850
7851   ;
7852   return 0;
7853 }
7854 _ACEOF
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (ac_try="$ac_link"
7857 case "(($ac_try" in
7858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859   *) ac_try_echo=$ac_try;;
7860 esac
7861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863   (eval "$ac_link") 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } && {
7870          test -z "$ac_c_werror_flag" ||
7871          test ! -s conftest.err
7872        } && test -s conftest$ac_exeext && {
7873          test "$cross_compiling" = yes ||
7874          $as_test_x conftest$ac_exeext
7875        }; then
7876   lt_cv_ld_exported_symbols_list=yes
7877 else
7878   $as_echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881         lt_cv_ld_exported_symbols_list=no
7882 fi
7883
7884 rm -rf conftest.dSYM
7885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7886       conftest$ac_exeext conftest.$ac_ext
7887         LDFLAGS="$save_LDFLAGS"
7888
7889 fi
7890 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7891 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7892     case $host_os in
7893     rhapsody* | darwin1.[012])
7894       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7895     darwin1.*)
7896       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7897     darwin*) # darwin 5.x on
7898       # if running on 10.5 or later, the deployment target defaults
7899       # to the OS version, if on x86, and 10.4, the deployment
7900       # target defaults to 10.4. Don't you love it?
7901       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7902         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7903           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7904         10.[012]*)
7905           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7906         10.*)
7907           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7908       esac
7909     ;;
7910   esac
7911     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7912       _lt_dar_single_mod='$single_module'
7913     fi
7914     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7915       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7916     else
7917       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7918     fi
7919     if test "$DSYMUTIL" != ":"; then
7920       _lt_dsymutil='~$DSYMUTIL $lib || :'
7921     else
7922       _lt_dsymutil=
7923     fi
7924     ;;
7925   esac
7926
7927 ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7933 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7934 # On Suns, sometimes $CPP names a directory.
7935 if test -n "$CPP" && test -d "$CPP"; then
7936   CPP=
7937 fi
7938 if test -z "$CPP"; then
7939   if test "${ac_cv_prog_CPP+set}" = set; then
7940   $as_echo_n "(cached) " >&6
7941 else
7942       # Double quotes because CPP needs to be expanded
7943     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7944     do
7945       ac_preproc_ok=false
7946 for ac_c_preproc_warn_flag in '' yes
7947 do
7948   # Use a header file that comes with gcc, so configuring glibc
7949   # with a fresh cross-compiler works.
7950   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7951   # <limits.h> exists even on freestanding compilers.
7952   # On the NeXT, cc -E runs the code through the compiler's parser,
7953   # not just through cpp. "Syntax error" is here to catch this case.
7954   cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960 #ifdef __STDC__
7961 # include <limits.h>
7962 #else
7963 # include <assert.h>
7964 #endif
7965                      Syntax error
7966 _ACEOF
7967 if { (ac_try="$ac_cpp conftest.$ac_ext"
7968 case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7973 $as_echo "$ac_try_echo") >&5
7974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } >/dev/null && {
7981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7982          test ! -s conftest.err
7983        }; then
7984   :
7985 else
7986   $as_echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989   # Broken: fails on valid input.
7990 continue
7991 fi
7992
7993 rm -f conftest.err conftest.$ac_ext
7994
7995   # OK, works on sane cases.  Now check whether nonexistent headers
7996   # can be detected and how.
7997   cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h.  */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h.  */
8003 #include <ac_nonexistent.h>
8004 _ACEOF
8005 if { (ac_try="$ac_cpp conftest.$ac_ext"
8006 case "(($ac_try" in
8007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008   *) ac_try_echo=$ac_try;;
8009 esac
8010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8011 $as_echo "$ac_try_echo") >&5
8012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8013   ac_status=$?
8014   grep -v '^ *+' conftest.er1 >conftest.err
8015   rm -f conftest.er1
8016   cat conftest.err >&5
8017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } >/dev/null && {
8019          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8020          test ! -s conftest.err
8021        }; then
8022   # Broken: success on invalid input.
8023 continue
8024 else
8025   $as_echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028   # Passes both tests.
8029 ac_preproc_ok=:
8030 break
8031 fi
8032
8033 rm -f conftest.err conftest.$ac_ext
8034
8035 done
8036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8037 rm -f conftest.err conftest.$ac_ext
8038 if $ac_preproc_ok; then
8039   break
8040 fi
8041
8042     done
8043     ac_cv_prog_CPP=$CPP
8044
8045 fi
8046   CPP=$ac_cv_prog_CPP
8047 else
8048   ac_cv_prog_CPP=$CPP
8049 fi
8050 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
8051 $as_echo "$CPP" >&6; }
8052 ac_preproc_ok=false
8053 for ac_c_preproc_warn_flag in '' yes
8054 do
8055   # Use a header file that comes with gcc, so configuring glibc
8056   # with a fresh cross-compiler works.
8057   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8058   # <limits.h> exists even on freestanding compilers.
8059   # On the NeXT, cc -E runs the code through the compiler's parser,
8060   # not just through cpp. "Syntax error" is here to catch this case.
8061   cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h.  */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h.  */
8067 #ifdef __STDC__
8068 # include <limits.h>
8069 #else
8070 # include <assert.h>
8071 #endif
8072                      Syntax error
8073 _ACEOF
8074 if { (ac_try="$ac_cpp conftest.$ac_ext"
8075 case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8082   ac_status=$?
8083   grep -v '^ *+' conftest.er1 >conftest.err
8084   rm -f conftest.er1
8085   cat conftest.err >&5
8086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } >/dev/null && {
8088          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8089          test ! -s conftest.err
8090        }; then
8091   :
8092 else
8093   $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096   # Broken: fails on valid input.
8097 continue
8098 fi
8099
8100 rm -f conftest.err conftest.$ac_ext
8101
8102   # OK, works on sane cases.  Now check whether nonexistent headers
8103   # can be detected and how.
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <ac_nonexistent.h>
8111 _ACEOF
8112 if { (ac_try="$ac_cpp conftest.$ac_ext"
8113 case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8118 $as_echo "$ac_try_echo") >&5
8119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } >/dev/null && {
8126          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8127          test ! -s conftest.err
8128        }; then
8129   # Broken: success on invalid input.
8130 continue
8131 else
8132   $as_echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135   # Passes both tests.
8136 ac_preproc_ok=:
8137 break
8138 fi
8139
8140 rm -f conftest.err conftest.$ac_ext
8141
8142 done
8143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8144 rm -f conftest.err conftest.$ac_ext
8145 if $ac_preproc_ok; then
8146   :
8147 else
8148   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8150 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8151 See \`config.log' for more details." >&5
8152 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8153 See \`config.log' for more details." >&2;}
8154    { (exit 1); exit 1; }; }; }
8155 fi
8156
8157 ac_ext=c
8158 ac_cpp='$CPP $CPPFLAGS'
8159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162
8163
8164 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8165 $as_echo_n "checking for ANSI C header files... " >&6; }
8166 if test "${ac_cv_header_stdc+set}" = set; then
8167   $as_echo_n "(cached) " >&6
8168 else
8169   cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175 #include <stdlib.h>
8176 #include <stdarg.h>
8177 #include <string.h>
8178 #include <float.h>
8179
8180 int
8181 main ()
8182 {
8183
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (ac_try="$ac_compile"
8190 case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8195 $as_echo "$ac_try_echo") >&5
8196   (eval "$ac_compile") 2>conftest.er1
8197   ac_status=$?
8198   grep -v '^ *+' conftest.er1 >conftest.err
8199   rm -f conftest.er1
8200   cat conftest.err >&5
8201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202   (exit $ac_status); } && {
8203          test -z "$ac_c_werror_flag" ||
8204          test ! -s conftest.err
8205        } && test -s conftest.$ac_objext; then
8206   ac_cv_header_stdc=yes
8207 else
8208   $as_echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211         ac_cv_header_stdc=no
8212 fi
8213
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215
8216 if test $ac_cv_header_stdc = yes; then
8217   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8218   cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224 #include <string.h>
8225
8226 _ACEOF
8227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8228   $EGREP "memchr" >/dev/null 2>&1; then
8229   :
8230 else
8231   ac_cv_header_stdc=no
8232 fi
8233 rm -f conftest*
8234
8235 fi
8236
8237 if test $ac_cv_header_stdc = yes; then
8238   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8239   cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h.  */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h.  */
8245 #include <stdlib.h>
8246
8247 _ACEOF
8248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8249   $EGREP "free" >/dev/null 2>&1; then
8250   :
8251 else
8252   ac_cv_header_stdc=no
8253 fi
8254 rm -f conftest*
8255
8256 fi
8257
8258 if test $ac_cv_header_stdc = yes; then
8259   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8260   if test "$cross_compiling" = yes; then
8261   :
8262 else
8263   cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h.  */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h.  */
8269 #include <ctype.h>
8270 #include <stdlib.h>
8271 #if ((' ' & 0x0FF) == 0x020)
8272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8274 #else
8275 # define ISLOWER(c) \
8276                    (('a' <= (c) && (c) <= 'i') \
8277                      || ('j' <= (c) && (c) <= 'r') \
8278                      || ('s' <= (c) && (c) <= 'z'))
8279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8280 #endif
8281
8282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8283 int
8284 main ()
8285 {
8286   int i;
8287   for (i = 0; i < 256; i++)
8288     if (XOR (islower (i), ISLOWER (i))
8289         || toupper (i) != TOUPPER (i))
8290       return 2;
8291   return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest$ac_exeext
8295 if { (ac_try="$ac_link"
8296 case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8301 $as_echo "$ac_try_echo") >&5
8302   (eval "$ac_link") 2>&5
8303   ac_status=$?
8304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8306   { (case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8311 $as_echo "$ac_try_echo") >&5
8312   (eval "$ac_try") 2>&5
8313   ac_status=$?
8314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   :
8317 else
8318   $as_echo "$as_me: program exited with status $ac_status" >&5
8319 $as_echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ( exit $ac_status )
8323 ac_cv_header_stdc=no
8324 fi
8325 rm -rf conftest.dSYM
8326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8327 fi
8328
8329
8330 fi
8331 fi
8332 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8333 $as_echo "$ac_cv_header_stdc" >&6; }
8334 if test $ac_cv_header_stdc = yes; then
8335
8336 cat >>confdefs.h <<\_ACEOF
8337 #define STDC_HEADERS 1
8338 _ACEOF
8339
8340 fi
8341
8342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8353                   inttypes.h stdint.h unistd.h
8354 do
8355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8357 $as_echo_n "checking for $ac_header... " >&6; }
8358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8359   $as_echo_n "(cached) " >&6
8360 else
8361   cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h.  */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h.  */
8367 $ac_includes_default
8368
8369 #include <$ac_header>
8370 _ACEOF
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8373 case "(($ac_try" in
8374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375   *) ac_try_echo=$ac_try;;
8376 esac
8377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8378 $as_echo "$ac_try_echo") >&5
8379   (eval "$ac_compile") 2>conftest.er1
8380   ac_status=$?
8381   grep -v '^ *+' conftest.er1 >conftest.err
8382   rm -f conftest.er1
8383   cat conftest.err >&5
8384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); } && {
8386          test -z "$ac_c_werror_flag" ||
8387          test ! -s conftest.err
8388        } && test -s conftest.$ac_objext; then
8389   eval "$as_ac_Header=yes"
8390 else
8391   $as_echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394         eval "$as_ac_Header=no"
8395 fi
8396
8397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 fi
8399 ac_res=`eval 'as_val=${'$as_ac_Header'}
8400                  $as_echo "$as_val"'`
8401                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8402 $as_echo "$ac_res" >&6; }
8403 as_val=`eval 'as_val=${'$as_ac_Header'}
8404                  $as_echo "$as_val"'`
8405    if test "x$as_val" = x""yes; then
8406   cat >>confdefs.h <<_ACEOF
8407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8408 _ACEOF
8409
8410 fi
8411
8412 done
8413
8414
8415
8416 for ac_header in dlfcn.h
8417 do
8418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 $as_echo_n "checking for $ac_header... " >&6; }
8421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8422   $as_echo_n "(cached) " >&6
8423 else
8424   cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430 $ac_includes_default
8431
8432 #include <$ac_header>
8433 _ACEOF
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8436 case "(($ac_try" in
8437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438   *) ac_try_echo=$ac_try;;
8439 esac
8440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8441 $as_echo "$ac_try_echo") >&5
8442   (eval "$ac_compile") 2>conftest.er1
8443   ac_status=$?
8444   grep -v '^ *+' conftest.er1 >conftest.err
8445   rm -f conftest.er1
8446   cat conftest.err >&5
8447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } && {
8449          test -z "$ac_c_werror_flag" ||
8450          test ! -s conftest.err
8451        } && test -s conftest.$ac_objext; then
8452   eval "$as_ac_Header=yes"
8453 else
8454   $as_echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8456
8457         eval "$as_ac_Header=no"
8458 fi
8459
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 fi
8462 ac_res=`eval 'as_val=${'$as_ac_Header'}
8463                  $as_echo "$as_val"'`
8464                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8465 $as_echo "$ac_res" >&6; }
8466 as_val=`eval 'as_val=${'$as_ac_Header'}
8467                  $as_echo "$as_val"'`
8468    if test "x$as_val" = x""yes; then
8469   cat >>confdefs.h <<_ACEOF
8470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8471 _ACEOF
8472
8473 fi
8474
8475 done
8476
8477
8478
8479 # Set options
8480
8481
8482
8483         enable_dlopen=no
8484
8485
8486
8487             # Check whether --enable-shared was given.
8488 if test "${enable_shared+set}" = set; then
8489   enableval=$enable_shared; p=${PACKAGE-default}
8490     case $enableval in
8491     yes) enable_shared=yes ;;
8492     no) enable_shared=no ;;
8493     *)
8494       enable_shared=no
8495       # Look at the argument we got.  We use all the common list separators.
8496       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8497       for pkg in $enableval; do
8498         IFS="$lt_save_ifs"
8499         if test "X$pkg" = "X$p"; then
8500           enable_shared=yes
8501         fi
8502       done
8503       IFS="$lt_save_ifs"
8504       ;;
8505     esac
8506 else
8507   enable_shared=yes
8508 fi
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518   # Check whether --enable-static was given.
8519 if test "${enable_static+set}" = set; then
8520   enableval=$enable_static; p=${PACKAGE-default}
8521     case $enableval in
8522     yes) enable_static=yes ;;
8523     no) enable_static=no ;;
8524     *)
8525      enable_static=no
8526       # Look at the argument we got.  We use all the common list separators.
8527       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8528       for pkg in $enableval; do
8529         IFS="$lt_save_ifs"
8530         if test "X$pkg" = "X$p"; then
8531           enable_static=yes
8532         fi
8533       done
8534       IFS="$lt_save_ifs"
8535       ;;
8536     esac
8537 else
8538   enable_static=yes
8539 fi
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550 # Check whether --with-pic was given.
8551 if test "${with_pic+set}" = set; then
8552   withval=$with_pic; pic_mode="$withval"
8553 else
8554   pic_mode=default
8555 fi
8556
8557
8558 test -z "$pic_mode" && pic_mode=default
8559
8560
8561
8562
8563
8564
8565
8566   # Check whether --enable-fast-install was given.
8567 if test "${enable_fast_install+set}" = set; then
8568   enableval=$enable_fast_install; p=${PACKAGE-default}
8569     case $enableval in
8570     yes) enable_fast_install=yes ;;
8571     no) enable_fast_install=no ;;
8572     *)
8573       enable_fast_install=no
8574       # Look at the argument we got.  We use all the common list separators.
8575       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8576       for pkg in $enableval; do
8577         IFS="$lt_save_ifs"
8578         if test "X$pkg" = "X$p"; then
8579           enable_fast_install=yes
8580         fi
8581       done
8582       IFS="$lt_save_ifs"
8583       ;;
8584     esac
8585 else
8586   enable_fast_install=yes
8587 fi
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 # This can be used to rebuild libtool when needed
8600 LIBTOOL_DEPS="$ltmain"
8601
8602 # Always use our own libtool.
8603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629 test -z "$LN_S" && LN_S="ln -s"
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 if test -n "${ZSH_VERSION+set}" ; then
8645    setopt NO_GLOB_SUBST
8646 fi
8647
8648 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8649 $as_echo_n "checking for objdir... " >&6; }
8650 if test "${lt_cv_objdir+set}" = set; then
8651   $as_echo_n "(cached) " >&6
8652 else
8653   rm -f .libs 2>/dev/null
8654 mkdir .libs 2>/dev/null
8655 if test -d .libs; then
8656   lt_cv_objdir=.libs
8657 else
8658   # MS-DOS does not allow filenames that begin with a dot.
8659   lt_cv_objdir=_libs
8660 fi
8661 rmdir .libs 2>/dev/null
8662 fi
8663 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8664 $as_echo "$lt_cv_objdir" >&6; }
8665 objdir=$lt_cv_objdir
8666
8667
8668
8669
8670
8671 cat >>confdefs.h <<_ACEOF
8672 #define LT_OBJDIR "$lt_cv_objdir/"
8673 _ACEOF
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691 case $host_os in
8692 aix3*)
8693   # AIX sometimes has problems with the GCC collect2 program.  For some
8694   # reason, if we set the COLLECT_NAMES environment variable, the problems
8695   # vanish in a puff of smoke.
8696   if test "X${COLLECT_NAMES+set}" != Xset; then
8697     COLLECT_NAMES=
8698     export COLLECT_NAMES
8699   fi
8700   ;;
8701 esac
8702
8703 # Sed substitution that helps us do robust quoting.  It backslashifies
8704 # metacharacters that are still active within double-quoted strings.
8705 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8706
8707 # Same as above, but do not quote variable references.
8708 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8709
8710 # Sed substitution to delay expansion of an escaped shell variable in a
8711 # double_quote_subst'ed string.
8712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8713
8714 # Sed substitution to delay expansion of an escaped single quote.
8715 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8716
8717 # Sed substitution to avoid accidental globbing in evaled expressions
8718 no_glob_subst='s/\*/\\\*/g'
8719
8720 # Global variables:
8721 ofile=libtool
8722 can_build_shared=yes
8723
8724 # All known linkers require a `.a' archive for static linking (except MSVC,
8725 # which needs '.lib').
8726 libext=a
8727
8728 with_gnu_ld="$lt_cv_prog_gnu_ld"
8729
8730 old_CC="$CC"
8731 old_CFLAGS="$CFLAGS"
8732
8733 # Set sane defaults for various variables
8734 test -z "$CC" && CC=cc
8735 test -z "$LTCC" && LTCC=$CC
8736 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8737 test -z "$LD" && LD=ld
8738 test -z "$ac_objext" && ac_objext=o
8739
8740 for cc_temp in $compiler""; do
8741   case $cc_temp in
8742     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8743     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8744     \-*) ;;
8745     *) break;;
8746   esac
8747 done
8748 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8749
8750
8751 # Only perform the check for file, if the check method requires it
8752 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8753 case $deplibs_check_method in
8754 file_magic*)
8755   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8756     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8757 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8759   $as_echo_n "(cached) " >&6
8760 else
8761   case $MAGIC_CMD in
8762 [\\/*] |  ?:[\\/]*)
8763   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8764   ;;
8765 *)
8766   lt_save_MAGIC_CMD="$MAGIC_CMD"
8767   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8768   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8769   for ac_dir in $ac_dummy; do
8770     IFS="$lt_save_ifs"
8771     test -z "$ac_dir" && ac_dir=.
8772     if test -f $ac_dir/${ac_tool_prefix}file; then
8773       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8774       if test -n "$file_magic_test_file"; then
8775         case $deplibs_check_method in
8776         "file_magic "*)
8777           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8778           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8779           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8780             $EGREP "$file_magic_regex" > /dev/null; then
8781             :
8782           else
8783             cat <<_LT_EOF 1>&2
8784
8785 *** Warning: the command libtool uses to detect shared libraries,
8786 *** $file_magic_cmd, produces output that libtool cannot recognize.
8787 *** The result is that libtool may fail to recognize shared libraries
8788 *** as such.  This will affect the creation of libtool libraries that
8789 *** depend on shared libraries, but programs linked with such libtool
8790 *** libraries will work regardless of this problem.  Nevertheless, you
8791 *** may want to report the problem to your system manager and/or to
8792 *** bug-libtool@gnu.org
8793
8794 _LT_EOF
8795           fi ;;
8796         esac
8797       fi
8798       break
8799     fi
8800   done
8801   IFS="$lt_save_ifs"
8802   MAGIC_CMD="$lt_save_MAGIC_CMD"
8803   ;;
8804 esac
8805 fi
8806
8807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808 if test -n "$MAGIC_CMD"; then
8809   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8810 $as_echo "$MAGIC_CMD" >&6; }
8811 else
8812   { $as_echo "$as_me:$LINENO: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815
8816
8817
8818
8819
8820 if test -z "$lt_cv_path_MAGIC_CMD"; then
8821   if test -n "$ac_tool_prefix"; then
8822     { $as_echo "$as_me:$LINENO: checking for file" >&5
8823 $as_echo_n "checking for file... " >&6; }
8824 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8825   $as_echo_n "(cached) " >&6
8826 else
8827   case $MAGIC_CMD in
8828 [\\/*] |  ?:[\\/]*)
8829   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8830   ;;
8831 *)
8832   lt_save_MAGIC_CMD="$MAGIC_CMD"
8833   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8834   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8835   for ac_dir in $ac_dummy; do
8836     IFS="$lt_save_ifs"
8837     test -z "$ac_dir" && ac_dir=.
8838     if test -f $ac_dir/file; then
8839       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8840       if test -n "$file_magic_test_file"; then
8841         case $deplibs_check_method in
8842         "file_magic "*)
8843           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8844           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8845           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8846             $EGREP "$file_magic_regex" > /dev/null; then
8847             :
8848           else
8849             cat <<_LT_EOF 1>&2
8850
8851 *** Warning: the command libtool uses to detect shared libraries,
8852 *** $file_magic_cmd, produces output that libtool cannot recognize.
8853 *** The result is that libtool may fail to recognize shared libraries
8854 *** as such.  This will affect the creation of libtool libraries that
8855 *** depend on shared libraries, but programs linked with such libtool
8856 *** libraries will work regardless of this problem.  Nevertheless, you
8857 *** may want to report the problem to your system manager and/or to
8858 *** bug-libtool@gnu.org
8859
8860 _LT_EOF
8861           fi ;;
8862         esac
8863       fi
8864       break
8865     fi
8866   done
8867   IFS="$lt_save_ifs"
8868   MAGIC_CMD="$lt_save_MAGIC_CMD"
8869   ;;
8870 esac
8871 fi
8872
8873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8874 if test -n "$MAGIC_CMD"; then
8875   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8876 $as_echo "$MAGIC_CMD" >&6; }
8877 else
8878   { $as_echo "$as_me:$LINENO: result: no" >&5
8879 $as_echo "no" >&6; }
8880 fi
8881
8882
8883   else
8884     MAGIC_CMD=:
8885   fi
8886 fi
8887
8888   fi
8889   ;;
8890 esac
8891
8892 # Use C for the default configuration in the libtool script
8893
8894 lt_save_CC="$CC"
8895 ac_ext=c
8896 ac_cpp='$CPP $CPPFLAGS'
8897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8900
8901
8902 # Source file extension for C test sources.
8903 ac_ext=c
8904
8905 # Object file extension for compiled C test sources.
8906 objext=o
8907 objext=$objext
8908
8909 # Code to be used in simple compile tests
8910 lt_simple_compile_test_code="int some_variable = 0;"
8911
8912 # Code to be used in simple link tests
8913 lt_simple_link_test_code='int main(){return(0);}'
8914
8915
8916
8917
8918
8919
8920
8921 # If no C compiler was specified, use CC.
8922 LTCC=${LTCC-"$CC"}
8923
8924 # If no C compiler flags were specified, use CFLAGS.
8925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8926
8927 # Allow CC to be a program name with arguments.
8928 compiler=$CC
8929
8930 # Save the default compiler, since it gets overwritten when the other
8931 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8932 compiler_DEFAULT=$CC
8933
8934 # save warnings/boilerplate of simple test code
8935 ac_outfile=conftest.$ac_objext
8936 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8938 _lt_compiler_boilerplate=`cat conftest.err`
8939 $RM conftest*
8940
8941 ac_outfile=conftest.$ac_objext
8942 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8943 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8944 _lt_linker_boilerplate=`cat conftest.err`
8945 $RM -r conftest*
8946
8947
8948 ## CAVEAT EMPTOR:
8949 ## There is no encapsulation within the following macros, do not change
8950 ## the running order or otherwise move them around unless you know exactly
8951 ## what you are doing...
8952 if test -n "$compiler"; then
8953
8954 lt_prog_compiler_no_builtin_flag=
8955
8956 if test "$GCC" = yes; then
8957   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8958
8959   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8960 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8961 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8962   $as_echo_n "(cached) " >&6
8963 else
8964   lt_cv_prog_compiler_rtti_exceptions=no
8965    ac_outfile=conftest.$ac_objext
8966    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967    lt_compiler_flag="-fno-rtti -fno-exceptions"
8968    # Insert the option either (1) after the last *FLAGS variable, or
8969    # (2) before a word containing "conftest.", or (3) at the end.
8970    # Note that $ac_compile itself does not contain backslashes and begins
8971    # with a dollar sign (not a hyphen), so the echo should work correctly.
8972    # The option is referenced via a variable to avoid confusing sed.
8973    lt_compile=`echo "$ac_compile" | $SED \
8974    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976    -e 's:$: $lt_compiler_flag:'`
8977    (eval echo "\"\$as_me:8977: $lt_compile\"" >&5)
8978    (eval "$lt_compile" 2>conftest.err)
8979    ac_status=$?
8980    cat conftest.err >&5
8981    echo "$as_me:8981: \$? = $ac_status" >&5
8982    if (exit $ac_status) && test -s "$ac_outfile"; then
8983      # The compiler can only warn and ignore the option if not recognized
8984      # So say no if there are warnings other than the usual output.
8985      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8986      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8988        lt_cv_prog_compiler_rtti_exceptions=yes
8989      fi
8990    fi
8991    $RM conftest*
8992
8993 fi
8994 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8995 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8996
8997 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8998     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8999 else
9000     :
9001 fi
9002
9003 fi
9004
9005
9006
9007
9008
9009
9010   lt_prog_compiler_wl=
9011 lt_prog_compiler_pic=
9012 lt_prog_compiler_static=
9013
9014 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9015 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9016
9017   if test "$GCC" = yes; then
9018     lt_prog_compiler_wl='-Wl,'
9019     lt_prog_compiler_static='-static'
9020
9021     case $host_os in
9022       aix*)
9023       # All AIX code is PIC.
9024       if test "$host_cpu" = ia64; then
9025         # AIX 5 now supports IA64 processor
9026         lt_prog_compiler_static='-Bstatic'
9027       fi
9028       ;;
9029
9030     amigaos*)
9031       case $host_cpu in
9032       powerpc)
9033             # see comment about AmigaOS4 .so support
9034             lt_prog_compiler_pic='-fPIC'
9035         ;;
9036       m68k)
9037             # FIXME: we need at least 68020 code to build shared libraries, but
9038             # adding the `-m68020' flag to GCC prevents building anything better,
9039             # like `-m68040'.
9040             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9041         ;;
9042       esac
9043       ;;
9044
9045     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9046       # PIC is the default for these OSes.
9047       ;;
9048
9049     mingw* | cygwin* | pw32* | os2* | cegcc*)
9050       # This hack is so that the source file can tell whether it is being
9051       # built for inclusion in a dll (and should export symbols for example).
9052       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9053       # (--disable-auto-import) libraries
9054       lt_prog_compiler_pic='-DDLL_EXPORT'
9055       ;;
9056
9057     darwin* | rhapsody*)
9058       # PIC is the default on this platform
9059       # Common symbols not allowed in MH_DYLIB files
9060       lt_prog_compiler_pic='-fno-common'
9061       ;;
9062
9063     hpux*)
9064       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9065       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9066       # sets the default TLS model and affects inlining.
9067       case $host_cpu in
9068       hppa*64*)
9069         # +Z the default
9070         ;;
9071       *)
9072         lt_prog_compiler_pic='-fPIC'
9073         ;;
9074       esac
9075       ;;
9076
9077     interix[3-9]*)
9078       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9079       # Instead, we relocate shared libraries at runtime.
9080       ;;
9081
9082     msdosdjgpp*)
9083       # Just because we use GCC doesn't mean we suddenly get shared libraries
9084       # on systems that don't support them.
9085       lt_prog_compiler_can_build_shared=no
9086       enable_shared=no
9087       ;;
9088
9089     *nto* | *qnx*)
9090       # QNX uses GNU C++, but need to define -shared option too, otherwise
9091       # it will coredump.
9092       lt_prog_compiler_pic='-fPIC -shared'
9093       ;;
9094
9095     sysv4*MP*)
9096       if test -d /usr/nec; then
9097         lt_prog_compiler_pic=-Kconform_pic
9098       fi
9099       ;;
9100
9101     *)
9102       lt_prog_compiler_pic='-fPIC'
9103       ;;
9104     esac
9105   else
9106     # PORTME Check for flag to pass linker flags through the system compiler.
9107     case $host_os in
9108     aix*)
9109       lt_prog_compiler_wl='-Wl,'
9110       if test "$host_cpu" = ia64; then
9111         # AIX 5 now supports IA64 processor
9112         lt_prog_compiler_static='-Bstatic'
9113       else
9114         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9115       fi
9116       ;;
9117
9118     mingw* | cygwin* | pw32* | os2* | cegcc*)
9119       # This hack is so that the source file can tell whether it is being
9120       # built for inclusion in a dll (and should export symbols for example).
9121       lt_prog_compiler_pic='-DDLL_EXPORT'
9122       ;;
9123
9124     hpux9* | hpux10* | hpux11*)
9125       lt_prog_compiler_wl='-Wl,'
9126       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9127       # not for PA HP-UX.
9128       case $host_cpu in
9129       hppa*64*|ia64*)
9130         # +Z the default
9131         ;;
9132       *)
9133         lt_prog_compiler_pic='+Z'
9134         ;;
9135       esac
9136       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9137       lt_prog_compiler_static='${wl}-a ${wl}archive'
9138       ;;
9139
9140     irix5* | irix6* | nonstopux*)
9141       lt_prog_compiler_wl='-Wl,'
9142       # PIC (with -KPIC) is the default.
9143       lt_prog_compiler_static='-non_shared'
9144       ;;
9145
9146     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9147       case $cc_basename in
9148       # old Intel for x86_64 which still supported -KPIC.
9149       ecc*)
9150         lt_prog_compiler_wl='-Wl,'
9151         lt_prog_compiler_pic='-KPIC'
9152         lt_prog_compiler_static='-static'
9153         ;;
9154       # icc used to be incompatible with GCC.
9155       # ICC 10 doesn't accept -KPIC any more.
9156       icc* | ifort*)
9157         lt_prog_compiler_wl='-Wl,'
9158         lt_prog_compiler_pic='-fPIC'
9159         lt_prog_compiler_static='-static'
9160         ;;
9161       # Lahey Fortran 8.1.
9162       lf95*)
9163         lt_prog_compiler_wl='-Wl,'
9164         lt_prog_compiler_pic='--shared'
9165         lt_prog_compiler_static='--static'
9166         ;;
9167       pgcc* | pgf77* | pgf90* | pgf95*)
9168         # Portland Group compilers (*not* the Pentium gcc compiler,
9169         # which looks to be a dead project)
9170         lt_prog_compiler_wl='-Wl,'
9171         lt_prog_compiler_pic='-fpic'
9172         lt_prog_compiler_static='-Bstatic'
9173         ;;
9174       ccc*)
9175         lt_prog_compiler_wl='-Wl,'
9176         # All Alpha code is PIC.
9177         lt_prog_compiler_static='-non_shared'
9178         ;;
9179       xl*)
9180         # IBM XL C 8.0/Fortran 10.1 on PPC
9181         lt_prog_compiler_wl='-Wl,'
9182         lt_prog_compiler_pic='-qpic'
9183         lt_prog_compiler_static='-qstaticlink'
9184         ;;
9185       *)
9186         case `$CC -V 2>&1 | sed 5q` in
9187         *Sun\ C*)
9188           # Sun C 5.9
9189           lt_prog_compiler_pic='-KPIC'
9190           lt_prog_compiler_static='-Bstatic'
9191           lt_prog_compiler_wl='-Wl,'
9192           ;;
9193         *Sun\ F*)
9194           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9195           lt_prog_compiler_pic='-KPIC'
9196           lt_prog_compiler_static='-Bstatic'
9197           lt_prog_compiler_wl=''
9198           ;;
9199         esac
9200         ;;
9201       esac
9202       ;;
9203
9204     newsos6)
9205       lt_prog_compiler_pic='-KPIC'
9206       lt_prog_compiler_static='-Bstatic'
9207       ;;
9208
9209     *nto* | *qnx*)
9210       # QNX uses GNU C++, but need to define -shared option too, otherwise
9211       # it will coredump.
9212       lt_prog_compiler_pic='-fPIC -shared'
9213       ;;
9214
9215     osf3* | osf4* | osf5*)
9216       lt_prog_compiler_wl='-Wl,'
9217       # All OSF/1 code is PIC.
9218       lt_prog_compiler_static='-non_shared'
9219       ;;
9220
9221     rdos*)
9222       lt_prog_compiler_static='-non_shared'
9223       ;;
9224
9225     solaris*)
9226       lt_prog_compiler_pic='-KPIC'
9227       lt_prog_compiler_static='-Bstatic'
9228       case $cc_basename in
9229       f77* | f90* | f95*)
9230         lt_prog_compiler_wl='-Qoption ld ';;
9231       *)
9232         lt_prog_compiler_wl='-Wl,';;
9233       esac
9234       ;;
9235
9236     sunos4*)
9237       lt_prog_compiler_wl='-Qoption ld '
9238       lt_prog_compiler_pic='-PIC'
9239       lt_prog_compiler_static='-Bstatic'
9240       ;;
9241
9242     sysv4 | sysv4.2uw2* | sysv4.3*)
9243       lt_prog_compiler_wl='-Wl,'
9244       lt_prog_compiler_pic='-KPIC'
9245       lt_prog_compiler_static='-Bstatic'
9246       ;;
9247
9248     sysv4*MP*)
9249       if test -d /usr/nec ;then
9250         lt_prog_compiler_pic='-Kconform_pic'
9251         lt_prog_compiler_static='-Bstatic'
9252       fi
9253       ;;
9254
9255     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9256       lt_prog_compiler_wl='-Wl,'
9257       lt_prog_compiler_pic='-KPIC'
9258       lt_prog_compiler_static='-Bstatic'
9259       ;;
9260
9261     unicos*)
9262       lt_prog_compiler_wl='-Wl,'
9263       lt_prog_compiler_can_build_shared=no
9264       ;;
9265
9266     uts4*)
9267       lt_prog_compiler_pic='-pic'
9268       lt_prog_compiler_static='-Bstatic'
9269       ;;
9270
9271     *)
9272       lt_prog_compiler_can_build_shared=no
9273       ;;
9274     esac
9275   fi
9276
9277 case $host_os in
9278   # For platforms which do not support PIC, -DPIC is meaningless:
9279   *djgpp*)
9280     lt_prog_compiler_pic=
9281     ;;
9282   *)
9283     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9284     ;;
9285 esac
9286 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9287 $as_echo "$lt_prog_compiler_pic" >&6; }
9288
9289
9290
9291
9292
9293
9294 #
9295 # Check to make sure the PIC flag actually works.
9296 #
9297 if test -n "$lt_prog_compiler_pic"; then
9298   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9300 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9301   $as_echo_n "(cached) " >&6
9302 else
9303   lt_cv_prog_compiler_pic_works=no
9304    ac_outfile=conftest.$ac_objext
9305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9307    # Insert the option either (1) after the last *FLAGS variable, or
9308    # (2) before a word containing "conftest.", or (3) at the end.
9309    # Note that $ac_compile itself does not contain backslashes and begins
9310    # with a dollar sign (not a hyphen), so the echo should work correctly.
9311    # The option is referenced via a variable to avoid confusing sed.
9312    lt_compile=`echo "$ac_compile" | $SED \
9313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9315    -e 's:$: $lt_compiler_flag:'`
9316    (eval echo "\"\$as_me:9316: $lt_compile\"" >&5)
9317    (eval "$lt_compile" 2>conftest.err)
9318    ac_status=$?
9319    cat conftest.err >&5
9320    echo "$as_me:9320: \$? = $ac_status" >&5
9321    if (exit $ac_status) && test -s "$ac_outfile"; then
9322      # The compiler can only warn and ignore the option if not recognized
9323      # So say no if there are warnings other than the usual output.
9324      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9327        lt_cv_prog_compiler_pic_works=yes
9328      fi
9329    fi
9330    $RM conftest*
9331
9332 fi
9333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9334 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9335
9336 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9337     case $lt_prog_compiler_pic in
9338      "" | " "*) ;;
9339      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9340      esac
9341 else
9342     lt_prog_compiler_pic=
9343      lt_prog_compiler_can_build_shared=no
9344 fi
9345
9346 fi
9347
9348
9349
9350
9351
9352
9353 #
9354 # Check to make sure the static flag actually works.
9355 #
9356 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9357 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9358 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9359 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9360   $as_echo_n "(cached) " >&6
9361 else
9362   lt_cv_prog_compiler_static_works=no
9363    save_LDFLAGS="$LDFLAGS"
9364    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9365    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9366    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9367      # The linker can only warn and ignore the option if not recognized
9368      # So say no if there are warnings
9369      if test -s conftest.err; then
9370        # Append any errors to the config.log.
9371        cat conftest.err 1>&5
9372        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9373        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9374        if diff conftest.exp conftest.er2 >/dev/null; then
9375          lt_cv_prog_compiler_static_works=yes
9376        fi
9377      else
9378        lt_cv_prog_compiler_static_works=yes
9379      fi
9380    fi
9381    $RM -r conftest*
9382    LDFLAGS="$save_LDFLAGS"
9383
9384 fi
9385 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9386 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9387
9388 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9389     :
9390 else
9391     lt_prog_compiler_static=
9392 fi
9393
9394
9395
9396
9397
9398
9399
9400   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9402 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9403   $as_echo_n "(cached) " >&6
9404 else
9405   lt_cv_prog_compiler_c_o=no
9406    $RM -r conftest 2>/dev/null
9407    mkdir conftest
9408    cd conftest
9409    mkdir out
9410    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411
9412    lt_compiler_flag="-o out/conftest2.$ac_objext"
9413    # Insert the option either (1) after the last *FLAGS variable, or
9414    # (2) before a word containing "conftest.", or (3) at the end.
9415    # Note that $ac_compile itself does not contain backslashes and begins
9416    # with a dollar sign (not a hyphen), so the echo should work correctly.
9417    lt_compile=`echo "$ac_compile" | $SED \
9418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9420    -e 's:$: $lt_compiler_flag:'`
9421    (eval echo "\"\$as_me:9421: $lt_compile\"" >&5)
9422    (eval "$lt_compile" 2>out/conftest.err)
9423    ac_status=$?
9424    cat out/conftest.err >&5
9425    echo "$as_me:9425: \$? = $ac_status" >&5
9426    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9427    then
9428      # The compiler can only warn and ignore the option if not recognized
9429      # So say no if there are warnings
9430      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9431      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9432      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9433        lt_cv_prog_compiler_c_o=yes
9434      fi
9435    fi
9436    chmod u+w . 2>&5
9437    $RM conftest*
9438    # SGI C++ compiler will create directory out/ii_files/ for
9439    # template instantiation
9440    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9441    $RM out/* && rmdir out
9442    cd ..
9443    $RM -r conftest
9444    $RM conftest*
9445
9446 fi
9447 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9448 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9449
9450
9451
9452
9453
9454
9455   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9457 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9458   $as_echo_n "(cached) " >&6
9459 else
9460   lt_cv_prog_compiler_c_o=no
9461    $RM -r conftest 2>/dev/null
9462    mkdir conftest
9463    cd conftest
9464    mkdir out
9465    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9466
9467    lt_compiler_flag="-o out/conftest2.$ac_objext"
9468    # Insert the option either (1) after the last *FLAGS variable, or
9469    # (2) before a word containing "conftest.", or (3) at the end.
9470    # Note that $ac_compile itself does not contain backslashes and begins
9471    # with a dollar sign (not a hyphen), so the echo should work correctly.
9472    lt_compile=`echo "$ac_compile" | $SED \
9473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9475    -e 's:$: $lt_compiler_flag:'`
9476    (eval echo "\"\$as_me:9476: $lt_compile\"" >&5)
9477    (eval "$lt_compile" 2>out/conftest.err)
9478    ac_status=$?
9479    cat out/conftest.err >&5
9480    echo "$as_me:9480: \$? = $ac_status" >&5
9481    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9482    then
9483      # The compiler can only warn and ignore the option if not recognized
9484      # So say no if there are warnings
9485      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9486      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9487      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9488        lt_cv_prog_compiler_c_o=yes
9489      fi
9490    fi
9491    chmod u+w . 2>&5
9492    $RM conftest*
9493    # SGI C++ compiler will create directory out/ii_files/ for
9494    # template instantiation
9495    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9496    $RM out/* && rmdir out
9497    cd ..
9498    $RM -r conftest
9499    $RM conftest*
9500
9501 fi
9502 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9503 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9504
9505
9506
9507
9508 hard_links="nottested"
9509 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9510   # do not overwrite the value of need_locks provided by the user
9511   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9512 $as_echo_n "checking if we can lock with hard links... " >&6; }
9513   hard_links=yes
9514   $RM conftest*
9515   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9516   touch conftest.a
9517   ln conftest.a conftest.b 2>&5 || hard_links=no
9518   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9519   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9520 $as_echo "$hard_links" >&6; }
9521   if test "$hard_links" = no; then
9522     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9523 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9524     need_locks=warn
9525   fi
9526 else
9527   need_locks=no
9528 fi
9529
9530
9531
9532
9533
9534
9535   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9537
9538   runpath_var=
9539   allow_undefined_flag=
9540   always_export_symbols=no
9541   archive_cmds=
9542   archive_expsym_cmds=
9543   compiler_needs_object=no
9544   enable_shared_with_static_runtimes=no
9545   export_dynamic_flag_spec=
9546   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9547   hardcode_automatic=no
9548   hardcode_direct=no
9549   hardcode_direct_absolute=no
9550   hardcode_libdir_flag_spec=
9551   hardcode_libdir_flag_spec_ld=
9552   hardcode_libdir_separator=
9553   hardcode_minus_L=no
9554   hardcode_shlibpath_var=unsupported
9555   inherit_rpath=no
9556   link_all_deplibs=unknown
9557   module_cmds=
9558   module_expsym_cmds=
9559   old_archive_from_new_cmds=
9560   old_archive_from_expsyms_cmds=
9561   thread_safe_flag_spec=
9562   whole_archive_flag_spec=
9563   # include_expsyms should be a list of space-separated symbols to be *always*
9564   # included in the symbol list
9565   include_expsyms=
9566   # exclude_expsyms can be an extended regexp of symbols to exclude
9567   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9568   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9569   # as well as any symbol that contains `d'.
9570   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9571   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9572   # platforms (ab)use it in PIC code, but their linkers get confused if
9573   # the symbol is explicitly referenced.  Since portable code cannot
9574   # rely on this symbol name, it's probably fine to never include it in
9575   # preloaded symbol tables.
9576   # Exclude shared library initialization/finalization symbols.
9577   extract_expsyms_cmds=
9578
9579   case $host_os in
9580   cygwin* | mingw* | pw32* | cegcc*)
9581     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9582     # When not using gcc, we currently assume that we are using
9583     # Microsoft Visual C++.
9584     if test "$GCC" != yes; then
9585       with_gnu_ld=no
9586     fi
9587     ;;
9588   interix*)
9589     # we just hope/assume this is gcc and not c89 (= MSVC++)
9590     with_gnu_ld=yes
9591     ;;
9592   openbsd*)
9593     with_gnu_ld=no
9594     ;;
9595   esac
9596
9597   ld_shlibs=yes
9598   if test "$with_gnu_ld" = yes; then
9599     # If archive_cmds runs LD, not CC, wlarc should be empty
9600     wlarc='${wl}'
9601
9602     # Set some defaults for GNU ld with shared library support. These
9603     # are reset later if shared libraries are not supported. Putting them
9604     # here allows them to be overridden if necessary.
9605     runpath_var=LD_RUN_PATH
9606     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607     export_dynamic_flag_spec='${wl}--export-dynamic'
9608     # ancient GNU ld didn't support --whole-archive et. al.
9609     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9610       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9611     else
9612       whole_archive_flag_spec=
9613     fi
9614     supports_anon_versioning=no
9615     case `$LD -v 2>&1` in
9616       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9617       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9618       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9619       *\ 2.11.*) ;; # other 2.11 versions
9620       *) supports_anon_versioning=yes ;;
9621     esac
9622
9623     # See if GNU ld supports shared libraries.
9624     case $host_os in
9625     aix[3-9]*)
9626       # On AIX/PPC, the GNU linker is very broken
9627       if test "$host_cpu" != ia64; then
9628         ld_shlibs=no
9629         cat <<_LT_EOF 1>&2
9630
9631 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9632 *** to be unable to reliably create shared libraries on AIX.
9633 *** Therefore, libtool is disabling shared libraries support.  If you
9634 *** really care for shared libraries, you may want to modify your PATH
9635 *** so that a non-GNU linker is found, and then restart.
9636
9637 _LT_EOF
9638       fi
9639       ;;
9640
9641     amigaos*)
9642       case $host_cpu in
9643       powerpc)
9644             # see comment about AmigaOS4 .so support
9645             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646             archive_expsym_cmds=''
9647         ;;
9648       m68k)
9649             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)'
9650             hardcode_libdir_flag_spec='-L$libdir'
9651             hardcode_minus_L=yes
9652         ;;
9653       esac
9654       ;;
9655
9656     beos*)
9657       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9658         allow_undefined_flag=unsupported
9659         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9660         # support --undefined.  This deserves some investigation.  FIXME
9661         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9662       else
9663         ld_shlibs=no
9664       fi
9665       ;;
9666
9667     cygwin* | mingw* | pw32* | cegcc*)
9668       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9669       # as there is no search path for DLLs.
9670       hardcode_libdir_flag_spec='-L$libdir'
9671       allow_undefined_flag=unsupported
9672       always_export_symbols=no
9673       enable_shared_with_static_runtimes=yes
9674       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9675
9676       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9677         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9678         # If the export-symbols file already is a .def file (1st line
9679         # is EXPORTS), use it as is; otherwise, prepend...
9680         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9681           cp $export_symbols $output_objdir/$soname.def;
9682         else
9683           echo EXPORTS > $output_objdir/$soname.def;
9684           cat $export_symbols >> $output_objdir/$soname.def;
9685         fi~
9686         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9687       else
9688         ld_shlibs=no
9689       fi
9690       ;;
9691
9692     interix[3-9]*)
9693       hardcode_direct=no
9694       hardcode_shlibpath_var=no
9695       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9696       export_dynamic_flag_spec='${wl}-E'
9697       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9698       # Instead, shared libraries are loaded at an image base (0x10000000 by
9699       # default) and relocated if they conflict, which is a slow very memory
9700       # consuming and fragmenting process.  To avoid this, we pick a random,
9701       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9702       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9703       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9704       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'
9705       ;;
9706
9707     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9708       tmp_diet=no
9709       if test "$host_os" = linux-dietlibc; then
9710         case $cc_basename in
9711           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9712         esac
9713       fi
9714       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9715          && test "$tmp_diet" = no
9716       then
9717         tmp_addflag=
9718         tmp_sharedflag='-shared'
9719         case $cc_basename,$host_cpu in
9720         pgcc*)                          # Portland Group C compiler
9721           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'
9722           tmp_addflag=' $pic_flag'
9723           ;;
9724         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9725           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'
9726           tmp_addflag=' $pic_flag -Mnomain' ;;
9727         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9728           tmp_addflag=' -i_dynamic' ;;
9729         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9730           tmp_addflag=' -i_dynamic -nofor_main' ;;
9731         ifc* | ifort*)                  # Intel Fortran compiler
9732           tmp_addflag=' -nofor_main' ;;
9733         lf95*)                          # Lahey Fortran 8.1
9734           whole_archive_flag_spec=
9735           tmp_sharedflag='--shared' ;;
9736         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9737           tmp_sharedflag='-qmkshrobj'
9738           tmp_addflag= ;;
9739         esac
9740         case `$CC -V 2>&1 | sed 5q` in
9741         *Sun\ C*)                       # Sun C 5.9
9742           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'
9743           compiler_needs_object=yes
9744           tmp_sharedflag='-G' ;;
9745         *Sun\ F*)                       # Sun Fortran 8.3
9746           tmp_sharedflag='-G' ;;
9747         esac
9748         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749
9750         if test "x$supports_anon_versioning" = xyes; then
9751           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9752             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9753             echo "local: *; };" >> $output_objdir/$libname.ver~
9754             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9755         fi
9756
9757         case $cc_basename in
9758         xlf*)
9759           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9760           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9761           hardcode_libdir_flag_spec=
9762           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9763           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9764           if test "x$supports_anon_versioning" = xyes; then
9765             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9766               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9767               echo "local: *; };" >> $output_objdir/$libname.ver~
9768               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9769           fi
9770           ;;
9771         esac
9772       else
9773         ld_shlibs=no
9774       fi
9775       ;;
9776
9777     netbsd*)
9778       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9779         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9780         wlarc=
9781       else
9782         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9784       fi
9785       ;;
9786
9787     solaris*)
9788       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9789         ld_shlibs=no
9790         cat <<_LT_EOF 1>&2
9791
9792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9793 *** create shared libraries on Solaris systems.  Therefore, libtool
9794 *** is disabling shared libraries support.  We urge you to upgrade GNU
9795 *** binutils to release 2.9.1 or newer.  Another option is to modify
9796 *** your PATH or compiler configuration so that the native linker is
9797 *** used, and then restart.
9798
9799 _LT_EOF
9800       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9803       else
9804         ld_shlibs=no
9805       fi
9806       ;;
9807
9808     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9809       case `$LD -v 2>&1` in
9810         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9811         ld_shlibs=no
9812         cat <<_LT_EOF 1>&2
9813
9814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9815 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9816 *** is disabling shared libraries support.  We urge you to upgrade GNU
9817 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9818 *** your PATH or compiler configuration so that the native linker is
9819 *** used, and then restart.
9820
9821 _LT_EOF
9822         ;;
9823         *)
9824           # For security reasons, it is highly recommended that you always
9825           # use absolute paths for naming shared libraries, and exclude the
9826           # DT_RUNPATH tag from executables and libraries.  But doing so
9827           # requires that you compile everything twice, which is a pain.
9828           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9829             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9832           else
9833             ld_shlibs=no
9834           fi
9835         ;;
9836       esac
9837       ;;
9838
9839     sunos4*)
9840       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9841       wlarc=
9842       hardcode_direct=yes
9843       hardcode_shlibpath_var=no
9844       ;;
9845
9846     *)
9847       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9850       else
9851         ld_shlibs=no
9852       fi
9853       ;;
9854     esac
9855
9856     if test "$ld_shlibs" = no; then
9857       runpath_var=
9858       hardcode_libdir_flag_spec=
9859       export_dynamic_flag_spec=
9860       whole_archive_flag_spec=
9861     fi
9862   else
9863     # PORTME fill in a description of your system's linker (not GNU ld)
9864     case $host_os in
9865     aix3*)
9866       allow_undefined_flag=unsupported
9867       always_export_symbols=yes
9868       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'
9869       # Note: this linker hardcodes the directories in LIBPATH if there
9870       # are no directories specified by -L.
9871       hardcode_minus_L=yes
9872       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9873         # Neither direct hardcoding nor static linking is supported with a
9874         # broken collect2.
9875         hardcode_direct=unsupported
9876       fi
9877       ;;
9878
9879     aix[4-9]*)
9880       if test "$host_cpu" = ia64; then
9881         # On IA64, the linker does run time linking by default, so we don't
9882         # have to do anything special.
9883         aix_use_runtimelinking=no
9884         exp_sym_flag='-Bexport'
9885         no_entry_flag=""
9886       else
9887         # If we're using GNU nm, then we don't want the "-C" option.
9888         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9889         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9890           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'
9891         else
9892           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'
9893         fi
9894         aix_use_runtimelinking=no
9895
9896         # Test if we are trying to use run time linking or normal
9897         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9898         # need to do runtime linking.
9899         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9900           for ld_flag in $LDFLAGS; do
9901           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9902             aix_use_runtimelinking=yes
9903             break
9904           fi
9905           done
9906           ;;
9907         esac
9908
9909         exp_sym_flag='-bexport'
9910         no_entry_flag='-bnoentry'
9911       fi
9912
9913       # When large executables or shared objects are built, AIX ld can
9914       # have problems creating the table of contents.  If linking a library
9915       # or program results in "error TOC overflow" add -mminimal-toc to
9916       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9917       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9918
9919       archive_cmds=''
9920       hardcode_direct=yes
9921       hardcode_direct_absolute=yes
9922       hardcode_libdir_separator=':'
9923       link_all_deplibs=yes
9924       file_list_spec='${wl}-f,'
9925
9926       if test "$GCC" = yes; then
9927         case $host_os in aix4.[012]|aix4.[012].*)
9928         # We only want to do this on AIX 4.2 and lower, the check
9929         # below for broken collect2 doesn't work under 4.3+
9930           collect2name=`${CC} -print-prog-name=collect2`
9931           if test -f "$collect2name" &&
9932            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9933           then
9934           # We have reworked collect2
9935           :
9936           else
9937           # We have old collect2
9938           hardcode_direct=unsupported
9939           # It fails to find uninstalled libraries when the uninstalled
9940           # path is not listed in the libpath.  Setting hardcode_minus_L
9941           # to unsupported forces relinking
9942           hardcode_minus_L=yes
9943           hardcode_libdir_flag_spec='-L$libdir'
9944           hardcode_libdir_separator=
9945           fi
9946           ;;
9947         esac
9948         shared_flag='-shared'
9949         if test "$aix_use_runtimelinking" = yes; then
9950           shared_flag="$shared_flag "'${wl}-G'
9951         fi
9952       else
9953         # not using gcc
9954         if test "$host_cpu" = ia64; then
9955         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9956         # chokes on -Wl,-G. The following line is correct:
9957           shared_flag='-G'
9958         else
9959           if test "$aix_use_runtimelinking" = yes; then
9960             shared_flag='${wl}-G'
9961           else
9962             shared_flag='${wl}-bM:SRE'
9963           fi
9964         fi
9965       fi
9966
9967       export_dynamic_flag_spec='${wl}-bexpall'
9968       # It seems that -bexpall does not export symbols beginning with
9969       # underscore (_), so it is better to generate a list of symbols to export.
9970       always_export_symbols=yes
9971       if test "$aix_use_runtimelinking" = yes; then
9972         # Warning - without using the other runtime loading flags (-brtl),
9973         # -berok will link without error, but may produce a broken library.
9974         allow_undefined_flag='-berok'
9975         # Determine the default libpath from the value encoded in an
9976         # empty executable.
9977         cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 int
9985 main ()
9986 {
9987
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9994 case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000   (eval "$ac_link") 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } && {
10007          test -z "$ac_c_werror_flag" ||
10008          test ! -s conftest.err
10009        } && test -s conftest$ac_exeext && {
10010          test "$cross_compiling" = yes ||
10011          $as_test_x conftest$ac_exeext
10012        }; then
10013
10014 lt_aix_libpath_sed='
10015     /Import File Strings/,/^$/ {
10016         /^0/ {
10017             s/^0  *\(.*\)$/\1/
10018             p
10019         }
10020     }'
10021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10022 # Check for a 64-bit object if we didn't find anything.
10023 if test -z "$aix_libpath"; then
10024   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10025 fi
10026 else
10027   $as_echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030
10031 fi
10032
10033 rm -rf conftest.dSYM
10034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035       conftest$ac_exeext conftest.$ac_ext
10036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10037
10038         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10039         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"
10040       else
10041         if test "$host_cpu" = ia64; then
10042           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10043           allow_undefined_flag="-z nodefs"
10044           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"
10045         else
10046          # Determine the default libpath from the value encoded in an
10047          # empty executable.
10048          cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h.  */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h.  */
10054
10055 int
10056 main ()
10057 {
10058
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067   *) ac_try_echo=$ac_try;;
10068 esac
10069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070 $as_echo "$ac_try_echo") >&5
10071   (eval "$ac_link") 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } && {
10078          test -z "$ac_c_werror_flag" ||
10079          test ! -s conftest.err
10080        } && test -s conftest$ac_exeext && {
10081          test "$cross_compiling" = yes ||
10082          $as_test_x conftest$ac_exeext
10083        }; then
10084
10085 lt_aix_libpath_sed='
10086     /Import File Strings/,/^$/ {
10087         /^0/ {
10088             s/^0  *\(.*\)$/\1/
10089             p
10090         }
10091     }'
10092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10093 # Check for a 64-bit object if we didn't find anything.
10094 if test -z "$aix_libpath"; then
10095   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10096 fi
10097 else
10098   $as_echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101
10102 fi
10103
10104 rm -rf conftest.dSYM
10105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10106       conftest$ac_exeext conftest.$ac_ext
10107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10108
10109          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10110           # Warning - without using the other run time loading flags,
10111           # -berok will link without error, but may produce a broken library.
10112           no_undefined_flag=' ${wl}-bernotok'
10113           allow_undefined_flag=' ${wl}-berok'
10114           # Exported symbols can be pulled into shared objects from archives
10115           whole_archive_flag_spec='$convenience'
10116           archive_cmds_need_lc=yes
10117           # This is similar to how AIX traditionally builds its shared libraries.
10118           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'
10119         fi
10120       fi
10121       ;;
10122
10123     amigaos*)
10124       case $host_cpu in
10125       powerpc)
10126             # see comment about AmigaOS4 .so support
10127             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128             archive_expsym_cmds=''
10129         ;;
10130       m68k)
10131             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)'
10132             hardcode_libdir_flag_spec='-L$libdir'
10133             hardcode_minus_L=yes
10134         ;;
10135       esac
10136       ;;
10137
10138     bsdi[45]*)
10139       export_dynamic_flag_spec=-rdynamic
10140       ;;
10141
10142     cygwin* | mingw* | pw32* | cegcc*)
10143       # When not using gcc, we currently assume that we are using
10144       # Microsoft Visual C++.
10145       # hardcode_libdir_flag_spec is actually meaningless, as there is
10146       # no search path for DLLs.
10147       hardcode_libdir_flag_spec=' '
10148       allow_undefined_flag=unsupported
10149       # Tell ltmain to make .lib files, not .a files.
10150       libext=lib
10151       # Tell ltmain to make .dll files, not .so files.
10152       shrext_cmds=".dll"
10153       # FIXME: Setting linknames here is a bad hack.
10154       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10155       # The linker will automatically build a .lib file if we build a DLL.
10156       old_archive_from_new_cmds='true'
10157       # FIXME: Should let the user specify the lib program.
10158       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10159       fix_srcfile_path='`cygpath -w "$srcfile"`'
10160       enable_shared_with_static_runtimes=yes
10161       ;;
10162
10163     darwin* | rhapsody*)
10164
10165
10166   archive_cmds_need_lc=no
10167   hardcode_direct=no
10168   hardcode_automatic=yes
10169   hardcode_shlibpath_var=unsupported
10170   whole_archive_flag_spec=''
10171   link_all_deplibs=yes
10172   allow_undefined_flag="$_lt_dar_allow_undefined"
10173   case $cc_basename in
10174      ifort*) _lt_dar_can_shared=yes ;;
10175      *) _lt_dar_can_shared=$GCC ;;
10176   esac
10177   if test "$_lt_dar_can_shared" = "yes"; then
10178     output_verbose_link_cmd=echo
10179     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10180     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10181     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}"
10182     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}"
10183
10184   else
10185   ld_shlibs=no
10186   fi
10187
10188       ;;
10189
10190     dgux*)
10191       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192       hardcode_libdir_flag_spec='-L$libdir'
10193       hardcode_shlibpath_var=no
10194       ;;
10195
10196     freebsd1*)
10197       ld_shlibs=no
10198       ;;
10199
10200     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10201     # support.  Future versions do this automatically, but an explicit c++rt0.o
10202     # does not break anything, and helps significantly (at the cost of a little
10203     # extra space).
10204     freebsd2.2*)
10205       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10206       hardcode_libdir_flag_spec='-R$libdir'
10207       hardcode_direct=yes
10208       hardcode_shlibpath_var=no
10209       ;;
10210
10211     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10212     freebsd2*)
10213       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10214       hardcode_direct=yes
10215       hardcode_minus_L=yes
10216       hardcode_shlibpath_var=no
10217       ;;
10218
10219     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10220     freebsd* | dragonfly*)
10221       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10222       hardcode_libdir_flag_spec='-R$libdir'
10223       hardcode_direct=yes
10224       hardcode_shlibpath_var=no
10225       ;;
10226
10227     hpux9*)
10228       if test "$GCC" = yes; then
10229         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'
10230       else
10231         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'
10232       fi
10233       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10234       hardcode_libdir_separator=:
10235       hardcode_direct=yes
10236
10237       # hardcode_minus_L: Not really in the search PATH,
10238       # but as the default location of the library.
10239       hardcode_minus_L=yes
10240       export_dynamic_flag_spec='${wl}-E'
10241       ;;
10242
10243     hpux10*)
10244       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10245         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10246       else
10247         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10248       fi
10249       if test "$with_gnu_ld" = no; then
10250         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10251         hardcode_libdir_flag_spec_ld='+b $libdir'
10252         hardcode_libdir_separator=:
10253         hardcode_direct=yes
10254         hardcode_direct_absolute=yes
10255         export_dynamic_flag_spec='${wl}-E'
10256         # hardcode_minus_L: Not really in the search PATH,
10257         # but as the default location of the library.
10258         hardcode_minus_L=yes
10259       fi
10260       ;;
10261
10262     hpux11*)
10263       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10264         case $host_cpu in
10265         hppa*64*)
10266           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10267           ;;
10268         ia64*)
10269           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10270           ;;
10271         *)
10272           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10273           ;;
10274         esac
10275       else
10276         case $host_cpu in
10277         hppa*64*)
10278           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10279           ;;
10280         ia64*)
10281           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10282           ;;
10283         *)
10284           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10285           ;;
10286         esac
10287       fi
10288       if test "$with_gnu_ld" = no; then
10289         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10290         hardcode_libdir_separator=:
10291
10292         case $host_cpu in
10293         hppa*64*|ia64*)
10294           hardcode_direct=no
10295           hardcode_shlibpath_var=no
10296           ;;
10297         *)
10298           hardcode_direct=yes
10299           hardcode_direct_absolute=yes
10300           export_dynamic_flag_spec='${wl}-E'
10301
10302           # hardcode_minus_L: Not really in the search PATH,
10303           # but as the default location of the library.
10304           hardcode_minus_L=yes
10305           ;;
10306         esac
10307       fi
10308       ;;
10309
10310     irix5* | irix6* | nonstopux*)
10311       if test "$GCC" = yes; then
10312         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'
10313         # Try to use the -exported_symbol ld option, if it does not
10314         # work, assume that -exports_file does not work either and
10315         # implicitly export all symbols.
10316         save_LDFLAGS="$LDFLAGS"
10317         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10318         cat >conftest.$ac_ext <<_ACEOF
10319 int foo(void) {}
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (ac_try="$ac_link"
10323 case "(($ac_try" in
10324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325   *) ac_try_echo=$ac_try;;
10326 esac
10327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10328 $as_echo "$ac_try_echo") >&5
10329   (eval "$ac_link") 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } && {
10336          test -z "$ac_c_werror_flag" ||
10337          test ! -s conftest.err
10338        } && test -s conftest$ac_exeext && {
10339          test "$cross_compiling" = yes ||
10340          $as_test_x conftest$ac_exeext
10341        }; then
10342   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'
10343
10344 else
10345   $as_echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348
10349 fi
10350
10351 rm -rf conftest.dSYM
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353       conftest$ac_exeext conftest.$ac_ext
10354         LDFLAGS="$save_LDFLAGS"
10355       else
10356         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'
10357         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'
10358       fi
10359       archive_cmds_need_lc='no'
10360       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10361       hardcode_libdir_separator=:
10362       inherit_rpath=yes
10363       link_all_deplibs=yes
10364       ;;
10365
10366     netbsd*)
10367       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10368         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10369       else
10370         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10371       fi
10372       hardcode_libdir_flag_spec='-R$libdir'
10373       hardcode_direct=yes
10374       hardcode_shlibpath_var=no
10375       ;;
10376
10377     newsos6)
10378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379       hardcode_direct=yes
10380       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10381       hardcode_libdir_separator=:
10382       hardcode_shlibpath_var=no
10383       ;;
10384
10385     *nto* | *qnx*)
10386       ;;
10387
10388     openbsd*)
10389       if test -f /usr/libexec/ld.so; then
10390         hardcode_direct=yes
10391         hardcode_shlibpath_var=no
10392         hardcode_direct_absolute=yes
10393         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10394           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10395           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10396           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10397           export_dynamic_flag_spec='${wl}-E'
10398         else
10399           case $host_os in
10400            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10401              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10402              hardcode_libdir_flag_spec='-R$libdir'
10403              ;;
10404            *)
10405              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10407              ;;
10408           esac
10409         fi
10410       else
10411         ld_shlibs=no
10412       fi
10413       ;;
10414
10415     os2*)
10416       hardcode_libdir_flag_spec='-L$libdir'
10417       hardcode_minus_L=yes
10418       allow_undefined_flag=unsupported
10419       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'
10420       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10421       ;;
10422
10423     osf3*)
10424       if test "$GCC" = yes; then
10425         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10426         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'
10427       else
10428         allow_undefined_flag=' -expect_unresolved \*'
10429         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'
10430       fi
10431       archive_cmds_need_lc='no'
10432       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10433       hardcode_libdir_separator=:
10434       ;;
10435
10436     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10437       if test "$GCC" = yes; then
10438         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10439         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'
10440         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10441       else
10442         allow_undefined_flag=' -expect_unresolved \*'
10443         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'
10444         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~
10445         $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'
10446
10447         # Both c and cxx compiler support -rpath directly
10448         hardcode_libdir_flag_spec='-rpath $libdir'
10449       fi
10450       archive_cmds_need_lc='no'
10451       hardcode_libdir_separator=:
10452       ;;
10453
10454     solaris*)
10455       no_undefined_flag=' -z defs'
10456       if test "$GCC" = yes; then
10457         wlarc='${wl}'
10458         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10459         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10460           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10461       else
10462         case `$CC -V 2>&1` in
10463         *"Compilers 5.0"*)
10464           wlarc=''
10465           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10467           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10468           ;;
10469         *)
10470           wlarc='${wl}'
10471           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10472           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10473           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10474           ;;
10475         esac
10476       fi
10477       hardcode_libdir_flag_spec='-R$libdir'
10478       hardcode_shlibpath_var=no
10479       case $host_os in
10480       solaris2.[0-5] | solaris2.[0-5].*) ;;
10481       *)
10482         # The compiler driver will combine and reorder linker options,
10483         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10484         # but is careful enough not to reorder.
10485         # Supported since Solaris 2.6 (maybe 2.5.1?)
10486         if test "$GCC" = yes; then
10487           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10488         else
10489           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10490         fi
10491         ;;
10492       esac
10493       link_all_deplibs=yes
10494       ;;
10495
10496     sunos4*)
10497       if test "x$host_vendor" = xsequent; then
10498         # Use $CC to link under sequent, because it throws in some extra .o
10499         # files that make .init and .fini sections work.
10500         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10501       else
10502         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10503       fi
10504       hardcode_libdir_flag_spec='-L$libdir'
10505       hardcode_direct=yes
10506       hardcode_minus_L=yes
10507       hardcode_shlibpath_var=no
10508       ;;
10509
10510     sysv4)
10511       case $host_vendor in
10512         sni)
10513           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514           hardcode_direct=yes # is this really true???
10515         ;;
10516         siemens)
10517           ## LD is ld it makes a PLAMLIB
10518           ## CC just makes a GrossModule.
10519           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10520           reload_cmds='$CC -r -o $output$reload_objs'
10521           hardcode_direct=no
10522         ;;
10523         motorola)
10524           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10526         ;;
10527       esac
10528       runpath_var='LD_RUN_PATH'
10529       hardcode_shlibpath_var=no
10530       ;;
10531
10532     sysv4.3*)
10533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534       hardcode_shlibpath_var=no
10535       export_dynamic_flag_spec='-Bexport'
10536       ;;
10537
10538     sysv4*MP*)
10539       if test -d /usr/nec; then
10540         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541         hardcode_shlibpath_var=no
10542         runpath_var=LD_RUN_PATH
10543         hardcode_runpath_var=yes
10544         ld_shlibs=yes
10545       fi
10546       ;;
10547
10548     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10549       no_undefined_flag='${wl}-z,text'
10550       archive_cmds_need_lc=no
10551       hardcode_shlibpath_var=no
10552       runpath_var='LD_RUN_PATH'
10553
10554       if test "$GCC" = yes; then
10555         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10557       else
10558         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560       fi
10561       ;;
10562
10563     sysv5* | sco3.2v5* | sco5v6*)
10564       # Note: We can NOT use -z defs as we might desire, because we do not
10565       # link with -lc, and that would cause any symbols used from libc to
10566       # always be unresolved, which means just about no library would
10567       # ever link correctly.  If we're not using GNU ld we use -z text
10568       # though, which does catch some bad symbols but isn't as heavy-handed
10569       # as -z defs.
10570       no_undefined_flag='${wl}-z,text'
10571       allow_undefined_flag='${wl}-z,nodefs'
10572       archive_cmds_need_lc=no
10573       hardcode_shlibpath_var=no
10574       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10575       hardcode_libdir_separator=':'
10576       link_all_deplibs=yes
10577       export_dynamic_flag_spec='${wl}-Bexport'
10578       runpath_var='LD_RUN_PATH'
10579
10580       if test "$GCC" = yes; then
10581         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583       else
10584         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586       fi
10587       ;;
10588
10589     uts4*)
10590       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591       hardcode_libdir_flag_spec='-L$libdir'
10592       hardcode_shlibpath_var=no
10593       ;;
10594
10595     *)
10596       ld_shlibs=no
10597       ;;
10598     esac
10599
10600     if test x$host_vendor = xsni; then
10601       case $host in
10602       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10603         export_dynamic_flag_spec='${wl}-Blargedynsym'
10604         ;;
10605       esac
10606     fi
10607   fi
10608
10609 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10610 $as_echo "$ld_shlibs" >&6; }
10611 test "$ld_shlibs" = no && can_build_shared=no
10612
10613 with_gnu_ld=$with_gnu_ld
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629 #
10630 # Do we need to explicitly link libc?
10631 #
10632 case "x$archive_cmds_need_lc" in
10633 x|xyes)
10634   # Assume -lc should be added
10635   archive_cmds_need_lc=yes
10636
10637   if test "$enable_shared" = yes && test "$GCC" = yes; then
10638     case $archive_cmds in
10639     *'~'*)
10640       # FIXME: we may have to deal with multi-command sequences.
10641       ;;
10642     '$CC '*)
10643       # Test whether the compiler implicitly links with -lc since on some
10644       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10645       # to ld, don't add -lc before -lgcc.
10646       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10647 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10648 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10649   $as_echo_n "(cached) " >&6
10650 else
10651   $RM conftest*
10652         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10653
10654         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655   (eval $ac_compile) 2>&5
10656   ac_status=$?
10657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); } 2>conftest.err; then
10659           soname=conftest
10660           lib=conftest
10661           libobjs=conftest.$ac_objext
10662           deplibs=
10663           wl=$lt_prog_compiler_wl
10664           pic_flag=$lt_prog_compiler_pic
10665           compiler_flags=-v
10666           linker_flags=-v
10667           verstring=
10668           output_objdir=.
10669           libname=conftest
10670           lt_save_allow_undefined_flag=$allow_undefined_flag
10671           allow_undefined_flag=
10672           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10673   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10674   ac_status=$?
10675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }
10677           then
10678             lt_cv_archive_cmds_need_lc=no
10679           else
10680             lt_cv_archive_cmds_need_lc=yes
10681           fi
10682           allow_undefined_flag=$lt_save_allow_undefined_flag
10683         else
10684           cat conftest.err 1>&5
10685         fi
10686         $RM conftest*
10687
10688 fi
10689 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10690 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10691       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10692       ;;
10693     esac
10694   fi
10695   ;;
10696 esac
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
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10855 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10856
10857 if test "$GCC" = yes; then
10858   case $host_os in
10859     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10860     *) lt_awk_arg="/^libraries:/" ;;
10861   esac
10862   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10863   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10864     # if the path contains ";" then we assume it to be the separator
10865     # otherwise default to the standard path separator (i.e. ":") - it is
10866     # assumed that no part of a normal pathname contains ";" but that should
10867     # okay in the real world where ";" in dirpaths is itself problematic.
10868     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10869   else
10870     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10871   fi
10872   # Ok, now we have the path, separated by spaces, we can step through it
10873   # and add multilib dir if necessary.
10874   lt_tmp_lt_search_path_spec=
10875   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10876   for lt_sys_path in $lt_search_path_spec; do
10877     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10878       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10879     else
10880       test -d "$lt_sys_path" && \
10881         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10882     fi
10883   done
10884   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10885 BEGIN {RS=" "; FS="/|\n";} {
10886   lt_foo="";
10887   lt_count=0;
10888   for (lt_i = NF; lt_i > 0; lt_i--) {
10889     if ($lt_i != "" && $lt_i != ".") {
10890       if ($lt_i == "..") {
10891         lt_count++;
10892       } else {
10893         if (lt_count == 0) {
10894           lt_foo="/" $lt_i lt_foo;
10895         } else {
10896           lt_count--;
10897         }
10898       }
10899     }
10900   }
10901   if (lt_foo != "") { lt_freq[lt_foo]++; }
10902   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10903 }'`
10904   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10905 else
10906   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10907 fi
10908 library_names_spec=
10909 libname_spec='lib$name'
10910 soname_spec=
10911 shrext_cmds=".so"
10912 postinstall_cmds=
10913 postuninstall_cmds=
10914 finish_cmds=
10915 finish_eval=
10916 shlibpath_var=
10917 shlibpath_overrides_runpath=unknown
10918 version_type=none
10919 dynamic_linker="$host_os ld.so"
10920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10921 need_lib_prefix=unknown
10922 hardcode_into_libs=no
10923
10924 # when you set need_version to no, make sure it does not cause -set_version
10925 # flags to be left without arguments
10926 need_version=unknown
10927
10928 case $host_os in
10929 aix3*)
10930   version_type=linux
10931   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10932   shlibpath_var=LIBPATH
10933
10934   # AIX 3 has no versioning support, so we append a major version to the name.
10935   soname_spec='${libname}${release}${shared_ext}$major'
10936   ;;
10937
10938 aix[4-9]*)
10939   version_type=linux
10940   need_lib_prefix=no
10941   need_version=no
10942   hardcode_into_libs=yes
10943   if test "$host_cpu" = ia64; then
10944     # AIX 5 supports IA64
10945     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10946     shlibpath_var=LD_LIBRARY_PATH
10947   else
10948     # With GCC up to 2.95.x, collect2 would create an import file
10949     # for dependence libraries.  The import file would start with
10950     # the line `#! .'.  This would cause the generated library to
10951     # depend on `.', always an invalid library.  This was fixed in
10952     # development snapshots of GCC prior to 3.0.
10953     case $host_os in
10954       aix4 | aix4.[01] | aix4.[01].*)
10955       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10956            echo ' yes '
10957            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10958         :
10959       else
10960         can_build_shared=no
10961       fi
10962       ;;
10963     esac
10964     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10965     # soname into executable. Probably we can add versioning support to
10966     # collect2, so additional links can be useful in future.
10967     if test "$aix_use_runtimelinking" = yes; then
10968       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10969       # instead of lib<name>.a to let people know that these are not
10970       # typical AIX shared libraries.
10971       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972     else
10973       # We preserve .a as extension for shared libraries through AIX4.2
10974       # and later when we are not doing run time linking.
10975       library_names_spec='${libname}${release}.a $libname.a'
10976       soname_spec='${libname}${release}${shared_ext}$major'
10977     fi
10978     shlibpath_var=LIBPATH
10979   fi
10980   ;;
10981
10982 amigaos*)
10983   case $host_cpu in
10984   powerpc)
10985     # Since July 2007 AmigaOS4 officially supports .so libraries.
10986     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988     ;;
10989   m68k)
10990     library_names_spec='$libname.ixlibrary $libname.a'
10991     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10992     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'
10993     ;;
10994   esac
10995   ;;
10996
10997 beos*)
10998   library_names_spec='${libname}${shared_ext}'
10999   dynamic_linker="$host_os ld.so"
11000   shlibpath_var=LIBRARY_PATH
11001   ;;
11002
11003 bsdi[45]*)
11004   version_type=linux
11005   need_version=no
11006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007   soname_spec='${libname}${release}${shared_ext}$major'
11008   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11009   shlibpath_var=LD_LIBRARY_PATH
11010   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11011   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11012   # the default ld.so.conf also contains /usr/contrib/lib and
11013   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11014   # libtool to hard-code these into programs
11015   ;;
11016
11017 cygwin* | mingw* | pw32* | cegcc*)
11018   version_type=windows
11019   shrext_cmds=".dll"
11020   need_version=no
11021   need_lib_prefix=no
11022
11023   case $GCC,$host_os in
11024   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11025     library_names_spec='$libname.dll.a'
11026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027     postinstall_cmds='base_file=`basename \${file}`~
11028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11029       dldir=$destdir/`dirname \$dlpath`~
11030       test -d \$dldir || mkdir -p \$dldir~
11031       $install_prog $dir/$dlname \$dldir/$dlname~
11032       chmod a+x \$dldir/$dlname~
11033       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11034         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11035       fi'
11036     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11037       dlpath=$dir/\$dldll~
11038        $RM \$dlpath'
11039     shlibpath_overrides_runpath=yes
11040
11041     case $host_os in
11042     cygwin*)
11043       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11044       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11046       ;;
11047     mingw* | cegcc*)
11048       # MinGW DLLs use traditional 'lib' prefix
11049       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11050       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11051       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11052         # It is most probably a Windows format PATH printed by
11053         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11054         # path with ; separators, and with drive letters. We can handle the
11055         # drive letters (cygwin fileutils understands them), so leave them,
11056         # especially as we might pass files found there to a mingw objdump,
11057         # which wouldn't understand a cygwinified path. Ahh.
11058         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11059       else
11060         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11061       fi
11062       ;;
11063     pw32*)
11064       # pw32 DLLs use 'pw' prefix rather than 'lib'
11065       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11066       ;;
11067     esac
11068     ;;
11069
11070   *)
11071     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11072     ;;
11073   esac
11074   dynamic_linker='Win32 ld.exe'
11075   # FIXME: first we should search . and the directory the executable is in
11076   shlibpath_var=PATH
11077   ;;
11078
11079 darwin* | rhapsody*)
11080   dynamic_linker="$host_os dyld"
11081   version_type=darwin
11082   need_lib_prefix=no
11083   need_version=no
11084   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11085   soname_spec='${libname}${release}${major}$shared_ext'
11086   shlibpath_overrides_runpath=yes
11087   shlibpath_var=DYLD_LIBRARY_PATH
11088   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11089
11090   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11091   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11092   ;;
11093
11094 dgux*)
11095   version_type=linux
11096   need_lib_prefix=no
11097   need_version=no
11098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11099   soname_spec='${libname}${release}${shared_ext}$major'
11100   shlibpath_var=LD_LIBRARY_PATH
11101   ;;
11102
11103 freebsd1*)
11104   dynamic_linker=no
11105   ;;
11106
11107 freebsd* | dragonfly*)
11108   # DragonFly does not have aout.  When/if they implement a new
11109   # versioning mechanism, adjust this.
11110   if test -x /usr/bin/objformat; then
11111     objformat=`/usr/bin/objformat`
11112   else
11113     case $host_os in
11114     freebsd[123]*) objformat=aout ;;
11115     *) objformat=elf ;;
11116     esac
11117   fi
11118   version_type=freebsd-$objformat
11119   case $version_type in
11120     freebsd-elf*)
11121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11122       need_version=no
11123       need_lib_prefix=no
11124       ;;
11125     freebsd-*)
11126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11127       need_version=yes
11128       ;;
11129   esac
11130   shlibpath_var=LD_LIBRARY_PATH
11131   case $host_os in
11132   freebsd2*)
11133     shlibpath_overrides_runpath=yes
11134     ;;
11135   freebsd3.[01]* | freebsdelf3.[01]*)
11136     shlibpath_overrides_runpath=yes
11137     hardcode_into_libs=yes
11138     ;;
11139   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11140   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11141     shlibpath_overrides_runpath=no
11142     hardcode_into_libs=yes
11143     ;;
11144   *) # from 4.6 on, and DragonFly
11145     shlibpath_overrides_runpath=yes
11146     hardcode_into_libs=yes
11147     ;;
11148   esac
11149   ;;
11150
11151 gnu*)
11152   version_type=linux
11153   need_lib_prefix=no
11154   need_version=no
11155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11156   soname_spec='${libname}${release}${shared_ext}$major'
11157   shlibpath_var=LD_LIBRARY_PATH
11158   hardcode_into_libs=yes
11159   ;;
11160
11161 hpux9* | hpux10* | hpux11*)
11162   # Give a soname corresponding to the major version so that dld.sl refuses to
11163   # link against other versions.
11164   version_type=sunos
11165   need_lib_prefix=no
11166   need_version=no
11167   case $host_cpu in
11168   ia64*)
11169     shrext_cmds='.so'
11170     hardcode_into_libs=yes
11171     dynamic_linker="$host_os dld.so"
11172     shlibpath_var=LD_LIBRARY_PATH
11173     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175     soname_spec='${libname}${release}${shared_ext}$major'
11176     if test "X$HPUX_IA64_MODE" = X32; then
11177       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11178     else
11179       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11180     fi
11181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11182     ;;
11183   hppa*64*)
11184     shrext_cmds='.sl'
11185     hardcode_into_libs=yes
11186     dynamic_linker="$host_os dld.sl"
11187     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190     soname_spec='${libname}${release}${shared_ext}$major'
11191     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11192     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11193     ;;
11194   *)
11195     shrext_cmds='.sl'
11196     dynamic_linker="$host_os dld.sl"
11197     shlibpath_var=SHLIB_PATH
11198     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200     soname_spec='${libname}${release}${shared_ext}$major'
11201     ;;
11202   esac
11203   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11204   postinstall_cmds='chmod 555 $lib'
11205   ;;
11206
11207 interix[3-9]*)
11208   version_type=linux
11209   need_lib_prefix=no
11210   need_version=no
11211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11212   soname_spec='${libname}${release}${shared_ext}$major'
11213   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   shlibpath_overrides_runpath=no
11216   hardcode_into_libs=yes
11217   ;;
11218
11219 irix5* | irix6* | nonstopux*)
11220   case $host_os in
11221     nonstopux*) version_type=nonstopux ;;
11222     *)
11223         if test "$lt_cv_prog_gnu_ld" = yes; then
11224                 version_type=linux
11225         else
11226                 version_type=irix
11227         fi ;;
11228   esac
11229   need_lib_prefix=no
11230   need_version=no
11231   soname_spec='${libname}${release}${shared_ext}$major'
11232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11233   case $host_os in
11234   irix5* | nonstopux*)
11235     libsuff= shlibsuff=
11236     ;;
11237   *)
11238     case $LD in # libtool.m4 will add one of these switches to LD
11239     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11240       libsuff= shlibsuff= libmagic=32-bit;;
11241     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11242       libsuff=32 shlibsuff=N32 libmagic=N32;;
11243     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11244       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11245     *) libsuff= shlibsuff= libmagic=never-match;;
11246     esac
11247     ;;
11248   esac
11249   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11250   shlibpath_overrides_runpath=no
11251   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11252   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11253   hardcode_into_libs=yes
11254   ;;
11255
11256 # No shared lib support for Linux oldld, aout, or coff.
11257 linux*oldld* | linux*aout* | linux*coff*)
11258   dynamic_linker=no
11259   ;;
11260
11261 # This must be Linux ELF.
11262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11263   version_type=linux
11264   need_lib_prefix=no
11265   need_version=no
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267   soname_spec='${libname}${release}${shared_ext}$major'
11268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11269   shlibpath_var=LD_LIBRARY_PATH
11270   shlibpath_overrides_runpath=no
11271
11272   # Some binutils ld are patched to set DT_RUNPATH
11273   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11274   $as_echo_n "(cached) " >&6
11275 else
11276   lt_cv_shlibpath_overrides_runpath=no
11277     save_LDFLAGS=$LDFLAGS
11278     save_libdir=$libdir
11279     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11280          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11281     cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287
11288 int
11289 main ()
11290 {
11291
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300   *) ac_try_echo=$ac_try;;
11301 esac
11302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11303 $as_echo "$ac_try_echo") >&5
11304   (eval "$ac_link") 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } && {
11311          test -z "$ac_c_werror_flag" ||
11312          test ! -s conftest.err
11313        } && test -s conftest$ac_exeext && {
11314          test "$cross_compiling" = yes ||
11315          $as_test_x conftest$ac_exeext
11316        }; then
11317   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11318   lt_cv_shlibpath_overrides_runpath=yes
11319 fi
11320
11321 else
11322   $as_echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325
11326 fi
11327
11328 rm -rf conftest.dSYM
11329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11330       conftest$ac_exeext conftest.$ac_ext
11331     LDFLAGS=$save_LDFLAGS
11332     libdir=$save_libdir
11333
11334 fi
11335
11336   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11337
11338   # This implies no fast_install, which is unacceptable.
11339   # Some rework will be needed to allow for fast_install
11340   # before this can be enabled.
11341   hardcode_into_libs=yes
11342
11343   # Append ld.so.conf contents to the search path
11344   if test -f /etc/ld.so.conf; then
11345     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' ' '`
11346     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11347   fi
11348
11349   # We used to test for /lib/ld.so.1 and disable shared libraries on
11350   # powerpc, because MkLinux only supported shared libraries with the
11351   # GNU dynamic linker.  Since this was broken with cross compilers,
11352   # most powerpc-linux boxes support dynamic linking these days and
11353   # people can always --disable-shared, the test was removed, and we
11354   # assume the GNU/Linux dynamic linker is in use.
11355   dynamic_linker='GNU/Linux ld.so'
11356   ;;
11357
11358 netbsd*)
11359   version_type=sunos
11360   need_lib_prefix=no
11361   need_version=no
11362   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11364     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11365     dynamic_linker='NetBSD (a.out) ld.so'
11366   else
11367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11368     soname_spec='${libname}${release}${shared_ext}$major'
11369     dynamic_linker='NetBSD ld.elf_so'
11370   fi
11371   shlibpath_var=LD_LIBRARY_PATH
11372   shlibpath_overrides_runpath=yes
11373   hardcode_into_libs=yes
11374   ;;
11375
11376 newsos6)
11377   version_type=linux
11378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379   shlibpath_var=LD_LIBRARY_PATH
11380   shlibpath_overrides_runpath=yes
11381   ;;
11382
11383 *nto* | *qnx*)
11384   version_type=qnx
11385   need_lib_prefix=no
11386   need_version=no
11387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388   soname_spec='${libname}${release}${shared_ext}$major'
11389   shlibpath_var=LD_LIBRARY_PATH
11390   shlibpath_overrides_runpath=no
11391   hardcode_into_libs=yes
11392   dynamic_linker='ldqnx.so'
11393   ;;
11394
11395 openbsd*)
11396   version_type=sunos
11397   sys_lib_dlsearch_path_spec="/usr/lib"
11398   need_lib_prefix=no
11399   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11400   case $host_os in
11401     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11402     *)                          need_version=no  ;;
11403   esac
11404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11405   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11406   shlibpath_var=LD_LIBRARY_PATH
11407   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11408     case $host_os in
11409       openbsd2.[89] | openbsd2.[89].*)
11410         shlibpath_overrides_runpath=no
11411         ;;
11412       *)
11413         shlibpath_overrides_runpath=yes
11414         ;;
11415       esac
11416   else
11417     shlibpath_overrides_runpath=yes
11418   fi
11419   ;;
11420
11421 os2*)
11422   libname_spec='$name'
11423   shrext_cmds=".dll"
11424   need_lib_prefix=no
11425   library_names_spec='$libname${shared_ext} $libname.a'
11426   dynamic_linker='OS/2 ld.exe'
11427   shlibpath_var=LIBPATH
11428   ;;
11429
11430 osf3* | osf4* | osf5*)
11431   version_type=osf
11432   need_lib_prefix=no
11433   need_version=no
11434   soname_spec='${libname}${release}${shared_ext}$major'
11435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436   shlibpath_var=LD_LIBRARY_PATH
11437   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11438   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11439   ;;
11440
11441 rdos*)
11442   dynamic_linker=no
11443   ;;
11444
11445 solaris*)
11446   version_type=linux
11447   need_lib_prefix=no
11448   need_version=no
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450   soname_spec='${libname}${release}${shared_ext}$major'
11451   shlibpath_var=LD_LIBRARY_PATH
11452   shlibpath_overrides_runpath=yes
11453   hardcode_into_libs=yes
11454   # ldd complains unless libraries are executable
11455   postinstall_cmds='chmod +x $lib'
11456   ;;
11457
11458 sunos4*)
11459   version_type=sunos
11460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11462   shlibpath_var=LD_LIBRARY_PATH
11463   shlibpath_overrides_runpath=yes
11464   if test "$with_gnu_ld" = yes; then
11465     need_lib_prefix=no
11466   fi
11467   need_version=yes
11468   ;;
11469
11470 sysv4 | sysv4.3*)
11471   version_type=linux
11472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11473   soname_spec='${libname}${release}${shared_ext}$major'
11474   shlibpath_var=LD_LIBRARY_PATH
11475   case $host_vendor in
11476     sni)
11477       shlibpath_overrides_runpath=no
11478       need_lib_prefix=no
11479       runpath_var=LD_RUN_PATH
11480       ;;
11481     siemens)
11482       need_lib_prefix=no
11483       ;;
11484     motorola)
11485       need_lib_prefix=no
11486       need_version=no
11487       shlibpath_overrides_runpath=no
11488       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11489       ;;
11490   esac
11491   ;;
11492
11493 sysv4*MP*)
11494   if test -d /usr/nec ;then
11495     version_type=linux
11496     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11497     soname_spec='$libname${shared_ext}.$major'
11498     shlibpath_var=LD_LIBRARY_PATH
11499   fi
11500   ;;
11501
11502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11503   version_type=freebsd-elf
11504   need_lib_prefix=no
11505   need_version=no
11506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507   soname_spec='${libname}${release}${shared_ext}$major'
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=yes
11510   hardcode_into_libs=yes
11511   if test "$with_gnu_ld" = yes; then
11512     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11513   else
11514     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11515     case $host_os in
11516       sco3.2v5*)
11517         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11518         ;;
11519     esac
11520   fi
11521   sys_lib_dlsearch_path_spec='/usr/lib'
11522   ;;
11523
11524 tpf*)
11525   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11526   version_type=linux
11527   need_lib_prefix=no
11528   need_version=no
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530   shlibpath_var=LD_LIBRARY_PATH
11531   shlibpath_overrides_runpath=no
11532   hardcode_into_libs=yes
11533   ;;
11534
11535 uts4*)
11536   version_type=linux
11537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538   soname_spec='${libname}${release}${shared_ext}$major'
11539   shlibpath_var=LD_LIBRARY_PATH
11540   ;;
11541
11542 *)
11543   dynamic_linker=no
11544   ;;
11545 esac
11546 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11547 $as_echo "$dynamic_linker" >&6; }
11548 test "$dynamic_linker" = no && can_build_shared=no
11549
11550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11551 if test "$GCC" = yes; then
11552   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11553 fi
11554
11555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11556   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11557 fi
11558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11559   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11560 fi
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
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11649 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11650 hardcode_action=
11651 if test -n "$hardcode_libdir_flag_spec" ||
11652    test -n "$runpath_var" ||
11653    test "X$hardcode_automatic" = "Xyes" ; then
11654
11655   # We can hardcode non-existent directories.
11656   if test "$hardcode_direct" != no &&
11657      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11658      # have to relink, otherwise we might link with an installed library
11659      # when we should be linking with a yet-to-be-installed one
11660      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11661      test "$hardcode_minus_L" != no; then
11662     # Linking always hardcodes the temporary library directory.
11663     hardcode_action=relink
11664   else
11665     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11666     hardcode_action=immediate
11667   fi
11668 else
11669   # We cannot hardcode anything, or else we can only hardcode existing
11670   # directories.
11671   hardcode_action=unsupported
11672 fi
11673 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11674 $as_echo "$hardcode_action" >&6; }
11675
11676 if test "$hardcode_action" = relink ||
11677    test "$inherit_rpath" = yes; then
11678   # Fast installation is not supported
11679   enable_fast_install=no
11680 elif test "$shlibpath_overrides_runpath" = yes ||
11681      test "$enable_shared" = no; then
11682   # Fast installation is not necessary
11683   enable_fast_install=needless
11684 fi
11685
11686
11687
11688
11689
11690
11691   if test "x$enable_dlopen" != xyes; then
11692   enable_dlopen=unknown
11693   enable_dlopen_self=unknown
11694   enable_dlopen_self_static=unknown
11695 else
11696   lt_cv_dlopen=no
11697   lt_cv_dlopen_libs=
11698
11699   case $host_os in
11700   beos*)
11701     lt_cv_dlopen="load_add_on"
11702     lt_cv_dlopen_libs=
11703     lt_cv_dlopen_self=yes
11704     ;;
11705
11706   mingw* | pw32* | cegcc*)
11707     lt_cv_dlopen="LoadLibrary"
11708     lt_cv_dlopen_libs=
11709     ;;
11710
11711   cygwin*)
11712     lt_cv_dlopen="dlopen"
11713     lt_cv_dlopen_libs=
11714     ;;
11715
11716   darwin*)
11717   # if libdl is installed we need to link against it
11718     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721   $as_echo_n "(cached) " >&6
11722 else
11723   ac_check_lib_save_LIBS=$LIBS
11724 LIBS="-ldl  $LIBS"
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731
11732 /* Override any GCC internal prototype to avoid an error.
11733    Use char because int might match the return type of a GCC
11734    builtin and then its argument prototype would still apply.  */
11735 #ifdef __cplusplus
11736 extern "C"
11737 #endif
11738 char dlopen ();
11739 int
11740 main ()
11741 {
11742 return dlopen ();
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11754 $as_echo "$ac_try_echo") >&5
11755   (eval "$ac_link") 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } && {
11762          test -z "$ac_c_werror_flag" ||
11763          test ! -s conftest.err
11764        } && test -s conftest$ac_exeext && {
11765          test "$cross_compiling" = yes ||
11766          $as_test_x conftest$ac_exeext
11767        }; then
11768   ac_cv_lib_dl_dlopen=yes
11769 else
11770   $as_echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773         ac_cv_lib_dl_dlopen=no
11774 fi
11775
11776 rm -rf conftest.dSYM
11777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11778       conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11780 fi
11781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11782 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11783 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11784   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11785 else
11786
11787     lt_cv_dlopen="dyld"
11788     lt_cv_dlopen_libs=
11789     lt_cv_dlopen_self=yes
11790
11791 fi
11792
11793     ;;
11794
11795   *)
11796     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11797 $as_echo_n "checking for shl_load... " >&6; }
11798 if test "${ac_cv_func_shl_load+set}" = set; then
11799   $as_echo_n "(cached) " >&6
11800 else
11801   cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11809 #define shl_load innocuous_shl_load
11810
11811 /* System header to define __stub macros and hopefully few prototypes,
11812     which can conflict with char shl_load (); below.
11813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814     <limits.h> exists even on freestanding compilers.  */
11815
11816 #ifdef __STDC__
11817 # include <limits.h>
11818 #else
11819 # include <assert.h>
11820 #endif
11821
11822 #undef shl_load
11823
11824 /* Override any GCC internal prototype to avoid an error.
11825    Use char because int might match the return type of a GCC
11826    builtin and then its argument prototype would still apply.  */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char shl_load ();
11831 /* The GNU C library defines this for functions which it implements
11832     to always fail with ENOSYS.  Some functions are actually named
11833     something starting with __ and the normal name is an alias.  */
11834 #if defined __stub_shl_load || defined __stub___shl_load
11835 choke me
11836 #endif
11837
11838 int
11839 main ()
11840 {
11841 return shl_load ();
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854   (eval "$ac_link") 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } && {
11861          test -z "$ac_c_werror_flag" ||
11862          test ! -s conftest.err
11863        } && test -s conftest$ac_exeext && {
11864          test "$cross_compiling" = yes ||
11865          $as_test_x conftest$ac_exeext
11866        }; then
11867   ac_cv_func_shl_load=yes
11868 else
11869   $as_echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872         ac_cv_func_shl_load=no
11873 fi
11874
11875 rm -rf conftest.dSYM
11876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11877       conftest$ac_exeext conftest.$ac_ext
11878 fi
11879 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11880 $as_echo "$ac_cv_func_shl_load" >&6; }
11881 if test "x$ac_cv_func_shl_load" = x""yes; then
11882   lt_cv_dlopen="shl_load"
11883 else
11884   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11885 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11886 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11887   $as_echo_n "(cached) " >&6
11888 else
11889   ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-ldld  $LIBS"
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899    Use char because int might match the return type of a GCC
11900    builtin and then its argument prototype would still apply.  */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char shl_load ();
11905 int
11906 main ()
11907 {
11908 return shl_load ();
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917   *) ac_try_echo=$ac_try;;
11918 esac
11919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920 $as_echo "$ac_try_echo") >&5
11921   (eval "$ac_link") 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } && {
11928          test -z "$ac_c_werror_flag" ||
11929          test ! -s conftest.err
11930        } && test -s conftest$ac_exeext && {
11931          test "$cross_compiling" = yes ||
11932          $as_test_x conftest$ac_exeext
11933        }; then
11934   ac_cv_lib_dld_shl_load=yes
11935 else
11936   $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939         ac_cv_lib_dld_shl_load=no
11940 fi
11941
11942 rm -rf conftest.dSYM
11943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11944       conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11948 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11949 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11950   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11951 else
11952   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11953 $as_echo_n "checking for dlopen... " >&6; }
11954 if test "${ac_cv_func_dlopen+set}" = set; then
11955   $as_echo_n "(cached) " >&6
11956 else
11957   cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11965 #define dlopen innocuous_dlopen
11966
11967 /* System header to define __stub macros and hopefully few prototypes,
11968     which can conflict with char dlopen (); below.
11969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11970     <limits.h> exists even on freestanding compilers.  */
11971
11972 #ifdef __STDC__
11973 # include <limits.h>
11974 #else
11975 # include <assert.h>
11976 #endif
11977
11978 #undef dlopen
11979
11980 /* Override any GCC internal prototype to avoid an error.
11981    Use char because int might match the return type of a GCC
11982    builtin and then its argument prototype would still apply.  */
11983 #ifdef __cplusplus
11984 extern "C"
11985 #endif
11986 char dlopen ();
11987 /* The GNU C library defines this for functions which it implements
11988     to always fail with ENOSYS.  Some functions are actually named
11989     something starting with __ and the normal name is an alias.  */
11990 #if defined __stub_dlopen || defined __stub___dlopen
11991 choke me
11992 #endif
11993
11994 int
11995 main ()
11996 {
11997 return dlopen ();
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010   (eval "$ac_link") 2>conftest.er1
12011   ac_status=$?
12012   grep -v '^ *+' conftest.er1 >conftest.err
12013   rm -f conftest.er1
12014   cat conftest.err >&5
12015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } && {
12017          test -z "$ac_c_werror_flag" ||
12018          test ! -s conftest.err
12019        } && test -s conftest$ac_exeext && {
12020          test "$cross_compiling" = yes ||
12021          $as_test_x conftest$ac_exeext
12022        }; then
12023   ac_cv_func_dlopen=yes
12024 else
12025   $as_echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028         ac_cv_func_dlopen=no
12029 fi
12030
12031 rm -rf conftest.dSYM
12032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12033       conftest$ac_exeext conftest.$ac_ext
12034 fi
12035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12036 $as_echo "$ac_cv_func_dlopen" >&6; }
12037 if test "x$ac_cv_func_dlopen" = x""yes; then
12038   lt_cv_dlopen="dlopen"
12039 else
12040   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12041 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12042 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12043   $as_echo_n "(cached) " >&6
12044 else
12045   ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-ldl  $LIBS"
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053
12054 /* Override any GCC internal prototype to avoid an error.
12055    Use char because int might match the return type of a GCC
12056    builtin and then its argument prototype would still apply.  */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char dlopen ();
12061 int
12062 main ()
12063 {
12064 return dlopen ();
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12076 $as_echo "$ac_try_echo") >&5
12077   (eval "$ac_link") 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } && {
12084          test -z "$ac_c_werror_flag" ||
12085          test ! -s conftest.err
12086        } && test -s conftest$ac_exeext && {
12087          test "$cross_compiling" = yes ||
12088          $as_test_x conftest$ac_exeext
12089        }; then
12090   ac_cv_lib_dl_dlopen=yes
12091 else
12092   $as_echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095         ac_cv_lib_dl_dlopen=no
12096 fi
12097
12098 rm -rf conftest.dSYM
12099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12100       conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12102 fi
12103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12105 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12106   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12107 else
12108   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12109 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12110 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12111   $as_echo_n "(cached) " >&6
12112 else
12113   ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-lsvld  $LIBS"
12115 cat >conftest.$ac_ext <<_ACEOF
12116 /* confdefs.h.  */
12117 _ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h.  */
12121
12122 /* Override any GCC internal prototype to avoid an error.
12123    Use char because int might match the return type of a GCC
12124    builtin and then its argument prototype would still apply.  */
12125 #ifdef __cplusplus
12126 extern "C"
12127 #endif
12128 char dlopen ();
12129 int
12130 main ()
12131 {
12132 return dlopen ();
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145   (eval "$ac_link") 2>conftest.er1
12146   ac_status=$?
12147   grep -v '^ *+' conftest.er1 >conftest.err
12148   rm -f conftest.er1
12149   cat conftest.err >&5
12150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); } && {
12152          test -z "$ac_c_werror_flag" ||
12153          test ! -s conftest.err
12154        } && test -s conftest$ac_exeext && {
12155          test "$cross_compiling" = yes ||
12156          $as_test_x conftest$ac_exeext
12157        }; then
12158   ac_cv_lib_svld_dlopen=yes
12159 else
12160   $as_echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163         ac_cv_lib_svld_dlopen=no
12164 fi
12165
12166 rm -rf conftest.dSYM
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168       conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12170 fi
12171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12172 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12173 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12174   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12175 else
12176   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12177 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12178 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12179   $as_echo_n "(cached) " >&6
12180 else
12181   ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-ldld  $LIBS"
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191    Use char because int might match the return type of a GCC
12192    builtin and then its argument prototype would still apply.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char dld_link ();
12197 int
12198 main ()
12199 {
12200 return dld_link ();
12201   ;
12202   return 0;
12203 }
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (ac_try="$ac_link"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212 $as_echo "$ac_try_echo") >&5
12213   (eval "$ac_link") 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } && {
12220          test -z "$ac_c_werror_flag" ||
12221          test ! -s conftest.err
12222        } && test -s conftest$ac_exeext && {
12223          test "$cross_compiling" = yes ||
12224          $as_test_x conftest$ac_exeext
12225        }; then
12226   ac_cv_lib_dld_dld_link=yes
12227 else
12228   $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         ac_cv_lib_dld_dld_link=no
12232 fi
12233
12234 rm -rf conftest.dSYM
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236       conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12240 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12241 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12242   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12243 fi
12244
12245
12246 fi
12247
12248
12249 fi
12250
12251
12252 fi
12253
12254
12255 fi
12256
12257
12258 fi
12259
12260     ;;
12261   esac
12262
12263   if test "x$lt_cv_dlopen" != xno; then
12264     enable_dlopen=yes
12265   else
12266     enable_dlopen=no
12267   fi
12268
12269   case $lt_cv_dlopen in
12270   dlopen)
12271     save_CPPFLAGS="$CPPFLAGS"
12272     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12273
12274     save_LDFLAGS="$LDFLAGS"
12275     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12276
12277     save_LIBS="$LIBS"
12278     LIBS="$lt_cv_dlopen_libs $LIBS"
12279
12280     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12281 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12282 if test "${lt_cv_dlopen_self+set}" = set; then
12283   $as_echo_n "(cached) " >&6
12284 else
12285           if test "$cross_compiling" = yes; then :
12286   lt_cv_dlopen_self=cross
12287 else
12288   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12289   lt_status=$lt_dlunknown
12290   cat > conftest.$ac_ext <<_LT_EOF
12291 #line 12291 "configure"
12292 #include "confdefs.h"
12293
12294 #if HAVE_DLFCN_H
12295 #include <dlfcn.h>
12296 #endif
12297
12298 #include <stdio.h>
12299
12300 #ifdef RTLD_GLOBAL
12301 #  define LT_DLGLOBAL           RTLD_GLOBAL
12302 #else
12303 #  ifdef DL_GLOBAL
12304 #    define LT_DLGLOBAL         DL_GLOBAL
12305 #  else
12306 #    define LT_DLGLOBAL         0
12307 #  endif
12308 #endif
12309
12310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12311    find out it does not work in some platform. */
12312 #ifndef LT_DLLAZY_OR_NOW
12313 #  ifdef RTLD_LAZY
12314 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12315 #  else
12316 #    ifdef DL_LAZY
12317 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12318 #    else
12319 #      ifdef RTLD_NOW
12320 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12321 #      else
12322 #        ifdef DL_NOW
12323 #          define LT_DLLAZY_OR_NOW      DL_NOW
12324 #        else
12325 #          define LT_DLLAZY_OR_NOW      0
12326 #        endif
12327 #      endif
12328 #    endif
12329 #  endif
12330 #endif
12331
12332 void fnord() { int i=42;}
12333 int main ()
12334 {
12335   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12336   int status = $lt_dlunknown;
12337
12338   if (self)
12339     {
12340       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12341       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12342       /* dlclose (self); */
12343     }
12344   else
12345     puts (dlerror ());
12346
12347   return status;
12348 }
12349 _LT_EOF
12350   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351   (eval $ac_link) 2>&5
12352   ac_status=$?
12353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12355     (./conftest; exit; ) >&5 2>/dev/null
12356     lt_status=$?
12357     case x$lt_status in
12358       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12359       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12360       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12361     esac
12362   else :
12363     # compilation failed
12364     lt_cv_dlopen_self=no
12365   fi
12366 fi
12367 rm -fr conftest*
12368
12369
12370 fi
12371 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12372 $as_echo "$lt_cv_dlopen_self" >&6; }
12373
12374     if test "x$lt_cv_dlopen_self" = xyes; then
12375       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12376       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12377 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12378 if test "${lt_cv_dlopen_self_static+set}" = set; then
12379   $as_echo_n "(cached) " >&6
12380 else
12381           if test "$cross_compiling" = yes; then :
12382   lt_cv_dlopen_self_static=cross
12383 else
12384   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12385   lt_status=$lt_dlunknown
12386   cat > conftest.$ac_ext <<_LT_EOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12389
12390 #if HAVE_DLFCN_H
12391 #include <dlfcn.h>
12392 #endif
12393
12394 #include <stdio.h>
12395
12396 #ifdef RTLD_GLOBAL
12397 #  define LT_DLGLOBAL           RTLD_GLOBAL
12398 #else
12399 #  ifdef DL_GLOBAL
12400 #    define LT_DLGLOBAL         DL_GLOBAL
12401 #  else
12402 #    define LT_DLGLOBAL         0
12403 #  endif
12404 #endif
12405
12406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12407    find out it does not work in some platform. */
12408 #ifndef LT_DLLAZY_OR_NOW
12409 #  ifdef RTLD_LAZY
12410 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12411 #  else
12412 #    ifdef DL_LAZY
12413 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12414 #    else
12415 #      ifdef RTLD_NOW
12416 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12417 #      else
12418 #        ifdef DL_NOW
12419 #          define LT_DLLAZY_OR_NOW      DL_NOW
12420 #        else
12421 #          define LT_DLLAZY_OR_NOW      0
12422 #        endif
12423 #      endif
12424 #    endif
12425 #  endif
12426 #endif
12427
12428 void fnord() { int i=42;}
12429 int main ()
12430 {
12431   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12432   int status = $lt_dlunknown;
12433
12434   if (self)
12435     {
12436       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12437       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12438       /* dlclose (self); */
12439     }
12440   else
12441     puts (dlerror ());
12442
12443   return status;
12444 }
12445 _LT_EOF
12446   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12447   (eval $ac_link) 2>&5
12448   ac_status=$?
12449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12451     (./conftest; exit; ) >&5 2>/dev/null
12452     lt_status=$?
12453     case x$lt_status in
12454       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12455       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12456       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12457     esac
12458   else :
12459     # compilation failed
12460     lt_cv_dlopen_self_static=no
12461   fi
12462 fi
12463 rm -fr conftest*
12464
12465
12466 fi
12467 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12468 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12469     fi
12470
12471     CPPFLAGS="$save_CPPFLAGS"
12472     LDFLAGS="$save_LDFLAGS"
12473     LIBS="$save_LIBS"
12474     ;;
12475   esac
12476
12477   case $lt_cv_dlopen_self in
12478   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12479   *) enable_dlopen_self=unknown ;;
12480   esac
12481
12482   case $lt_cv_dlopen_self_static in
12483   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12484   *) enable_dlopen_self_static=unknown ;;
12485   esac
12486 fi
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504 striplib=
12505 old_striplib=
12506 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12507 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12508 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12509   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12510   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12511   { $as_echo "$as_me:$LINENO: result: yes" >&5
12512 $as_echo "yes" >&6; }
12513 else
12514 # FIXME - insert some real tests, host_os isn't really good enough
12515   case $host_os in
12516   darwin*)
12517     if test -n "$STRIP" ; then
12518       striplib="$STRIP -x"
12519       old_striplib="$STRIP -S"
12520       { $as_echo "$as_me:$LINENO: result: yes" >&5
12521 $as_echo "yes" >&6; }
12522     else
12523       { $as_echo "$as_me:$LINENO: result: no" >&5
12524 $as_echo "no" >&6; }
12525     fi
12526     ;;
12527   *)
12528     { $as_echo "$as_me:$LINENO: result: no" >&5
12529 $as_echo "no" >&6; }
12530     ;;
12531   esac
12532 fi
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545   # Report which library types will actually be built
12546   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12547 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12548   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12549 $as_echo "$can_build_shared" >&6; }
12550
12551   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12552 $as_echo_n "checking whether to build shared libraries... " >&6; }
12553   test "$can_build_shared" = "no" && enable_shared=no
12554
12555   # On AIX, shared libraries and static libraries use the same namespace, and
12556   # are all built from PIC.
12557   case $host_os in
12558   aix3*)
12559     test "$enable_shared" = yes && enable_static=no
12560     if test -n "$RANLIB"; then
12561       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12562       postinstall_cmds='$RANLIB $lib'
12563     fi
12564     ;;
12565
12566   aix[4-9]*)
12567     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12568       test "$enable_shared" = yes && enable_static=no
12569     fi
12570     ;;
12571   esac
12572   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12573 $as_echo "$enable_shared" >&6; }
12574
12575   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12576 $as_echo_n "checking whether to build static libraries... " >&6; }
12577   # Make sure either enable_shared or enable_static is yes.
12578   test "$enable_shared" = yes || enable_static=yes
12579   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12580 $as_echo "$enable_static" >&6; }
12581
12582
12583
12584
12585 fi
12586 ac_ext=c
12587 ac_cpp='$CPP $CPPFLAGS'
12588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12591
12592 CC="$lt_save_CC"
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606         ac_config_commands="$ac_config_commands libtool"
12607
12608
12609
12610
12611 # Only expand once:
12612
12613
12614 fi
12615
12616 if test -n "${machine_dir}"; then
12617   MACHINE_OBJLIST=machine/${machine_dir}/objectlist.awk.in
12618   MACHINE_LIB=machine/${machine_dir}/lib.a
12619 fi
12620
12621
12622
12623
12624
12625 subdirs="$subdirs machine"
12626
12627
12628 ac_config_files="$ac_config_files Makefile"
12629
12630 cat >confcache <<\_ACEOF
12631 # This file is a shell script that caches the results of configure
12632 # tests run on this system so they can be shared between configure
12633 # scripts and configure runs, see configure's option --config-cache.
12634 # It is not useful on other systems.  If it contains results you don't
12635 # want to keep, you may remove or edit it.
12636 #
12637 # config.status only pays attention to the cache file if you give it
12638 # the --recheck option to rerun configure.
12639 #
12640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12642 # following values.
12643
12644 _ACEOF
12645
12646 # The following way of writing the cache mishandles newlines in values,
12647 # but we know of no workaround that is simple, portable, and efficient.
12648 # So, we kill variables containing newlines.
12649 # Ultrix sh set writes to stderr and can't be redirected directly,
12650 # and sets the high bit in the cache file unless we assign to the vars.
12651 (
12652   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12653     eval ac_val=\$$ac_var
12654     case $ac_val in #(
12655     *${as_nl}*)
12656       case $ac_var in #(
12657       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12658 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12659       esac
12660       case $ac_var in #(
12661       _ | IFS | as_nl) ;; #(
12662       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12663       *) $as_unset $ac_var ;;
12664       esac ;;
12665     esac
12666   done
12667
12668   (set) 2>&1 |
12669     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12670     *${as_nl}ac_space=\ *)
12671       # `set' does not quote correctly, so add quotes (double-quote
12672       # substitution turns \\\\ into \\, and sed turns \\ into \).
12673       sed -n \
12674         "s/'/'\\\\''/g;
12675           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12676       ;; #(
12677     *)
12678       # `set' quotes correctly as required by POSIX, so do not add quotes.
12679       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12680       ;;
12681     esac |
12682     sort
12683 ) |
12684   sed '
12685      /^ac_cv_env_/b end
12686      t clear
12687      :clear
12688      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12689      t end
12690      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12691      :end' >>confcache
12692 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12693   if test -w "$cache_file"; then
12694     test "x$cache_file" != "x/dev/null" &&
12695       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12696 $as_echo "$as_me: updating cache $cache_file" >&6;}
12697     cat confcache >$cache_file
12698   else
12699     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12700 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12701   fi
12702 fi
12703 rm -f confcache
12704
12705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12706 # Let make expand exec_prefix.
12707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12708
12709 # Transform confdefs.h into DEFS.
12710 # Protect against shell expansion while executing Makefile rules.
12711 # Protect against Makefile macro expansion.
12712 #
12713 # If the first sed substitution is executed (which looks for macros that
12714 # take arguments), then branch to the quote section.  Otherwise,
12715 # look for a macro that doesn't take arguments.
12716 ac_script='
12717 :mline
12718 /\\$/{
12719  N
12720  s,\\\n,,
12721  b mline
12722 }
12723 t clear
12724 :clear
12725 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12726 t quote
12727 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12728 t quote
12729 b any
12730 :quote
12731 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12732 s/\[/\\&/g
12733 s/\]/\\&/g
12734 s/\$/$$/g
12735 H
12736 :any
12737 ${
12738         g
12739         s/^\n//
12740         s/\n/ /g
12741         p
12742 }
12743 '
12744 DEFS=`sed -n "$ac_script" confdefs.h`
12745
12746
12747 ac_libobjs=
12748 ac_ltlibobjs=
12749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12750   # 1. Remove the extension, and $U if already installed.
12751   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12752   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12753   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12754   #    will be set to the directory where LIBOBJS objects are built.
12755   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12756   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12757 done
12758 LIBOBJS=$ac_libobjs
12759
12760 LTLIBOBJS=$ac_ltlibobjs
12761
12762
12763 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12764   { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12765 Usually this means the macro was only invoked conditionally." >&5
12766 $as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12767 Usually this means the macro was only invoked conditionally." >&2;}
12768    { (exit 1); exit 1; }; }
12769 fi
12770  if test -n "$EXEEXT"; then
12771   am__EXEEXT_TRUE=
12772   am__EXEEXT_FALSE='#'
12773 else
12774   am__EXEEXT_TRUE='#'
12775   am__EXEEXT_FALSE=
12776 fi
12777
12778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12779   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12780 Usually this means the macro was only invoked conditionally." >&5
12781 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12782 Usually this means the macro was only invoked conditionally." >&2;}
12783    { (exit 1); exit 1; }; }
12784 fi
12785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12786   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12787 Usually this means the macro was only invoked conditionally." >&5
12788 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12789 Usually this means the macro was only invoked conditionally." >&2;}
12790    { (exit 1); exit 1; }; }
12791 fi
12792 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12793   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12794 Usually this means the macro was only invoked conditionally." >&5
12795 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12796 Usually this means the macro was only invoked conditionally." >&2;}
12797    { (exit 1); exit 1; }; }
12798 fi
12799 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12800   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12801 Usually this means the macro was only invoked conditionally." >&5
12802 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12803 Usually this means the macro was only invoked conditionally." >&2;}
12804    { (exit 1); exit 1; }; }
12805 fi
12806 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12807   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12808 Usually this means the macro was only invoked conditionally." >&5
12809 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12810 Usually this means the macro was only invoked conditionally." >&2;}
12811    { (exit 1); exit 1; }; }
12812 fi
12813 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12814   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12815 Usually this means the macro was only invoked conditionally." >&5
12816 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12817 Usually this means the macro was only invoked conditionally." >&2;}
12818    { (exit 1); exit 1; }; }
12819 fi
12820 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12821   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12822 Usually this means the macro was only invoked conditionally." >&5
12823 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12824 Usually this means the macro was only invoked conditionally." >&2;}
12825    { (exit 1); exit 1; }; }
12826 fi
12827 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12828   { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12829 Usually this means the macro was only invoked conditionally." >&5
12830 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12831 Usually this means the macro was only invoked conditionally." >&2;}
12832    { (exit 1); exit 1; }; }
12833 fi
12834 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12835   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12836 Usually this means the macro was only invoked conditionally." >&5
12837 $as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12838 Usually this means the macro was only invoked conditionally." >&2;}
12839    { (exit 1); exit 1; }; }
12840 fi
12841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12842   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12843 Usually this means the macro was only invoked conditionally." >&5
12844 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12845 Usually this means the macro was only invoked conditionally." >&2;}
12846    { (exit 1); exit 1; }; }
12847 fi
12848
12849 : ${CONFIG_STATUS=./config.status}
12850 ac_write_fail=0
12851 ac_clean_files_save=$ac_clean_files
12852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12853 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12854 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12855 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12856 #! $SHELL
12857 # Generated by $as_me.
12858 # Run this file to recreate the current configuration.
12859 # Compiler output produced by configure, useful for debugging
12860 # configure, is in config.log if it exists.
12861
12862 debug=false
12863 ac_cs_recheck=false
12864 ac_cs_silent=false
12865 SHELL=\${CONFIG_SHELL-$SHELL}
12866 _ACEOF
12867
12868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12869 ## --------------------- ##
12870 ## M4sh Initialization.  ##
12871 ## --------------------- ##
12872
12873 # Be more Bourne compatible
12874 DUALCASE=1; export DUALCASE # for MKS sh
12875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12876   emulate sh
12877   NULLCMD=:
12878   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12879   # is contrary to our usage.  Disable this feature.
12880   alias -g '${1+"$@"}'='"$@"'
12881   setopt NO_GLOB_SUBST
12882 else
12883   case `(set -o) 2>/dev/null` in
12884   *posix*) set -o posix ;;
12885 esac
12886
12887 fi
12888
12889
12890
12891
12892 # PATH needs CR
12893 # Avoid depending upon Character Ranges.
12894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12897 as_cr_digits='0123456789'
12898 as_cr_alnum=$as_cr_Letters$as_cr_digits
12899
12900 as_nl='
12901 '
12902 export as_nl
12903 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12904 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12907 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12908   as_echo='printf %s\n'
12909   as_echo_n='printf %s'
12910 else
12911   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12912     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12913     as_echo_n='/usr/ucb/echo -n'
12914   else
12915     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12916     as_echo_n_body='eval
12917       arg=$1;
12918       case $arg in
12919       *"$as_nl"*)
12920         expr "X$arg" : "X\\(.*\\)$as_nl";
12921         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12922       esac;
12923       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12924     '
12925     export as_echo_n_body
12926     as_echo_n='sh -c $as_echo_n_body as_echo'
12927   fi
12928   export as_echo_body
12929   as_echo='sh -c $as_echo_body as_echo'
12930 fi
12931
12932 # The user is always right.
12933 if test "${PATH_SEPARATOR+set}" != set; then
12934   PATH_SEPARATOR=:
12935   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12936     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12937       PATH_SEPARATOR=';'
12938   }
12939 fi
12940
12941 # Support unset when possible.
12942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12943   as_unset=unset
12944 else
12945   as_unset=false
12946 fi
12947
12948
12949 # IFS
12950 # We need space, tab and new line, in precisely that order.  Quoting is
12951 # there to prevent editors from complaining about space-tab.
12952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12953 # splitting by setting IFS to empty value.)
12954 IFS=" ""        $as_nl"
12955
12956 # Find who we are.  Look in the path if we contain no directory separator.
12957 case $0 in
12958   *[\\/]* ) as_myself=$0 ;;
12959   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12961 do
12962   IFS=$as_save_IFS
12963   test -z "$as_dir" && as_dir=.
12964   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12965 done
12966 IFS=$as_save_IFS
12967
12968      ;;
12969 esac
12970 # We did not find ourselves, most probably we were run as `sh COMMAND'
12971 # in which case we are not to be found in the path.
12972 if test "x$as_myself" = x; then
12973   as_myself=$0
12974 fi
12975 if test ! -f "$as_myself"; then
12976   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12977   { (exit 1); exit 1; }
12978 fi
12979
12980 # Work around bugs in pre-3.0 UWIN ksh.
12981 for as_var in ENV MAIL MAILPATH
12982 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12983 done
12984 PS1='$ '
12985 PS2='> '
12986 PS4='+ '
12987
12988 # NLS nuisances.
12989 LC_ALL=C
12990 export LC_ALL
12991 LANGUAGE=C
12992 export LANGUAGE
12993
12994 # Required to use basename.
12995 if expr a : '\(a\)' >/dev/null 2>&1 &&
12996    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12997   as_expr=expr
12998 else
12999   as_expr=false
13000 fi
13001
13002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13003   as_basename=basename
13004 else
13005   as_basename=false
13006 fi
13007
13008
13009 # Name of the executable.
13010 as_me=`$as_basename -- "$0" ||
13011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13012          X"$0" : 'X\(//\)$' \| \
13013          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13014 $as_echo X/"$0" |
13015     sed '/^.*\/\([^/][^/]*\)\/*$/{
13016             s//\1/
13017             q
13018           }
13019           /^X\/\(\/\/\)$/{
13020             s//\1/
13021             q
13022           }
13023           /^X\/\(\/\).*/{
13024             s//\1/
13025             q
13026           }
13027           s/.*/./; q'`
13028
13029 # CDPATH.
13030 $as_unset CDPATH
13031
13032
13033
13034   as_lineno_1=$LINENO
13035   as_lineno_2=$LINENO
13036   test "x$as_lineno_1" != "x$as_lineno_2" &&
13037   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13038
13039   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13040   # uniformly replaced by the line number.  The first 'sed' inserts a
13041   # line-number line after each line using $LINENO; the second 'sed'
13042   # does the real work.  The second script uses 'N' to pair each
13043   # line-number line with the line containing $LINENO, and appends
13044   # trailing '-' during substitution so that $LINENO is not a special
13045   # case at line end.
13046   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13047   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13048   # E. McMahon (1931-1989) for sed's syntax.  :-)
13049   sed -n '
13050     p
13051     /[$]LINENO/=
13052   ' <$as_myself |
13053     sed '
13054       s/[$]LINENO.*/&-/
13055       t lineno
13056       b
13057       :lineno
13058       N
13059       :loop
13060       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13061       t loop
13062       s/-\n.*//
13063     ' >$as_me.lineno &&
13064   chmod +x "$as_me.lineno" ||
13065     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13066    { (exit 1); exit 1; }; }
13067
13068   # Don't try to exec as it changes $[0], causing all sort of problems
13069   # (the dirname of $[0] is not the place where we might find the
13070   # original and so on.  Autoconf is especially sensitive to this).
13071   . "./$as_me.lineno"
13072   # Exit status is that of the last command.
13073   exit
13074 }
13075
13076
13077 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13078   as_dirname=dirname
13079 else
13080   as_dirname=false
13081 fi
13082
13083 ECHO_C= ECHO_N= ECHO_T=
13084 case `echo -n x` in
13085 -n*)
13086   case `echo 'x\c'` in
13087   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13088   *)   ECHO_C='\c';;
13089   esac;;
13090 *)
13091   ECHO_N='-n';;
13092 esac
13093 if expr a : '\(a\)' >/dev/null 2>&1 &&
13094    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13095   as_expr=expr
13096 else
13097   as_expr=false
13098 fi
13099
13100 rm -f conf$$ conf$$.exe conf$$.file
13101 if test -d conf$$.dir; then
13102   rm -f conf$$.dir/conf$$.file
13103 else
13104   rm -f conf$$.dir
13105   mkdir conf$$.dir 2>/dev/null
13106 fi
13107 if (echo >conf$$.file) 2>/dev/null; then
13108   if ln -s conf$$.file conf$$ 2>/dev/null; then
13109     as_ln_s='ln -s'
13110     # ... but there are two gotchas:
13111     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13112     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13113     # In both cases, we have to default to `cp -p'.
13114     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13115       as_ln_s='cp -p'
13116   elif ln conf$$.file conf$$ 2>/dev/null; then
13117     as_ln_s=ln
13118   else
13119     as_ln_s='cp -p'
13120   fi
13121 else
13122   as_ln_s='cp -p'
13123 fi
13124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13125 rmdir conf$$.dir 2>/dev/null
13126
13127 if mkdir -p . 2>/dev/null; then
13128   as_mkdir_p=:
13129 else
13130   test -d ./-p && rmdir ./-p
13131   as_mkdir_p=false
13132 fi
13133
13134 if test -x / >/dev/null 2>&1; then
13135   as_test_x='test -x'
13136 else
13137   if ls -dL / >/dev/null 2>&1; then
13138     as_ls_L_option=L
13139   else
13140     as_ls_L_option=
13141   fi
13142   as_test_x='
13143     eval sh -c '\''
13144       if test -d "$1"; then
13145         test -d "$1/.";
13146       else
13147         case $1 in
13148         -*)set "./$1";;
13149         esac;
13150         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13151         ???[sx]*):;;*)false;;esac;fi
13152     '\'' sh
13153   '
13154 fi
13155 as_executable_p=$as_test_x
13156
13157 # Sed expression to map a string onto a valid CPP name.
13158 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13159
13160 # Sed expression to map a string onto a valid variable name.
13161 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13162
13163
13164 exec 6>&1
13165
13166 # Save the log message, to keep $[0] and so on meaningful, and to
13167 # report actual input values of CONFIG_FILES etc. instead of their
13168 # values after options handling.
13169 ac_log="
13170 This file was extended by newlib $as_me 1.18.0, which was
13171 generated by GNU Autoconf 2.63.  Invocation command line was
13172
13173   CONFIG_FILES    = $CONFIG_FILES
13174   CONFIG_HEADERS  = $CONFIG_HEADERS
13175   CONFIG_LINKS    = $CONFIG_LINKS
13176   CONFIG_COMMANDS = $CONFIG_COMMANDS
13177   $ $0 $@
13178
13179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13180 "
13181
13182 _ACEOF
13183
13184 case $ac_config_files in *"
13185 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13186 esac
13187
13188
13189
13190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13191 # Files that config.status was made for.
13192 config_files="$ac_config_files"
13193 config_commands="$ac_config_commands"
13194
13195 _ACEOF
13196
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198 ac_cs_usage="\
13199 \`$as_me' instantiates files from templates according to the
13200 current configuration.
13201
13202 Usage: $0 [OPTION]... [FILE]...
13203
13204   -h, --help       print this help, then exit
13205   -V, --version    print version number and configuration settings, then exit
13206   -q, --quiet, --silent
13207                    do not print progress messages
13208   -d, --debug      don't remove temporary files
13209       --recheck    update $as_me by reconfiguring in the same conditions
13210       --file=FILE[:TEMPLATE]
13211                    instantiate the configuration file FILE
13212
13213 Configuration files:
13214 $config_files
13215
13216 Configuration commands:
13217 $config_commands
13218
13219 Report bugs to <bug-autoconf@gnu.org>."
13220
13221 _ACEOF
13222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13223 ac_cs_version="\\
13224 newlib config.status 1.18.0
13225 configured by $0, generated by GNU Autoconf 2.63,
13226   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13227
13228 Copyright (C) 2008 Free Software Foundation, Inc.
13229 This config.status script is free software; the Free Software Foundation
13230 gives unlimited permission to copy, distribute and modify it."
13231
13232 ac_pwd='$ac_pwd'
13233 srcdir='$srcdir'
13234 INSTALL='$INSTALL'
13235 MKDIR_P='$MKDIR_P'
13236 AWK='$AWK'
13237 test -n "\$AWK" || AWK=awk
13238 _ACEOF
13239
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241 # The default lists apply if the user does not specify any file.
13242 ac_need_defaults=:
13243 while test $# != 0
13244 do
13245   case $1 in
13246   --*=*)
13247     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13248     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13249     ac_shift=:
13250     ;;
13251   *)
13252     ac_option=$1
13253     ac_optarg=$2
13254     ac_shift=shift
13255     ;;
13256   esac
13257
13258   case $ac_option in
13259   # Handling of the options.
13260   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13261     ac_cs_recheck=: ;;
13262   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13263     $as_echo "$ac_cs_version"; exit ;;
13264   --debug | --debu | --deb | --de | --d | -d )
13265     debug=: ;;
13266   --file | --fil | --fi | --f )
13267     $ac_shift
13268     case $ac_optarg in
13269     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13270     esac
13271     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13272     ac_need_defaults=false;;
13273   --he | --h |  --help | --hel | -h )
13274     $as_echo "$ac_cs_usage"; exit ;;
13275   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13276   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13277     ac_cs_silent=: ;;
13278
13279   # This is an error.
13280   -*) { $as_echo "$as_me: error: unrecognized option: $1
13281 Try \`$0 --help' for more information." >&2
13282    { (exit 1); exit 1; }; } ;;
13283
13284   *) ac_config_targets="$ac_config_targets $1"
13285      ac_need_defaults=false ;;
13286
13287   esac
13288   shift
13289 done
13290
13291 ac_configure_extra_args=
13292
13293 if $ac_cs_silent; then
13294   exec 6>/dev/null
13295   ac_configure_extra_args="$ac_configure_extra_args --silent"
13296 fi
13297
13298 _ACEOF
13299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13300 if \$ac_cs_recheck; then
13301   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13302   shift
13303   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13304   CONFIG_SHELL='$SHELL'
13305   export CONFIG_SHELL
13306   exec "\$@"
13307 fi
13308
13309 _ACEOF
13310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13311 exec 5>>config.log
13312 {
13313   echo
13314   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13315 ## Running $as_me. ##
13316 _ASBOX
13317   $as_echo "$ac_log"
13318 } >&5
13319
13320 _ACEOF
13321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13322 #
13323 # INIT-COMMANDS
13324 #
13325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13326
13327
13328 # The HP-UX ksh and POSIX shell print the target directory to stdout
13329 # if CDPATH is set.
13330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13331
13332 sed_quote_subst='$sed_quote_subst'
13333 double_quote_subst='$double_quote_subst'
13334 delay_variable_subst='$delay_variable_subst'
13335 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13336 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13337 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13338 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13339 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13340 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13341 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13342 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13343 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13344 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13345 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13346 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13347 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13348 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13349 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13350 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13351 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13352 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13353 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13354 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13355 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13356 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13357 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13358 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13359 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13360 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13361 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13362 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13363 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13364 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13365 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13366 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13367 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13368 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13369 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13370 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13371 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13372 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13373 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13376 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13377 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13378 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13379 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13380 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13381 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"`'
13382 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"`'
13383 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13384 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13385 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13386 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13387 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13388 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13389 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13390 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13391 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13392 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13393 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13394 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13395 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13396 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13397 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13398 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13399 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13400 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13401 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13402 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13403 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13404 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13405 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13406 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13407 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13408 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13409 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13410 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13413 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13414 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13415 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13417 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13418 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13419 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13420 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13421 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13422 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13423 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13424 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13425 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13426 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13427 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13428 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13429 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13430 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13431 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13432 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13433 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13434 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13435 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13436 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13437 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13438 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13439 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13440 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13441 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13442 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13443 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13444 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13445 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13446 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13447 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13448 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13449 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13450 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13451 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13452 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13453 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13454 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13455
13456 LTCC='$LTCC'
13457 LTCFLAGS='$LTCFLAGS'
13458 compiler='$compiler_DEFAULT'
13459
13460 # Quote evaled strings.
13461 for var in SED \
13462 GREP \
13463 EGREP \
13464 FGREP \
13465 LD \
13466 NM \
13467 LN_S \
13468 lt_SP2NL \
13469 lt_NL2SP \
13470 reload_flag \
13471 deplibs_check_method \
13472 file_magic_cmd \
13473 AR \
13474 AR_FLAGS \
13475 STRIP \
13476 RANLIB \
13477 CC \
13478 CFLAGS \
13479 compiler \
13480 lt_cv_sys_global_symbol_pipe \
13481 lt_cv_sys_global_symbol_to_cdecl \
13482 lt_cv_sys_global_symbol_to_c_name_address \
13483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13484 SHELL \
13485 ECHO \
13486 lt_prog_compiler_no_builtin_flag \
13487 lt_prog_compiler_wl \
13488 lt_prog_compiler_pic \
13489 lt_prog_compiler_static \
13490 lt_cv_prog_compiler_c_o \
13491 need_locks \
13492 DSYMUTIL \
13493 NMEDIT \
13494 LIPO \
13495 OTOOL \
13496 OTOOL64 \
13497 shrext_cmds \
13498 export_dynamic_flag_spec \
13499 whole_archive_flag_spec \
13500 compiler_needs_object \
13501 with_gnu_ld \
13502 allow_undefined_flag \
13503 no_undefined_flag \
13504 hardcode_libdir_flag_spec \
13505 hardcode_libdir_flag_spec_ld \
13506 hardcode_libdir_separator \
13507 fix_srcfile_path \
13508 exclude_expsyms \
13509 include_expsyms \
13510 file_list_spec \
13511 variables_saved_for_relink \
13512 libname_spec \
13513 library_names_spec \
13514 soname_spec \
13515 finish_eval \
13516 old_striplib \
13517 striplib; do
13518     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13519     *[\\\\\\\`\\"\\\$]*)
13520       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13521       ;;
13522     *)
13523       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13524       ;;
13525     esac
13526 done
13527
13528 # Double-quote double-evaled strings.
13529 for var in reload_cmds \
13530 old_postinstall_cmds \
13531 old_postuninstall_cmds \
13532 old_archive_cmds \
13533 extract_expsyms_cmds \
13534 old_archive_from_new_cmds \
13535 old_archive_from_expsyms_cmds \
13536 archive_cmds \
13537 archive_expsym_cmds \
13538 module_cmds \
13539 module_expsym_cmds \
13540 export_symbols_cmds \
13541 prelink_cmds \
13542 postinstall_cmds \
13543 postuninstall_cmds \
13544 finish_cmds \
13545 sys_lib_search_path_spec \
13546 sys_lib_dlsearch_path_spec; do
13547     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13548     *[\\\\\\\`\\"\\\$]*)
13549       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13550       ;;
13551     *)
13552       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13553       ;;
13554     esac
13555 done
13556
13557 # Fix-up fallback echo if it was mangled by the above quoting rules.
13558 case \$lt_ECHO in
13559 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13560   ;;
13561 esac
13562
13563 ac_aux_dir='$ac_aux_dir'
13564 xsi_shell='$xsi_shell'
13565 lt_shell_append='$lt_shell_append'
13566
13567 # See if we are running on zsh, and set the options which allow our
13568 # commands through without removal of \ escapes INIT.
13569 if test -n "\${ZSH_VERSION+set}" ; then
13570    setopt NO_GLOB_SUBST
13571 fi
13572
13573
13574     PACKAGE='$PACKAGE'
13575     VERSION='$VERSION'
13576     TIMESTAMP='$TIMESTAMP'
13577     RM='$RM'
13578     ofile='$ofile'
13579
13580
13581
13582
13583 _ACEOF
13584
13585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13586
13587 # Handling of arguments.
13588 for ac_config_target in $ac_config_targets
13589 do
13590   case $ac_config_target in
13591     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13592     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13593     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13594
13595   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13596 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13597    { (exit 1); exit 1; }; };;
13598   esac
13599 done
13600
13601
13602 # If the user did not use the arguments to specify the items to instantiate,
13603 # then the envvar interface is used.  Set only those that are not.
13604 # We use the long form for the default assignment because of an extremely
13605 # bizarre bug on SunOS 4.1.3.
13606 if $ac_need_defaults; then
13607   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13608   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13609 fi
13610
13611 # Have a temporary directory for convenience.  Make it in the build tree
13612 # simply because there is no reason against having it here, and in addition,
13613 # creating and moving files from /tmp can sometimes cause problems.
13614 # Hook for its removal unless debugging.
13615 # Note that there is a small window in which the directory will not be cleaned:
13616 # after its creation but before its name has been assigned to `$tmp'.
13617 $debug ||
13618 {
13619   tmp=
13620   trap 'exit_status=$?
13621   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13622 ' 0
13623   trap '{ (exit 1); exit 1; }' 1 2 13 15
13624 }
13625 # Create a (secure) tmp directory for tmp files.
13626
13627 {
13628   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13629   test -n "$tmp" && test -d "$tmp"
13630 }  ||
13631 {
13632   tmp=./conf$$-$RANDOM
13633   (umask 077 && mkdir "$tmp")
13634 } ||
13635 {
13636    $as_echo "$as_me: cannot create a temporary directory in ." >&2
13637    { (exit 1); exit 1; }
13638 }
13639
13640 # Set up the scripts for CONFIG_FILES section.
13641 # No need to generate them if there are no CONFIG_FILES.
13642 # This happens for instance with `./config.status config.h'.
13643 if test -n "$CONFIG_FILES"; then
13644
13645
13646 ac_cr='\r'
13647 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13648 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13649   ac_cs_awk_cr='\\r'
13650 else
13651   ac_cs_awk_cr=$ac_cr
13652 fi
13653
13654 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13655 _ACEOF
13656
13657
13658 {
13659   echo "cat >conf$$subs.awk <<_ACEOF" &&
13660   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13661   echo "_ACEOF"
13662 } >conf$$subs.sh ||
13663   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13664 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13665    { (exit 1); exit 1; }; }
13666 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13667 ac_delim='%!_!# '
13668 for ac_last_try in false false false false false :; do
13669   . ./conf$$subs.sh ||
13670     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13671 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13672    { (exit 1); exit 1; }; }
13673
13674   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13675   if test $ac_delim_n = $ac_delim_num; then
13676     break
13677   elif $ac_last_try; then
13678     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13679 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13680    { (exit 1); exit 1; }; }
13681   else
13682     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13683   fi
13684 done
13685 rm -f conf$$subs.sh
13686
13687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13688 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13689 _ACEOF
13690 sed -n '
13691 h
13692 s/^/S["/; s/!.*/"]=/
13693 p
13694 g
13695 s/^[^!]*!//
13696 :repl
13697 t repl
13698 s/'"$ac_delim"'$//
13699 t delim
13700 :nl
13701 h
13702 s/\(.\{148\}\).*/\1/
13703 t more1
13704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13705 p
13706 n
13707 b repl
13708 :more1
13709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13710 p
13711 g
13712 s/.\{148\}//
13713 t nl
13714 :delim
13715 h
13716 s/\(.\{148\}\).*/\1/
13717 t more2
13718 s/["\\]/\\&/g; s/^/"/; s/$/"/
13719 p
13720 b
13721 :more2
13722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13723 p
13724 g
13725 s/.\{148\}//
13726 t delim
13727 ' <conf$$subs.awk | sed '
13728 /^[^""]/{
13729   N
13730   s/\n//
13731 }
13732 ' >>$CONFIG_STATUS || ac_write_fail=1
13733 rm -f conf$$subs.awk
13734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13735 _ACAWK
13736 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13737   for (key in S) S_is_set[key] = 1
13738   FS = "\a"
13739
13740 }
13741 {
13742   line = $ 0
13743   nfields = split(line, field, "@")
13744   substed = 0
13745   len = length(field[1])
13746   for (i = 2; i < nfields; i++) {
13747     key = field[i]
13748     keylen = length(key)
13749     if (S_is_set[key]) {
13750       value = S[key]
13751       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13752       len += length(value) + length(field[++i])
13753       substed = 1
13754     } else
13755       len += 1 + keylen
13756   }
13757
13758   print line
13759 }
13760
13761 _ACAWK
13762 _ACEOF
13763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13765   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13766 else
13767   cat
13768 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13769   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13770 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13771    { (exit 1); exit 1; }; }
13772 _ACEOF
13773
13774 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13775 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13776 # trailing colons and then remove the whole line if VPATH becomes empty
13777 # (actually we leave an empty line to preserve line numbers).
13778 if test "x$srcdir" = x.; then
13779   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13780 s/:*\$(srcdir):*/:/
13781 s/:*\${srcdir}:*/:/
13782 s/:*@srcdir@:*/:/
13783 s/^\([^=]*=[     ]*\):*/\1/
13784 s/:*$//
13785 s/^[^=]*=[       ]*$//
13786 }'
13787 fi
13788
13789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13790 fi # test -n "$CONFIG_FILES"
13791
13792
13793 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13794 shift
13795 for ac_tag
13796 do
13797   case $ac_tag in
13798   :[FHLC]) ac_mode=$ac_tag; continue;;
13799   esac
13800   case $ac_mode$ac_tag in
13801   :[FHL]*:*);;
13802   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13803 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13804    { (exit 1); exit 1; }; };;
13805   :[FH]-) ac_tag=-:-;;
13806   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13807   esac
13808   ac_save_IFS=$IFS
13809   IFS=:
13810   set x $ac_tag
13811   IFS=$ac_save_IFS
13812   shift
13813   ac_file=$1
13814   shift
13815
13816   case $ac_mode in
13817   :L) ac_source=$1;;
13818   :[FH])
13819     ac_file_inputs=
13820     for ac_f
13821     do
13822       case $ac_f in
13823       -) ac_f="$tmp/stdin";;
13824       *) # Look for the file first in the build tree, then in the source tree
13825          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13826          # because $ac_f cannot contain `:'.
13827          test -f "$ac_f" ||
13828            case $ac_f in
13829            [\\/$]*) false;;
13830            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13831            esac ||
13832            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13833 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13834    { (exit 1); exit 1; }; };;
13835       esac
13836       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13837       ac_file_inputs="$ac_file_inputs '$ac_f'"
13838     done
13839
13840     # Let's still pretend it is `configure' which instantiates (i.e., don't
13841     # use $as_me), people would be surprised to read:
13842     #    /* config.h.  Generated by config.status.  */
13843     configure_input='Generated from '`
13844           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13845         `' by configure.'
13846     if test x"$ac_file" != x-; then
13847       configure_input="$ac_file.  $configure_input"
13848       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13849 $as_echo "$as_me: creating $ac_file" >&6;}
13850     fi
13851     # Neutralize special characters interpreted by sed in replacement strings.
13852     case $configure_input in #(
13853     *\&* | *\|* | *\\* )
13854        ac_sed_conf_input=`$as_echo "$configure_input" |
13855        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13856     *) ac_sed_conf_input=$configure_input;;
13857     esac
13858
13859     case $ac_tag in
13860     *:-:* | *:-) cat >"$tmp/stdin" \
13861       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13862 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13863    { (exit 1); exit 1; }; } ;;
13864     esac
13865     ;;
13866   esac
13867
13868   ac_dir=`$as_dirname -- "$ac_file" ||
13869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13870          X"$ac_file" : 'X\(//\)[^/]' \| \
13871          X"$ac_file" : 'X\(//\)$' \| \
13872          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13873 $as_echo X"$ac_file" |
13874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13875             s//\1/
13876             q
13877           }
13878           /^X\(\/\/\)[^/].*/{
13879             s//\1/
13880             q
13881           }
13882           /^X\(\/\/\)$/{
13883             s//\1/
13884             q
13885           }
13886           /^X\(\/\).*/{
13887             s//\1/
13888             q
13889           }
13890           s/.*/./; q'`
13891   { as_dir="$ac_dir"
13892   case $as_dir in #(
13893   -*) as_dir=./$as_dir;;
13894   esac
13895   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13896     as_dirs=
13897     while :; do
13898       case $as_dir in #(
13899       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13900       *) as_qdir=$as_dir;;
13901       esac
13902       as_dirs="'$as_qdir' $as_dirs"
13903       as_dir=`$as_dirname -- "$as_dir" ||
13904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13905          X"$as_dir" : 'X\(//\)[^/]' \| \
13906          X"$as_dir" : 'X\(//\)$' \| \
13907          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13908 $as_echo X"$as_dir" |
13909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13910             s//\1/
13911             q
13912           }
13913           /^X\(\/\/\)[^/].*/{
13914             s//\1/
13915             q
13916           }
13917           /^X\(\/\/\)$/{
13918             s//\1/
13919             q
13920           }
13921           /^X\(\/\).*/{
13922             s//\1/
13923             q
13924           }
13925           s/.*/./; q'`
13926       test -d "$as_dir" && break
13927     done
13928     test -z "$as_dirs" || eval "mkdir $as_dirs"
13929   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13930 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13931    { (exit 1); exit 1; }; }; }
13932   ac_builddir=.
13933
13934 case "$ac_dir" in
13935 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13936 *)
13937   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13938   # A ".." for each directory in $ac_dir_suffix.
13939   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13940   case $ac_top_builddir_sub in
13941   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13942   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13943   esac ;;
13944 esac
13945 ac_abs_top_builddir=$ac_pwd
13946 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13947 # for backward compatibility:
13948 ac_top_builddir=$ac_top_build_prefix
13949
13950 case $srcdir in
13951   .)  # We are building in place.
13952     ac_srcdir=.
13953     ac_top_srcdir=$ac_top_builddir_sub
13954     ac_abs_top_srcdir=$ac_pwd ;;
13955   [\\/]* | ?:[\\/]* )  # Absolute name.
13956     ac_srcdir=$srcdir$ac_dir_suffix;
13957     ac_top_srcdir=$srcdir
13958     ac_abs_top_srcdir=$srcdir ;;
13959   *) # Relative name.
13960     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13961     ac_top_srcdir=$ac_top_build_prefix$srcdir
13962     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13963 esac
13964 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13965
13966
13967   case $ac_mode in
13968   :F)
13969   #
13970   # CONFIG_FILE
13971   #
13972
13973   case $INSTALL in
13974   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13975   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13976   esac
13977   ac_MKDIR_P=$MKDIR_P
13978   case $MKDIR_P in
13979   [\\/$]* | ?:[\\/]* ) ;;
13980   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13981   esac
13982 _ACEOF
13983
13984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13985 # If the template does not know about datarootdir, expand it.
13986 # FIXME: This hack should be removed a few years after 2.60.
13987 ac_datarootdir_hack=; ac_datarootdir_seen=
13988
13989 ac_sed_dataroot='
13990 /datarootdir/ {
13991   p
13992   q
13993 }
13994 /@datadir@/p
13995 /@docdir@/p
13996 /@infodir@/p
13997 /@localedir@/p
13998 /@mandir@/p
13999 '
14000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14001 *datarootdir*) ac_datarootdir_seen=yes;;
14002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14003   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14005 _ACEOF
14006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14007   ac_datarootdir_hack='
14008   s&@datadir@&$datadir&g
14009   s&@docdir@&$docdir&g
14010   s&@infodir@&$infodir&g
14011   s&@localedir@&$localedir&g
14012   s&@mandir@&$mandir&g
14013     s&\\\${datarootdir}&$datarootdir&g' ;;
14014 esac
14015 _ACEOF
14016
14017 # Neutralize VPATH when `$srcdir' = `.'.
14018 # Shell code in configure.ac might set extrasub.
14019 # FIXME: do we really want to maintain this feature?
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 ac_sed_extra="$ac_vpsub
14022 $extrasub
14023 _ACEOF
14024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14025 :t
14026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14027 s|@configure_input@|$ac_sed_conf_input|;t t
14028 s&@top_builddir@&$ac_top_builddir_sub&;t t
14029 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14030 s&@srcdir@&$ac_srcdir&;t t
14031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14032 s&@top_srcdir@&$ac_top_srcdir&;t t
14033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14034 s&@builddir@&$ac_builddir&;t t
14035 s&@abs_builddir@&$ac_abs_builddir&;t t
14036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14037 s&@INSTALL@&$ac_INSTALL&;t t
14038 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14039 $ac_datarootdir_hack
14040 "
14041 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14042   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14043 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14044    { (exit 1); exit 1; }; }
14045
14046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14047   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14048   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14049   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14050 which seems to be undefined.  Please make sure it is defined." >&5
14051 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14052 which seems to be undefined.  Please make sure it is defined." >&2;}
14053
14054   rm -f "$tmp/stdin"
14055   case $ac_file in
14056   -) cat "$tmp/out" && rm -f "$tmp/out";;
14057   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14058   esac \
14059   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14060 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14061    { (exit 1); exit 1; }; }
14062  ;;
14063
14064
14065   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14066 $as_echo "$as_me: executing $ac_file commands" >&6;}
14067  ;;
14068   esac
14069
14070
14071   case $ac_file$ac_mode in
14072     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14073   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14074   # are listed without --file.  Let's play safe and only enable the eval
14075   # if we detect the quoting.
14076   case $CONFIG_FILES in
14077   *\'*) eval set x "$CONFIG_FILES" ;;
14078   *)   set x $CONFIG_FILES ;;
14079   esac
14080   shift
14081   for mf
14082   do
14083     # Strip MF so we end up with the name of the file.
14084     mf=`echo "$mf" | sed -e 's/:.*$//'`
14085     # Check whether this is an Automake generated Makefile or not.
14086     # We used to match only the files named `Makefile.in', but
14087     # some people rename them; so instead we look at the file content.
14088     # Grep'ing the first line is not enough: some people post-process
14089     # each Makefile.in and add a new line on top of each file to say so.
14090     # Grep'ing the whole file is not good either: AIX grep has a line
14091     # limit of 2048, but all sed's we know have understand at least 4000.
14092     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14093       dirpart=`$as_dirname -- "$mf" ||
14094 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14095          X"$mf" : 'X\(//\)[^/]' \| \
14096          X"$mf" : 'X\(//\)$' \| \
14097          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14098 $as_echo X"$mf" |
14099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14100             s//\1/
14101             q
14102           }
14103           /^X\(\/\/\)[^/].*/{
14104             s//\1/
14105             q
14106           }
14107           /^X\(\/\/\)$/{
14108             s//\1/
14109             q
14110           }
14111           /^X\(\/\).*/{
14112             s//\1/
14113             q
14114           }
14115           s/.*/./; q'`
14116     else
14117       continue
14118     fi
14119     # Extract the definition of DEPDIR, am__include, and am__quote
14120     # from the Makefile without running `make'.
14121     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14122     test -z "$DEPDIR" && continue
14123     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14124     test -z "am__include" && continue
14125     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14126     # When using ansi2knr, U may be empty or an underscore; expand it
14127     U=`sed -n 's/^U = //p' < "$mf"`
14128     # Find all dependency output files, they are included files with
14129     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14130     # simplest approach to changing $(DEPDIR) to its actual value in the
14131     # expansion.
14132     for file in `sed -n "
14133       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14134          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14135       # Make sure the directory exists.
14136       test -f "$dirpart/$file" && continue
14137       fdir=`$as_dirname -- "$file" ||
14138 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14139          X"$file" : 'X\(//\)[^/]' \| \
14140          X"$file" : 'X\(//\)$' \| \
14141          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14142 $as_echo X"$file" |
14143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14144             s//\1/
14145             q
14146           }
14147           /^X\(\/\/\)[^/].*/{
14148             s//\1/
14149             q
14150           }
14151           /^X\(\/\/\)$/{
14152             s//\1/
14153             q
14154           }
14155           /^X\(\/\).*/{
14156             s//\1/
14157             q
14158           }
14159           s/.*/./; q'`
14160       { as_dir=$dirpart/$fdir
14161   case $as_dir in #(
14162   -*) as_dir=./$as_dir;;
14163   esac
14164   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14165     as_dirs=
14166     while :; do
14167       case $as_dir in #(
14168       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14169       *) as_qdir=$as_dir;;
14170       esac
14171       as_dirs="'$as_qdir' $as_dirs"
14172       as_dir=`$as_dirname -- "$as_dir" ||
14173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14174          X"$as_dir" : 'X\(//\)[^/]' \| \
14175          X"$as_dir" : 'X\(//\)$' \| \
14176          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14177 $as_echo X"$as_dir" |
14178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14179             s//\1/
14180             q
14181           }
14182           /^X\(\/\/\)[^/].*/{
14183             s//\1/
14184             q
14185           }
14186           /^X\(\/\/\)$/{
14187             s//\1/
14188             q
14189           }
14190           /^X\(\/\).*/{
14191             s//\1/
14192             q
14193           }
14194           s/.*/./; q'`
14195       test -d "$as_dir" && break
14196     done
14197     test -z "$as_dirs" || eval "mkdir $as_dirs"
14198   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14199 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14200    { (exit 1); exit 1; }; }; }
14201       # echo "creating $dirpart/$file"
14202       echo '# dummy' > "$dirpart/$file"
14203     done
14204   done
14205 }
14206  ;;
14207     "libtool":C)
14208
14209     # See if we are running on zsh, and set the options which allow our
14210     # commands through without removal of \ escapes.
14211     if test -n "${ZSH_VERSION+set}" ; then
14212       setopt NO_GLOB_SUBST
14213     fi
14214
14215     cfgfile="${ofile}T"
14216     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14217     $RM "$cfgfile"
14218
14219     cat <<_LT_EOF >> "$cfgfile"
14220 #! $SHELL
14221
14222 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14223 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14224 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14226 #
14227 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14228 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14229 #   Written by Gordon Matzigkeit, 1996
14230 #
14231 #   This file is part of GNU Libtool.
14232 #
14233 # GNU Libtool is free software; you can redistribute it and/or
14234 # modify it under the terms of the GNU General Public License as
14235 # published by the Free Software Foundation; either version 2 of
14236 # the License, or (at your option) any later version.
14237 #
14238 # As a special exception to the GNU General Public License,
14239 # if you distribute this file as part of a program or library that
14240 # is built using GNU Libtool, you may include this file under the
14241 # same distribution terms that you use for the rest of that program.
14242 #
14243 # GNU Libtool is distributed in the hope that it will be useful,
14244 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14245 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14246 # GNU General Public License for more details.
14247 #
14248 # You should have received a copy of the GNU General Public License
14249 # along with GNU Libtool; see the file COPYING.  If not, a copy
14250 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14251 # obtained by writing to the Free Software Foundation, Inc.,
14252 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14253
14254
14255 # The names of the tagged configurations supported by this script.
14256 available_tags=""
14257
14258 # ### BEGIN LIBTOOL CONFIG
14259
14260 # A sed program that does not truncate output.
14261 SED=$lt_SED
14262
14263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14264 Xsed="\$SED -e 1s/^X//"
14265
14266 # Assembler program.
14267 AS=$AS
14268
14269 # DLL creation program.
14270 DLLTOOL=$DLLTOOL
14271
14272 # Object dumper program.
14273 OBJDUMP=$OBJDUMP
14274
14275 # Which release of libtool.m4 was used?
14276 macro_version=$macro_version
14277 macro_revision=$macro_revision
14278
14279 # Whether or not to build shared libraries.
14280 build_libtool_libs=$enable_shared
14281
14282 # Whether or not to build static libraries.
14283 build_old_libs=$enable_static
14284
14285 # What type of objects to build.
14286 pic_mode=$pic_mode
14287
14288 # Whether or not to optimize for fast installation.
14289 fast_install=$enable_fast_install
14290
14291 # The host system.
14292 host_alias=$host_alias
14293 host=$host
14294 host_os=$host_os
14295
14296 # The build system.
14297 build_alias=$build_alias
14298 build=$build
14299 build_os=$build_os
14300
14301 # A grep program that handles long lines.
14302 GREP=$lt_GREP
14303
14304 # An ERE matcher.
14305 EGREP=$lt_EGREP
14306
14307 # A literal string matcher.
14308 FGREP=$lt_FGREP
14309
14310 # A BSD- or MS-compatible name lister.
14311 NM=$lt_NM
14312
14313 # Whether we need soft or hard links.
14314 LN_S=$lt_LN_S
14315
14316 # What is the maximum length of a command?
14317 max_cmd_len=$max_cmd_len
14318
14319 # Object file suffix (normally "o").
14320 objext=$ac_objext
14321
14322 # Executable file suffix (normally "").
14323 exeext=$exeext
14324
14325 # whether the shell understands "unset".
14326 lt_unset=$lt_unset
14327
14328 # turn spaces into newlines.
14329 SP2NL=$lt_lt_SP2NL
14330
14331 # turn newlines into spaces.
14332 NL2SP=$lt_lt_NL2SP
14333
14334 # How to create reloadable object files.
14335 reload_flag=$lt_reload_flag
14336 reload_cmds=$lt_reload_cmds
14337
14338 # Method to check whether dependent libraries are shared objects.
14339 deplibs_check_method=$lt_deplibs_check_method
14340
14341 # Command to use when deplibs_check_method == "file_magic".
14342 file_magic_cmd=$lt_file_magic_cmd
14343
14344 # The archiver.
14345 AR=$lt_AR
14346 AR_FLAGS=$lt_AR_FLAGS
14347
14348 # A symbol stripping program.
14349 STRIP=$lt_STRIP
14350
14351 # Commands used to install an old-style archive.
14352 RANLIB=$lt_RANLIB
14353 old_postinstall_cmds=$lt_old_postinstall_cmds
14354 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14355
14356 # A C compiler.
14357 LTCC=$lt_CC
14358
14359 # LTCC compiler flags.
14360 LTCFLAGS=$lt_CFLAGS
14361
14362 # Take the output of nm and produce a listing of raw symbols and C names.
14363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14364
14365 # Transform the output of nm in a proper C declaration.
14366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14367
14368 # Transform the output of nm in a C name address pair.
14369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14370
14371 # Transform the output of nm in a C name address pair when lib prefix is needed.
14372 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14373
14374 # The name of the directory that contains temporary libtool files.
14375 objdir=$objdir
14376
14377 # Shell to use when invoking shell scripts.
14378 SHELL=$lt_SHELL
14379
14380 # An echo program that does not interpret backslashes.
14381 ECHO=$lt_ECHO
14382
14383 # Used to examine libraries when file_magic_cmd begins with "file".
14384 MAGIC_CMD=$MAGIC_CMD
14385
14386 # Must we lock files when doing compilation?
14387 need_locks=$lt_need_locks
14388
14389 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14390 DSYMUTIL=$lt_DSYMUTIL
14391
14392 # Tool to change global to local symbols on Mac OS X.
14393 NMEDIT=$lt_NMEDIT
14394
14395 # Tool to manipulate fat objects and archives on Mac OS X.
14396 LIPO=$lt_LIPO
14397
14398 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14399 OTOOL=$lt_OTOOL
14400
14401 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14402 OTOOL64=$lt_OTOOL64
14403
14404 # Old archive suffix (normally "a").
14405 libext=$libext
14406
14407 # Shared library suffix (normally ".so").
14408 shrext_cmds=$lt_shrext_cmds
14409
14410 # The commands to extract the exported symbol list from a shared archive.
14411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14412
14413 # Variables whose values should be saved in libtool wrapper scripts and
14414 # restored at link time.
14415 variables_saved_for_relink=$lt_variables_saved_for_relink
14416
14417 # Do we need the "lib" prefix for modules?
14418 need_lib_prefix=$need_lib_prefix
14419
14420 # Do we need a version for libraries?
14421 need_version=$need_version
14422
14423 # Library versioning type.
14424 version_type=$version_type
14425
14426 # Shared library runtime path variable.
14427 runpath_var=$runpath_var
14428
14429 # Shared library path variable.
14430 shlibpath_var=$shlibpath_var
14431
14432 # Is shlibpath searched before the hard-coded library search path?
14433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14434
14435 # Format of library name prefix.
14436 libname_spec=$lt_libname_spec
14437
14438 # List of archive names.  First name is the real one, the rest are links.
14439 # The last name is the one that the linker finds with -lNAME
14440 library_names_spec=$lt_library_names_spec
14441
14442 # The coded name of the library, if different from the real name.
14443 soname_spec=$lt_soname_spec
14444
14445 # Command to use after installation of a shared archive.
14446 postinstall_cmds=$lt_postinstall_cmds
14447
14448 # Command to use after uninstallation of a shared archive.
14449 postuninstall_cmds=$lt_postuninstall_cmds
14450
14451 # Commands used to finish a libtool library installation in a directory.
14452 finish_cmds=$lt_finish_cmds
14453
14454 # As "finish_cmds", except a single script fragment to be evaled but
14455 # not shown.
14456 finish_eval=$lt_finish_eval
14457
14458 # Whether we should hardcode library paths into libraries.
14459 hardcode_into_libs=$hardcode_into_libs
14460
14461 # Compile-time system search path for libraries.
14462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14463
14464 # Run-time system search path for libraries.
14465 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14466
14467 # Whether dlopen is supported.
14468 dlopen_support=$enable_dlopen
14469
14470 # Whether dlopen of programs is supported.
14471 dlopen_self=$enable_dlopen_self
14472
14473 # Whether dlopen of statically linked programs is supported.
14474 dlopen_self_static=$enable_dlopen_self_static
14475
14476 # Commands to strip libraries.
14477 old_striplib=$lt_old_striplib
14478 striplib=$lt_striplib
14479
14480
14481 # The linker used to build libraries.
14482 LD=$lt_LD
14483
14484 # Commands used to build an old-style archive.
14485 old_archive_cmds=$lt_old_archive_cmds
14486
14487 # A language specific compiler.
14488 CC=$lt_compiler
14489
14490 # Is the compiler the GNU compiler?
14491 with_gcc=$GCC
14492
14493 # Compiler flag to turn off builtin functions.
14494 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14495
14496 # How to pass a linker flag through the compiler.
14497 wl=$lt_lt_prog_compiler_wl
14498
14499 # Additional compiler flags for building library objects.
14500 pic_flag=$lt_lt_prog_compiler_pic
14501
14502 # Compiler flag to prevent dynamic linking.
14503 link_static_flag=$lt_lt_prog_compiler_static
14504
14505 # Does compiler simultaneously support -c and -o options?
14506 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14507
14508 # Whether or not to add -lc for building shared libraries.
14509 build_libtool_need_lc=$archive_cmds_need_lc
14510
14511 # Whether or not to disallow shared libs when runtime libs are static.
14512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14513
14514 # Compiler flag to allow reflexive dlopens.
14515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14516
14517 # Compiler flag to generate shared objects directly from archives.
14518 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14519
14520 # Whether the compiler copes with passing no objects directly.
14521 compiler_needs_object=$lt_compiler_needs_object
14522
14523 # Create an old-style archive from a shared archive.
14524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14525
14526 # Create a temporary old-style archive to link instead of a shared archive.
14527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14528
14529 # Commands used to build a shared archive.
14530 archive_cmds=$lt_archive_cmds
14531 archive_expsym_cmds=$lt_archive_expsym_cmds
14532
14533 # Commands used to build a loadable module if different from building
14534 # a shared archive.
14535 module_cmds=$lt_module_cmds
14536 module_expsym_cmds=$lt_module_expsym_cmds
14537
14538 # Whether we are building with GNU ld or not.
14539 with_gnu_ld=$lt_with_gnu_ld
14540
14541 # Flag that allows shared libraries with undefined symbols to be built.
14542 allow_undefined_flag=$lt_allow_undefined_flag
14543
14544 # Flag that enforces no undefined symbols.
14545 no_undefined_flag=$lt_no_undefined_flag
14546
14547 # Flag to hardcode \$libdir into a binary during linking.
14548 # This must work even if \$libdir does not exist
14549 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14550
14551 # If ld is used when linking, flag to hardcode \$libdir into a binary
14552 # during linking.  This must work even if \$libdir does not exist.
14553 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14554
14555 # Whether we need a single "-rpath" flag with a separated argument.
14556 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14557
14558 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14559 # DIR into the resulting binary.
14560 hardcode_direct=$hardcode_direct
14561
14562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14563 # DIR into the resulting binary and the resulting library dependency is
14564 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14565 # library is relocated.
14566 hardcode_direct_absolute=$hardcode_direct_absolute
14567
14568 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14569 # into the resulting binary.
14570 hardcode_minus_L=$hardcode_minus_L
14571
14572 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14573 # into the resulting binary.
14574 hardcode_shlibpath_var=$hardcode_shlibpath_var
14575
14576 # Set to "yes" if building a shared library automatically hardcodes DIR
14577 # into the library and all subsequent libraries and executables linked
14578 # against it.
14579 hardcode_automatic=$hardcode_automatic
14580
14581 # Set to yes if linker adds runtime paths of dependent libraries
14582 # to runtime path list.
14583 inherit_rpath=$inherit_rpath
14584
14585 # Whether libtool must link a program against all its dependency libraries.
14586 link_all_deplibs=$link_all_deplibs
14587
14588 # Fix the shell variable \$srcfile for the compiler.
14589 fix_srcfile_path=$lt_fix_srcfile_path
14590
14591 # Set to "yes" if exported symbols are required.
14592 always_export_symbols=$always_export_symbols
14593
14594 # The commands to list exported symbols.
14595 export_symbols_cmds=$lt_export_symbols_cmds
14596
14597 # Symbols that should not be listed in the preloaded symbols.
14598 exclude_expsyms=$lt_exclude_expsyms
14599
14600 # Symbols that must always be exported.
14601 include_expsyms=$lt_include_expsyms
14602
14603 # Commands necessary for linking programs (against libraries) with templates.
14604 prelink_cmds=$lt_prelink_cmds
14605
14606 # Specify filename containing input files.
14607 file_list_spec=$lt_file_list_spec
14608
14609 # How to hardcode a shared library path into an executable.
14610 hardcode_action=$hardcode_action
14611
14612 # ### END LIBTOOL CONFIG
14613
14614 _LT_EOF
14615
14616   case $host_os in
14617   aix3*)
14618     cat <<\_LT_EOF >> "$cfgfile"
14619 # AIX sometimes has problems with the GCC collect2 program.  For some
14620 # reason, if we set the COLLECT_NAMES environment variable, the problems
14621 # vanish in a puff of smoke.
14622 if test "X${COLLECT_NAMES+set}" != Xset; then
14623   COLLECT_NAMES=
14624   export COLLECT_NAMES
14625 fi
14626 _LT_EOF
14627     ;;
14628   esac
14629
14630
14631 ltmain="$ac_aux_dir/ltmain.sh"
14632
14633
14634   # We use sed instead of cat because bash on DJGPP gets confused if
14635   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14636   # text mode, it properly converts lines to CR/LF.  This bash problem
14637   # is reportedly fixed, but why not run on old versions too?
14638   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14639     || (rm -f "$cfgfile"; exit 1)
14640
14641   case $xsi_shell in
14642   yes)
14643     cat << \_LT_EOF >> "$cfgfile"
14644
14645 # func_dirname file append nondir_replacement
14646 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14647 # otherwise set result to NONDIR_REPLACEMENT.
14648 func_dirname ()
14649 {
14650   case ${1} in
14651     */*) func_dirname_result="${1%/*}${2}" ;;
14652     *  ) func_dirname_result="${3}" ;;
14653   esac
14654 }
14655
14656 # func_basename file
14657 func_basename ()
14658 {
14659   func_basename_result="${1##*/}"
14660 }
14661
14662 # func_dirname_and_basename file append nondir_replacement
14663 # perform func_basename and func_dirname in a single function
14664 # call:
14665 #   dirname:  Compute the dirname of FILE.  If nonempty,
14666 #             add APPEND to the result, otherwise set result
14667 #             to NONDIR_REPLACEMENT.
14668 #             value returned in "$func_dirname_result"
14669 #   basename: Compute filename of FILE.
14670 #             value retuned in "$func_basename_result"
14671 # Implementation must be kept synchronized with func_dirname
14672 # and func_basename. For efficiency, we do not delegate to
14673 # those functions but instead duplicate the functionality here.
14674 func_dirname_and_basename ()
14675 {
14676   case ${1} in
14677     */*) func_dirname_result="${1%/*}${2}" ;;
14678     *  ) func_dirname_result="${3}" ;;
14679   esac
14680   func_basename_result="${1##*/}"
14681 }
14682
14683 # func_stripname prefix suffix name
14684 # strip PREFIX and SUFFIX off of NAME.
14685 # PREFIX and SUFFIX must not contain globbing or regex special
14686 # characters, hashes, percent signs, but SUFFIX may contain a leading
14687 # dot (in which case that matches only a dot).
14688 func_stripname ()
14689 {
14690   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14691   # positional parameters, so assign one to ordinary parameter first.
14692   func_stripname_result=${3}
14693   func_stripname_result=${func_stripname_result#"${1}"}
14694   func_stripname_result=${func_stripname_result%"${2}"}
14695 }
14696
14697 # func_opt_split
14698 func_opt_split ()
14699 {
14700   func_opt_split_opt=${1%%=*}
14701   func_opt_split_arg=${1#*=}
14702 }
14703
14704 # func_lo2o object
14705 func_lo2o ()
14706 {
14707   case ${1} in
14708     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14709     *)    func_lo2o_result=${1} ;;
14710   esac
14711 }
14712
14713 # func_xform libobj-or-source
14714 func_xform ()
14715 {
14716   func_xform_result=${1%.*}.lo
14717 }
14718
14719 # func_arith arithmetic-term...
14720 func_arith ()
14721 {
14722   func_arith_result=$(( $* ))
14723 }
14724
14725 # func_len string
14726 # STRING may not start with a hyphen.
14727 func_len ()
14728 {
14729   func_len_result=${#1}
14730 }
14731
14732 _LT_EOF
14733     ;;
14734   *) # Bourne compatible functions.
14735     cat << \_LT_EOF >> "$cfgfile"
14736
14737 # func_dirname file append nondir_replacement
14738 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14739 # otherwise set result to NONDIR_REPLACEMENT.
14740 func_dirname ()
14741 {
14742   # Extract subdirectory from the argument.
14743   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14744   if test "X$func_dirname_result" = "X${1}"; then
14745     func_dirname_result="${3}"
14746   else
14747     func_dirname_result="$func_dirname_result${2}"
14748   fi
14749 }
14750
14751 # func_basename file
14752 func_basename ()
14753 {
14754   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14755 }
14756
14757
14758 # func_stripname prefix suffix name
14759 # strip PREFIX and SUFFIX off of NAME.
14760 # PREFIX and SUFFIX must not contain globbing or regex special
14761 # characters, hashes, percent signs, but SUFFIX may contain a leading
14762 # dot (in which case that matches only a dot).
14763 # func_strip_suffix prefix name
14764 func_stripname ()
14765 {
14766   case ${2} in
14767     .*) func_stripname_result=`$ECHO "X${3}" \
14768            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14769     *)  func_stripname_result=`$ECHO "X${3}" \
14770            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14771   esac
14772 }
14773
14774 # sed scripts:
14775 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14776 my_sed_long_arg='1s/^-[^=]*=//'
14777
14778 # func_opt_split
14779 func_opt_split ()
14780 {
14781   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14782   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14783 }
14784
14785 # func_lo2o object
14786 func_lo2o ()
14787 {
14788   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14789 }
14790
14791 # func_xform libobj-or-source
14792 func_xform ()
14793 {
14794   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14795 }
14796
14797 # func_arith arithmetic-term...
14798 func_arith ()
14799 {
14800   func_arith_result=`expr "$@"`
14801 }
14802
14803 # func_len string
14804 # STRING may not start with a hyphen.
14805 func_len ()
14806 {
14807   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14808 }
14809
14810 _LT_EOF
14811 esac
14812
14813 case $lt_shell_append in
14814   yes)
14815     cat << \_LT_EOF >> "$cfgfile"
14816
14817 # func_append var value
14818 # Append VALUE to the end of shell variable VAR.
14819 func_append ()
14820 {
14821   eval "$1+=\$2"
14822 }
14823 _LT_EOF
14824     ;;
14825   *)
14826     cat << \_LT_EOF >> "$cfgfile"
14827
14828 # func_append var value
14829 # Append VALUE to the end of shell variable VAR.
14830 func_append ()
14831 {
14832   eval "$1=\$$1\$2"
14833 }
14834
14835 _LT_EOF
14836     ;;
14837   esac
14838
14839
14840   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14841     || (rm -f "$cfgfile"; exit 1)
14842
14843   mv -f "$cfgfile" "$ofile" ||
14844     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14845   chmod +x "$ofile"
14846
14847  ;;
14848
14849   esac
14850 done # for ac_tag
14851
14852
14853 { (exit 0); exit 0; }
14854 _ACEOF
14855 chmod +x $CONFIG_STATUS
14856 ac_clean_files=$ac_clean_files_save
14857
14858 test $ac_write_fail = 0 ||
14859   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14860 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14861    { (exit 1); exit 1; }; }
14862
14863
14864 # configure is writing to config.log, and then calls config.status.
14865 # config.status does its own redirection, appending to config.log.
14866 # Unfortunately, on DOS this fails, as config.log is still kept open
14867 # by configure, so config.status won't be able to write to it; its
14868 # output is simply discarded.  So we exec the FD to /dev/null,
14869 # effectively closing config.log, so it can be properly (re)opened and
14870 # appended to by config.status.  When coming back to configure, we
14871 # need to make the FD available again.
14872 if test "$no_create" != yes; then
14873   ac_cs_success=:
14874   ac_config_status_args=
14875   test "$silent" = yes &&
14876     ac_config_status_args="$ac_config_status_args --quiet"
14877   exec 5>/dev/null
14878   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14879   exec 5>>config.log
14880   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14881   # would make configure fail if this is the last instruction.
14882   $ac_cs_success || { (exit 1); exit 1; }
14883 fi
14884
14885 #
14886 # CONFIG_SUBDIRS section.
14887 #
14888 if test "$no_recursion" != yes; then
14889
14890   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14891   # so they do not pile up.
14892   ac_sub_configure_args=
14893   ac_prev=
14894   eval "set x $ac_configure_args"
14895   shift
14896   for ac_arg
14897   do
14898     if test -n "$ac_prev"; then
14899       ac_prev=
14900       continue
14901     fi
14902     case $ac_arg in
14903     -cache-file | --cache-file | --cache-fil | --cache-fi \
14904     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14905       ac_prev=cache_file ;;
14906     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14907     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14908     | --c=*)
14909       ;;
14910     --config-cache | -C)
14911       ;;
14912     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14913       ac_prev=srcdir ;;
14914     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14915       ;;
14916     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14917       ac_prev=prefix ;;
14918     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14919       ;;
14920     --disable-option-checking)
14921       ;;
14922     *)
14923       case $ac_arg in
14924       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14925       esac
14926       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14927     esac
14928   done
14929
14930   # Always prepend --prefix to ensure using the same prefix
14931   # in subdir configurations.
14932   ac_arg="--prefix=$prefix"
14933   case $ac_arg in
14934   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14935   esac
14936   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14937
14938   # Pass --silent
14939   if test "$silent" = yes; then
14940     ac_sub_configure_args="--silent $ac_sub_configure_args"
14941   fi
14942
14943   # Always prepend --disable-option-checking to silence warnings, since
14944   # different subdirs can have different --enable and --with options.
14945   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14946
14947   ac_popdir=`pwd`
14948   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14949
14950     # Do not complain, so a configure script can configure whichever
14951     # parts of a large source tree are present.
14952     test -d "$srcdir/$ac_dir" || continue
14953
14954     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14955     $as_echo "$as_me:$LINENO: $ac_msg" >&5
14956     $as_echo "$ac_msg" >&6
14957     { as_dir="$ac_dir"
14958   case $as_dir in #(
14959   -*) as_dir=./$as_dir;;
14960   esac
14961   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14962     as_dirs=
14963     while :; do
14964       case $as_dir in #(
14965       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14966       *) as_qdir=$as_dir;;
14967       esac
14968       as_dirs="'$as_qdir' $as_dirs"
14969       as_dir=`$as_dirname -- "$as_dir" ||
14970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14971          X"$as_dir" : 'X\(//\)[^/]' \| \
14972          X"$as_dir" : 'X\(//\)$' \| \
14973          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14974 $as_echo X"$as_dir" |
14975     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14976             s//\1/
14977             q
14978           }
14979           /^X\(\/\/\)[^/].*/{
14980             s//\1/
14981             q
14982           }
14983           /^X\(\/\/\)$/{
14984             s//\1/
14985             q
14986           }
14987           /^X\(\/\).*/{
14988             s//\1/
14989             q
14990           }
14991           s/.*/./; q'`
14992       test -d "$as_dir" && break
14993     done
14994     test -z "$as_dirs" || eval "mkdir $as_dirs"
14995   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14996 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14997    { (exit 1); exit 1; }; }; }
14998     ac_builddir=.
14999
15000 case "$ac_dir" in
15001 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15002 *)
15003   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15004   # A ".." for each directory in $ac_dir_suffix.
15005   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15006   case $ac_top_builddir_sub in
15007   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15008   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15009   esac ;;
15010 esac
15011 ac_abs_top_builddir=$ac_pwd
15012 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15013 # for backward compatibility:
15014 ac_top_builddir=$ac_top_build_prefix
15015
15016 case $srcdir in
15017   .)  # We are building in place.
15018     ac_srcdir=.
15019     ac_top_srcdir=$ac_top_builddir_sub
15020     ac_abs_top_srcdir=$ac_pwd ;;
15021   [\\/]* | ?:[\\/]* )  # Absolute name.
15022     ac_srcdir=$srcdir$ac_dir_suffix;
15023     ac_top_srcdir=$srcdir
15024     ac_abs_top_srcdir=$srcdir ;;
15025   *) # Relative name.
15026     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15027     ac_top_srcdir=$ac_top_build_prefix$srcdir
15028     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15029 esac
15030 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15031
15032
15033     cd "$ac_dir"
15034
15035     # Check for guested configure; otherwise get Cygnus style configure.
15036     if test -f "$ac_srcdir/configure.gnu"; then
15037       ac_sub_configure=$ac_srcdir/configure.gnu
15038     elif test -f "$ac_srcdir/configure"; then
15039       ac_sub_configure=$ac_srcdir/configure
15040     elif test -f "$ac_srcdir/configure.in"; then
15041       # This should be Cygnus configure.
15042       ac_sub_configure=$ac_aux_dir/configure
15043     else
15044       { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15045 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15046       ac_sub_configure=
15047     fi
15048
15049     # The recursion is here.
15050     if test -n "$ac_sub_configure"; then
15051       # Make the cache file name correct relative to the subdirectory.
15052       case $cache_file in
15053       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15054       *) # Relative name.
15055         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15056       esac
15057
15058       { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15059 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15060       # The eval makes quoting arguments work.
15061       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15062            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15063         { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15064 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15065    { (exit 1); exit 1; }; }
15066     fi
15067
15068     cd "$ac_popdir"
15069   done
15070 fi
15071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15072   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15073 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15074 fi
15075