Remove use of alloca.
[external/binutils.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gas 2.26.51.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (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
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='gas'
558 PACKAGE_TARNAME='gas'
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='gas 2.26.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="as.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 zlibinc
606 zlibdir
607 LIBM
608 ALLOCA
609 GENINSRC_NEVER_FALSE
610 GENINSRC_NEVER_TRUE
611 MAINT
612 MAINTAINER_MODE_FALSE
613 MAINTAINER_MODE_TRUE
614 MSGMERGE
615 MSGFMT
616 MKINSTALLDIRS
617 CATOBJEXT
618 GENCAT
619 INSTOBJEXT
620 DATADIRNAME
621 CATALOGS
622 POSUB
623 GMSGFMT
624 XGETTEXT
625 INCINTL
626 LIBINTL_DEP
627 LIBINTL
628 USE_NLS
629 LEXLIB
630 LEX_OUTPUT_ROOT
631 LEX
632 YFLAGS
633 YACC
634 OPCODES_LIB
635 atof
636 install_tooldir
637 te_file
638 obj_format
639 target_cpu_type
640 extra_objects
641 cgen_cpu_prefix
642 GDBINIT
643 NO_WERROR
644 WARN_CFLAGS
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 RANLIB
651 AR
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 SED
660 LIBTOOL
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
678 AWK
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 target_os
704 target_vendor
705 target_cpu
706 target
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_dependency_tracking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 enable_plugins
764 enable_largefile
765 enable_targets
766 enable_checking
767 enable_compressed_debug_sections
768 enable_x86_relax_relocations
769 enable_elf_stt_common
770 enable_werror
771 enable_build_warnings
772 enable_nls
773 enable_maintainer_mode
774 with_system_zlib
775 '
776       ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 YACC
786 YFLAGS'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841   # If the previous option needs an argument, assign it.
842   if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846   fi
847
848   case $ac_option in
849   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850   *)    ac_optarg=yes ;;
851   esac
852
853   # Accept the important Cygnus configure options, so we can diagnose typos.
854
855   case $ac_dashdash$ac_option in
856   --)
857     ac_dashdash=yes ;;
858
859   -bindir | --bindir | --bindi | --bind | --bin | --bi)
860     ac_prev=bindir ;;
861   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862     bindir=$ac_optarg ;;
863
864   -build | --build | --buil | --bui | --bu)
865     ac_prev=build_alias ;;
866   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867     build_alias=$ac_optarg ;;
868
869   -cache-file | --cache-file | --cache-fil | --cache-fi \
870   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871     ac_prev=cache_file ;;
872   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874     cache_file=$ac_optarg ;;
875
876   --config-cache | -C)
877     cache_file=config.cache ;;
878
879   -datadir | --datadir | --datadi | --datad)
880     ac_prev=datadir ;;
881   -datadir=* | --datadir=* | --datadi=* | --datad=*)
882     datadir=$ac_optarg ;;
883
884   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885   | --dataroo | --dataro | --datar)
886     ac_prev=datarootdir ;;
887   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889     datarootdir=$ac_optarg ;;
890
891   -disable-* | --disable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       as_fn_error "invalid feature name: $ac_useropt"
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899       *"
900 "enable_$ac_useropt"
901 "*) ;;
902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903          ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=no ;;
906
907   -docdir | --docdir | --docdi | --doc | --do)
908     ac_prev=docdir ;;
909   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910     docdir=$ac_optarg ;;
911
912   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913     ac_prev=dvidir ;;
914   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915     dvidir=$ac_optarg ;;
916
917   -enable-* | --enable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=\$ac_optarg ;;
1136
1137   -without-* | --without-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) as_fn_error "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information."
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     case $ac_envvar in #(
1179       '' | [0-9]* | *[!_$as_cr_alnum]* )
1180       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1181     esac
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   as_fn_error "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202   case $enable_option_checking in
1203     no) ;;
1204     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206   esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211                 datadir sysconfdir sharedstatedir localstatedir includedir \
1212                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213                 libdir localedir mandir
1214 do
1215   eval ac_val=\$$ac_var
1216   # Remove trailing slashes.
1217   case $ac_val in
1218     */ )
1219       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220       eval $ac_var=\$ac_val;;
1221   esac
1222   # Be sure to have absolute directory names.
1223   case $ac_val in
1224     [\\/$]* | ?:[\\/]* )  continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226   esac
1227   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239   if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242     If a cross compiler is detected then cross compile mode will be used." >&2
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   as_fn_error "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   as_fn_error "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$as_myself" : 'X\(//\)[^/]' \| \
1269          X"$as_myself" : 'X\(//\)$' \| \
1270          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1303         pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306   srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_env_${ac_var}_value=\$${ac_var}
1317   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325   # Omit some internal or obsolete options to make the list less imposing.
1326   # This message is too long to be a string in the A/UX 3.1 sh.
1327   cat <<_ACEOF
1328 \`configure' configures gas 2.26.51 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338   -h, --help              display this help and exit
1339       --help=short        display options specific to this package
1340       --help=recursive    display the short help of all the included packages
1341   -V, --version           display version information and exit
1342   -q, --quiet, --silent   do not print \`checking...' messages
1343       --cache-file=FILE   cache test results in FILE [disabled]
1344   -C, --config-cache      alias for \`--cache-file=config.cache'
1345   -n, --no-create         do not create output files
1346       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349   --prefix=PREFIX         install architecture-independent files in PREFIX
1350                           [$ac_default_prefix]
1351   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                           [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362   --bindir=DIR            user executables [EPREFIX/bin]
1363   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1364   --libexecdir=DIR        program executables [EPREFIX/libexec]
1365   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1366   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1367   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1368   --libdir=DIR            object code libraries [EPREFIX/lib]
1369   --includedir=DIR        C header files [PREFIX/include]
1370   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1371   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1372   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1373   --infodir=DIR           info documentation [DATAROOTDIR/info]
1374   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1375   --mandir=DIR            man documentation [DATAROOTDIR/man]
1376   --docdir=DIR            documentation root [DATAROOTDIR/doc/gas]
1377   --htmldir=DIR           html documentation [DOCDIR]
1378   --dvidir=DIR            dvi documentation [DOCDIR]
1379   --pdfdir=DIR            pdf documentation [DOCDIR]
1380   --psdir=DIR             ps documentation [DOCDIR]
1381 _ACEOF
1382
1383   cat <<\_ACEOF
1384
1385 Program names:
1386   --program-prefix=PREFIX            prepend PREFIX to installed program names
1387   --program-suffix=SUFFIX            append SUFFIX to installed program names
1388   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1389
1390 System types:
1391   --build=BUILD     configure for building on BUILD [guessed]
1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393   --target=TARGET   configure for building compilers for TARGET [HOST]
1394 _ACEOF
1395 fi
1396
1397 if test -n "$ac_init_help"; then
1398   case $ac_init_help in
1399      short | recursive ) echo "Configuration of gas 2.26.51:";;
1400    esac
1401   cat <<\_ACEOF
1402
1403 Optional Features:
1404   --disable-option-checking  ignore unrecognized --enable/--with options
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --disable-dependency-tracking  speeds up one-time build
1408   --enable-dependency-tracking   do not reject slow dependency extractors
1409   --enable-shared[=PKGS]  build shared libraries [default=yes]
1410   --enable-static[=PKGS]  build static libraries [default=yes]
1411   --enable-fast-install[=PKGS]
1412                           optimize for fast installation [default=yes]
1413   --disable-libtool-lock  avoid locking (might break parallel builds)
1414   --enable-plugins        Enable support for plugins
1415   --disable-largefile     omit support for large files
1416   --enable-targets        alternative target configurations besides the primary
1417   --enable-checking       enable run-time checks
1418   --enable-compressed-debug-sections={all,gas,none}
1419                           compress debug sections by default
1420   --enable-x86-relax-relocations
1421                           generate x86 relax relocations by default
1422   --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1423                           default
1424   --enable-werror         treat compile warnings as errors
1425   --enable-build-warnings enable build-time compiler warnings
1426   --disable-nls           do not use Native Language Support
1427   --enable-maintainer-mode  enable make rules and dependencies not useful
1428                           (and sometimes confusing) to the casual installer
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-pic              try to use only PIC/non-PIC objects [default=use
1434                           both]
1435   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1436   --with-system-zlib      use installed libz
1437
1438 Some influential environment variables:
1439   CC          C compiler command
1440   CFLAGS      C compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   LIBS        libraries to pass to the linker, e.g. -l<library>
1444   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445               you have headers in a nonstandard directory <include dir>
1446   CPP         C preprocessor
1447   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1448               the first program found out of: `bison -y', `byacc', `yacc'.
1449   YFLAGS      The list of arguments that will be passed by default to $YACC.
1450               This script will default YFLAGS to the empty string to avoid a
1451               default value of `-d' given by some make applications.
1452
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1455
1456 Report bugs to the package provider.
1457 _ACEOF
1458 ac_status=$?
1459 fi
1460
1461 if test "$ac_init_help" = "recursive"; then
1462   # If there are subdirs, report their specific --help.
1463   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464     test -d "$ac_dir" ||
1465       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466       continue
1467     ac_builddir=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
1472   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473   # A ".." for each directory in $ac_dir_suffix.
1474   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475   case $ac_top_builddir_sub in
1476   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478   esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1484
1485 case $srcdir in
1486   .)  # We are building in place.
1487     ac_srcdir=.
1488     ac_top_srcdir=$ac_top_builddir_sub
1489     ac_abs_top_srcdir=$ac_pwd ;;
1490   [\\/]* | ?:[\\/]* )  # Absolute name.
1491     ac_srcdir=$srcdir$ac_dir_suffix;
1492     ac_top_srcdir=$srcdir
1493     ac_abs_top_srcdir=$srcdir ;;
1494   *) # Relative name.
1495     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496     ac_top_srcdir=$ac_top_build_prefix$srcdir
1497     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501     cd "$ac_dir" || { ac_status=$?; continue; }
1502     # Check for guested configure.
1503     if test -f "$ac_srcdir/configure.gnu"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506     elif test -f "$ac_srcdir/configure"; then
1507       echo &&
1508       $SHELL "$ac_srcdir/configure" --help=recursive
1509     else
1510       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511     fi || ac_status=$?
1512     cd "$ac_pwd" || { ac_status=$?; break; }
1513   done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518   cat <<\_ACEOF
1519 gas configure 2.26.51
1520 generated by GNU Autoconf 2.64
1521
1522 Copyright (C) 2009 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526   exit
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
1538   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539   rm -f conftest.$ac_objext
1540   if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543   *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547   (eval "$ac_compile") 2>conftest.err
1548   ac_status=$?
1549   if test -s conftest.err; then
1550     grep -v '^ *+' conftest.err >conftest.er1
1551     cat conftest.er1 >&5
1552     mv -f conftest.er1 conftest.err
1553   fi
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; } && {
1556          test -z "$ac_c_werror_flag" ||
1557          test ! -s conftest.err
1558        } && test -s conftest.$ac_objext; then :
1559   ac_retval=0
1560 else
1561   $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564         ac_retval=1
1565 fi
1566   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567   return $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1575 {
1576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577   rm -f conftest.$ac_objext conftest$ac_exeext
1578   if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581   *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585   (eval "$ac_link") 2>conftest.err
1586   ac_status=$?
1587   if test -s conftest.err; then
1588     grep -v '^ *+' conftest.err >conftest.er1
1589     cat conftest.er1 >&5
1590     mv -f conftest.er1 conftest.err
1591   fi
1592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593   test $ac_status = 0; } && {
1594          test -z "$ac_c_werror_flag" ||
1595          test ! -s conftest.err
1596        } && test -s conftest$ac_exeext && {
1597          test "$cross_compiling" = yes ||
1598          $as_test_x conftest$ac_exeext
1599        }; then :
1600   ac_retval=0
1601 else
1602   $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605         ac_retval=1
1606 fi
1607   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609   # interfere with the next link command; also delete a directory that is
1610   # left behind by Apple's compiler.  We do this before executing the actions.
1611   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613   return $ac_retval
1614
1615 } # ac_fn_c_try_link
1616
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_cpp ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631   ac_status=$?
1632   if test -s conftest.err; then
1633     grep -v '^ *+' conftest.err >conftest.er1
1634     cat conftest.er1 >&5
1635     mv -f conftest.er1 conftest.err
1636   fi
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } >/dev/null && {
1639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640          test ! -s conftest.err
1641        }; then :
1642   ac_retval=0
1643 else
1644   $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647     ac_retval=1
1648 fi
1649   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650   return $ac_retval
1651
1652 } # ac_fn_c_try_cpp
1653
1654 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1657 # the include files in INCLUDES and setting the cache variable VAR
1658 # accordingly.
1659 ac_fn_c_check_header_mongrel ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1666   $as_echo_n "(cached) " >&6
1667 fi
1668 eval ac_res=\$$3
1669                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 else
1672   # Is the header compilable?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1674 $as_echo_n "checking $2 usability... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h.  */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681   ac_header_compiler=yes
1682 else
1683   ac_header_compiler=no
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1687 $as_echo "$ac_header_compiler" >&6; }
1688
1689 # Is the header present?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1691 $as_echo_n "checking $2 presence... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_cpp "$LINENO"; then :
1697   ac_header_preproc=yes
1698 else
1699   ac_header_preproc=no
1700 fi
1701 rm -f conftest.err conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1703 $as_echo "$ac_header_preproc" >&6; }
1704
1705 # So?  What about this header?
1706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1707   yes:no: )
1708     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1709 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1710     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712     ;;
1713   no:yes:* )
1714     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1715 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1716     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1717 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1719 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1721 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724     ;;
1725 esac
1726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729   $as_echo_n "(cached) " >&6
1730 else
1731   eval "$3=\$ac_header_compiler"
1732 fi
1733 eval ac_res=\$$3
1734                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 fi
1737   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738
1739 } # ac_fn_c_check_header_mongrel
1740
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1745 ac_fn_c_try_run ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   if { { ac_try="$ac_link"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_link") 2>&5
1756   ac_status=$?
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759   { { case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_try") 2>&5
1766   ac_status=$?
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; }; }; then :
1769   ac_retval=0
1770 else
1771   $as_echo "$as_me: program exited with status $ac_status" >&5
1772        $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775        ac_retval=$ac_status
1776 fi
1777   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779   return $ac_retval
1780
1781 } # ac_fn_c_try_run
1782
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1788 {
1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793   $as_echo_n "(cached) " >&6
1794 else
1795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h.  */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801   eval "$3=yes"
1802 else
1803   eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812 } # ac_fn_c_check_header_compile
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823   $as_echo_n "(cached) " >&6
1824 else
1825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h.  */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832     which can conflict with char $2 (); below.
1833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834     <limits.h> exists even on freestanding compilers.  */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845    Use char because int might match the return type of a GCC
1846    builtin and then its argument prototype would still apply.  */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852     to always fail with ENOSYS.  Some functions are actually named
1853     something starting with __ and the normal name is an alias.  */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862   ;
1863   return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867   eval "$3=yes"
1868 else
1869   eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872     conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879 } # ac_fn_c_check_func
1880
1881 # ac_fn_c_check_decl LINENO SYMBOL VAR
1882 # ------------------------------------
1883 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1884 ac_fn_c_check_decl ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   as_decl_name=`echo $2|sed 's/ *(.*//'`
1888   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1890 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892   $as_echo_n "(cached) " >&6
1893 else
1894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 $4
1897 int
1898 main ()
1899 {
1900 #ifndef $as_decl_name
1901 #ifdef __cplusplus
1902   (void) $as_decl_use;
1903 #else
1904   (void) $as_decl_name;
1905 #endif
1906 #endif
1907
1908   ;
1909   return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   eval "$3=yes"
1914 else
1915   eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924 } # ac_fn_c_check_decl
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1928
1929 It was created by gas $as_me 2.26.51, which was
1930 generated by GNU Autoconf 2.64.  Invocation command line was
1931
1932   $ $0 $@
1933
1934 _ACEOF
1935 exec 5>>config.log
1936 {
1937 cat <<_ASUNAME
1938 ## --------- ##
1939 ## Platform. ##
1940 ## --------- ##
1941
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1950
1951 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1952 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1955 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1956 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1957 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1958
1959 _ASUNAME
1960
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966     $as_echo "PATH: $as_dir"
1967   done
1968 IFS=$as_save_IFS
1969
1970 } >&5
1971
1972 cat >&5 <<_ACEOF
1973
1974
1975 ## ----------- ##
1976 ## Core tests. ##
1977 ## ----------- ##
1978
1979 _ACEOF
1980
1981
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1987 ac_configure_args=
1988 ac_configure_args0=
1989 ac_configure_args1=
1990 ac_must_keep_next=false
1991 for ac_pass in 1 2
1992 do
1993   for ac_arg
1994   do
1995     case $ac_arg in
1996     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998     | -silent | --silent | --silen | --sile | --sil)
1999       continue ;;
2000     *\'*)
2001       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2002     esac
2003     case $ac_pass in
2004     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2005     2)
2006       as_fn_append ac_configure_args1 " '$ac_arg'"
2007       if test $ac_must_keep_next = true; then
2008         ac_must_keep_next=false # Got value, back to normal.
2009       else
2010         case $ac_arg in
2011           *=* | --config-cache | -C | -disable-* | --disable-* \
2012           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014           | -with-* | --with-* | -without-* | --without-* | --x)
2015             case "$ac_configure_args0 " in
2016               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017             esac
2018             ;;
2019           -* ) ac_must_keep_next=true ;;
2020         esac
2021       fi
2022       as_fn_append ac_configure_args " '$ac_arg'"
2023       ;;
2024     esac
2025   done
2026 done
2027 { ac_configure_args0=; unset ac_configure_args0;}
2028 { ac_configure_args1=; unset ac_configure_args1;}
2029
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log.  We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036   # Save into config.log some information that might help in debugging.
2037   {
2038     echo
2039
2040     cat <<\_ASBOX
2041 ## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##
2044 _ASBOX
2045     echo
2046     # The following way of writing the cache mishandles newlines in values,
2047 (
2048   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049     eval ac_val=\$$ac_var
2050     case $ac_val in #(
2051     *${as_nl}*)
2052       case $ac_var in #(
2053       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055       esac
2056       case $ac_var in #(
2057       _ | IFS | as_nl) ;; #(
2058       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059       *) { eval $ac_var=; unset $ac_var;} ;;
2060       esac ;;
2061     esac
2062   done
2063   (set) 2>&1 |
2064     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065     *${as_nl}ac_space=\ *)
2066       sed -n \
2067         "s/'\''/'\''\\\\'\'''\''/g;
2068           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069       ;; #(
2070     *)
2071       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072       ;;
2073     esac |
2074     sort
2075 )
2076     echo
2077
2078     cat <<\_ASBOX
2079 ## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##
2082 _ASBOX
2083     echo
2084     for ac_var in $ac_subst_vars
2085     do
2086       eval ac_val=\$$ac_var
2087       case $ac_val in
2088       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089       esac
2090       $as_echo "$ac_var='\''$ac_val'\''"
2091     done | sort
2092     echo
2093
2094     if test -n "$ac_subst_files"; then
2095       cat <<\_ASBOX
2096 ## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##
2099 _ASBOX
2100       echo
2101       for ac_var in $ac_subst_files
2102       do
2103         eval ac_val=\$$ac_var
2104         case $ac_val in
2105         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106         esac
2107         $as_echo "$ac_var='\''$ac_val'\''"
2108       done | sort
2109       echo
2110     fi
2111
2112     if test -s confdefs.h; then
2113       cat <<\_ASBOX
2114 ## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##
2117 _ASBOX
2118       echo
2119       cat confdefs.h
2120       echo
2121     fi
2122     test "$ac_signal" != 0 &&
2123       $as_echo "$as_me: caught signal $ac_signal"
2124     $as_echo "$as_me: exit $exit_status"
2125   } >&5
2126   rm -f core *.core core.conftest.* &&
2127     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128     exit $exit_status
2129 ' 0
2130 for ac_signal in 1 2 13 15; do
2131   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132 done
2133 ac_signal=0
2134
2135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2136 rm -f -r conftest* confdefs.h
2137
2138 $as_echo "/* confdefs.h */" > confdefs.h
2139
2140 # Predefined preprocessor variables.
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_STRING "$PACKAGE_STRING"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_URL "$PACKAGE_URL"
2164 _ACEOF
2165
2166
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2169 ac_site_file1=NONE
2170 ac_site_file2=NONE
2171 if test -n "$CONFIG_SITE"; then
2172   ac_site_file1=$CONFIG_SITE
2173 elif test "x$prefix" != xNONE; then
2174   ac_site_file1=$prefix/share/config.site
2175   ac_site_file2=$prefix/etc/config.site
2176 else
2177   ac_site_file1=$ac_default_prefix/share/config.site
2178   ac_site_file2=$ac_default_prefix/etc/config.site
2179 fi
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 do
2182   test "x$ac_site_file" = xNONE && continue
2183   if test -r "$ac_site_file"; then
2184     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186     sed 's/^/| /' "$ac_site_file" >&5
2187     . "$ac_site_file"
2188   fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192   # Some versions of bash will fail to source /dev/null (special
2193   # files actually), so we avoid doing that.
2194   if test -f "$cache_file"; then
2195     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2197     case $cache_file in
2198       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199       *)                      . "./$cache_file";;
2200     esac
2201   fi
2202 else
2203   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2205   >$cache_file
2206 fi
2207
2208 # Check that the precious variables saved in the cache have kept the same
2209 # value.
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213   eval ac_new_set=\$ac_env_${ac_var}_set
2214   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215   eval ac_new_val=\$ac_env_${ac_var}_value
2216   case $ac_old_set,$ac_new_set in
2217     set,)
2218       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220       ac_cache_corrupted=: ;;
2221     ,set)
2222       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224       ac_cache_corrupted=: ;;
2225     ,);;
2226     *)
2227       if test "x$ac_old_val" != "x$ac_new_val"; then
2228         # differences in whitespace do not lead to failure.
2229         ac_old_val_w=`echo x $ac_old_val`
2230         ac_new_val_w=`echo x $ac_new_val`
2231         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234           ac_cache_corrupted=:
2235         else
2236           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238           eval $ac_var=\$ac_old_val
2239         fi
2240         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2241 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2242         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2244       fi;;
2245   esac
2246   # Pass precious variables to config.status.
2247   if test "$ac_new_set" = set; then
2248     case $ac_new_val in
2249     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250     *) ac_arg=$ac_var=$ac_new_val ;;
2251     esac
2252     case " $ac_configure_args " in
2253       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2254       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255     esac
2256   fi
2257 done
2258 if $ac_cache_corrupted; then
2259   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264 fi
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2268
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
2278
2279
2280
2281 ac_aux_dir=
2282 for ac_dir in .. "$srcdir"/..; do
2283   for ac_t in install-sh install.sh shtool; do
2284     if test -f "$ac_dir/$ac_t"; then
2285       ac_aux_dir=$ac_dir
2286       ac_install_sh="$ac_aux_dir/$ac_t -c"
2287       break 2
2288     fi
2289   done
2290 done
2291 if test -z "$ac_aux_dir"; then
2292   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2293 fi
2294
2295 # These three variables are undocumented and unsupported,
2296 # and are intended to be withdrawn in a future Autoconf release.
2297 # They can cause serious problems if a builder's source tree is in a directory
2298 # whose full name contains unusual characters.
2299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2301 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2302
2303
2304 # Make sure we can run config.sub.
2305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2309 $as_echo_n "checking build system type... " >&6; }
2310 if test "${ac_cv_build+set}" = set; then :
2311   $as_echo_n "(cached) " >&6
2312 else
2313   ac_build_alias=$build_alias
2314 test "x$ac_build_alias" = x &&
2315   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2316 test "x$ac_build_alias" = x &&
2317   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2320
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2323 $as_echo "$ac_cv_build" >&6; }
2324 case $ac_cv_build in
2325 *-*-*) ;;
2326 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2327 esac
2328 build=$ac_cv_build
2329 ac_save_IFS=$IFS; IFS='-'
2330 set x $ac_cv_build
2331 shift
2332 build_cpu=$1
2333 build_vendor=$2
2334 shift; shift
2335 # Remember, the first character of IFS is used to create $*,
2336 # except with old shells:
2337 build_os=$*
2338 IFS=$ac_save_IFS
2339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2340
2341
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2343 $as_echo_n "checking host system type... " >&6; }
2344 if test "${ac_cv_host+set}" = set; then :
2345   $as_echo_n "(cached) " >&6
2346 else
2347   if test "x$host_alias" = x; then
2348   ac_cv_host=$ac_cv_build
2349 else
2350   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2351     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2352 fi
2353
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2356 $as_echo "$ac_cv_host" >&6; }
2357 case $ac_cv_host in
2358 *-*-*) ;;
2359 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2360 esac
2361 host=$ac_cv_host
2362 ac_save_IFS=$IFS; IFS='-'
2363 set x $ac_cv_host
2364 shift
2365 host_cpu=$1
2366 host_vendor=$2
2367 shift; shift
2368 # Remember, the first character of IFS is used to create $*,
2369 # except with old shells:
2370 host_os=$*
2371 IFS=$ac_save_IFS
2372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2373
2374
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2376 $as_echo_n "checking target system type... " >&6; }
2377 if test "${ac_cv_target+set}" = set; then :
2378   $as_echo_n "(cached) " >&6
2379 else
2380   if test "x$target_alias" = x; then
2381   ac_cv_target=$ac_cv_host
2382 else
2383   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2385 fi
2386
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2389 $as_echo "$ac_cv_target" >&6; }
2390 case $ac_cv_target in
2391 *-*-*) ;;
2392 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2393 esac
2394 target=$ac_cv_target
2395 ac_save_IFS=$IFS; IFS='-'
2396 set x $ac_cv_target
2397 shift
2398 target_cpu=$1
2399 target_vendor=$2
2400 shift; shift
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2403 target_os=$*
2404 IFS=$ac_save_IFS
2405 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2406
2407
2408 # The aliases save the names the user supplied, while $host etc.
2409 # will get canonicalized.
2410 test -n "$target_alias" &&
2411   test "$program_prefix$program_suffix$program_transform_name" = \
2412     NONENONEs,x,x, &&
2413   program_prefix=${target_alias}-
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then :
2425   $as_echo_n "(cached) " >&6
2426 else
2427   if test -n "$CC"; then
2428   ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433   IFS=$as_save_IFS
2434   test -z "$as_dir" && as_dir=.
2435     for ac_exec_ext in '' $ac_executable_extensions; do
2436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440   fi
2441 done
2442   done
2443 IFS=$as_save_IFS
2444
2445 fi
2446 fi
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2450 $as_echo "$CC" >&6; }
2451 else
2452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2454 fi
2455
2456
2457 fi
2458 if test -z "$ac_cv_prog_CC"; then
2459   ac_ct_CC=$CC
2460   # Extract the first word of "gcc", so it can be a program name with args.
2461 set dummy gcc; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2465   $as_echo_n "(cached) " >&6
2466 else
2467   if test -n "$ac_ct_CC"; then
2468   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473   IFS=$as_save_IFS
2474   test -z "$as_dir" && as_dir=.
2475     for ac_exec_ext in '' $ac_executable_extensions; do
2476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477     ac_cv_prog_ac_ct_CC="gcc"
2478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479     break 2
2480   fi
2481 done
2482   done
2483 IFS=$as_save_IFS
2484
2485 fi
2486 fi
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2490 $as_echo "$ac_ct_CC" >&6; }
2491 else
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 fi
2495
2496   if test "x$ac_ct_CC" = x; then
2497     CC=""
2498   else
2499     case $cross_compiling:$ac_tool_warned in
2500 yes:)
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505     CC=$ac_ct_CC
2506   fi
2507 else
2508   CC="$ac_cv_prog_CC"
2509 fi
2510
2511 if test -z "$CC"; then
2512           if test -n "$ac_tool_prefix"; then
2513     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}cc; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then :
2518   $as_echo_n "(cached) " >&6
2519 else
2520   if test -n "$CC"; then
2521   ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528     for ac_exec_ext in '' $ac_executable_extensions; do
2529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530     ac_cv_prog_CC="${ac_tool_prefix}cc"
2531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535   done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 CC=$ac_cv_prog_CC
2541 if test -n "$CC"; then
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2544 else
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549
2550   fi
2551 fi
2552 if test -z "$CC"; then
2553   # Extract the first word of "cc", so it can be a program name with args.
2554 set dummy cc; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   if test -n "$CC"; then
2561   ac_cv_prog_CC="$CC" # Let the user override the test.
2562 else
2563   ac_prog_rejected=no
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569     for ac_exec_ext in '' $ac_executable_extensions; do
2570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572        ac_prog_rejected=yes
2573        continue
2574      fi
2575     ac_cv_prog_CC="cc"
2576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580   done
2581 IFS=$as_save_IFS
2582
2583 if test $ac_prog_rejected = yes; then
2584   # We found a bogon in the path, so make sure we never use it.
2585   set dummy $ac_cv_prog_CC
2586   shift
2587   if test $# != 0; then
2588     # We chose a different compiler from the bogus one.
2589     # However, it has the same basename, so the bogon will be chosen
2590     # first if we set CC to just the basename; use the full file name.
2591     shift
2592     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593   fi
2594 fi
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2601 else
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$CC"; then
2609   if test -n "$ac_tool_prefix"; then
2610   for ac_prog in cl.exe
2611   do
2612     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   if test -n "$CC"; then
2620   ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627     for ac_exec_ext in '' $ac_executable_extensions; do
2628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631     break 2
2632   fi
2633 done
2634   done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2643 else
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649     test -n "$CC" && break
2650   done
2651 fi
2652 if test -z "$CC"; then
2653   ac_ct_CC=$CC
2654   for ac_prog in cl.exe
2655 do
2656   # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$ac_ct_CC"; then
2664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_ac_ct_CC="$ac_prog"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686 $as_echo "$ac_ct_CC" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692
2693   test -n "$ac_ct_CC" && break
2694 done
2695
2696   if test "x$ac_ct_CC" = x; then
2697     CC=""
2698   else
2699     case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2704 esac
2705     CC=$ac_ct_CC
2706   fi
2707 fi
2708
2709 fi
2710
2711
2712 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714 as_fn_error "no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." "$LINENO" 5; }
2716
2717 # Provide some information about the compiler.
2718 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2719 set X $ac_compile
2720 ac_compiler=$2
2721 for ac_option in --version -v -V -qversion; do
2722   { { ac_try="$ac_compiler $ac_option >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728 $as_echo "$ac_try_echo"; } >&5
2729   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2730   ac_status=$?
2731   if test -s conftest.err; then
2732     sed '10a\
2733 ... rest of stderr output deleted ...
2734          10q' conftest.err >conftest.er1
2735     cat conftest.er1 >&5
2736     rm -f conftest.er1 conftest.err
2737   fi
2738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739   test $ac_status = 0; }
2740 done
2741
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h.  */
2744
2745 int
2746 main ()
2747 {
2748
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2757 # of exeext.
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2759 $as_echo_n "checking for C compiler default output file name... " >&6; }
2760 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2761
2762 # The possible output files:
2763 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2764
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2767 do
2768   case $ac_file in
2769     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2770     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771   esac
2772 done
2773 rm -f $ac_rmfiles
2774
2775 if { { ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782   (eval "$ac_link_default") 2>&5
2783   ac_status=$?
2784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785   test $ac_status = 0; }; then :
2786   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2789 # so that the user can short-circuit this test for compilers unknown to
2790 # Autoconf.
2791 for ac_file in $ac_files ''
2792 do
2793   test -f "$ac_file" || continue
2794   case $ac_file in
2795     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2796         ;;
2797     [ab].out )
2798         # We found the default executable, but exeext='' is most
2799         # certainly right.
2800         break;;
2801     *.* )
2802         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2803         then :; else
2804            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805         fi
2806         # We set ac_cv_exeext here because the later test for it is not
2807         # safe: cross compilers may not add the suffix if given an `-o'
2808         # argument, so we may need to know it at that point already.
2809         # Even if this section looks crufty: it has the advantage of
2810         # actually working.
2811         break;;
2812     * )
2813         break;;
2814   esac
2815 done
2816 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817
2818 else
2819   ac_file=''
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822 $as_echo "$ac_file" >&6; }
2823 if test -z "$ac_file"; then :
2824   $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829 { as_fn_set_status 77
2830 as_fn_error "C compiler cannot create executables
2831 See \`config.log' for more details." "$LINENO" 5; }; }
2832 fi
2833 ac_exeext=$ac_cv_exeext
2834
2835 # Check that the compiler produces executables we can run.  If not, either
2836 # the compiler is broken, or we cross compile.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2838 $as_echo_n "checking whether the C compiler works... " >&6; }
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841   if { ac_try='./$ac_file'
2842   { { case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848   (eval "$ac_try") 2>&5
2849   ac_status=$?
2850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851   test $ac_status = 0; }; }; then
2852     cross_compiling=no
2853   else
2854     if test "$cross_compiling" = maybe; then
2855         cross_compiling=yes
2856     else
2857         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 as_fn_error "cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." "$LINENO" 5; }
2862     fi
2863   fi
2864 fi
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867
2868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2869 ac_clean_files=$ac_clean_files_save
2870 # Check that the compiler produces executables we can run.  If not, either
2871 # the compiler is broken, or we cross compile.
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2873 $as_echo_n "checking whether we are cross compiling... " >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2875 $as_echo "$cross_compiling" >&6; }
2876
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878 $as_echo_n "checking for suffix of executables... " >&6; }
2879 if { { ac_try="$ac_link"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886   (eval "$ac_link") 2>&5
2887   ac_status=$?
2888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889   test $ac_status = 0; }; then :
2890   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2893 # `rm'.
2894 for ac_file in conftest.exe conftest conftest.*; do
2895   test -f "$ac_file" || continue
2896   case $ac_file in
2897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899           break;;
2900     * ) break;;
2901   esac
2902 done
2903 else
2904   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error "cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." "$LINENO" 5; }
2908 fi
2909 rm -f conftest$ac_cv_exeext
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911 $as_echo "$ac_cv_exeext" >&6; }
2912
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2917 $as_echo_n "checking for suffix of object files... " >&6; }
2918 if test "${ac_cv_objext+set}" = set; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.o conftest.obj
2933 if { { ac_try="$ac_compile"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940   (eval "$ac_compile") 2>&5
2941   ac_status=$?
2942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943   test $ac_status = 0; }; then :
2944   for ac_file in conftest.o conftest.obj conftest.*; do
2945   test -f "$ac_file" || continue;
2946   case $ac_file in
2947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2948     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2949        break;;
2950   esac
2951 done
2952 else
2953   $as_echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 as_fn_error "cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." "$LINENO" 5; }
2960 fi
2961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2964 $as_echo "$ac_cv_objext" >&6; }
2965 OBJEXT=$ac_cv_objext
2966 ac_objext=$OBJEXT
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2969 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2970   $as_echo_n "(cached) " >&6
2971 else
2972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h.  */
2974
2975 int
2976 main ()
2977 {
2978 #ifndef __GNUC__
2979        choke me
2980 #endif
2981
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 if ac_fn_c_try_compile "$LINENO"; then :
2987   ac_compiler_gnu=yes
2988 else
2989   ac_compiler_gnu=no
2990 fi
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2993
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2997 if test $ac_compiler_gnu = yes; then
2998   GCC=yes
2999 else
3000   GCC=
3001 fi
3002 ac_test_CFLAGS=${CFLAGS+set}
3003 ac_save_CFLAGS=$CFLAGS
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3006 if test "${ac_cv_prog_cc_g+set}" = set; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   ac_save_c_werror_flag=$ac_c_werror_flag
3010    ac_c_werror_flag=yes
3011    ac_cv_prog_cc_g=no
3012    CFLAGS="-g"
3013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h.  */
3015
3016 int
3017 main ()
3018 {
3019
3020   ;
3021   return 0;
3022 }
3023 _ACEOF
3024 if ac_fn_c_try_compile "$LINENO"; then :
3025   ac_cv_prog_cc_g=yes
3026 else
3027   CFLAGS=""
3028       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 if ac_fn_c_try_compile "$LINENO"; then :
3040
3041 else
3042   ac_c_werror_flag=$ac_save_c_werror_flag
3043          CFLAGS="-g"
3044          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h.  */
3046
3047 int
3048 main ()
3049 {
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 if ac_fn_c_try_compile "$LINENO"; then :
3056   ac_cv_prog_cc_g=yes
3057 fi
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 fi
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 fi
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063    ac_c_werror_flag=$ac_save_c_werror_flag
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3066 $as_echo "$ac_cv_prog_cc_g" >&6; }
3067 if test "$ac_test_CFLAGS" = set; then
3068   CFLAGS=$ac_save_CFLAGS
3069 elif test $ac_cv_prog_cc_g = yes; then
3070   if test "$GCC" = yes; then
3071     CFLAGS="-g -O2"
3072   else
3073     CFLAGS="-g"
3074   fi
3075 else
3076   if test "$GCC" = yes; then
3077     CFLAGS="-O2"
3078   else
3079     CFLAGS=
3080   fi
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3084 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3085   $as_echo_n "(cached) " >&6
3086 else
3087   ac_cv_prog_cc_c89=no
3088 ac_save_CC=$CC
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h.  */
3091 #include <stdarg.h>
3092 #include <stdio.h>
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3096 struct buf { int x; };
3097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098 static char *e (p, i)
3099      char **p;
3100      int i;
3101 {
3102   return p[i];
3103 }
3104 static char *f (char * (*g) (char **, int), char **p, ...)
3105 {
3106   char *s;
3107   va_list v;
3108   va_start (v,p);
3109   s = g (p, va_arg (v,int));
3110   va_end (v);
3111   return s;
3112 }
3113
3114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3115    function prototypes and stuff, but not '\xHH' hex character constants.
3116    These don't provoke an error unfortunately, instead are silently treated
3117    as 'x'.  The following induces an error, until -std is added to get
3118    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3119    array size at least.  It's necessary to write '\x00'==0 to get something
3120    that's true only with -std.  */
3121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3122
3123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124    inside strings and character constants.  */
3125 #define FOO(x) 'x'
3126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3127
3128 int test (int i, double x);
3129 struct s1 {int (*f) (int a);};
3130 struct s2 {int (*f) (double a);};
3131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3132 int argc;
3133 char **argv;
3134 int
3135 main ()
3136 {
3137 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3138   ;
3139   return 0;
3140 }
3141 _ACEOF
3142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3144 do
3145   CC="$ac_save_CC $ac_arg"
3146   if ac_fn_c_try_compile "$LINENO"; then :
3147   ac_cv_prog_cc_c89=$ac_arg
3148 fi
3149 rm -f core conftest.err conftest.$ac_objext
3150   test "x$ac_cv_prog_cc_c89" != "xno" && break
3151 done
3152 rm -f conftest.$ac_ext
3153 CC=$ac_save_CC
3154
3155 fi
3156 # AC_CACHE_VAL
3157 case "x$ac_cv_prog_cc_c89" in
3158   x)
3159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3160 $as_echo "none needed" >&6; } ;;
3161   xno)
3162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3163 $as_echo "unsupported" >&6; } ;;
3164   *)
3165     CC="$CC $ac_cv_prog_cc_c89"
3166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3168 esac
3169 if test "x$ac_cv_prog_cc_c89" != xno; then :
3170
3171 fi
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3181 $as_echo_n "checking for library containing strerror... " >&6; }
3182 if test "${ac_cv_search_strerror+set}" = set; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   ac_func_search_save_LIBS=$LIBS
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h.  */
3188
3189 /* Override any GCC internal prototype to avoid an error.
3190    Use char because int might match the return type of a GCC
3191    builtin and then its argument prototype would still apply.  */
3192 #ifdef __cplusplus
3193 extern "C"
3194 #endif
3195 char strerror ();
3196 int
3197 main ()
3198 {
3199 return strerror ();
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 for ac_lib in '' cposix; do
3205   if test -z "$ac_lib"; then
3206     ac_res="none required"
3207   else
3208     ac_res=-l$ac_lib
3209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3210   fi
3211   if ac_fn_c_try_link "$LINENO"; then :
3212   ac_cv_search_strerror=$ac_res
3213 fi
3214 rm -f core conftest.err conftest.$ac_objext \
3215     conftest$ac_exeext
3216   if test "${ac_cv_search_strerror+set}" = set; then :
3217   break
3218 fi
3219 done
3220 if test "${ac_cv_search_strerror+set}" = set; then :
3221
3222 else
3223   ac_cv_search_strerror=no
3224 fi
3225 rm conftest.$ac_ext
3226 LIBS=$ac_func_search_save_LIBS
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3229 $as_echo "$ac_cv_search_strerror" >&6; }
3230 ac_res=$ac_cv_search_strerror
3231 if test "$ac_res" != no; then :
3232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3233
3234 fi
3235
3236
3237 am__api_version='1.11'
3238
3239 # Find a good install program.  We prefer a C program (faster),
3240 # so one script is as good as another.  But avoid the broken or
3241 # incompatible versions:
3242 # SysV /etc/install, /usr/sbin/install
3243 # SunOS /usr/etc/install
3244 # IRIX /sbin/install
3245 # AIX /bin/install
3246 # AmigaOS /C/install, which installs bootblocks on floppy discs
3247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3250 # OS/2's system install, which has a completely different semantic
3251 # ./install, which can be erroneously created by make from ./install.sh.
3252 # Reject install programs that cannot install multiple files.
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3254 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3255 if test -z "$INSTALL"; then
3256 if test "${ac_cv_path_install+set}" = set; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264     # Account for people who put trailing slashes in PATH elements.
3265 case $as_dir/ in #((
3266   ./ | .// | /[cC]/* | \
3267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3268   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3269   /usr/ucb/* ) ;;
3270   *)
3271     # OSF1 and SCO ODT 3.0 have their own names for install.
3272     # Don't use installbsd from OSF since it installs stuff as root
3273     # by default.
3274     for ac_prog in ginstall scoinst install; do
3275       for ac_exec_ext in '' $ac_executable_extensions; do
3276         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3277           if test $ac_prog = install &&
3278             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279             # AIX install.  It has an incompatible calling convention.
3280             :
3281           elif test $ac_prog = install &&
3282             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283             # program-specific install script used by HP pwplus--don't use.
3284             :
3285           else
3286             rm -rf conftest.one conftest.two conftest.dir
3287             echo one > conftest.one
3288             echo two > conftest.two
3289             mkdir conftest.dir
3290             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3291               test -s conftest.one && test -s conftest.two &&
3292               test -s conftest.dir/conftest.one &&
3293               test -s conftest.dir/conftest.two
3294             then
3295               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3296               break 3
3297             fi
3298           fi
3299         fi
3300       done
3301     done
3302     ;;
3303 esac
3304
3305   done
3306 IFS=$as_save_IFS
3307
3308 rm -rf conftest.one conftest.two conftest.dir
3309
3310 fi
3311   if test "${ac_cv_path_install+set}" = set; then
3312     INSTALL=$ac_cv_path_install
3313   else
3314     # As a last resort, use the slow shell script.  Don't cache a
3315     # value for INSTALL within a source directory, because that will
3316     # break other packages using the cache if that directory is
3317     # removed, or if the value is a relative name.
3318     INSTALL=$ac_install_sh
3319   fi
3320 fi
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3322 $as_echo "$INSTALL" >&6; }
3323
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3327
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3329
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3333 $as_echo_n "checking whether build environment is sane... " >&6; }
3334 # Just in case
3335 sleep 1
3336 echo timestamp > conftest.file
3337 # Reject unsafe characters in $srcdir or the absolute working directory
3338 # name.  Accept space and tab only in the latter.
3339 am_lf='
3340 '
3341 case `pwd` in
3342   *[\\\"\#\$\&\'\`$am_lf]*)
3343     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3344 esac
3345 case $srcdir in
3346   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3347     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3348 esac
3349
3350 # Do `set' in a subshell so we don't clobber the current shell's
3351 # arguments.  Must try -L first in case configure is actually a
3352 # symlink; some systems play weird games with the mod time of symlinks
3353 # (eg FreeBSD returns the mod time of the symlink's containing
3354 # directory).
3355 if (
3356    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3357    if test "$*" = "X"; then
3358       # -L didn't work.
3359       set X `ls -t "$srcdir/configure" conftest.file`
3360    fi
3361    rm -f conftest.file
3362    if test "$*" != "X $srcdir/configure conftest.file" \
3363       && test "$*" != "X conftest.file $srcdir/configure"; then
3364
3365       # If neither matched, then we have a broken ls.  This can happen
3366       # if, for instance, CONFIG_SHELL is bash and it inherits a
3367       # broken ls alias from the environment.  This has actually
3368       # happened.  Such a system could not be considered "sane".
3369       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3370 alias in your environment" "$LINENO" 5
3371    fi
3372
3373    test "$2" = conftest.file
3374    )
3375 then
3376    # Ok.
3377    :
3378 else
3379    as_fn_error "newly created file is older than distributed files!
3380 Check your system clock" "$LINENO" 5
3381 fi
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3384 test "$program_prefix" != NONE &&
3385   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3386 # Use a double $ so make ignores it.
3387 test "$program_suffix" != NONE &&
3388   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3389 # Double any \ or $.
3390 # By default was `s,x,x', remove it if useless.
3391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3392 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3393
3394 # expand $ac_aux_dir to an absolute path
3395 am_aux_dir=`cd $ac_aux_dir && pwd`
3396
3397 if test x"${MISSING+set}" != xset; then
3398   case $am_aux_dir in
3399   *\ * | *\     *)
3400     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3401   *)
3402     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3403   esac
3404 fi
3405 # Use eval to expand $SHELL
3406 if eval "$MISSING --run true"; then
3407   am_missing_run="$MISSING --run "
3408 else
3409   am_missing_run=
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3411 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3412 fi
3413
3414 if test x"${install_sh}" != xset; then
3415   case $am_aux_dir in
3416   *\ * | *\     *)
3417     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3418   *)
3419     install_sh="\${SHELL} $am_aux_dir/install-sh"
3420   esac
3421 fi
3422
3423 # Installed binaries are usually stripped using `strip' when the user
3424 # run `make install-strip'.  However `strip' might not be the right
3425 # tool to use in cross-compilation environments, therefore Automake
3426 # will honor the `STRIP' environment variable to overrule this program.
3427 if test "$cross_compiling" != no; then
3428   if test -n "$ac_tool_prefix"; then
3429   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3430 set dummy ${ac_tool_prefix}strip; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if test "${ac_cv_prog_STRIP+set}" = set; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   if test -n "$STRIP"; then
3437   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442   IFS=$as_save_IFS
3443   test -z "$as_dir" && as_dir=.
3444     for ac_exec_ext in '' $ac_executable_extensions; do
3445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448     break 2
3449   fi
3450 done
3451   done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 STRIP=$ac_cv_prog_STRIP
3457 if test -n "$STRIP"; then
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3459 $as_echo "$STRIP" >&6; }
3460 else
3461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3463 fi
3464
3465
3466 fi
3467 if test -z "$ac_cv_prog_STRIP"; then
3468   ac_ct_STRIP=$STRIP
3469   # Extract the first word of "strip", so it can be a program name with args.
3470 set dummy strip; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   if test -n "$ac_ct_STRIP"; then
3477   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482   IFS=$as_save_IFS
3483   test -z "$as_dir" && as_dir=.
3484     for ac_exec_ext in '' $ac_executable_extensions; do
3485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486     ac_cv_prog_ac_ct_STRIP="strip"
3487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488     break 2
3489   fi
3490 done
3491   done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3497 if test -n "$ac_ct_STRIP"; then
3498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3499 $as_echo "$ac_ct_STRIP" >&6; }
3500 else
3501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 fi
3504
3505   if test "x$ac_ct_STRIP" = x; then
3506     STRIP=":"
3507   else
3508     case $cross_compiling:$ac_tool_warned in
3509 yes:)
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512 ac_tool_warned=yes ;;
3513 esac
3514     STRIP=$ac_ct_STRIP
3515   fi
3516 else
3517   STRIP="$ac_cv_prog_STRIP"
3518 fi
3519
3520 fi
3521 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3522
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3525 if test -z "$MKDIR_P"; then
3526   if test "${ac_cv_path_mkdir+set}" = set; then :
3527   $as_echo_n "(cached) " >&6
3528 else
3529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534     for ac_prog in mkdir gmkdir; do
3535          for ac_exec_ext in '' $ac_executable_extensions; do
3536            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3537            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3538              'mkdir (GNU coreutils) '* | \
3539              'mkdir (coreutils) '* | \
3540              'mkdir (fileutils) '4.1*)
3541                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3542                break 3;;
3543            esac
3544          done
3545        done
3546   done
3547 IFS=$as_save_IFS
3548
3549 fi
3550
3551   if test "${ac_cv_path_mkdir+set}" = set; then
3552     MKDIR_P="$ac_cv_path_mkdir -p"
3553   else
3554     # As a last resort, use the slow shell script.  Don't cache a
3555     # value for MKDIR_P within a source directory, because that will
3556     # break other packages using the cache if that directory is
3557     # removed, or if the value is a relative name.
3558     test -d ./--version && rmdir ./--version
3559     MKDIR_P="$ac_install_sh -d"
3560   fi
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3563 $as_echo "$MKDIR_P" >&6; }
3564
3565 mkdir_p="$MKDIR_P"
3566 case $mkdir_p in
3567   [\\/$]* | ?:[\\/]*) ;;
3568   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3569 esac
3570
3571 for ac_prog in gawk mawk nawk awk
3572 do
3573   # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_AWK+set}" = set; then :
3578   $as_echo_n "(cached) " >&6
3579 else
3580   if test -n "$AWK"; then
3581   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586   IFS=$as_save_IFS
3587   test -z "$as_dir" && as_dir=.
3588     for ac_exec_ext in '' $ac_executable_extensions; do
3589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590     ac_cv_prog_AWK="$ac_prog"
3591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592     break 2
3593   fi
3594 done
3595   done
3596 IFS=$as_save_IFS
3597
3598 fi
3599 fi
3600 AWK=$ac_cv_prog_AWK
3601 if test -n "$AWK"; then
3602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3603 $as_echo "$AWK" >&6; }
3604 else
3605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3607 fi
3608
3609
3610   test -n "$AWK" && break
3611 done
3612
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3615 set x ${MAKE-make}
3616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620   cat >conftest.make <<\_ACEOF
3621 SHELL = /bin/sh
3622 all:
3623         @echo '@@@%%%=$(MAKE)=@@@%%%'
3624 _ACEOF
3625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3627   *@@@%%%=?*=@@@%%%*)
3628     eval ac_cv_prog_make_${ac_make}_set=yes;;
3629   *)
3630     eval ac_cv_prog_make_${ac_make}_set=no;;
3631 esac
3632 rm -f conftest.make
3633 fi
3634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636 $as_echo "yes" >&6; }
3637   SET_MAKE=
3638 else
3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641   SET_MAKE="MAKE=${MAKE-make}"
3642 fi
3643
3644 rm -rf .tst 2>/dev/null
3645 mkdir .tst 2>/dev/null
3646 if test -d .tst; then
3647   am__leading_dot=.
3648 else
3649   am__leading_dot=_
3650 fi
3651 rmdir .tst 2>/dev/null
3652
3653 DEPDIR="${am__leading_dot}deps"
3654
3655 ac_config_commands="$ac_config_commands depfiles"
3656
3657
3658 am_make=${MAKE-make}
3659 cat > confinc << 'END'
3660 am__doit:
3661         @echo this is the am__doit target
3662 .PHONY: am__doit
3663 END
3664 # If we don't find an include directive, just comment out the code.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3666 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3667 am__include="#"
3668 am__quote=
3669 _am_result=none
3670 # First try GNU make style include.
3671 echo "include confinc" > confmf
3672 # Ignore all kinds of additional output from `make'.
3673 case `$am_make -s -f confmf 2> /dev/null` in #(
3674 *the\ am__doit\ target*)
3675   am__include=include
3676   am__quote=
3677   _am_result=GNU
3678   ;;
3679 esac
3680 # Now try BSD make style include.
3681 if test "$am__include" = "#"; then
3682    echo '.include "confinc"' > confmf
3683    case `$am_make -s -f confmf 2> /dev/null` in #(
3684    *the\ am__doit\ target*)
3685      am__include=.include
3686      am__quote="\""
3687      _am_result=BSD
3688      ;;
3689    esac
3690 fi
3691
3692
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3694 $as_echo "$_am_result" >&6; }
3695 rm -f confinc confmf
3696
3697 # Check whether --enable-dependency-tracking was given.
3698 if test "${enable_dependency_tracking+set}" = set; then :
3699   enableval=$enable_dependency_tracking;
3700 fi
3701
3702 if test "x$enable_dependency_tracking" != xno; then
3703   am_depcomp="$ac_aux_dir/depcomp"
3704   AMDEPBACKSLASH='\'
3705 fi
3706  if test "x$enable_dependency_tracking" != xno; then
3707   AMDEP_TRUE=
3708   AMDEP_FALSE='#'
3709 else
3710   AMDEP_TRUE='#'
3711   AMDEP_FALSE=
3712 fi
3713
3714
3715 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3716   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3717   # is not polluted with repeated "-I."
3718   am__isrc=' -I$(srcdir)'
3719   # test to see if srcdir already configured
3720   if test -f $srcdir/config.status; then
3721     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3722   fi
3723 fi
3724
3725 # test whether we have cygpath
3726 if test -z "$CYGPATH_W"; then
3727   if (cygpath --version) >/dev/null 2>/dev/null; then
3728     CYGPATH_W='cygpath -w'
3729   else
3730     CYGPATH_W=echo
3731   fi
3732 fi
3733
3734
3735 # Define the identity of the package.
3736  PACKAGE='gas'
3737  VERSION='2.26.51'
3738
3739
3740 cat >>confdefs.h <<_ACEOF
3741 #define PACKAGE "$PACKAGE"
3742 _ACEOF
3743
3744
3745 cat >>confdefs.h <<_ACEOF
3746 #define VERSION "$VERSION"
3747 _ACEOF
3748
3749 # Some tools Automake needs.
3750
3751 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3752
3753
3754 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3755
3756
3757 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3758
3759
3760 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3761
3762
3763 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3764
3765 # We need awk for the "check" target.  The system "awk" is bad on
3766 # some platforms.
3767 # Always define AMTAR for backward compatibility.
3768
3769 AMTAR=${AMTAR-"${am_missing_run}tar"}
3770
3771 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3772
3773
3774
3775
3776 depcc="$CC"   am_compiler_list=
3777
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784   # We make a subdir and do the tests there.  Otherwise we can end up
3785   # making bogus files that we don't know about and never remove.  For
3786   # instance it was reported that on HP-UX the gcc test will end up
3787   # making a dummy file named `D' -- because `-MD' means `put the output
3788   # in D'.
3789   mkdir conftest.dir
3790   # Copy depcomp to subdir because otherwise we won't find it if we're
3791   # using a relative directory.
3792   cp "$am_depcomp" conftest.dir
3793   cd conftest.dir
3794   # We will build objects and dependencies in a subdirectory because
3795   # it helps to detect inapplicable dependency modes.  For instance
3796   # both Tru64's cc and ICC support -MD to output dependencies as a
3797   # side effect of compilation, but ICC will put the dependencies in
3798   # the current directory while Tru64 will put them in the object
3799   # directory.
3800   mkdir sub
3801
3802   am_cv_CC_dependencies_compiler_type=none
3803   if test "$am_compiler_list" = ""; then
3804      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3805   fi
3806   am__universal=false
3807   case " $depcc " in #(
3808      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3809      esac
3810
3811   for depmode in $am_compiler_list; do
3812     # Setup a source with many dependencies, because some compilers
3813     # like to wrap large dependency lists on column 80 (with \), and
3814     # we should not choose a depcomp mode which is confused by this.
3815     #
3816     # We need to recreate these files for each test, as the compiler may
3817     # overwrite some of them when testing with obscure command lines.
3818     # This happens at least with the AIX C compiler.
3819     : > sub/conftest.c
3820     for i in 1 2 3 4 5 6; do
3821       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3822       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823       # Solaris 8's {/usr,}/bin/sh.
3824       touch sub/conftst$i.h
3825     done
3826     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827
3828     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829     # mode.  It turns out that the SunPro C++ compiler does not properly
3830     # handle `-M -o', and we need to detect this.  Also, some Intel
3831     # versions had trouble with output in subdirs
3832     am__obj=sub/conftest.${OBJEXT-o}
3833     am__minus_obj="-o $am__obj"
3834     case $depmode in
3835     gcc)
3836       # This depmode causes a compiler race in universal mode.
3837       test "$am__universal" = false || continue
3838       ;;
3839     nosideeffect)
3840       # after this tag, mechanisms are not by side-effect, so they'll
3841       # only be used when explicitly requested
3842       if test "x$enable_dependency_tracking" = xyes; then
3843         continue
3844       else
3845         break
3846       fi
3847       ;;
3848     msvisualcpp | msvcmsys)
3849       # This compiler won't grok `-c -o', but also, the minuso test has
3850       # not run yet.  These depmodes are late enough in the game, and
3851       # so weak that their functioning should not be impacted.
3852       am__obj=conftest.${OBJEXT-o}
3853       am__minus_obj=
3854       ;;
3855     none) break ;;
3856     esac
3857     if depmode=$depmode \
3858        source=sub/conftest.c object=$am__obj \
3859        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3861          >/dev/null 2>conftest.err &&
3862        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3865        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866       # icc doesn't choke on unknown options, it will just issue warnings
3867       # or remarks (even with -Werror).  So we grep stderr for any message
3868       # that says an option was ignored or not supported.
3869       # When given -MP, icc 7.0 and 7.1 complain thusly:
3870       #   icc: Command line warning: ignoring option '-M'; no argument required
3871       # The diagnosis changed in icc 8.0:
3872       #   icc: Command line remark: option '-MP' not supported
3873       if (grep 'ignoring option' conftest.err ||
3874           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875         am_cv_CC_dependencies_compiler_type=$depmode
3876         break
3877       fi
3878     fi
3879   done
3880
3881   cd ..
3882   rm -rf conftest.dir
3883 else
3884   am_cv_CC_dependencies_compiler_type=none
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891
3892  if
3893   test "x$enable_dependency_tracking" != xno \
3894   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895   am__fastdepCC_TRUE=
3896   am__fastdepCC_FALSE='#'
3897 else
3898   am__fastdepCC_TRUE='#'
3899   am__fastdepCC_FALSE=
3900 fi
3901
3902
3903
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_CC+set}" = set; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   if test -n "$CC"; then
3919   ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926     for ac_exec_ext in '' $ac_executable_extensions; do
3927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933   done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 CC=$ac_cv_prog_CC
3939 if test -n "$CC"; then
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3942 else
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948 fi
3949 if test -z "$ac_cv_prog_CC"; then
3950   ac_ct_CC=$CC
3951   # Extract the first word of "gcc", so it can be a program name with args.
3952 set dummy gcc; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3956   $as_echo_n "(cached) " >&6
3957 else
3958   if test -n "$ac_ct_CC"; then
3959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966     for ac_exec_ext in '' $ac_executable_extensions; do
3967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968     ac_cv_prog_ac_ct_CC="gcc"
3969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973   done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979 if test -n "$ac_ct_CC"; then
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981 $as_echo "$ac_ct_CC" >&6; }
3982 else
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3985 fi
3986
3987   if test "x$ac_ct_CC" = x; then
3988     CC=""
3989   else
3990     case $cross_compiling:$ac_tool_warned in
3991 yes:)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994 ac_tool_warned=yes ;;
3995 esac
3996     CC=$ac_ct_CC
3997   fi
3998 else
3999   CC="$ac_cv_prog_CC"
4000 fi
4001
4002 if test -z "$CC"; then
4003           if test -n "$ac_tool_prefix"; then
4004     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}cc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if test "${ac_cv_prog_CC+set}" = set; then :
4009   $as_echo_n "(cached) " >&6
4010 else
4011   if test -n "$CC"; then
4012   ac_cv_prog_CC="$CC" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019     for ac_exec_ext in '' $ac_executable_extensions; do
4020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021     ac_cv_prog_CC="${ac_tool_prefix}cc"
4022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023     break 2
4024   fi
4025 done
4026   done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4035 else
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041   fi
4042 fi
4043 if test -z "$CC"; then
4044   # Extract the first word of "cc", so it can be a program name with args.
4045 set dummy cc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if test "${ac_cv_prog_CC+set}" = set; then :
4049   $as_echo_n "(cached) " >&6
4050 else
4051   if test -n "$CC"; then
4052   ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054   ac_prog_rejected=no
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060     for ac_exec_ext in '' $ac_executable_extensions; do
4061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4063        ac_prog_rejected=yes
4064        continue
4065      fi
4066     ac_cv_prog_CC="cc"
4067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068     break 2
4069   fi
4070 done
4071   done
4072 IFS=$as_save_IFS
4073
4074 if test $ac_prog_rejected = yes; then
4075   # We found a bogon in the path, so make sure we never use it.
4076   set dummy $ac_cv_prog_CC
4077   shift
4078   if test $# != 0; then
4079     # We chose a different compiler from the bogus one.
4080     # However, it has the same basename, so the bogon will be chosen
4081     # first if we set CC to just the basename; use the full file name.
4082     shift
4083     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4084   fi
4085 fi
4086 fi
4087 fi
4088 CC=$ac_cv_prog_CC
4089 if test -n "$CC"; then
4090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091 $as_echo "$CC" >&6; }
4092 else
4093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4095 fi
4096
4097
4098 fi
4099 if test -z "$CC"; then
4100   if test -n "$ac_tool_prefix"; then
4101   for ac_prog in cl.exe
4102   do
4103     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_CC+set}" = set; then :
4108   $as_echo_n "(cached) " >&6
4109 else
4110   if test -n "$CC"; then
4111   ac_cv_prog_CC="$CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118     for ac_exec_ext in '' $ac_executable_extensions; do
4119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125   done
4126 IFS=$as_save_IFS
4127
4128 fi
4129 fi
4130 CC=$ac_cv_prog_CC
4131 if test -n "$CC"; then
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133 $as_echo "$CC" >&6; }
4134 else
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4137 fi
4138
4139
4140     test -n "$CC" && break
4141   done
4142 fi
4143 if test -z "$CC"; then
4144   ac_ct_CC=$CC
4145   for ac_prog in cl.exe
4146 do
4147   # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   if test -n "$ac_ct_CC"; then
4155   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162     for ac_exec_ext in '' $ac_executable_extensions; do
4163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164     ac_cv_prog_ac_ct_CC="$ac_prog"
4165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169   done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175 if test -n "$ac_ct_CC"; then
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177 $as_echo "$ac_ct_CC" >&6; }
4178 else
4179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4181 fi
4182
4183
4184   test -n "$ac_ct_CC" && break
4185 done
4186
4187   if test "x$ac_ct_CC" = x; then
4188     CC=""
4189   else
4190     case $cross_compiling:$ac_tool_warned in
4191 yes:)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4195 esac
4196     CC=$ac_ct_CC
4197   fi
4198 fi
4199
4200 fi
4201
4202
4203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error "no acceptable C compiler found in \$PATH
4206 See \`config.log' for more details." "$LINENO" 5; }
4207
4208 # Provide some information about the compiler.
4209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4210 set X $ac_compile
4211 ac_compiler=$2
4212 for ac_option in --version -v -V -qversion; do
4213   { { ac_try="$ac_compiler $ac_option >&5"
4214 case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4221   ac_status=$?
4222   if test -s conftest.err; then
4223     sed '10a\
4224 ... rest of stderr output deleted ...
4225          10q' conftest.err >conftest.er1
4226     cat conftest.er1 >&5
4227     rm -f conftest.er1 conftest.err
4228   fi
4229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230   test $ac_status = 0; }
4231 done
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4234 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4235 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244 #ifndef __GNUC__
4245        choke me
4246 #endif
4247
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253   ac_compiler_gnu=yes
4254 else
4255   ac_compiler_gnu=no
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4259
4260 fi
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4262 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4263 if test $ac_compiler_gnu = yes; then
4264   GCC=yes
4265 else
4266   GCC=
4267 fi
4268 ac_test_CFLAGS=${CFLAGS+set}
4269 ac_save_CFLAGS=$CFLAGS
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4271 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4272 if test "${ac_cv_prog_cc_g+set}" = set; then :
4273   $as_echo_n "(cached) " >&6
4274 else
4275   ac_save_c_werror_flag=$ac_c_werror_flag
4276    ac_c_werror_flag=yes
4277    ac_cv_prog_cc_g=no
4278    CFLAGS="-g"
4279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h.  */
4281
4282 int
4283 main ()
4284 {
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291   ac_cv_prog_cc_g=yes
4292 else
4293   CFLAGS=""
4294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_compile "$LINENO"; then :
4306
4307 else
4308   ac_c_werror_flag=$ac_save_c_werror_flag
4309          CFLAGS="-g"
4310          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h.  */
4312
4313 int
4314 main ()
4315 {
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322   ac_cv_prog_cc_g=yes
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329    ac_c_werror_flag=$ac_save_c_werror_flag
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4332 $as_echo "$ac_cv_prog_cc_g" >&6; }
4333 if test "$ac_test_CFLAGS" = set; then
4334   CFLAGS=$ac_save_CFLAGS
4335 elif test $ac_cv_prog_cc_g = yes; then
4336   if test "$GCC" = yes; then
4337     CFLAGS="-g -O2"
4338   else
4339     CFLAGS="-g"
4340   fi
4341 else
4342   if test "$GCC" = yes; then
4343     CFLAGS="-O2"
4344   else
4345     CFLAGS=
4346   fi
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4349 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4350 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353   ac_cv_prog_cc_c89=no
4354 ac_save_CC=$CC
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h.  */
4357 #include <stdarg.h>
4358 #include <stdio.h>
4359 #include <sys/types.h>
4360 #include <sys/stat.h>
4361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4362 struct buf { int x; };
4363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4364 static char *e (p, i)
4365      char **p;
4366      int i;
4367 {
4368   return p[i];
4369 }
4370 static char *f (char * (*g) (char **, int), char **p, ...)
4371 {
4372   char *s;
4373   va_list v;
4374   va_start (v,p);
4375   s = g (p, va_arg (v,int));
4376   va_end (v);
4377   return s;
4378 }
4379
4380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4381    function prototypes and stuff, but not '\xHH' hex character constants.
4382    These don't provoke an error unfortunately, instead are silently treated
4383    as 'x'.  The following induces an error, until -std is added to get
4384    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4385    array size at least.  It's necessary to write '\x00'==0 to get something
4386    that's true only with -std.  */
4387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4388
4389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4390    inside strings and character constants.  */
4391 #define FOO(x) 'x'
4392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4393
4394 int test (int i, double x);
4395 struct s1 {int (*f) (int a);};
4396 struct s2 {int (*f) (double a);};
4397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4398 int argc;
4399 char **argv;
4400 int
4401 main ()
4402 {
4403 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4409         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4410 do
4411   CC="$ac_save_CC $ac_arg"
4412   if ac_fn_c_try_compile "$LINENO"; then :
4413   ac_cv_prog_cc_c89=$ac_arg
4414 fi
4415 rm -f core conftest.err conftest.$ac_objext
4416   test "x$ac_cv_prog_cc_c89" != "xno" && break
4417 done
4418 rm -f conftest.$ac_ext
4419 CC=$ac_save_CC
4420
4421 fi
4422 # AC_CACHE_VAL
4423 case "x$ac_cv_prog_cc_c89" in
4424   x)
4425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426 $as_echo "none needed" >&6; } ;;
4427   xno)
4428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4429 $as_echo "unsupported" >&6; } ;;
4430   *)
4431     CC="$CC $ac_cv_prog_cc_c89"
4432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4433 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4434 esac
4435 if test "x$ac_cv_prog_cc_c89" != xno; then :
4436
4437 fi
4438
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444
4445 ac_ext=c
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4451 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4452 # On Suns, sometimes $CPP names a directory.
4453 if test -n "$CPP" && test -d "$CPP"; then
4454   CPP=
4455 fi
4456 if test -z "$CPP"; then
4457   if test "${ac_cv_prog_CPP+set}" = set; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460       # Double quotes because CPP needs to be expanded
4461     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4462     do
4463       ac_preproc_ok=false
4464 for ac_c_preproc_warn_flag in '' yes
4465 do
4466   # Use a header file that comes with gcc, so configuring glibc
4467   # with a fresh cross-compiler works.
4468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469   # <limits.h> exists even on freestanding compilers.
4470   # On the NeXT, cc -E runs the code through the compiler's parser,
4471   # not just through cpp. "Syntax error" is here to catch this case.
4472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h.  */
4474 #ifdef __STDC__
4475 # include <limits.h>
4476 #else
4477 # include <assert.h>
4478 #endif
4479                      Syntax error
4480 _ACEOF
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4482
4483 else
4484   # Broken: fails on valid input.
4485 continue
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488
4489   # OK, works on sane cases.  Now check whether nonexistent headers
4490   # can be detected and how.
4491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 #include <ac_nonexistent.h>
4494 _ACEOF
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496   # Broken: success on invalid input.
4497 continue
4498 else
4499   # Passes both tests.
4500 ac_preproc_ok=:
4501 break
4502 fi
4503 rm -f conftest.err conftest.$ac_ext
4504
4505 done
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then :
4509   break
4510 fi
4511
4512     done
4513     ac_cv_prog_CPP=$CPP
4514
4515 fi
4516   CPP=$ac_cv_prog_CPP
4517 else
4518   ac_cv_prog_CPP=$CPP
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4521 $as_echo "$CPP" >&6; }
4522 ac_preproc_ok=false
4523 for ac_c_preproc_warn_flag in '' yes
4524 do
4525   # Use a header file that comes with gcc, so configuring glibc
4526   # with a fresh cross-compiler works.
4527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528   # <limits.h> exists even on freestanding compilers.
4529   # On the NeXT, cc -E runs the code through the compiler's parser,
4530   # not just through cpp. "Syntax error" is here to catch this case.
4531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h.  */
4533 #ifdef __STDC__
4534 # include <limits.h>
4535 #else
4536 # include <assert.h>
4537 #endif
4538                      Syntax error
4539 _ACEOF
4540 if ac_fn_c_try_cpp "$LINENO"; then :
4541
4542 else
4543   # Broken: fails on valid input.
4544 continue
4545 fi
4546 rm -f conftest.err conftest.$ac_ext
4547
4548   # OK, works on sane cases.  Now check whether nonexistent headers
4549   # can be detected and how.
4550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552 #include <ac_nonexistent.h>
4553 _ACEOF
4554 if ac_fn_c_try_cpp "$LINENO"; then :
4555   # Broken: success on invalid input.
4556 continue
4557 else
4558   # Passes both tests.
4559 ac_preproc_ok=:
4560 break
4561 fi
4562 rm -f conftest.err conftest.$ac_ext
4563
4564 done
4565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566 rm -f conftest.err conftest.$ac_ext
4567 if $ac_preproc_ok; then :
4568
4569 else
4570   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4573 See \`config.log' for more details." "$LINENO" 5; }
4574 fi
4575
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4581
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4584 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4585 if test "${ac_cv_path_GREP+set}" = set; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588   if test -z "$GREP"; then
4589   ac_path_GREP_found=false
4590   # Loop through the user's path and test for each of PROGNAME-LIST
4591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596     for ac_prog in grep ggrep; do
4597     for ac_exec_ext in '' $ac_executable_extensions; do
4598       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4600 # Check for GNU ac_path_GREP and select it if it is found.
4601   # Check for GNU $ac_path_GREP
4602 case `"$ac_path_GREP" --version 2>&1` in
4603 *GNU*)
4604   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 *)
4606   ac_count=0
4607   $as_echo_n 0123456789 >"conftest.in"
4608   while :
4609   do
4610     cat "conftest.in" "conftest.in" >"conftest.tmp"
4611     mv "conftest.tmp" "conftest.in"
4612     cp "conftest.in" "conftest.nl"
4613     $as_echo 'GREP' >> "conftest.nl"
4614     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616     as_fn_arith $ac_count + 1 && ac_count=$as_val
4617     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618       # Best one so far, save it but keep looking for a better one
4619       ac_cv_path_GREP="$ac_path_GREP"
4620       ac_path_GREP_max=$ac_count
4621     fi
4622     # 10*(2^10) chars as input seems more than enough
4623     test $ac_count -gt 10 && break
4624   done
4625   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 esac
4627
4628       $ac_path_GREP_found && break 3
4629     done
4630   done
4631   done
4632 IFS=$as_save_IFS
4633   if test -z "$ac_cv_path_GREP"; then
4634     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635   fi
4636 else
4637   ac_cv_path_GREP=$GREP
4638 fi
4639
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4642 $as_echo "$ac_cv_path_GREP" >&6; }
4643  GREP="$ac_cv_path_GREP"
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4647 $as_echo_n "checking for egrep... " >&6; }
4648 if test "${ac_cv_path_EGREP+set}" = set; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4652    then ac_cv_path_EGREP="$GREP -E"
4653    else
4654      if test -z "$EGREP"; then
4655   ac_path_EGREP_found=false
4656   # Loop through the user's path and test for each of PROGNAME-LIST
4657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_prog in egrep; do
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4665       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4666 # Check for GNU ac_path_EGREP and select it if it is found.
4667   # Check for GNU $ac_path_EGREP
4668 case `"$ac_path_EGREP" --version 2>&1` in
4669 *GNU*)
4670   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 *)
4672   ac_count=0
4673   $as_echo_n 0123456789 >"conftest.in"
4674   while :
4675   do
4676     cat "conftest.in" "conftest.in" >"conftest.tmp"
4677     mv "conftest.tmp" "conftest.in"
4678     cp "conftest.in" "conftest.nl"
4679     $as_echo 'EGREP' >> "conftest.nl"
4680     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682     as_fn_arith $ac_count + 1 && ac_count=$as_val
4683     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4684       # Best one so far, save it but keep looking for a better one
4685       ac_cv_path_EGREP="$ac_path_EGREP"
4686       ac_path_EGREP_max=$ac_count
4687     fi
4688     # 10*(2^10) chars as input seems more than enough
4689     test $ac_count -gt 10 && break
4690   done
4691   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 esac
4693
4694       $ac_path_EGREP_found && break 3
4695     done
4696   done
4697   done
4698 IFS=$as_save_IFS
4699   if test -z "$ac_cv_path_EGREP"; then
4700     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701   fi
4702 else
4703   ac_cv_path_EGREP=$EGREP
4704 fi
4705
4706    fi
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4709 $as_echo "$ac_cv_path_EGREP" >&6; }
4710  EGREP="$ac_cv_path_EGREP"
4711
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4714 $as_echo_n "checking for ANSI C header files... " >&6; }
4715 if test "${ac_cv_header_stdc+set}" = set; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 #include <stdlib.h>
4721 #include <stdarg.h>
4722 #include <string.h>
4723 #include <float.h>
4724
4725 int
4726 main ()
4727 {
4728
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734   ac_cv_header_stdc=yes
4735 else
4736   ac_cv_header_stdc=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739
4740 if test $ac_cv_header_stdc = yes; then
4741   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744 #include <string.h>
4745
4746 _ACEOF
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748   $EGREP "memchr" >/dev/null 2>&1; then :
4749
4750 else
4751   ac_cv_header_stdc=no
4752 fi
4753 rm -f conftest*
4754
4755 fi
4756
4757 if test $ac_cv_header_stdc = yes; then
4758   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h.  */
4761 #include <stdlib.h>
4762
4763 _ACEOF
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765   $EGREP "free" >/dev/null 2>&1; then :
4766
4767 else
4768   ac_cv_header_stdc=no
4769 fi
4770 rm -f conftest*
4771
4772 fi
4773
4774 if test $ac_cv_header_stdc = yes; then
4775   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4776   if test "$cross_compiling" = yes; then :
4777   :
4778 else
4779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h.  */
4781 #include <ctype.h>
4782 #include <stdlib.h>
4783 #if ((' ' & 0x0FF) == 0x020)
4784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4786 #else
4787 # define ISLOWER(c) \
4788                    (('a' <= (c) && (c) <= 'i') \
4789                      || ('j' <= (c) && (c) <= 'r') \
4790                      || ('s' <= (c) && (c) <= 'z'))
4791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4792 #endif
4793
4794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4795 int
4796 main ()
4797 {
4798   int i;
4799   for (i = 0; i < 256; i++)
4800     if (XOR (islower (i), ISLOWER (i))
4801         || toupper (i) != TOUPPER (i))
4802       return 2;
4803   return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_run "$LINENO"; then :
4807
4808 else
4809   ac_cv_header_stdc=no
4810 fi
4811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4812   conftest.$ac_objext conftest.beam conftest.$ac_ext
4813 fi
4814
4815 fi
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4818 $as_echo "$ac_cv_header_stdc" >&6; }
4819 if test $ac_cv_header_stdc = yes; then
4820
4821 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4822
4823 fi
4824
4825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4826 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4827                   inttypes.h stdint.h unistd.h
4828 do :
4829   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4831 "
4832 eval as_val=\$$as_ac_Header
4833    if test "x$as_val" = x""yes; then :
4834   cat >>confdefs.h <<_ACEOF
4835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4836 _ACEOF
4837
4838 fi
4839
4840 done
4841
4842
4843
4844   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4845 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4846   MINIX=yes
4847 else
4848   MINIX=
4849 fi
4850
4851
4852   if test "$MINIX" = yes; then
4853
4854 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4855
4856
4857 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4858
4859
4860 $as_echo "#define _MINIX 1" >>confdefs.h
4861
4862   fi
4863
4864
4865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4866 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4867 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4868   $as_echo_n "(cached) " >&6
4869 else
4870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h.  */
4872
4873 #         define __EXTENSIONS__ 1
4874           $ac_includes_default
4875 int
4876 main ()
4877 {
4878
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884   ac_cv_safe_to_define___extensions__=yes
4885 else
4886   ac_cv_safe_to_define___extensions__=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4891 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4892   test $ac_cv_safe_to_define___extensions__ = yes &&
4893     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4894
4895   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4896
4897   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4898
4899   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4900
4901   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4902
4903
4904
4905
4906
4907 case `pwd` in
4908   *\ * | *\     *)
4909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4910 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4911 esac
4912
4913
4914
4915 macro_version='2.2.7a'
4916 macro_revision='1.3134'
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930 ltmain="$ac_aux_dir/ltmain.sh"
4931
4932 # Backslashify metacharacters that are still active within
4933 # double-quoted strings.
4934 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4935
4936 # Same as above, but do not quote variable references.
4937 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4938
4939 # Sed substitution to delay expansion of an escaped shell variable in a
4940 # double_quote_subst'ed string.
4941 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4942
4943 # Sed substitution to delay expansion of an escaped single quote.
4944 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4945
4946 # Sed substitution to avoid accidental globbing in evaled expressions
4947 no_glob_subst='s/\*/\\\*/g'
4948
4949 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4950 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4954 $as_echo_n "checking how to print strings... " >&6; }
4955 # Test print first, because it will be a builtin if present.
4956 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4957    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4958   ECHO='print -r --'
4959 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4960   ECHO='printf %s\n'
4961 else
4962   # Use this function as a fallback that always works.
4963   func_fallback_echo ()
4964   {
4965     eval 'cat <<_LTECHO_EOF
4966 $1
4967 _LTECHO_EOF'
4968   }
4969   ECHO='func_fallback_echo'
4970 fi
4971
4972 # func_echo_all arg...
4973 # Invoke $ECHO with all args, space-separated.
4974 func_echo_all ()
4975 {
4976     $ECHO ""
4977 }
4978
4979 case "$ECHO" in
4980   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4981 $as_echo "printf" >&6; } ;;
4982   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4983 $as_echo "print -r" >&6; } ;;
4984   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4985 $as_echo "cat" >&6; } ;;
4986 esac
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5002 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5003 if test "${ac_cv_path_SED+set}" = set; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5007      for ac_i in 1 2 3 4 5 6 7; do
5008        ac_script="$ac_script$as_nl$ac_script"
5009      done
5010      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5011      { ac_script=; unset ac_script;}
5012      if test -z "$SED"; then
5013   ac_path_SED_found=false
5014   # Loop through the user's path and test for each of PROGNAME-LIST
5015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_prog in sed gsed; do
5021     for ac_exec_ext in '' $ac_executable_extensions; do
5022       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5023       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5024 # Check for GNU ac_path_SED and select it if it is found.
5025   # Check for GNU $ac_path_SED
5026 case `"$ac_path_SED" --version 2>&1` in
5027 *GNU*)
5028   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5029 *)
5030   ac_count=0
5031   $as_echo_n 0123456789 >"conftest.in"
5032   while :
5033   do
5034     cat "conftest.in" "conftest.in" >"conftest.tmp"
5035     mv "conftest.tmp" "conftest.in"
5036     cp "conftest.in" "conftest.nl"
5037     $as_echo '' >> "conftest.nl"
5038     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040     as_fn_arith $ac_count + 1 && ac_count=$as_val
5041     if test $ac_count -gt ${ac_path_SED_max-0}; then
5042       # Best one so far, save it but keep looking for a better one
5043       ac_cv_path_SED="$ac_path_SED"
5044       ac_path_SED_max=$ac_count
5045     fi
5046     # 10*(2^10) chars as input seems more than enough
5047     test $ac_count -gt 10 && break
5048   done
5049   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050 esac
5051
5052       $ac_path_SED_found && break 3
5053     done
5054   done
5055   done
5056 IFS=$as_save_IFS
5057   if test -z "$ac_cv_path_SED"; then
5058     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5059   fi
5060 else
5061   ac_cv_path_SED=$SED
5062 fi
5063
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5066 $as_echo "$ac_cv_path_SED" >&6; }
5067  SED="$ac_cv_path_SED"
5068   rm -f conftest.sed
5069
5070 test -z "$SED" && SED=sed
5071 Xsed="$SED -e 1s/^X//"
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5084 $as_echo_n "checking for fgrep... " >&6; }
5085 if test "${ac_cv_path_FGREP+set}" = set; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5089    then ac_cv_path_FGREP="$GREP -F"
5090    else
5091      if test -z "$FGREP"; then
5092   ac_path_FGREP_found=false
5093   # Loop through the user's path and test for each of PROGNAME-LIST
5094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_prog in fgrep; do
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5102       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5103 # Check for GNU ac_path_FGREP and select it if it is found.
5104   # Check for GNU $ac_path_FGREP
5105 case `"$ac_path_FGREP" --version 2>&1` in
5106 *GNU*)
5107   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5108 *)
5109   ac_count=0
5110   $as_echo_n 0123456789 >"conftest.in"
5111   while :
5112   do
5113     cat "conftest.in" "conftest.in" >"conftest.tmp"
5114     mv "conftest.tmp" "conftest.in"
5115     cp "conftest.in" "conftest.nl"
5116     $as_echo 'FGREP' >> "conftest.nl"
5117     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119     as_fn_arith $ac_count + 1 && ac_count=$as_val
5120     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5121       # Best one so far, save it but keep looking for a better one
5122       ac_cv_path_FGREP="$ac_path_FGREP"
5123       ac_path_FGREP_max=$ac_count
5124     fi
5125     # 10*(2^10) chars as input seems more than enough
5126     test $ac_count -gt 10 && break
5127   done
5128   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129 esac
5130
5131       $ac_path_FGREP_found && break 3
5132     done
5133   done
5134   done
5135 IFS=$as_save_IFS
5136   if test -z "$ac_cv_path_FGREP"; then
5137     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138   fi
5139 else
5140   ac_cv_path_FGREP=$FGREP
5141 fi
5142
5143    fi
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5146 $as_echo "$ac_cv_path_FGREP" >&6; }
5147  FGREP="$ac_cv_path_FGREP"
5148
5149
5150 test -z "$GREP" && GREP=grep
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 # Check whether --with-gnu-ld was given.
5171 if test "${with_gnu_ld+set}" = set; then :
5172   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5173 else
5174   with_gnu_ld=no
5175 fi
5176
5177 ac_prog=ld
5178 if test "$GCC" = yes; then
5179   # Check if gcc -print-prog-name=ld gives a path.
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5181 $as_echo_n "checking for ld used by $CC... " >&6; }
5182   case $host in
5183   *-*-mingw*)
5184     # gcc leaves a trailing carriage return which upsets mingw
5185     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5186   *)
5187     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5188   esac
5189   case $ac_prog in
5190     # Accept absolute paths.
5191     [\\/]* | ?:[\\/]*)
5192       re_direlt='/[^/][^/]*/\.\./'
5193       # Canonicalize the pathname of ld
5194       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5195       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5196         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5197       done
5198       test -z "$LD" && LD="$ac_prog"
5199       ;;
5200   "")
5201     # If it fails, then pretend we aren't using GCC.
5202     ac_prog=ld
5203     ;;
5204   *)
5205     # If it is relative, then search for the first ld in PATH.
5206     with_gnu_ld=unknown
5207     ;;
5208   esac
5209 elif test "$with_gnu_ld" = yes; then
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5211 $as_echo_n "checking for GNU ld... " >&6; }
5212 else
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5214 $as_echo_n "checking for non-GNU ld... " >&6; }
5215 fi
5216 if test "${lt_cv_path_LD+set}" = set; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   if test -z "$LD"; then
5220   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221   for ac_dir in $PATH; do
5222     IFS="$lt_save_ifs"
5223     test -z "$ac_dir" && ac_dir=.
5224     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225       lt_cv_path_LD="$ac_dir/$ac_prog"
5226       # Check to see if the program is GNU ld.  I'd rather use --version,
5227       # but apparently some variants of GNU ld only accept -v.
5228       # Break only if it was the GNU/non-GNU ld that we prefer.
5229       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5230       *GNU* | *'with BFD'*)
5231         test "$with_gnu_ld" != no && break
5232         ;;
5233       *)
5234         test "$with_gnu_ld" != yes && break
5235         ;;
5236       esac
5237     fi
5238   done
5239   IFS="$lt_save_ifs"
5240 else
5241   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5242 fi
5243 fi
5244
5245 LD="$lt_cv_path_LD"
5246 if test -n "$LD"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5248 $as_echo "$LD" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5255 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5256 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262   lt_cv_prog_gnu_ld=yes
5263   ;;
5264 *)
5265   lt_cv_prog_gnu_ld=no
5266   ;;
5267 esac
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5270 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5271 with_gnu_ld=$lt_cv_prog_gnu_ld
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5282 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5283 if test "${lt_cv_path_NM+set}" = set; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   if test -n "$NM"; then
5287   # Let the user override the test.
5288   lt_cv_path_NM="$NM"
5289 else
5290   lt_nm_to_check="${ac_tool_prefix}nm"
5291   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5292     lt_nm_to_check="$lt_nm_to_check nm"
5293   fi
5294   for lt_tmp_nm in $lt_nm_to_check; do
5295     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5297       IFS="$lt_save_ifs"
5298       test -z "$ac_dir" && ac_dir=.
5299       tmp_nm="$ac_dir/$lt_tmp_nm"
5300       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5301         # Check to see if the nm accepts a BSD-compat flag.
5302         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5303         #   nm: unknown option "B" ignored
5304         # Tru64's nm complains that /dev/null is an invalid object file
5305         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5306         */dev/null* | *'Invalid file or object type'*)
5307           lt_cv_path_NM="$tmp_nm -B"
5308           break
5309           ;;
5310         *)
5311           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5312           */dev/null*)
5313             lt_cv_path_NM="$tmp_nm -p"
5314             break
5315             ;;
5316           *)
5317             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5318             continue # so that we can try to find one that supports BSD flags
5319             ;;
5320           esac
5321           ;;
5322         esac
5323       fi
5324     done
5325     IFS="$lt_save_ifs"
5326   done
5327   : ${lt_cv_path_NM=no}
5328 fi
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5331 $as_echo "$lt_cv_path_NM" >&6; }
5332 if test "$lt_cv_path_NM" != "no"; then
5333   NM="$lt_cv_path_NM"
5334 else
5335   # Didn't find any BSD compatible name lister, look for dumpbin.
5336   if test -n "$DUMPBIN"; then :
5337     # Let the user override the test.
5338   else
5339     if test -n "$ac_tool_prefix"; then
5340   for ac_prog in dumpbin "link -dump"
5341   do
5342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   if test -n "$DUMPBIN"; then
5350   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364   done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 DUMPBIN=$ac_cv_prog_DUMPBIN
5370 if test -n "$DUMPBIN"; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5372 $as_echo "$DUMPBIN" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379     test -n "$DUMPBIN" && break
5380   done
5381 fi
5382 if test -z "$DUMPBIN"; then
5383   ac_ct_DUMPBIN=$DUMPBIN
5384   for ac_prog in dumpbin "link -dump"
5385 do
5386   # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5391   $as_echo_n "(cached) " >&6
5392 else
5393   if test -n "$ac_ct_DUMPBIN"; then
5394   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401     for ac_exec_ext in '' $ac_executable_extensions; do
5402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408   done
5409 IFS=$as_save_IFS
5410
5411 fi
5412 fi
5413 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5414 if test -n "$ac_ct_DUMPBIN"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5416 $as_echo "$ac_ct_DUMPBIN" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422
5423   test -n "$ac_ct_DUMPBIN" && break
5424 done
5425
5426   if test "x$ac_ct_DUMPBIN" = x; then
5427     DUMPBIN=":"
5428   else
5429     case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435     DUMPBIN=$ac_ct_DUMPBIN
5436   fi
5437 fi
5438
5439     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5440     *COFF*)
5441       DUMPBIN="$DUMPBIN -symbols"
5442       ;;
5443     *)
5444       DUMPBIN=:
5445       ;;
5446     esac
5447   fi
5448
5449   if test "$DUMPBIN" != ":"; then
5450     NM="$DUMPBIN"
5451   fi
5452 fi
5453 test -z "$NM" && NM=nm
5454
5455
5456
5457
5458
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5461 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5462 if test "${lt_cv_nm_interface+set}" = set; then :
5463   $as_echo_n "(cached) " >&6
5464 else
5465   lt_cv_nm_interface="BSD nm"
5466   echo "int some_variable = 0;" > conftest.$ac_ext
5467   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5468   (eval "$ac_compile" 2>conftest.err)
5469   cat conftest.err >&5
5470   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5471   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5472   cat conftest.err >&5
5473   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5474   cat conftest.out >&5
5475   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5476     lt_cv_nm_interface="MS dumpbin"
5477   fi
5478   rm -f conftest*
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5481 $as_echo "$lt_cv_nm_interface" >&6; }
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5484 $as_echo_n "checking whether ln -s works... " >&6; }
5485 LN_S=$as_ln_s
5486 if test "$LN_S" = "ln -s"; then
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5489 else
5490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5491 $as_echo "no, using $LN_S" >&6; }
5492 fi
5493
5494 # find the maximum length of command line arguments
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5496 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5497 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500     i=0
5501   teststring="ABCD"
5502
5503   case $build_os in
5504   msdosdjgpp*)
5505     # On DJGPP, this test can blow up pretty badly due to problems in libc
5506     # (any single argument exceeding 2000 bytes causes a buffer overrun
5507     # during glob expansion).  Even if it were fixed, the result of this
5508     # check would be larger than it should be.
5509     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5510     ;;
5511
5512   gnu*)
5513     # Under GNU Hurd, this test is not required because there is
5514     # no limit to the length of command line arguments.
5515     # Libtool will interpret -1 as no limit whatsoever
5516     lt_cv_sys_max_cmd_len=-1;
5517     ;;
5518
5519   cygwin* | mingw* | cegcc*)
5520     # On Win9x/ME, this test blows up -- it succeeds, but takes
5521     # about 5 minutes as the teststring grows exponentially.
5522     # Worse, since 9x/ME are not pre-emptively multitasking,
5523     # you end up with a "frozen" computer, even though with patience
5524     # the test eventually succeeds (with a max line length of 256k).
5525     # Instead, let's just punt: use the minimum linelength reported by
5526     # all of the supported platforms: 8192 (on NT/2K/XP).
5527     lt_cv_sys_max_cmd_len=8192;
5528     ;;
5529
5530   mint*)
5531     # On MiNT this can take a long time and run out of memory.
5532     lt_cv_sys_max_cmd_len=8192;
5533     ;;
5534
5535   amigaos*)
5536     # On AmigaOS with pdksh, this test takes hours, literally.
5537     # So we just punt and use a minimum line length of 8192.
5538     lt_cv_sys_max_cmd_len=8192;
5539     ;;
5540
5541   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542     # This has been around since 386BSD, at least.  Likely further.
5543     if test -x /sbin/sysctl; then
5544       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545     elif test -x /usr/sbin/sysctl; then
5546       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5547     else
5548       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5549     fi
5550     # And add a safety zone
5551     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5553     ;;
5554
5555   interix*)
5556     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557     lt_cv_sys_max_cmd_len=196608
5558     ;;
5559
5560   osf*)
5561     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563     # nice to cause kernel panics so lets avoid the loop below.
5564     # First set a reasonable default.
5565     lt_cv_sys_max_cmd_len=16384
5566     #
5567     if test -x /sbin/sysconfig; then
5568       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5570       esac
5571     fi
5572     ;;
5573   sco3.2v5*)
5574     lt_cv_sys_max_cmd_len=102400
5575     ;;
5576   sysv5* | sco5v6* | sysv4.2uw2*)
5577     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578     if test -n "$kargmax"; then
5579       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5580     else
5581       lt_cv_sys_max_cmd_len=32768
5582     fi
5583     ;;
5584   *)
5585     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5586     if test -n "$lt_cv_sys_max_cmd_len"; then
5587       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589     else
5590       # Make teststring a little bigger before we do anything with it.
5591       # a 1K string should be a reasonable start.
5592       for i in 1 2 3 4 5 6 7 8 ; do
5593         teststring=$teststring$teststring
5594       done
5595       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5596       # If test is not a shell built-in, we'll probably end up computing a
5597       # maximum length that is only half of the actual maximum length, but
5598       # we can't tell.
5599       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5600                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5601               test $i != 17 # 1/2 MB should be enough
5602       do
5603         i=`expr $i + 1`
5604         teststring=$teststring$teststring
5605       done
5606       # Only check the string length outside the loop.
5607       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5608       teststring=
5609       # Add a significant safety factor because C++ compilers can tack on
5610       # massive amounts of additional arguments before passing them to the
5611       # linker.  It appears as though 1/2 is a usable value.
5612       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5613     fi
5614     ;;
5615   esac
5616
5617 fi
5618
5619 if test -n $lt_cv_sys_max_cmd_len ; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5621 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5624 $as_echo "none" >&6; }
5625 fi
5626 max_cmd_len=$lt_cv_sys_max_cmd_len
5627
5628
5629
5630
5631
5632
5633 : ${CP="cp -f"}
5634 : ${MV="mv -f"}
5635 : ${RM="rm -f"}
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5638 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5639 # Try some XSI features
5640 xsi_shell=no
5641 ( _lt_dummy="a/b/c"
5642   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5643       = c,a/b,, \
5644     && eval 'test $(( 1 + 1 )) -eq 2 \
5645     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5646   && xsi_shell=yes
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5648 $as_echo "$xsi_shell" >&6; }
5649
5650
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5652 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5653 lt_shell_append=no
5654 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5655     >/dev/null 2>&1 \
5656   && lt_shell_append=yes
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5658 $as_echo "$lt_shell_append" >&6; }
5659
5660
5661 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5662   lt_unset=unset
5663 else
5664   lt_unset=false
5665 fi
5666
5667
5668
5669
5670
5671 # test EBCDIC or ASCII
5672 case `echo X|tr X '\101'` in
5673  A) # ASCII based system
5674     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5675   lt_SP2NL='tr \040 \012'
5676   lt_NL2SP='tr \015\012 \040\040'
5677   ;;
5678  *) # EBCDIC based system
5679   lt_SP2NL='tr \100 \n'
5680   lt_NL2SP='tr \r\n \100\100'
5681   ;;
5682 esac
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5693 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5694 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697   lt_cv_ld_reload_flag='-r'
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5700 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5701 reload_flag=$lt_cv_ld_reload_flag
5702 case $reload_flag in
5703 "" | " "*) ;;
5704 *) reload_flag=" $reload_flag" ;;
5705 esac
5706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707 case $host_os in
5708   darwin*)
5709     if test "$GCC" = yes; then
5710       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5711     else
5712       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5713     fi
5714     ;;
5715 esac
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 if test -n "$ac_tool_prefix"; then
5726   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5731   $as_echo_n "(cached) " >&6
5732 else
5733   if test -n "$OBJDUMP"; then
5734   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_exec_ext in '' $ac_executable_extensions; do
5742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748   done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 OBJDUMP=$ac_cv_prog_OBJDUMP
5754 if test -n "$OBJDUMP"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5756 $as_echo "$OBJDUMP" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763 fi
5764 if test -z "$ac_cv_prog_OBJDUMP"; then
5765   ac_ct_OBJDUMP=$OBJDUMP
5766   # Extract the first word of "objdump", so it can be a program name with args.
5767 set dummy objdump; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   if test -n "$ac_ct_OBJDUMP"; then
5774   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788   done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5794 if test -n "$ac_ct_OBJDUMP"; then
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5796 $as_echo "$ac_ct_OBJDUMP" >&6; }
5797 else
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5800 fi
5801
5802   if test "x$ac_ct_OBJDUMP" = x; then
5803     OBJDUMP="false"
5804   else
5805     case $cross_compiling:$ac_tool_warned in
5806 yes:)
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809 ac_tool_warned=yes ;;
5810 esac
5811     OBJDUMP=$ac_ct_OBJDUMP
5812   fi
5813 else
5814   OBJDUMP="$ac_cv_prog_OBJDUMP"
5815 fi
5816
5817 test -z "$OBJDUMP" && OBJDUMP=objdump
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5828 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5829 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   lt_cv_file_magic_cmd='$MAGIC_CMD'
5833 lt_cv_file_magic_test_file=
5834 lt_cv_deplibs_check_method='unknown'
5835 # Need to set the preceding variable on all platforms that support
5836 # interlibrary dependencies.
5837 # 'none' -- dependencies not supported.
5838 # `unknown' -- same as none, but documents that we really don't know.
5839 # 'pass_all' -- all dependencies passed with no checks.
5840 # 'test_compile' -- check by making test program.
5841 # 'file_magic [[regex]]' -- check by looking for files in library path
5842 # which responds to the $file_magic_cmd with a given extended regex.
5843 # If you have `file' or equivalent on your system and you're not sure
5844 # whether `pass_all' will *always* work, you probably want this one.
5845
5846 case $host_os in
5847 aix[4-9]*)
5848   lt_cv_deplibs_check_method=pass_all
5849   ;;
5850
5851 beos*)
5852   lt_cv_deplibs_check_method=pass_all
5853   ;;
5854
5855 bsdi[45]*)
5856   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5857   lt_cv_file_magic_cmd='/usr/bin/file -L'
5858   lt_cv_file_magic_test_file=/shlib/libc.so
5859   ;;
5860
5861 cygwin*)
5862   # func_win32_libid is a shell function defined in ltmain.sh
5863   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864   lt_cv_file_magic_cmd='func_win32_libid'
5865   ;;
5866
5867 mingw* | pw32*)
5868   # Base MSYS/MinGW do not provide the 'file' command needed by
5869   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5870   # unless we find 'file', for example because we are cross-compiling.
5871   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5872   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5873     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5874     lt_cv_file_magic_cmd='func_win32_libid'
5875   else
5876     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5877     lt_cv_file_magic_cmd='$OBJDUMP -f'
5878   fi
5879   ;;
5880
5881 cegcc*)
5882   # use the weaker test based on 'objdump'. See mingw*.
5883   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5884   lt_cv_file_magic_cmd='$OBJDUMP -f'
5885   ;;
5886
5887 darwin* | rhapsody*)
5888   lt_cv_deplibs_check_method=pass_all
5889   ;;
5890
5891 freebsd* | dragonfly*)
5892   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5893     case $host_cpu in
5894     i*86 )
5895       # Not sure whether the presence of OpenBSD here was a mistake.
5896       # Let's accept both of them until this is cleared up.
5897       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5898       lt_cv_file_magic_cmd=/usr/bin/file
5899       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5900       ;;
5901     esac
5902   else
5903     lt_cv_deplibs_check_method=pass_all
5904   fi
5905   ;;
5906
5907 gnu*)
5908   lt_cv_deplibs_check_method=pass_all
5909   ;;
5910
5911 haiku*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 hpux10.20* | hpux11*)
5916   lt_cv_file_magic_cmd=/usr/bin/file
5917   case $host_cpu in
5918   ia64*)
5919     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5920     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5921     ;;
5922   hppa*64*)
5923     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5924     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5925     ;;
5926   *)
5927     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5928     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5929     ;;
5930   esac
5931   ;;
5932
5933 interix[3-9]*)
5934   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5935   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5936   ;;
5937
5938 irix5* | irix6* | nonstopux*)
5939   case $LD in
5940   *-32|*"-32 ") libmagic=32-bit;;
5941   *-n32|*"-n32 ") libmagic=N32;;
5942   *-64|*"-64 ") libmagic=64-bit;;
5943   *) libmagic=never-match;;
5944   esac
5945   lt_cv_deplibs_check_method=pass_all
5946   ;;
5947
5948 # This must be Linux ELF.
5949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5950   lt_cv_deplibs_check_method=pass_all
5951   ;;
5952
5953 netbsd*)
5954   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5955     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5956   else
5957     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5958   fi
5959   ;;
5960
5961 newos6*)
5962   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5963   lt_cv_file_magic_cmd=/usr/bin/file
5964   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5965   ;;
5966
5967 *nto* | *qnx*)
5968   lt_cv_deplibs_check_method=pass_all
5969   ;;
5970
5971 openbsd*)
5972   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5973     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5974   else
5975     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5976   fi
5977   ;;
5978
5979 osf3* | osf4* | osf5*)
5980   lt_cv_deplibs_check_method=pass_all
5981   ;;
5982
5983 rdos*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986
5987 solaris*)
5988   lt_cv_deplibs_check_method=pass_all
5989   ;;
5990
5991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5992   lt_cv_deplibs_check_method=pass_all
5993   ;;
5994
5995 sysv4 | sysv4.3*)
5996   case $host_vendor in
5997   motorola)
5998     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]'
5999     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6000     ;;
6001   ncr)
6002     lt_cv_deplibs_check_method=pass_all
6003     ;;
6004   sequent)
6005     lt_cv_file_magic_cmd='/bin/file'
6006     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6007     ;;
6008   sni)
6009     lt_cv_file_magic_cmd='/bin/file'
6010     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6011     lt_cv_file_magic_test_file=/lib/libc.so
6012     ;;
6013   siemens)
6014     lt_cv_deplibs_check_method=pass_all
6015     ;;
6016   pc)
6017     lt_cv_deplibs_check_method=pass_all
6018     ;;
6019   esac
6020   ;;
6021
6022 tpf*)
6023   lt_cv_deplibs_check_method=pass_all
6024   ;;
6025 esac
6026
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6029 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6030 file_magic_cmd=$lt_cv_file_magic_cmd
6031 deplibs_check_method=$lt_cv_deplibs_check_method
6032 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045 if test -n "$ac_tool_prefix"; then
6046   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ar; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_prog_AR+set}" = set; then :
6051   $as_echo_n "(cached) " >&6
6052 else
6053   if test -n "$AR"; then
6054   ac_cv_prog_AR="$AR" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061     for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_prog_AR="${ac_tool_prefix}ar"
6064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068   done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 AR=$ac_cv_prog_AR
6074 if test -n "$AR"; then
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076 $as_echo "$AR" >&6; }
6077 else
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_AR"; then
6085   ac_ct_AR=$AR
6086   # Extract the first word of "ar", so it can be a program name with args.
6087 set dummy ar; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6091   $as_echo_n "(cached) " >&6
6092 else
6093   if test -n "$ac_ct_AR"; then
6094   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101     for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_prog_ac_ct_AR="ar"
6104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108   done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114 if test -n "$ac_ct_AR"; then
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6116 $as_echo "$ac_ct_AR" >&6; }
6117 else
6118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122   if test "x$ac_ct_AR" = x; then
6123     AR="false"
6124   else
6125     case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129 ac_tool_warned=yes ;;
6130 esac
6131     AR=$ac_ct_AR
6132   fi
6133 else
6134   AR="$ac_cv_prog_AR"
6135 fi
6136
6137 test -z "$AR" && AR=ar
6138 test -z "$AR_FLAGS" && AR_FLAGS=cru
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150 if test -n "$ac_tool_prefix"; then
6151   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_STRIP+set}" = set; then :
6156   $as_echo_n "(cached) " >&6
6157 else
6158   if test -n "$STRIP"; then
6159   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166     for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173   done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181 $as_echo "$STRIP" >&6; }
6182 else
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_STRIP"; then
6190   ac_ct_STRIP=$STRIP
6191   # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   if test -n "$ac_ct_STRIP"; then
6199   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206     for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_prog_ac_ct_STRIP="strip"
6209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213   done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221 $as_echo "$ac_ct_STRIP" >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227   if test "x$ac_ct_STRIP" = x; then
6228     STRIP=":"
6229   else
6230     case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     STRIP=$ac_ct_STRIP
6237   fi
6238 else
6239   STRIP="$ac_cv_prog_STRIP"
6240 fi
6241
6242 test -z "$STRIP" && STRIP=:
6243
6244
6245
6246
6247
6248
6249 if test -n "$ac_tool_prefix"; then
6250   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if test -n "$RANLIB"; then
6258   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265     for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272   done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 RANLIB=$ac_cv_prog_RANLIB
6278 if test -n "$RANLIB"; then
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280 $as_echo "$RANLIB" >&6; }
6281 else
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 fi
6288 if test -z "$ac_cv_prog_RANLIB"; then
6289   ac_ct_RANLIB=$RANLIB
6290   # Extract the first word of "ranlib", so it can be a program name with args.
6291 set dummy ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$ac_ct_RANLIB"; then
6298   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_ac_ct_RANLIB="ranlib"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318 if test -n "$ac_ct_RANLIB"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320 $as_echo "$ac_ct_RANLIB" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326   if test "x$ac_ct_RANLIB" = x; then
6327     RANLIB=":"
6328   else
6329     case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335     RANLIB=$ac_ct_RANLIB
6336   fi
6337 else
6338   RANLIB="$ac_cv_prog_RANLIB"
6339 fi
6340
6341 test -z "$RANLIB" && RANLIB=:
6342
6343
6344
6345
6346
6347
6348 # Determine commands to create old-style static archives.
6349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6350 old_postinstall_cmds='chmod 644 $oldlib'
6351 old_postuninstall_cmds=
6352
6353 if test -n "$RANLIB"; then
6354   case $host_os in
6355   openbsd*)
6356     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6357     ;;
6358   *)
6359     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6360     ;;
6361   esac
6362   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6363 fi
6364
6365 case $host_os in
6366   darwin*)
6367     lock_old_archive_extraction=yes ;;
6368   *)
6369     lock_old_archive_extraction=no ;;
6370 esac
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410 # If no C compiler was specified, use CC.
6411 LTCC=${LTCC-"$CC"}
6412
6413 # If no C compiler flags were specified, use CFLAGS.
6414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6415
6416 # Allow CC to be a program name with arguments.
6417 compiler=$CC
6418
6419
6420 # Check for command to grab the raw symbol name followed by C symbol from nm.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6424   $as_echo_n "(cached) " >&6
6425 else
6426
6427 # These are sane defaults that work on at least a few old systems.
6428 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6429
6430 # Character class describing NM global symbol codes.
6431 symcode='[BCDEGRST]'
6432
6433 # Regexp to match symbols that can be accessed directly from C.
6434 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6435
6436 # Define system-specific variables.
6437 case $host_os in
6438 aix*)
6439   symcode='[BCDT]'
6440   ;;
6441 cygwin* | mingw* | pw32* | cegcc*)
6442   symcode='[ABCDGISTW]'
6443   ;;
6444 hpux*)
6445   if test "$host_cpu" = ia64; then
6446     symcode='[ABCDEGRST]'
6447   fi
6448   ;;
6449 irix* | nonstopux*)
6450   symcode='[BCDEGRST]'
6451   ;;
6452 osf*)
6453   symcode='[BCDEGQRST]'
6454   ;;
6455 solaris*)
6456   symcode='[BDRT]'
6457   ;;
6458 sco3.2v5*)
6459   symcode='[DT]'
6460   ;;
6461 sysv4.2uw2*)
6462   symcode='[DT]'
6463   ;;
6464 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6465   symcode='[ABDT]'
6466   ;;
6467 sysv4)
6468   symcode='[DFNSTU]'
6469   ;;
6470 esac
6471
6472 # If we're using GNU nm, then use its standard symbol codes.
6473 case `$NM -V 2>&1` in
6474 *GNU* | *'with BFD'*)
6475   symcode='[ABCDGIRSTW]' ;;
6476 esac
6477
6478 # Transform an extracted symbol line into a proper C declaration.
6479 # Some systems (esp. on ia64) link data and code symbols differently,
6480 # so use this general approach.
6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6482
6483 # Transform an extracted symbol line into symbol name and symbol address
6484 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6485 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'"
6486
6487 # Handle CRLF in mingw tool chain
6488 opt_cr=
6489 case $build_os in
6490 mingw*)
6491   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6492   ;;
6493 esac
6494
6495 # Try without a prefix underscore, then with it.
6496 for ac_symprfx in "" "_"; do
6497
6498   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6499   symxfrm="\\1 $ac_symprfx\\2 \\2"
6500
6501   # Write the raw and C identifiers.
6502   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503     # Fake it for dumpbin and say T for any non-static function
6504     # and D for any global variable.
6505     # Also find C++ and __fastcall symbols from MSVC++,
6506     # which start with @ or ?.
6507     lt_cv_sys_global_symbol_pipe="$AWK '"\
6508 "     {last_section=section; section=\$ 3};"\
6509 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6510 "     \$ 0!~/External *\|/{next};"\
6511 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6512 "     {if(hide[section]) next};"\
6513 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6514 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6515 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6516 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6517 "     ' prfx=^$ac_symprfx"
6518   else
6519     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6520   fi
6521
6522   # Check to see that the pipe works correctly.
6523   pipe_works=no
6524
6525   rm -f conftest*
6526   cat > conftest.$ac_ext <<_LT_EOF
6527 #ifdef __cplusplus
6528 extern "C" {
6529 #endif
6530 char nm_test_var;
6531 void nm_test_func(void);
6532 void nm_test_func(void){}
6533 #ifdef __cplusplus
6534 }
6535 #endif
6536 int main(){nm_test_var='a';nm_test_func();return(0);}
6537 _LT_EOF
6538
6539   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540   (eval $ac_compile) 2>&5
6541   ac_status=$?
6542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543   test $ac_status = 0; }; then
6544     # Now try to grab the symbols.
6545     nlist=conftest.nm
6546     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6547   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6548   ac_status=$?
6549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550   test $ac_status = 0; } && test -s "$nlist"; then
6551       # Try sorting and uniquifying the output.
6552       if sort "$nlist" | uniq > "$nlist"T; then
6553         mv -f "$nlist"T "$nlist"
6554       else
6555         rm -f "$nlist"T
6556       fi
6557
6558       # Make sure that we snagged all the symbols we need.
6559       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6560         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6561           cat <<_LT_EOF > conftest.$ac_ext
6562 #ifdef __cplusplus
6563 extern "C" {
6564 #endif
6565
6566 _LT_EOF
6567           # Now generate the symbol file.
6568           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6569
6570           cat <<_LT_EOF >> conftest.$ac_ext
6571
6572 /* The mapping between symbol names and symbols.  */
6573 const struct {
6574   const char *name;
6575   void       *address;
6576 }
6577 lt__PROGRAM__LTX_preloaded_symbols[] =
6578 {
6579   { "@PROGRAM@", (void *) 0 },
6580 _LT_EOF
6581           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6582           cat <<\_LT_EOF >> conftest.$ac_ext
6583   {0, (void *) 0}
6584 };
6585
6586 /* This works around a problem in FreeBSD linker */
6587 #ifdef FREEBSD_WORKAROUND
6588 static const void *lt_preloaded_setup() {
6589   return lt__PROGRAM__LTX_preloaded_symbols;
6590 }
6591 #endif
6592
6593 #ifdef __cplusplus
6594 }
6595 #endif
6596 _LT_EOF
6597           # Now try linking the two files.
6598           mv conftest.$ac_objext conftstm.$ac_objext
6599           lt_save_LIBS="$LIBS"
6600           lt_save_CFLAGS="$CFLAGS"
6601           LIBS="conftstm.$ac_objext"
6602           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6604   (eval $ac_link) 2>&5
6605   ac_status=$?
6606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6608             pipe_works=yes
6609           fi
6610           LIBS="$lt_save_LIBS"
6611           CFLAGS="$lt_save_CFLAGS"
6612         else
6613           echo "cannot find nm_test_func in $nlist" >&5
6614         fi
6615       else
6616         echo "cannot find nm_test_var in $nlist" >&5
6617       fi
6618     else
6619       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6620     fi
6621   else
6622     echo "$progname: failed program was:" >&5
6623     cat conftest.$ac_ext >&5
6624   fi
6625   rm -rf conftest* conftst*
6626
6627   # Do not use the global_symbol_pipe unless it works.
6628   if test "$pipe_works" = yes; then
6629     break
6630   else
6631     lt_cv_sys_global_symbol_pipe=
6632   fi
6633 done
6634
6635 fi
6636
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638   lt_cv_sys_global_symbol_to_cdecl=
6639 fi
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642 $as_echo "failed" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645 $as_echo "ok" >&6; }
6646 fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669 # Check whether --enable-libtool-lock was given.
6670 if test "${enable_libtool_lock+set}" = set; then :
6671   enableval=$enable_libtool_lock;
6672 fi
6673
6674 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6675
6676 # Some flags need to be propagated to the compiler or linker for good
6677 # libtool support.
6678 case $host in
6679 ia64-*-hpux*)
6680   # Find out which ABI we are using.
6681   echo 'int i;' > conftest.$ac_ext
6682   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683   (eval $ac_compile) 2>&5
6684   ac_status=$?
6685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686   test $ac_status = 0; }; then
6687     case `/usr/bin/file conftest.$ac_objext` in
6688       *ELF-32*)
6689         HPUX_IA64_MODE="32"
6690         ;;
6691       *ELF-64*)
6692         HPUX_IA64_MODE="64"
6693         ;;
6694     esac
6695   fi
6696   rm -rf conftest*
6697   ;;
6698 *-*-irix6*)
6699   # Find out which ABI we are using.
6700   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6701   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702   (eval $ac_compile) 2>&5
6703   ac_status=$?
6704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705   test $ac_status = 0; }; then
6706     if test "$lt_cv_prog_gnu_ld" = yes; then
6707       case `/usr/bin/file conftest.$ac_objext` in
6708         *32-bit*)
6709           LD="${LD-ld} -melf32bsmip"
6710           ;;
6711         *N32*)
6712           LD="${LD-ld} -melf32bmipn32"
6713           ;;
6714         *64-bit*)
6715           LD="${LD-ld} -melf64bmip"
6716         ;;
6717       esac
6718     else
6719       case `/usr/bin/file conftest.$ac_objext` in
6720         *32-bit*)
6721           LD="${LD-ld} -32"
6722           ;;
6723         *N32*)
6724           LD="${LD-ld} -n32"
6725           ;;
6726         *64-bit*)
6727           LD="${LD-ld} -64"
6728           ;;
6729       esac
6730     fi
6731   fi
6732   rm -rf conftest*
6733   ;;
6734
6735 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6736 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6737   # Find out which ABI we are using.
6738   echo 'int i;' > conftest.$ac_ext
6739   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740   (eval $ac_compile) 2>&5
6741   ac_status=$?
6742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743   test $ac_status = 0; }; then
6744     case `/usr/bin/file conftest.o` in
6745       *32-bit*)
6746         case $host in
6747           x86_64-*kfreebsd*-gnu)
6748             LD="${LD-ld} -m elf_i386_fbsd"
6749             ;;
6750           x86_64-*linux*)
6751             case `/usr/bin/file conftest.o` in
6752               *x86-64*)
6753                 LD="${LD-ld} -m elf32_x86_64"
6754                 ;;
6755               *)
6756                 LD="${LD-ld} -m elf_i386"
6757                 ;;
6758             esac
6759             ;;
6760           powerpc64le-*linux*)
6761             LD="${LD-ld} -m elf32lppclinux"
6762             ;;
6763           powerpc64-*linux*)
6764             LD="${LD-ld} -m elf32ppclinux"
6765             ;;
6766           s390x-*linux*)
6767             LD="${LD-ld} -m elf_s390"
6768             ;;
6769           sparc64-*linux*)
6770             LD="${LD-ld} -m elf32_sparc"
6771             ;;
6772         esac
6773         ;;
6774       *64-bit*)
6775         case $host in
6776           x86_64-*kfreebsd*-gnu)
6777             LD="${LD-ld} -m elf_x86_64_fbsd"
6778             ;;
6779           x86_64-*linux*)
6780             LD="${LD-ld} -m elf_x86_64"
6781             ;;
6782           powerpcle-*linux*)
6783             LD="${LD-ld} -m elf64lppc"
6784             ;;
6785           powerpc-*linux*)
6786             LD="${LD-ld} -m elf64ppc"
6787             ;;
6788           s390*-*linux*|s390*-*tpf*)
6789             LD="${LD-ld} -m elf64_s390"
6790             ;;
6791           sparc*-*linux*)
6792             LD="${LD-ld} -m elf64_sparc"
6793             ;;
6794         esac
6795         ;;
6796     esac
6797   fi
6798   rm -rf conftest*
6799   ;;
6800
6801 *-*-sco3.2v5*)
6802   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6803   SAVE_CFLAGS="$CFLAGS"
6804   CFLAGS="$CFLAGS -belf"
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6806 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6807 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6808   $as_echo_n "(cached) " >&6
6809 else
6810   ac_ext=c
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
6816      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h.  */
6818
6819 int
6820 main ()
6821 {
6822
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828   lt_cv_cc_needs_belf=yes
6829 else
6830   lt_cv_cc_needs_belf=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833     conftest$ac_exeext conftest.$ac_ext
6834      ac_ext=c
6835 ac_cpp='$CPP $CPPFLAGS'
6836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6839
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6842 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6843   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6844     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6845     CFLAGS="$SAVE_CFLAGS"
6846   fi
6847   ;;
6848 sparc*-*solaris*)
6849   # Find out which ABI we are using.
6850   echo 'int i;' > conftest.$ac_ext
6851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852   (eval $ac_compile) 2>&5
6853   ac_status=$?
6854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855   test $ac_status = 0; }; then
6856     case `/usr/bin/file conftest.o` in
6857     *64-bit*)
6858       case $lt_cv_prog_gnu_ld in
6859       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6860       *)
6861         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6862           LD="${LD-ld} -64"
6863         fi
6864         ;;
6865       esac
6866       ;;
6867     esac
6868   fi
6869   rm -rf conftest*
6870   ;;
6871 esac
6872
6873 need_locks="$enable_libtool_lock"
6874
6875
6876   case $host_os in
6877     rhapsody* | darwin*)
6878     if test -n "$ac_tool_prefix"; then
6879   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   if test -n "$DSYMUTIL"; then
6887   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894     for ac_exec_ext in '' $ac_executable_extensions; do
6895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901   done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6907 if test -n "$DSYMUTIL"; then
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6909 $as_echo "$DSYMUTIL" >&6; }
6910 else
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915
6916 fi
6917 if test -z "$ac_cv_prog_DSYMUTIL"; then
6918   ac_ct_DSYMUTIL=$DSYMUTIL
6919   # Extract the first word of "dsymutil", so it can be a program name with args.
6920 set dummy dsymutil; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   if test -n "$ac_ct_DSYMUTIL"; then
6927   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932   IFS=$as_save_IFS
6933   test -z "$as_dir" && as_dir=.
6934     for ac_exec_ext in '' $ac_executable_extensions; do
6935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938     break 2
6939   fi
6940 done
6941   done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6947 if test -n "$ac_ct_DSYMUTIL"; then
6948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6949 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6950 else
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955   if test "x$ac_ct_DSYMUTIL" = x; then
6956     DSYMUTIL=":"
6957   else
6958     case $cross_compiling:$ac_tool_warned in
6959 yes:)
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6963 esac
6964     DSYMUTIL=$ac_ct_DSYMUTIL
6965   fi
6966 else
6967   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6968 fi
6969
6970     if test -n "$ac_tool_prefix"; then
6971   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6972 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978   if test -n "$NMEDIT"; then
6979   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984   IFS=$as_save_IFS
6985   test -z "$as_dir" && as_dir=.
6986     for ac_exec_ext in '' $ac_executable_extensions; do
6987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990     break 2
6991   fi
6992 done
6993   done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 NMEDIT=$ac_cv_prog_NMEDIT
6999 if test -n "$NMEDIT"; then
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7001 $as_echo "$NMEDIT" >&6; }
7002 else
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007
7008 fi
7009 if test -z "$ac_cv_prog_NMEDIT"; then
7010   ac_ct_NMEDIT=$NMEDIT
7011   # Extract the first word of "nmedit", so it can be a program name with args.
7012 set dummy nmedit; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   if test -n "$ac_ct_NMEDIT"; then
7019   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024   IFS=$as_save_IFS
7025   test -z "$as_dir" && as_dir=.
7026     for ac_exec_ext in '' $ac_executable_extensions; do
7027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030     break 2
7031   fi
7032 done
7033   done
7034 IFS=$as_save_IFS
7035
7036 fi
7037 fi
7038 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7039 if test -n "$ac_ct_NMEDIT"; then
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7041 $as_echo "$ac_ct_NMEDIT" >&6; }
7042 else
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047   if test "x$ac_ct_NMEDIT" = x; then
7048     NMEDIT=":"
7049   else
7050     case $cross_compiling:$ac_tool_warned in
7051 yes:)
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056     NMEDIT=$ac_ct_NMEDIT
7057   fi
7058 else
7059   NMEDIT="$ac_cv_prog_NMEDIT"
7060 fi
7061
7062     if test -n "$ac_tool_prefix"; then
7063   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_prog_LIPO+set}" = set; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -n "$LIPO"; then
7071   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 LIPO=$ac_cv_prog_LIPO
7091 if test -n "$LIPO"; then
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7093 $as_echo "$LIPO" >&6; }
7094 else
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_LIPO"; then
7102   ac_ct_LIPO=$LIPO
7103   # Extract the first word of "lipo", so it can be a program name with args.
7104 set dummy lipo; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7108   $as_echo_n "(cached) " >&6
7109 else
7110   if test -n "$ac_ct_LIPO"; then
7111   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118     for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_ac_ct_LIPO="lipo"
7121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125   done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7131 if test -n "$ac_ct_LIPO"; then
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7133 $as_echo "$ac_ct_LIPO" >&6; }
7134 else
7135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139   if test "x$ac_ct_LIPO" = x; then
7140     LIPO=":"
7141   else
7142     case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148     LIPO=$ac_ct_LIPO
7149   fi
7150 else
7151   LIPO="$ac_cv_prog_LIPO"
7152 fi
7153
7154     if test -n "$ac_tool_prefix"; then
7155   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}otool; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162   if test -n "$OTOOL"; then
7163   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170     for ac_exec_ext in '' $ac_executable_extensions; do
7171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177   done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 OTOOL=$ac_cv_prog_OTOOL
7183 if test -n "$OTOOL"; then
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7185 $as_echo "$OTOOL" >&6; }
7186 else
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191
7192 fi
7193 if test -z "$ac_cv_prog_OTOOL"; then
7194   ac_ct_OTOOL=$OTOOL
7195   # Extract the first word of "otool", so it can be a program name with args.
7196 set dummy otool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202   if test -n "$ac_ct_OTOOL"; then
7203   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210     for ac_exec_ext in '' $ac_executable_extensions; do
7211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212     ac_cv_prog_ac_ct_OTOOL="otool"
7213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217   done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7223 if test -n "$ac_ct_OTOOL"; then
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7225 $as_echo "$ac_ct_OTOOL" >&6; }
7226 else
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231   if test "x$ac_ct_OTOOL" = x; then
7232     OTOOL=":"
7233   else
7234     case $cross_compiling:$ac_tool_warned in
7235 yes:)
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7239 esac
7240     OTOOL=$ac_ct_OTOOL
7241   fi
7242 else
7243   OTOOL="$ac_cv_prog_OTOOL"
7244 fi
7245
7246     if test -n "$ac_tool_prefix"; then
7247   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   if test -n "$OTOOL64"; then
7255   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 OTOOL64=$ac_cv_prog_OTOOL64
7275 if test -n "$OTOOL64"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7277 $as_echo "$OTOOL64" >&6; }
7278 else
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_OTOOL64"; then
7286   ac_ct_OTOOL64=$OTOOL64
7287   # Extract the first word of "otool64", so it can be a program name with args.
7288 set dummy otool64; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$ac_ct_OTOOL64"; then
7295   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_ac_ct_OTOOL64="otool64"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7315 if test -n "$ac_ct_OTOOL64"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7317 $as_echo "$ac_ct_OTOOL64" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323   if test "x$ac_ct_OTOOL64" = x; then
7324     OTOOL64=":"
7325   else
7326     case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332     OTOOL64=$ac_ct_OTOOL64
7333   fi
7334 else
7335   OTOOL64="$ac_cv_prog_OTOOL64"
7336 fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7365 $as_echo_n "checking for -single_module linker flag... " >&6; }
7366 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   lt_cv_apple_cc_single_mod=no
7370       if test -z "${LT_MULTI_MODULE}"; then
7371         # By default we will add the -single_module flag. You can override
7372         # by either setting the environment variable LT_MULTI_MODULE
7373         # non-empty at configure time, or by adding -multi_module to the
7374         # link flags.
7375         rm -rf libconftest.dylib*
7376         echo "int foo(void){return 1;}" > conftest.c
7377         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7378 -dynamiclib -Wl,-single_module conftest.c" >&5
7379         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7380           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7381         _lt_result=$?
7382         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7383           lt_cv_apple_cc_single_mod=yes
7384         else
7385           cat conftest.err >&5
7386         fi
7387         rm -rf libconftest.dylib*
7388         rm -f conftest.*
7389       fi
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7392 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7394 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7395 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7396   $as_echo_n "(cached) " >&6
7397 else
7398   lt_cv_ld_exported_symbols_list=no
7399       save_LDFLAGS=$LDFLAGS
7400       echo "_main" > conftest.sym
7401       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7402       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h.  */
7404
7405 int
7406 main ()
7407 {
7408
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 if ac_fn_c_try_link "$LINENO"; then :
7414   lt_cv_ld_exported_symbols_list=yes
7415 else
7416   lt_cv_ld_exported_symbols_list=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext \
7419     conftest$ac_exeext conftest.$ac_ext
7420         LDFLAGS="$save_LDFLAGS"
7421
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7424 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7426 $as_echo_n "checking for -force_load linker flag... " >&6; }
7427 if test "${lt_cv_ld_force_load+set}" = set; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   lt_cv_ld_force_load=no
7431       cat > conftest.c << _LT_EOF
7432 int forced_loaded() { return 2;}
7433 _LT_EOF
7434       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7435       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7436       echo "$AR cru libconftest.a conftest.o" >&5
7437       $AR cru libconftest.a conftest.o 2>&5
7438       cat > conftest.c << _LT_EOF
7439 int main() { return 0;}
7440 _LT_EOF
7441       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7442       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7443       _lt_result=$?
7444       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7445         lt_cv_ld_force_load=yes
7446       else
7447         cat conftest.err >&5
7448       fi
7449         rm -f conftest.err libconftest.a conftest conftest.c
7450         rm -rf conftest.dSYM
7451
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7454 $as_echo "$lt_cv_ld_force_load" >&6; }
7455     case $host_os in
7456     rhapsody* | darwin1.[012])
7457       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7458     darwin1.*)
7459       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460     darwin*) # darwin 5.x on
7461       # if running on 10.5 or later, the deployment target defaults
7462       # to the OS version, if on x86, and 10.4, the deployment
7463       # target defaults to 10.4. Don't you love it?
7464       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7465         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7466           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7467         10.[012][,.]*)
7468           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7469         10.*)
7470           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7471       esac
7472     ;;
7473   esac
7474     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7475       _lt_dar_single_mod='$single_module'
7476     fi
7477     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7478       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7479     else
7480       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7481     fi
7482     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7483       _lt_dsymutil='~$DSYMUTIL $lib || :'
7484     else
7485       _lt_dsymutil=
7486     fi
7487     ;;
7488   esac
7489
7490 for ac_header in dlfcn.h
7491 do :
7492   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7493 "
7494 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7495   cat >>confdefs.h <<_ACEOF
7496 #define HAVE_DLFCN_H 1
7497 _ACEOF
7498
7499 fi
7500
7501 done
7502
7503
7504
7505
7506
7507 # Set options
7508
7509
7510
7511         enable_dlopen=no
7512
7513
7514   enable_win32_dll=no
7515
7516
7517             # Check whether --enable-shared was given.
7518 if test "${enable_shared+set}" = set; then :
7519   enableval=$enable_shared; p=${PACKAGE-default}
7520     case $enableval in
7521     yes) enable_shared=yes ;;
7522     no) enable_shared=no ;;
7523     *)
7524       enable_shared=no
7525       # Look at the argument we got.  We use all the common list separators.
7526       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527       for pkg in $enableval; do
7528         IFS="$lt_save_ifs"
7529         if test "X$pkg" = "X$p"; then
7530           enable_shared=yes
7531         fi
7532       done
7533       IFS="$lt_save_ifs"
7534       ;;
7535     esac
7536 else
7537   enable_shared=yes
7538 fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548   # Check whether --enable-static was given.
7549 if test "${enable_static+set}" = set; then :
7550   enableval=$enable_static; p=${PACKAGE-default}
7551     case $enableval in
7552     yes) enable_static=yes ;;
7553     no) enable_static=no ;;
7554     *)
7555      enable_static=no
7556       # Look at the argument we got.  We use all the common list separators.
7557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7558       for pkg in $enableval; do
7559         IFS="$lt_save_ifs"
7560         if test "X$pkg" = "X$p"; then
7561           enable_static=yes
7562         fi
7563       done
7564       IFS="$lt_save_ifs"
7565       ;;
7566     esac
7567 else
7568   enable_static=yes
7569 fi
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 # Check whether --with-pic was given.
7581 if test "${with_pic+set}" = set; then :
7582   withval=$with_pic; pic_mode="$withval"
7583 else
7584   pic_mode=default
7585 fi
7586
7587
7588 test -z "$pic_mode" && pic_mode=default
7589
7590
7591
7592
7593
7594
7595
7596   # Check whether --enable-fast-install was given.
7597 if test "${enable_fast_install+set}" = set; then :
7598   enableval=$enable_fast_install; p=${PACKAGE-default}
7599     case $enableval in
7600     yes) enable_fast_install=yes ;;
7601     no) enable_fast_install=no ;;
7602     *)
7603       enable_fast_install=no
7604       # Look at the argument we got.  We use all the common list separators.
7605       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606       for pkg in $enableval; do
7607         IFS="$lt_save_ifs"
7608         if test "X$pkg" = "X$p"; then
7609           enable_fast_install=yes
7610         fi
7611       done
7612       IFS="$lt_save_ifs"
7613       ;;
7614     esac
7615 else
7616   enable_fast_install=yes
7617 fi
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 # This can be used to rebuild libtool when needed
7630 LIBTOOL_DEPS="$ltmain"
7631
7632 # Always use our own libtool.
7633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660 test -z "$LN_S" && LN_S="ln -s"
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 if test -n "${ZSH_VERSION+set}" ; then
7676    setopt NO_GLOB_SUBST
7677 fi
7678
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7680 $as_echo_n "checking for objdir... " >&6; }
7681 if test "${lt_cv_objdir+set}" = set; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   rm -f .libs 2>/dev/null
7685 mkdir .libs 2>/dev/null
7686 if test -d .libs; then
7687   lt_cv_objdir=.libs
7688 else
7689   # MS-DOS does not allow filenames that begin with a dot.
7690   lt_cv_objdir=_libs
7691 fi
7692 rmdir .libs 2>/dev/null
7693 fi
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7695 $as_echo "$lt_cv_objdir" >&6; }
7696 objdir=$lt_cv_objdir
7697
7698
7699
7700
7701
7702 cat >>confdefs.h <<_ACEOF
7703 #define LT_OBJDIR "$lt_cv_objdir/"
7704 _ACEOF
7705
7706
7707
7708
7709 case $host_os in
7710 aix3*)
7711   # AIX sometimes has problems with the GCC collect2 program.  For some
7712   # reason, if we set the COLLECT_NAMES environment variable, the problems
7713   # vanish in a puff of smoke.
7714   if test "X${COLLECT_NAMES+set}" != Xset; then
7715     COLLECT_NAMES=
7716     export COLLECT_NAMES
7717   fi
7718   ;;
7719 esac
7720
7721 # Global variables:
7722 ofile=libtool
7723 can_build_shared=yes
7724
7725 # All known linkers require a `.a' archive for static linking (except MSVC,
7726 # which needs '.lib').
7727 libext=a
7728
7729 with_gnu_ld="$lt_cv_prog_gnu_ld"
7730
7731 old_CC="$CC"
7732 old_CFLAGS="$CFLAGS"
7733
7734 # Set sane defaults for various variables
7735 test -z "$CC" && CC=cc
7736 test -z "$LTCC" && LTCC=$CC
7737 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7738 test -z "$LD" && LD=ld
7739 test -z "$ac_objext" && ac_objext=o
7740
7741 for cc_temp in $compiler""; do
7742   case $cc_temp in
7743     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7744     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7745     \-*) ;;
7746     *) break;;
7747   esac
7748 done
7749 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7750
7751
7752 # Only perform the check for file, if the check method requires it
7753 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7754 case $deplibs_check_method in
7755 file_magic*)
7756   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7758 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   case $MAGIC_CMD in
7763 [\\/*] |  ?:[\\/]*)
7764   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7765   ;;
7766 *)
7767   lt_save_MAGIC_CMD="$MAGIC_CMD"
7768   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770   for ac_dir in $ac_dummy; do
7771     IFS="$lt_save_ifs"
7772     test -z "$ac_dir" && ac_dir=.
7773     if test -f $ac_dir/${ac_tool_prefix}file; then
7774       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7775       if test -n "$file_magic_test_file"; then
7776         case $deplibs_check_method in
7777         "file_magic "*)
7778           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781             $EGREP "$file_magic_regex" > /dev/null; then
7782             :
7783           else
7784             cat <<_LT_EOF 1>&2
7785
7786 *** Warning: the command libtool uses to detect shared libraries,
7787 *** $file_magic_cmd, produces output that libtool cannot recognize.
7788 *** The result is that libtool may fail to recognize shared libraries
7789 *** as such.  This will affect the creation of libtool libraries that
7790 *** depend on shared libraries, but programs linked with such libtool
7791 *** libraries will work regardless of this problem.  Nevertheless, you
7792 *** may want to report the problem to your system manager and/or to
7793 *** bug-libtool@gnu.org
7794
7795 _LT_EOF
7796           fi ;;
7797         esac
7798       fi
7799       break
7800     fi
7801   done
7802   IFS="$lt_save_ifs"
7803   MAGIC_CMD="$lt_save_MAGIC_CMD"
7804   ;;
7805 esac
7806 fi
7807
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if test -n "$MAGIC_CMD"; then
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7811 $as_echo "$MAGIC_CMD" >&6; }
7812 else
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7815 fi
7816
7817
7818
7819
7820
7821 if test -z "$lt_cv_path_MAGIC_CMD"; then
7822   if test -n "$ac_tool_prefix"; then
7823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7824 $as_echo_n "checking for file... " >&6; }
7825 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7826   $as_echo_n "(cached) " >&6
7827 else
7828   case $MAGIC_CMD in
7829 [\\/*] |  ?:[\\/]*)
7830   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7831   ;;
7832 *)
7833   lt_save_MAGIC_CMD="$MAGIC_CMD"
7834   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7835   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7836   for ac_dir in $ac_dummy; do
7837     IFS="$lt_save_ifs"
7838     test -z "$ac_dir" && ac_dir=.
7839     if test -f $ac_dir/file; then
7840       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7841       if test -n "$file_magic_test_file"; then
7842         case $deplibs_check_method in
7843         "file_magic "*)
7844           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7845           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7847             $EGREP "$file_magic_regex" > /dev/null; then
7848             :
7849           else
7850             cat <<_LT_EOF 1>&2
7851
7852 *** Warning: the command libtool uses to detect shared libraries,
7853 *** $file_magic_cmd, produces output that libtool cannot recognize.
7854 *** The result is that libtool may fail to recognize shared libraries
7855 *** as such.  This will affect the creation of libtool libraries that
7856 *** depend on shared libraries, but programs linked with such libtool
7857 *** libraries will work regardless of this problem.  Nevertheless, you
7858 *** may want to report the problem to your system manager and/or to
7859 *** bug-libtool@gnu.org
7860
7861 _LT_EOF
7862           fi ;;
7863         esac
7864       fi
7865       break
7866     fi
7867   done
7868   IFS="$lt_save_ifs"
7869   MAGIC_CMD="$lt_save_MAGIC_CMD"
7870   ;;
7871 esac
7872 fi
7873
7874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7875 if test -n "$MAGIC_CMD"; then
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7877 $as_echo "$MAGIC_CMD" >&6; }
7878 else
7879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883
7884   else
7885     MAGIC_CMD=:
7886   fi
7887 fi
7888
7889   fi
7890   ;;
7891 esac
7892
7893 # Use C for the default configuration in the libtool script
7894
7895 lt_save_CC="$CC"
7896 ac_ext=c
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901
7902
7903 # Source file extension for C test sources.
7904 ac_ext=c
7905
7906 # Object file extension for compiled C test sources.
7907 objext=o
7908 objext=$objext
7909
7910 # Code to be used in simple compile tests
7911 lt_simple_compile_test_code="int some_variable = 0;"
7912
7913 # Code to be used in simple link tests
7914 lt_simple_link_test_code='int main(){return(0);}'
7915
7916
7917
7918
7919
7920
7921
7922 # If no C compiler was specified, use CC.
7923 LTCC=${LTCC-"$CC"}
7924
7925 # If no C compiler flags were specified, use CFLAGS.
7926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7927
7928 # Allow CC to be a program name with arguments.
7929 compiler=$CC
7930
7931 # Save the default compiler, since it gets overwritten when the other
7932 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7933 compiler_DEFAULT=$CC
7934
7935 # save warnings/boilerplate of simple test code
7936 ac_outfile=conftest.$ac_objext
7937 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939 _lt_compiler_boilerplate=`cat conftest.err`
7940 $RM conftest*
7941
7942 ac_outfile=conftest.$ac_objext
7943 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7945 _lt_linker_boilerplate=`cat conftest.err`
7946 $RM -r conftest*
7947
7948
7949 ## CAVEAT EMPTOR:
7950 ## There is no encapsulation within the following macros, do not change
7951 ## the running order or otherwise move them around unless you know exactly
7952 ## what you are doing...
7953 if test -n "$compiler"; then
7954
7955 lt_prog_compiler_no_builtin_flag=
7956
7957 if test "$GCC" = yes; then
7958   case $cc_basename in
7959   nvcc*)
7960     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7961   *)
7962     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7963   esac
7964
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7966 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7968   $as_echo_n "(cached) " >&6
7969 else
7970   lt_cv_prog_compiler_rtti_exceptions=no
7971    ac_outfile=conftest.$ac_objext
7972    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7973    lt_compiler_flag="-fno-rtti -fno-exceptions"
7974    # Insert the option either (1) after the last *FLAGS variable, or
7975    # (2) before a word containing "conftest.", or (3) at the end.
7976    # Note that $ac_compile itself does not contain backslashes and begins
7977    # with a dollar sign (not a hyphen), so the echo should work correctly.
7978    # The option is referenced via a variable to avoid confusing sed.
7979    lt_compile=`echo "$ac_compile" | $SED \
7980    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982    -e 's:$: $lt_compiler_flag:'`
7983    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7984    (eval "$lt_compile" 2>conftest.err)
7985    ac_status=$?
7986    cat conftest.err >&5
7987    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988    if (exit $ac_status) && test -s "$ac_outfile"; then
7989      # The compiler can only warn and ignore the option if not recognized
7990      # So say no if there are warnings other than the usual output.
7991      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7992      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7993      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7994        lt_cv_prog_compiler_rtti_exceptions=yes
7995      fi
7996    fi
7997    $RM conftest*
7998
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8001 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8002
8003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8004     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8005 else
8006     :
8007 fi
8008
8009 fi
8010
8011
8012
8013
8014
8015
8016   lt_prog_compiler_wl=
8017 lt_prog_compiler_pic=
8018 lt_prog_compiler_static=
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8022
8023   if test "$GCC" = yes; then
8024     lt_prog_compiler_wl='-Wl,'
8025     lt_prog_compiler_static='-static'
8026
8027     case $host_os in
8028       aix*)
8029       # All AIX code is PIC.
8030       if test "$host_cpu" = ia64; then
8031         # AIX 5 now supports IA64 processor
8032         lt_prog_compiler_static='-Bstatic'
8033       fi
8034       lt_prog_compiler_pic='-fPIC'
8035       ;;
8036
8037     amigaos*)
8038       case $host_cpu in
8039       powerpc)
8040             # see comment about AmigaOS4 .so support
8041             lt_prog_compiler_pic='-fPIC'
8042         ;;
8043       m68k)
8044             # FIXME: we need at least 68020 code to build shared libraries, but
8045             # adding the `-m68020' flag to GCC prevents building anything better,
8046             # like `-m68040'.
8047             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8048         ;;
8049       esac
8050       ;;
8051
8052     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8053       # PIC is the default for these OSes.
8054       ;;
8055
8056     mingw* | cygwin* | pw32* | os2* | cegcc*)
8057       # This hack is so that the source file can tell whether it is being
8058       # built for inclusion in a dll (and should export symbols for example).
8059       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8060       # (--disable-auto-import) libraries
8061       lt_prog_compiler_pic='-DDLL_EXPORT'
8062       ;;
8063
8064     darwin* | rhapsody*)
8065       # PIC is the default on this platform
8066       # Common symbols not allowed in MH_DYLIB files
8067       lt_prog_compiler_pic='-fno-common'
8068       ;;
8069
8070     haiku*)
8071       # PIC is the default for Haiku.
8072       # The "-static" flag exists, but is broken.
8073       lt_prog_compiler_static=
8074       ;;
8075
8076     hpux*)
8077       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8079       # sets the default TLS model and affects inlining.
8080       case $host_cpu in
8081       hppa*64*)
8082         # +Z the default
8083         ;;
8084       *)
8085         lt_prog_compiler_pic='-fPIC'
8086         ;;
8087       esac
8088       ;;
8089
8090     interix[3-9]*)
8091       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092       # Instead, we relocate shared libraries at runtime.
8093       ;;
8094
8095     msdosdjgpp*)
8096       # Just because we use GCC doesn't mean we suddenly get shared libraries
8097       # on systems that don't support them.
8098       lt_prog_compiler_can_build_shared=no
8099       enable_shared=no
8100       ;;
8101
8102     *nto* | *qnx*)
8103       # QNX uses GNU C++, but need to define -shared option too, otherwise
8104       # it will coredump.
8105       lt_prog_compiler_pic='-fPIC -shared'
8106       ;;
8107
8108     sysv4*MP*)
8109       if test -d /usr/nec; then
8110         lt_prog_compiler_pic=-Kconform_pic
8111       fi
8112       ;;
8113
8114     *)
8115       lt_prog_compiler_pic='-fPIC'
8116       ;;
8117     esac
8118
8119     case $cc_basename in
8120     nvcc*) # Cuda Compiler Driver 2.2
8121       lt_prog_compiler_wl='-Xlinker '
8122       lt_prog_compiler_pic='-Xcompiler -fPIC'
8123       ;;
8124     esac
8125   else
8126     # PORTME Check for flag to pass linker flags through the system compiler.
8127     case $host_os in
8128     aix*)
8129       lt_prog_compiler_wl='-Wl,'
8130       if test "$host_cpu" = ia64; then
8131         # AIX 5 now supports IA64 processor
8132         lt_prog_compiler_static='-Bstatic'
8133       else
8134         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8135       fi
8136       ;;
8137
8138     mingw* | cygwin* | pw32* | os2* | cegcc*)
8139       # This hack is so that the source file can tell whether it is being
8140       # built for inclusion in a dll (and should export symbols for example).
8141       lt_prog_compiler_pic='-DDLL_EXPORT'
8142       ;;
8143
8144     hpux9* | hpux10* | hpux11*)
8145       lt_prog_compiler_wl='-Wl,'
8146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8147       # not for PA HP-UX.
8148       case $host_cpu in
8149       hppa*64*|ia64*)
8150         # +Z the default
8151         ;;
8152       *)
8153         lt_prog_compiler_pic='+Z'
8154         ;;
8155       esac
8156       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8157       lt_prog_compiler_static='${wl}-a ${wl}archive'
8158       ;;
8159
8160     irix5* | irix6* | nonstopux*)
8161       lt_prog_compiler_wl='-Wl,'
8162       # PIC (with -KPIC) is the default.
8163       lt_prog_compiler_static='-non_shared'
8164       ;;
8165
8166     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8167       case $cc_basename in
8168       # old Intel for x86_64 which still supported -KPIC.
8169       ecc*)
8170         lt_prog_compiler_wl='-Wl,'
8171         lt_prog_compiler_pic='-KPIC'
8172         lt_prog_compiler_static='-static'
8173         ;;
8174       # icc used to be incompatible with GCC.
8175       # ICC 10 doesn't accept -KPIC any more.
8176       icc* | ifort*)
8177         lt_prog_compiler_wl='-Wl,'
8178         lt_prog_compiler_pic='-fPIC'
8179         lt_prog_compiler_static='-static'
8180         ;;
8181       # Lahey Fortran 8.1.
8182       lf95*)
8183         lt_prog_compiler_wl='-Wl,'
8184         lt_prog_compiler_pic='--shared'
8185         lt_prog_compiler_static='--static'
8186         ;;
8187       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8188         # Portland Group compilers (*not* the Pentium gcc compiler,
8189         # which looks to be a dead project)
8190         lt_prog_compiler_wl='-Wl,'
8191         lt_prog_compiler_pic='-fpic'
8192         lt_prog_compiler_static='-Bstatic'
8193         ;;
8194       ccc*)
8195         lt_prog_compiler_wl='-Wl,'
8196         # All Alpha code is PIC.
8197         lt_prog_compiler_static='-non_shared'
8198         ;;
8199       xl* | bgxl* | bgf* | mpixl*)
8200         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8201         lt_prog_compiler_wl='-Wl,'
8202         lt_prog_compiler_pic='-qpic'
8203         lt_prog_compiler_static='-qstaticlink'
8204         ;;
8205       *)
8206         case `$CC -V 2>&1 | sed 5q` in
8207         *Sun\ F* | *Sun*Fortran*)
8208           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8209           lt_prog_compiler_pic='-KPIC'
8210           lt_prog_compiler_static='-Bstatic'
8211           lt_prog_compiler_wl=''
8212           ;;
8213         *Sun\ C*)
8214           # Sun C 5.9
8215           lt_prog_compiler_pic='-KPIC'
8216           lt_prog_compiler_static='-Bstatic'
8217           lt_prog_compiler_wl='-Wl,'
8218           ;;
8219         esac
8220         ;;
8221       esac
8222       ;;
8223
8224     newsos6)
8225       lt_prog_compiler_pic='-KPIC'
8226       lt_prog_compiler_static='-Bstatic'
8227       ;;
8228
8229     *nto* | *qnx*)
8230       # QNX uses GNU C++, but need to define -shared option too, otherwise
8231       # it will coredump.
8232       lt_prog_compiler_pic='-fPIC -shared'
8233       ;;
8234
8235     osf3* | osf4* | osf5*)
8236       lt_prog_compiler_wl='-Wl,'
8237       # All OSF/1 code is PIC.
8238       lt_prog_compiler_static='-non_shared'
8239       ;;
8240
8241     rdos*)
8242       lt_prog_compiler_static='-non_shared'
8243       ;;
8244
8245     solaris*)
8246       lt_prog_compiler_pic='-KPIC'
8247       lt_prog_compiler_static='-Bstatic'
8248       case $cc_basename in
8249       f77* | f90* | f95*)
8250         lt_prog_compiler_wl='-Qoption ld ';;
8251       *)
8252         lt_prog_compiler_wl='-Wl,';;
8253       esac
8254       ;;
8255
8256     sunos4*)
8257       lt_prog_compiler_wl='-Qoption ld '
8258       lt_prog_compiler_pic='-PIC'
8259       lt_prog_compiler_static='-Bstatic'
8260       ;;
8261
8262     sysv4 | sysv4.2uw2* | sysv4.3*)
8263       lt_prog_compiler_wl='-Wl,'
8264       lt_prog_compiler_pic='-KPIC'
8265       lt_prog_compiler_static='-Bstatic'
8266       ;;
8267
8268     sysv4*MP*)
8269       if test -d /usr/nec ;then
8270         lt_prog_compiler_pic='-Kconform_pic'
8271         lt_prog_compiler_static='-Bstatic'
8272       fi
8273       ;;
8274
8275     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8276       lt_prog_compiler_wl='-Wl,'
8277       lt_prog_compiler_pic='-KPIC'
8278       lt_prog_compiler_static='-Bstatic'
8279       ;;
8280
8281     unicos*)
8282       lt_prog_compiler_wl='-Wl,'
8283       lt_prog_compiler_can_build_shared=no
8284       ;;
8285
8286     uts4*)
8287       lt_prog_compiler_pic='-pic'
8288       lt_prog_compiler_static='-Bstatic'
8289       ;;
8290
8291     *)
8292       lt_prog_compiler_can_build_shared=no
8293       ;;
8294     esac
8295   fi
8296
8297 case $host_os in
8298   # For platforms which do not support PIC, -DPIC is meaningless:
8299   *djgpp*)
8300     lt_prog_compiler_pic=
8301     ;;
8302   *)
8303     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8304     ;;
8305 esac
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8307 $as_echo "$lt_prog_compiler_pic" >&6; }
8308
8309
8310
8311
8312
8313
8314 #
8315 # Check to make sure the PIC flag actually works.
8316 #
8317 if test -n "$lt_prog_compiler_pic"; then
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8319 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8320 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   lt_cv_prog_compiler_pic_works=no
8324    ac_outfile=conftest.$ac_objext
8325    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8327    # Insert the option either (1) after the last *FLAGS variable, or
8328    # (2) before a word containing "conftest.", or (3) at the end.
8329    # Note that $ac_compile itself does not contain backslashes and begins
8330    # with a dollar sign (not a hyphen), so the echo should work correctly.
8331    # The option is referenced via a variable to avoid confusing sed.
8332    lt_compile=`echo "$ac_compile" | $SED \
8333    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335    -e 's:$: $lt_compiler_flag:'`
8336    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8337    (eval "$lt_compile" 2>conftest.err)
8338    ac_status=$?
8339    cat conftest.err >&5
8340    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341    if (exit $ac_status) && test -s "$ac_outfile"; then
8342      # The compiler can only warn and ignore the option if not recognized
8343      # So say no if there are warnings other than the usual output.
8344      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8345      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8347        lt_cv_prog_compiler_pic_works=yes
8348      fi
8349    fi
8350    $RM conftest*
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8354 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8355
8356 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8357     case $lt_prog_compiler_pic in
8358      "" | " "*) ;;
8359      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8360      esac
8361 else
8362     lt_prog_compiler_pic=
8363      lt_prog_compiler_can_build_shared=no
8364 fi
8365
8366 fi
8367
8368
8369
8370
8371
8372
8373 #
8374 # Check to make sure the static flag actually works.
8375 #
8376 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8379 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8380   $as_echo_n "(cached) " >&6
8381 else
8382   lt_cv_prog_compiler_static_works=no
8383    save_LDFLAGS="$LDFLAGS"
8384    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8386    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387      # The linker can only warn and ignore the option if not recognized
8388      # So say no if there are warnings
8389      if test -s conftest.err; then
8390        # Append any errors to the config.log.
8391        cat conftest.err 1>&5
8392        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8393        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394        if diff conftest.exp conftest.er2 >/dev/null; then
8395          lt_cv_prog_compiler_static_works=yes
8396        fi
8397      else
8398        lt_cv_prog_compiler_static_works=yes
8399      fi
8400    fi
8401    $RM -r conftest*
8402    LDFLAGS="$save_LDFLAGS"
8403
8404 fi
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8406 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8407
8408 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8409     :
8410 else
8411     lt_prog_compiler_static=
8412 fi
8413
8414
8415
8416
8417
8418
8419
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8423   $as_echo_n "(cached) " >&6
8424 else
8425   lt_cv_prog_compiler_c_o=no
8426    $RM -r conftest 2>/dev/null
8427    mkdir conftest
8428    cd conftest
8429    mkdir out
8430    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431
8432    lt_compiler_flag="-o out/conftest2.$ac_objext"
8433    # Insert the option either (1) after the last *FLAGS variable, or
8434    # (2) before a word containing "conftest.", or (3) at the end.
8435    # Note that $ac_compile itself does not contain backslashes and begins
8436    # with a dollar sign (not a hyphen), so the echo should work correctly.
8437    lt_compile=`echo "$ac_compile" | $SED \
8438    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440    -e 's:$: $lt_compiler_flag:'`
8441    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442    (eval "$lt_compile" 2>out/conftest.err)
8443    ac_status=$?
8444    cat out/conftest.err >&5
8445    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8447    then
8448      # The compiler can only warn and ignore the option if not recognized
8449      # So say no if there are warnings
8450      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8451      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453        lt_cv_prog_compiler_c_o=yes
8454      fi
8455    fi
8456    chmod u+w . 2>&5
8457    $RM conftest*
8458    # SGI C++ compiler will create directory out/ii_files/ for
8459    # template instantiation
8460    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461    $RM out/* && rmdir out
8462    cd ..
8463    $RM -r conftest
8464    $RM conftest*
8465
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8469
8470
8471
8472
8473
8474
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8477 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   lt_cv_prog_compiler_c_o=no
8481    $RM -r conftest 2>/dev/null
8482    mkdir conftest
8483    cd conftest
8484    mkdir out
8485    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8486
8487    lt_compiler_flag="-o out/conftest2.$ac_objext"
8488    # Insert the option either (1) after the last *FLAGS variable, or
8489    # (2) before a word containing "conftest.", or (3) at the end.
8490    # Note that $ac_compile itself does not contain backslashes and begins
8491    # with a dollar sign (not a hyphen), so the echo should work correctly.
8492    lt_compile=`echo "$ac_compile" | $SED \
8493    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495    -e 's:$: $lt_compiler_flag:'`
8496    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8497    (eval "$lt_compile" 2>out/conftest.err)
8498    ac_status=$?
8499    cat out/conftest.err >&5
8500    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8502    then
8503      # The compiler can only warn and ignore the option if not recognized
8504      # So say no if there are warnings
8505      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8506      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8507      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8508        lt_cv_prog_compiler_c_o=yes
8509      fi
8510    fi
8511    chmod u+w . 2>&5
8512    $RM conftest*
8513    # SGI C++ compiler will create directory out/ii_files/ for
8514    # template instantiation
8515    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8516    $RM out/* && rmdir out
8517    cd ..
8518    $RM -r conftest
8519    $RM conftest*
8520
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8523 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8524
8525
8526
8527
8528 hard_links="nottested"
8529 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8530   # do not overwrite the value of need_locks provided by the user
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8532 $as_echo_n "checking if we can lock with hard links... " >&6; }
8533   hard_links=yes
8534   $RM conftest*
8535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8536   touch conftest.a
8537   ln conftest.a conftest.b 2>&5 || hard_links=no
8538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8540 $as_echo "$hard_links" >&6; }
8541   if test "$hard_links" = no; then
8542     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8544     need_locks=warn
8545   fi
8546 else
8547   need_locks=no
8548 fi
8549
8550
8551
8552
8553
8554
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8556 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8557
8558   runpath_var=
8559   allow_undefined_flag=
8560   always_export_symbols=no
8561   archive_cmds=
8562   archive_expsym_cmds=
8563   compiler_needs_object=no
8564   enable_shared_with_static_runtimes=no
8565   export_dynamic_flag_spec=
8566   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8567   hardcode_automatic=no
8568   hardcode_direct=no
8569   hardcode_direct_absolute=no
8570   hardcode_libdir_flag_spec=
8571   hardcode_libdir_flag_spec_ld=
8572   hardcode_libdir_separator=
8573   hardcode_minus_L=no
8574   hardcode_shlibpath_var=unsupported
8575   inherit_rpath=no
8576   link_all_deplibs=unknown
8577   module_cmds=
8578   module_expsym_cmds=
8579   old_archive_from_new_cmds=
8580   old_archive_from_expsyms_cmds=
8581   thread_safe_flag_spec=
8582   whole_archive_flag_spec=
8583   # include_expsyms should be a list of space-separated symbols to be *always*
8584   # included in the symbol list
8585   include_expsyms=
8586   # exclude_expsyms can be an extended regexp of symbols to exclude
8587   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8588   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8589   # as well as any symbol that contains `d'.
8590   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8591   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8592   # platforms (ab)use it in PIC code, but their linkers get confused if
8593   # the symbol is explicitly referenced.  Since portable code cannot
8594   # rely on this symbol name, it's probably fine to never include it in
8595   # preloaded symbol tables.
8596   # Exclude shared library initialization/finalization symbols.
8597   extract_expsyms_cmds=
8598
8599   case $host_os in
8600   cygwin* | mingw* | pw32* | cegcc*)
8601     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8602     # When not using gcc, we currently assume that we are using
8603     # Microsoft Visual C++.
8604     if test "$GCC" != yes; then
8605       with_gnu_ld=no
8606     fi
8607     ;;
8608   interix*)
8609     # we just hope/assume this is gcc and not c89 (= MSVC++)
8610     with_gnu_ld=yes
8611     ;;
8612   openbsd*)
8613     with_gnu_ld=no
8614     ;;
8615   esac
8616
8617   ld_shlibs=yes
8618
8619   # On some targets, GNU ld is compatible enough with the native linker
8620   # that we're better off using the native interface for both.
8621   lt_use_gnu_ld_interface=no
8622   if test "$with_gnu_ld" = yes; then
8623     case $host_os in
8624       aix*)
8625         # The AIX port of GNU ld has always aspired to compatibility
8626         # with the native linker.  However, as the warning in the GNU ld
8627         # block says, versions before 2.19.5* couldn't really create working
8628         # shared libraries, regardless of the interface used.
8629         case `$LD -v 2>&1` in
8630           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8631           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8632           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8633           *)
8634             lt_use_gnu_ld_interface=yes
8635             ;;
8636         esac
8637         ;;
8638       *)
8639         lt_use_gnu_ld_interface=yes
8640         ;;
8641     esac
8642   fi
8643
8644   if test "$lt_use_gnu_ld_interface" = yes; then
8645     # If archive_cmds runs LD, not CC, wlarc should be empty
8646     wlarc='${wl}'
8647
8648     # Set some defaults for GNU ld with shared library support. These
8649     # are reset later if shared libraries are not supported. Putting them
8650     # here allows them to be overridden if necessary.
8651     runpath_var=LD_RUN_PATH
8652     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653     export_dynamic_flag_spec='${wl}--export-dynamic'
8654     # ancient GNU ld didn't support --whole-archive et. al.
8655     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8656       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8657     else
8658       whole_archive_flag_spec=
8659     fi
8660     supports_anon_versioning=no
8661     case `$LD -v 2>&1` in
8662       *GNU\ gold*) supports_anon_versioning=yes ;;
8663       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8664       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8665       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8666       *\ 2.11.*) ;; # other 2.11 versions
8667       *) supports_anon_versioning=yes ;;
8668     esac
8669
8670     # See if GNU ld supports shared libraries.
8671     case $host_os in
8672     aix[3-9]*)
8673       # On AIX/PPC, the GNU linker is very broken
8674       if test "$host_cpu" != ia64; then
8675         ld_shlibs=no
8676         cat <<_LT_EOF 1>&2
8677
8678 *** Warning: the GNU linker, at least up to release 2.19, is reported
8679 *** to be unable to reliably create shared libraries on AIX.
8680 *** Therefore, libtool is disabling shared libraries support.  If you
8681 *** really care for shared libraries, you may want to install binutils
8682 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8683 *** You will then need to restart the configuration process.
8684
8685 _LT_EOF
8686       fi
8687       ;;
8688
8689     amigaos*)
8690       case $host_cpu in
8691       powerpc)
8692             # see comment about AmigaOS4 .so support
8693             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694             archive_expsym_cmds=''
8695         ;;
8696       m68k)
8697             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)'
8698             hardcode_libdir_flag_spec='-L$libdir'
8699             hardcode_minus_L=yes
8700         ;;
8701       esac
8702       ;;
8703
8704     beos*)
8705       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706         allow_undefined_flag=unsupported
8707         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8708         # support --undefined.  This deserves some investigation.  FIXME
8709         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710       else
8711         ld_shlibs=no
8712       fi
8713       ;;
8714
8715     cygwin* | mingw* | pw32* | cegcc*)
8716       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8717       # as there is no search path for DLLs.
8718       hardcode_libdir_flag_spec='-L$libdir'
8719       export_dynamic_flag_spec='${wl}--export-all-symbols'
8720       allow_undefined_flag=unsupported
8721       always_export_symbols=no
8722       enable_shared_with_static_runtimes=yes
8723       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8724
8725       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727         # If the export-symbols file already is a .def file (1st line
8728         # is EXPORTS), use it as is; otherwise, prepend...
8729         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730           cp $export_symbols $output_objdir/$soname.def;
8731         else
8732           echo EXPORTS > $output_objdir/$soname.def;
8733           cat $export_symbols >> $output_objdir/$soname.def;
8734         fi~
8735         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736       else
8737         ld_shlibs=no
8738       fi
8739       ;;
8740
8741     haiku*)
8742       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743       link_all_deplibs=yes
8744       ;;
8745
8746     interix[3-9]*)
8747       hardcode_direct=no
8748       hardcode_shlibpath_var=no
8749       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750       export_dynamic_flag_spec='${wl}-E'
8751       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752       # Instead, shared libraries are loaded at an image base (0x10000000 by
8753       # default) and relocated if they conflict, which is a slow very memory
8754       # consuming and fragmenting process.  To avoid this, we pick a random,
8755       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8757       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758       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'
8759       ;;
8760
8761     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8762       tmp_diet=no
8763       if test "$host_os" = linux-dietlibc; then
8764         case $cc_basename in
8765           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8766         esac
8767       fi
8768       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769          && test "$tmp_diet" = no
8770       then
8771         tmp_addflag=' $pic_flag'
8772         tmp_sharedflag='-shared'
8773         case $cc_basename,$host_cpu in
8774         pgcc*)                          # Portland Group C compiler
8775           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8776           tmp_addflag=' $pic_flag'
8777           ;;
8778         pgf77* | pgf90* | pgf95* | pgfortran*)
8779                                         # Portland Group f77 and f90 compilers
8780           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8781           tmp_addflag=' $pic_flag -Mnomain' ;;
8782         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8783           tmp_addflag=' -i_dynamic' ;;
8784         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8785           tmp_addflag=' -i_dynamic -nofor_main' ;;
8786         ifc* | ifort*)                  # Intel Fortran compiler
8787           tmp_addflag=' -nofor_main' ;;
8788         lf95*)                          # Lahey Fortran 8.1
8789           whole_archive_flag_spec=
8790           tmp_sharedflag='--shared' ;;
8791         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8792           tmp_sharedflag='-qmkshrobj'
8793           tmp_addflag= ;;
8794         nvcc*)  # Cuda Compiler Driver 2.2
8795           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8796           compiler_needs_object=yes
8797           ;;
8798         esac
8799         case `$CC -V 2>&1 | sed 5q` in
8800         *Sun\ C*)                       # Sun C 5.9
8801           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8802           compiler_needs_object=yes
8803           tmp_sharedflag='-G' ;;
8804         *Sun\ F*)                       # Sun Fortran 8.3
8805           tmp_sharedflag='-G' ;;
8806         esac
8807         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808
8809         if test "x$supports_anon_versioning" = xyes; then
8810           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812             echo "local: *; };" >> $output_objdir/$libname.ver~
8813             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8814         fi
8815
8816         case $cc_basename in
8817         xlf* | bgf* | bgxlf* | mpixlf*)
8818           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820           hardcode_libdir_flag_spec=
8821           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8822           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8823           if test "x$supports_anon_versioning" = xyes; then
8824             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8825               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8826               echo "local: *; };" >> $output_objdir/$libname.ver~
8827               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8828           fi
8829           ;;
8830         esac
8831       else
8832         ld_shlibs=no
8833       fi
8834       ;;
8835
8836     netbsd*)
8837       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8838         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8839         wlarc=
8840       else
8841         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8843       fi
8844       ;;
8845
8846     solaris*)
8847       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8848         ld_shlibs=no
8849         cat <<_LT_EOF 1>&2
8850
8851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8852 *** create shared libraries on Solaris systems.  Therefore, libtool
8853 *** is disabling shared libraries support.  We urge you to upgrade GNU
8854 *** binutils to release 2.9.1 or newer.  Another option is to modify
8855 *** your PATH or compiler configuration so that the native linker is
8856 *** used, and then restart.
8857
8858 _LT_EOF
8859       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8862       else
8863         ld_shlibs=no
8864       fi
8865       ;;
8866
8867     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8868       case `$LD -v 2>&1` in
8869         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8870         ld_shlibs=no
8871         cat <<_LT_EOF 1>&2
8872
8873 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8874 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8875 *** is disabling shared libraries support.  We urge you to upgrade GNU
8876 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8877 *** your PATH or compiler configuration so that the native linker is
8878 *** used, and then restart.
8879
8880 _LT_EOF
8881         ;;
8882         *)
8883           # For security reasons, it is highly recommended that you always
8884           # use absolute paths for naming shared libraries, and exclude the
8885           # DT_RUNPATH tag from executables and libraries.  But doing so
8886           # requires that you compile everything twice, which is a pain.
8887           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8888             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8891           else
8892             ld_shlibs=no
8893           fi
8894         ;;
8895       esac
8896       ;;
8897
8898     sunos4*)
8899       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8900       wlarc=
8901       hardcode_direct=yes
8902       hardcode_shlibpath_var=no
8903       ;;
8904
8905     *)
8906       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8907         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8909       else
8910         ld_shlibs=no
8911       fi
8912       ;;
8913     esac
8914
8915     if test "$ld_shlibs" = no; then
8916       runpath_var=
8917       hardcode_libdir_flag_spec=
8918       export_dynamic_flag_spec=
8919       whole_archive_flag_spec=
8920     fi
8921   else
8922     # PORTME fill in a description of your system's linker (not GNU ld)
8923     case $host_os in
8924     aix3*)
8925       allow_undefined_flag=unsupported
8926       always_export_symbols=yes
8927       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'
8928       # Note: this linker hardcodes the directories in LIBPATH if there
8929       # are no directories specified by -L.
8930       hardcode_minus_L=yes
8931       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8932         # Neither direct hardcoding nor static linking is supported with a
8933         # broken collect2.
8934         hardcode_direct=unsupported
8935       fi
8936       ;;
8937
8938     aix[4-9]*)
8939       if test "$host_cpu" = ia64; then
8940         # On IA64, the linker does run time linking by default, so we don't
8941         # have to do anything special.
8942         aix_use_runtimelinking=no
8943         exp_sym_flag='-Bexport'
8944         no_entry_flag=""
8945       else
8946         # If we're using GNU nm, then we don't want the "-C" option.
8947         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8948         # Also, AIX nm treats weak defined symbols like other global
8949         # defined symbols, whereas GNU nm marks them as "W".
8950         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8951           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8952         else
8953           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8954         fi
8955         aix_use_runtimelinking=no
8956
8957         # Test if we are trying to use run time linking or normal
8958         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8959         # need to do runtime linking.
8960         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8961           for ld_flag in $LDFLAGS; do
8962           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8963             aix_use_runtimelinking=yes
8964             break
8965           fi
8966           done
8967           ;;
8968         esac
8969
8970         exp_sym_flag='-bexport'
8971         no_entry_flag='-bnoentry'
8972       fi
8973
8974       # When large executables or shared objects are built, AIX ld can
8975       # have problems creating the table of contents.  If linking a library
8976       # or program results in "error TOC overflow" add -mminimal-toc to
8977       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8978       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8979
8980       archive_cmds=''
8981       hardcode_direct=yes
8982       hardcode_direct_absolute=yes
8983       hardcode_libdir_separator=':'
8984       link_all_deplibs=yes
8985       file_list_spec='${wl}-f,'
8986
8987       if test "$GCC" = yes; then
8988         case $host_os in aix4.[012]|aix4.[012].*)
8989         # We only want to do this on AIX 4.2 and lower, the check
8990         # below for broken collect2 doesn't work under 4.3+
8991           collect2name=`${CC} -print-prog-name=collect2`
8992           if test -f "$collect2name" &&
8993            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8994           then
8995           # We have reworked collect2
8996           :
8997           else
8998           # We have old collect2
8999           hardcode_direct=unsupported
9000           # It fails to find uninstalled libraries when the uninstalled
9001           # path is not listed in the libpath.  Setting hardcode_minus_L
9002           # to unsupported forces relinking
9003           hardcode_minus_L=yes
9004           hardcode_libdir_flag_spec='-L$libdir'
9005           hardcode_libdir_separator=
9006           fi
9007           ;;
9008         esac
9009         shared_flag='-shared'
9010         if test "$aix_use_runtimelinking" = yes; then
9011           shared_flag="$shared_flag "'${wl}-G'
9012         fi
9013       else
9014         # not using gcc
9015         if test "$host_cpu" = ia64; then
9016         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9017         # chokes on -Wl,-G. The following line is correct:
9018           shared_flag='-G'
9019         else
9020           if test "$aix_use_runtimelinking" = yes; then
9021             shared_flag='${wl}-G'
9022           else
9023             shared_flag='${wl}-bM:SRE'
9024           fi
9025         fi
9026       fi
9027
9028       export_dynamic_flag_spec='${wl}-bexpall'
9029       # It seems that -bexpall does not export symbols beginning with
9030       # underscore (_), so it is better to generate a list of symbols to export.
9031       always_export_symbols=yes
9032       if test "$aix_use_runtimelinking" = yes; then
9033         # Warning - without using the other runtime loading flags (-brtl),
9034         # -berok will link without error, but may produce a broken library.
9035         allow_undefined_flag='-berok'
9036         # Determine the default libpath from the value encoded in an
9037         # empty executable.
9038         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h.  */
9040
9041 int
9042 main ()
9043 {
9044
9045   ;
9046   return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050
9051 lt_aix_libpath_sed='
9052     /Import File Strings/,/^$/ {
9053         /^0/ {
9054             s/^0  *\(.*\)$/\1/
9055             p
9056         }
9057     }'
9058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059 # Check for a 64-bit object if we didn't find anything.
9060 if test -z "$aix_libpath"; then
9061   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9062 fi
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext \
9065     conftest$ac_exeext conftest.$ac_ext
9066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9067
9068         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9069         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9070       else
9071         if test "$host_cpu" = ia64; then
9072           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9073           allow_undefined_flag="-z nodefs"
9074           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"
9075         else
9076          # Determine the default libpath from the value encoded in an
9077          # empty executable.
9078          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h.  */
9080
9081 int
9082 main ()
9083 {
9084
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090
9091 lt_aix_libpath_sed='
9092     /Import File Strings/,/^$/ {
9093         /^0/ {
9094             s/^0  *\(.*\)$/\1/
9095             p
9096         }
9097     }'
9098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099 # Check for a 64-bit object if we didn't find anything.
9100 if test -z "$aix_libpath"; then
9101   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9102 fi
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext \
9105     conftest$ac_exeext conftest.$ac_ext
9106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9107
9108          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109           # Warning - without using the other run time loading flags,
9110           # -berok will link without error, but may produce a broken library.
9111           no_undefined_flag=' ${wl}-bernotok'
9112           allow_undefined_flag=' ${wl}-berok'
9113           if test "$with_gnu_ld" = yes; then
9114             # We only use this code for GNU lds that support --whole-archive.
9115             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9116           else
9117             # Exported symbols can be pulled into shared objects from archives
9118             whole_archive_flag_spec='$convenience'
9119           fi
9120           archive_cmds_need_lc=yes
9121           # This is similar to how AIX traditionally builds its shared libraries.
9122           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'
9123         fi
9124       fi
9125       ;;
9126
9127     amigaos*)
9128       case $host_cpu in
9129       powerpc)
9130             # see comment about AmigaOS4 .so support
9131             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132             archive_expsym_cmds=''
9133         ;;
9134       m68k)
9135             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)'
9136             hardcode_libdir_flag_spec='-L$libdir'
9137             hardcode_minus_L=yes
9138         ;;
9139       esac
9140       ;;
9141
9142     bsdi[45]*)
9143       export_dynamic_flag_spec=-rdynamic
9144       ;;
9145
9146     cygwin* | mingw* | pw32* | cegcc*)
9147       # When not using gcc, we currently assume that we are using
9148       # Microsoft Visual C++.
9149       # hardcode_libdir_flag_spec is actually meaningless, as there is
9150       # no search path for DLLs.
9151       hardcode_libdir_flag_spec=' '
9152       allow_undefined_flag=unsupported
9153       # Tell ltmain to make .lib files, not .a files.
9154       libext=lib
9155       # Tell ltmain to make .dll files, not .so files.
9156       shrext_cmds=".dll"
9157       # FIXME: Setting linknames here is a bad hack.
9158       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9159       # The linker will automatically build a .lib file if we build a DLL.
9160       old_archive_from_new_cmds='true'
9161       # FIXME: Should let the user specify the lib program.
9162       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9163       fix_srcfile_path='`cygpath -w "$srcfile"`'
9164       enable_shared_with_static_runtimes=yes
9165       ;;
9166
9167     darwin* | rhapsody*)
9168
9169
9170   archive_cmds_need_lc=no
9171   hardcode_direct=no
9172   hardcode_automatic=yes
9173   hardcode_shlibpath_var=unsupported
9174   if test "$lt_cv_ld_force_load" = "yes"; then
9175     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9176   else
9177     whole_archive_flag_spec=''
9178   fi
9179   link_all_deplibs=yes
9180   allow_undefined_flag="$_lt_dar_allow_undefined"
9181   case $cc_basename in
9182      ifort*) _lt_dar_can_shared=yes ;;
9183      *) _lt_dar_can_shared=$GCC ;;
9184   esac
9185   if test "$_lt_dar_can_shared" = "yes"; then
9186     output_verbose_link_cmd=func_echo_all
9187     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9188     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9189     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}"
9190     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}"
9191
9192   else
9193   ld_shlibs=no
9194   fi
9195
9196       ;;
9197
9198     dgux*)
9199       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200       hardcode_libdir_flag_spec='-L$libdir'
9201       hardcode_shlibpath_var=no
9202       ;;
9203
9204     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9205     # support.  Future versions do this automatically, but an explicit c++rt0.o
9206     # does not break anything, and helps significantly (at the cost of a little
9207     # extra space).
9208     freebsd2.2*)
9209       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9210       hardcode_libdir_flag_spec='-R$libdir'
9211       hardcode_direct=yes
9212       hardcode_shlibpath_var=no
9213       ;;
9214
9215     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9216     freebsd2.*)
9217       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9218       hardcode_direct=yes
9219       hardcode_minus_L=yes
9220       hardcode_shlibpath_var=no
9221       ;;
9222
9223     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9224     freebsd* | dragonfly*)
9225       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9226       hardcode_libdir_flag_spec='-R$libdir'
9227       hardcode_direct=yes
9228       hardcode_shlibpath_var=no
9229       ;;
9230
9231     hpux9*)
9232       if test "$GCC" = yes; then
9233         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'
9234       else
9235         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'
9236       fi
9237       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238       hardcode_libdir_separator=:
9239       hardcode_direct=yes
9240
9241       # hardcode_minus_L: Not really in the search PATH,
9242       # but as the default location of the library.
9243       hardcode_minus_L=yes
9244       export_dynamic_flag_spec='${wl}-E'
9245       ;;
9246
9247     hpux10*)
9248       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9249         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9250       else
9251         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9252       fi
9253       if test "$with_gnu_ld" = no; then
9254         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255         hardcode_libdir_flag_spec_ld='+b $libdir'
9256         hardcode_libdir_separator=:
9257         hardcode_direct=yes
9258         hardcode_direct_absolute=yes
9259         export_dynamic_flag_spec='${wl}-E'
9260         # hardcode_minus_L: Not really in the search PATH,
9261         # but as the default location of the library.
9262         hardcode_minus_L=yes
9263       fi
9264       ;;
9265
9266     hpux11*)
9267       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9268         case $host_cpu in
9269         hppa*64*)
9270           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9271           ;;
9272         ia64*)
9273           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9274           ;;
9275         *)
9276           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9277           ;;
9278         esac
9279       else
9280         case $host_cpu in
9281         hppa*64*)
9282           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283           ;;
9284         ia64*)
9285           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9286           ;;
9287         *)
9288
9289           # Older versions of the 11.00 compiler do not understand -b yet
9290           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9291           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9292 $as_echo_n "checking if $CC understands -b... " >&6; }
9293 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   lt_cv_prog_compiler__b=no
9297    save_LDFLAGS="$LDFLAGS"
9298    LDFLAGS="$LDFLAGS -b"
9299    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9300    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9301      # The linker can only warn and ignore the option if not recognized
9302      # So say no if there are warnings
9303      if test -s conftest.err; then
9304        # Append any errors to the config.log.
9305        cat conftest.err 1>&5
9306        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9307        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9308        if diff conftest.exp conftest.er2 >/dev/null; then
9309          lt_cv_prog_compiler__b=yes
9310        fi
9311      else
9312        lt_cv_prog_compiler__b=yes
9313      fi
9314    fi
9315    $RM -r conftest*
9316    LDFLAGS="$save_LDFLAGS"
9317
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9320 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9321
9322 if test x"$lt_cv_prog_compiler__b" = xyes; then
9323     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9324 else
9325     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9326 fi
9327
9328           ;;
9329         esac
9330       fi
9331       if test "$with_gnu_ld" = no; then
9332         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9333         hardcode_libdir_separator=:
9334
9335         case $host_cpu in
9336         hppa*64*|ia64*)
9337           hardcode_direct=no
9338           hardcode_shlibpath_var=no
9339           ;;
9340         *)
9341           hardcode_direct=yes
9342           hardcode_direct_absolute=yes
9343           export_dynamic_flag_spec='${wl}-E'
9344
9345           # hardcode_minus_L: Not really in the search PATH,
9346           # but as the default location of the library.
9347           hardcode_minus_L=yes
9348           ;;
9349         esac
9350       fi
9351       ;;
9352
9353     irix5* | irix6* | nonstopux*)
9354       if test "$GCC" = yes; then
9355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9356         # Try to use the -exported_symbol ld option, if it does not
9357         # work, assume that -exports_file does not work either and
9358         # implicitly export all symbols.
9359         save_LDFLAGS="$LDFLAGS"
9360         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9361         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h.  */
9363 int foo(void) {}
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9367
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext \
9370     conftest$ac_exeext conftest.$ac_ext
9371         LDFLAGS="$save_LDFLAGS"
9372       else
9373         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9374         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9375       fi
9376       archive_cmds_need_lc='no'
9377       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378       hardcode_libdir_separator=:
9379       inherit_rpath=yes
9380       link_all_deplibs=yes
9381       ;;
9382
9383     netbsd*)
9384       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9385         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9386       else
9387         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9388       fi
9389       hardcode_libdir_flag_spec='-R$libdir'
9390       hardcode_direct=yes
9391       hardcode_shlibpath_var=no
9392       ;;
9393
9394     newsos6)
9395       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396       hardcode_direct=yes
9397       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398       hardcode_libdir_separator=:
9399       hardcode_shlibpath_var=no
9400       ;;
9401
9402     *nto* | *qnx*)
9403       ;;
9404
9405     openbsd*)
9406       if test -f /usr/libexec/ld.so; then
9407         hardcode_direct=yes
9408         hardcode_shlibpath_var=no
9409         hardcode_direct_absolute=yes
9410         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9411           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9412           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9413           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414           export_dynamic_flag_spec='${wl}-E'
9415         else
9416           case $host_os in
9417            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9418              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9419              hardcode_libdir_flag_spec='-R$libdir'
9420              ;;
9421            *)
9422              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9423              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9424              ;;
9425           esac
9426         fi
9427       else
9428         ld_shlibs=no
9429       fi
9430       ;;
9431
9432     os2*)
9433       hardcode_libdir_flag_spec='-L$libdir'
9434       hardcode_minus_L=yes
9435       allow_undefined_flag=unsupported
9436       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'
9437       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9438       ;;
9439
9440     osf3*)
9441       if test "$GCC" = yes; then
9442         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9443         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9444       else
9445         allow_undefined_flag=' -expect_unresolved \*'
9446         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9447       fi
9448       archive_cmds_need_lc='no'
9449       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450       hardcode_libdir_separator=:
9451       ;;
9452
9453     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9454       if test "$GCC" = yes; then
9455         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9456         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9457         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458       else
9459         allow_undefined_flag=' -expect_unresolved \*'
9460         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9461         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~
9462         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9463
9464         # Both c and cxx compiler support -rpath directly
9465         hardcode_libdir_flag_spec='-rpath $libdir'
9466       fi
9467       archive_cmds_need_lc='no'
9468       hardcode_libdir_separator=:
9469       ;;
9470
9471     solaris*)
9472       no_undefined_flag=' -z defs'
9473       if test "$GCC" = yes; then
9474         wlarc='${wl}'
9475         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9477           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9478       else
9479         case `$CC -V 2>&1` in
9480         *"Compilers 5.0"*)
9481           wlarc=''
9482           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9484           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9485           ;;
9486         *)
9487           wlarc='${wl}'
9488           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9489           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9490           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9491           ;;
9492         esac
9493       fi
9494       hardcode_libdir_flag_spec='-R$libdir'
9495       hardcode_shlibpath_var=no
9496       case $host_os in
9497       solaris2.[0-5] | solaris2.[0-5].*) ;;
9498       *)
9499         # The compiler driver will combine and reorder linker options,
9500         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9501         # but is careful enough not to reorder.
9502         # Supported since Solaris 2.6 (maybe 2.5.1?)
9503         if test "$GCC" = yes; then
9504           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9505         else
9506           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9507         fi
9508         ;;
9509       esac
9510       link_all_deplibs=yes
9511       ;;
9512
9513     sunos4*)
9514       if test "x$host_vendor" = xsequent; then
9515         # Use $CC to link under sequent, because it throws in some extra .o
9516         # files that make .init and .fini sections work.
9517         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9518       else
9519         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9520       fi
9521       hardcode_libdir_flag_spec='-L$libdir'
9522       hardcode_direct=yes
9523       hardcode_minus_L=yes
9524       hardcode_shlibpath_var=no
9525       ;;
9526
9527     sysv4)
9528       case $host_vendor in
9529         sni)
9530           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531           hardcode_direct=yes # is this really true???
9532         ;;
9533         siemens)
9534           ## LD is ld it makes a PLAMLIB
9535           ## CC just makes a GrossModule.
9536           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9537           reload_cmds='$CC -r -o $output$reload_objs'
9538           hardcode_direct=no
9539         ;;
9540         motorola)
9541           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9543         ;;
9544       esac
9545       runpath_var='LD_RUN_PATH'
9546       hardcode_shlibpath_var=no
9547       ;;
9548
9549     sysv4.3*)
9550       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551       hardcode_shlibpath_var=no
9552       export_dynamic_flag_spec='-Bexport'
9553       ;;
9554
9555     sysv4*MP*)
9556       if test -d /usr/nec; then
9557         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558         hardcode_shlibpath_var=no
9559         runpath_var=LD_RUN_PATH
9560         hardcode_runpath_var=yes
9561         ld_shlibs=yes
9562       fi
9563       ;;
9564
9565     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9566       no_undefined_flag='${wl}-z,text'
9567       archive_cmds_need_lc=no
9568       hardcode_shlibpath_var=no
9569       runpath_var='LD_RUN_PATH'
9570
9571       if test "$GCC" = yes; then
9572         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9574       else
9575         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577       fi
9578       ;;
9579
9580     sysv5* | sco3.2v5* | sco5v6*)
9581       # Note: We can NOT use -z defs as we might desire, because we do not
9582       # link with -lc, and that would cause any symbols used from libc to
9583       # always be unresolved, which means just about no library would
9584       # ever link correctly.  If we're not using GNU ld we use -z text
9585       # though, which does catch some bad symbols but isn't as heavy-handed
9586       # as -z defs.
9587       no_undefined_flag='${wl}-z,text'
9588       allow_undefined_flag='${wl}-z,nodefs'
9589       archive_cmds_need_lc=no
9590       hardcode_shlibpath_var=no
9591       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9592       hardcode_libdir_separator=':'
9593       link_all_deplibs=yes
9594       export_dynamic_flag_spec='${wl}-Bexport'
9595       runpath_var='LD_RUN_PATH'
9596
9597       if test "$GCC" = yes; then
9598         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600       else
9601         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603       fi
9604       ;;
9605
9606     uts4*)
9607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608       hardcode_libdir_flag_spec='-L$libdir'
9609       hardcode_shlibpath_var=no
9610       ;;
9611
9612     *)
9613       ld_shlibs=no
9614       ;;
9615     esac
9616
9617     if test x$host_vendor = xsni; then
9618       case $host in
9619       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9620         export_dynamic_flag_spec='${wl}-Blargedynsym'
9621         ;;
9622       esac
9623     fi
9624   fi
9625
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9627 $as_echo "$ld_shlibs" >&6; }
9628 test "$ld_shlibs" = no && can_build_shared=no
9629
9630 with_gnu_ld=$with_gnu_ld
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646 #
9647 # Do we need to explicitly link libc?
9648 #
9649 case "x$archive_cmds_need_lc" in
9650 x|xyes)
9651   # Assume -lc should be added
9652   archive_cmds_need_lc=yes
9653
9654   if test "$enable_shared" = yes && test "$GCC" = yes; then
9655     case $archive_cmds in
9656     *'~'*)
9657       # FIXME: we may have to deal with multi-command sequences.
9658       ;;
9659     '$CC '*)
9660       # Test whether the compiler implicitly links with -lc since on some
9661       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9662       # to ld, don't add -lc before -lgcc.
9663       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9664 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9665 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9666   $as_echo_n "(cached) " >&6
9667 else
9668   $RM conftest*
9669         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670
9671         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9672   (eval $ac_compile) 2>&5
9673   ac_status=$?
9674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9675   test $ac_status = 0; } 2>conftest.err; then
9676           soname=conftest
9677           lib=conftest
9678           libobjs=conftest.$ac_objext
9679           deplibs=
9680           wl=$lt_prog_compiler_wl
9681           pic_flag=$lt_prog_compiler_pic
9682           compiler_flags=-v
9683           linker_flags=-v
9684           verstring=
9685           output_objdir=.
9686           libname=conftest
9687           lt_save_allow_undefined_flag=$allow_undefined_flag
9688           allow_undefined_flag=
9689           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9690   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9691   ac_status=$?
9692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9693   test $ac_status = 0; }
9694           then
9695             lt_cv_archive_cmds_need_lc=no
9696           else
9697             lt_cv_archive_cmds_need_lc=yes
9698           fi
9699           allow_undefined_flag=$lt_save_allow_undefined_flag
9700         else
9701           cat conftest.err 1>&5
9702         fi
9703         $RM conftest*
9704
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9707 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9708       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9709       ;;
9710     esac
9711   fi
9712   ;;
9713 esac
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9872 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9873
9874 if test "$GCC" = yes; then
9875   case $host_os in
9876     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9877     *) lt_awk_arg="/^libraries:/" ;;
9878   esac
9879   case $host_os in
9880     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9881     *) lt_sed_strip_eq="s,=/,/,g" ;;
9882   esac
9883   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9884   case $lt_search_path_spec in
9885   *\;*)
9886     # if the path contains ";" then we assume it to be the separator
9887     # otherwise default to the standard path separator (i.e. ":") - it is
9888     # assumed that no part of a normal pathname contains ";" but that should
9889     # okay in the real world where ";" in dirpaths is itself problematic.
9890     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9891     ;;
9892   *)
9893     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9894     ;;
9895   esac
9896   # Ok, now we have the path, separated by spaces, we can step through it
9897   # and add multilib dir if necessary.
9898   lt_tmp_lt_search_path_spec=
9899   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9900   for lt_sys_path in $lt_search_path_spec; do
9901     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9902       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9903     else
9904       test -d "$lt_sys_path" && \
9905         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9906     fi
9907   done
9908   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9909 BEGIN {RS=" "; FS="/|\n";} {
9910   lt_foo="";
9911   lt_count=0;
9912   for (lt_i = NF; lt_i > 0; lt_i--) {
9913     if ($lt_i != "" && $lt_i != ".") {
9914       if ($lt_i == "..") {
9915         lt_count++;
9916       } else {
9917         if (lt_count == 0) {
9918           lt_foo="/" $lt_i lt_foo;
9919         } else {
9920           lt_count--;
9921         }
9922       }
9923     }
9924   }
9925   if (lt_foo != "") { lt_freq[lt_foo]++; }
9926   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9927 }'`
9928   # AWK program above erroneously prepends '/' to C:/dos/paths
9929   # for these hosts.
9930   case $host_os in
9931     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9932       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9933   esac
9934   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9935 else
9936   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9937 fi
9938 library_names_spec=
9939 libname_spec='lib$name'
9940 soname_spec=
9941 shrext_cmds=".so"
9942 postinstall_cmds=
9943 postuninstall_cmds=
9944 finish_cmds=
9945 finish_eval=
9946 shlibpath_var=
9947 shlibpath_overrides_runpath=unknown
9948 version_type=none
9949 dynamic_linker="$host_os ld.so"
9950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9951 need_lib_prefix=unknown
9952 hardcode_into_libs=no
9953
9954 # when you set need_version to no, make sure it does not cause -set_version
9955 # flags to be left without arguments
9956 need_version=unknown
9957
9958 case $host_os in
9959 aix3*)
9960   version_type=linux
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9962   shlibpath_var=LIBPATH
9963
9964   # AIX 3 has no versioning support, so we append a major version to the name.
9965   soname_spec='${libname}${release}${shared_ext}$major'
9966   ;;
9967
9968 aix[4-9]*)
9969   version_type=linux
9970   need_lib_prefix=no
9971   need_version=no
9972   hardcode_into_libs=yes
9973   if test "$host_cpu" = ia64; then
9974     # AIX 5 supports IA64
9975     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9976     shlibpath_var=LD_LIBRARY_PATH
9977   else
9978     # With GCC up to 2.95.x, collect2 would create an import file
9979     # for dependence libraries.  The import file would start with
9980     # the line `#! .'.  This would cause the generated library to
9981     # depend on `.', always an invalid library.  This was fixed in
9982     # development snapshots of GCC prior to 3.0.
9983     case $host_os in
9984       aix4 | aix4.[01] | aix4.[01].*)
9985       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9986            echo ' yes '
9987            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9988         :
9989       else
9990         can_build_shared=no
9991       fi
9992       ;;
9993     esac
9994     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9995     # soname into executable. Probably we can add versioning support to
9996     # collect2, so additional links can be useful in future.
9997     if test "$aix_use_runtimelinking" = yes; then
9998       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9999       # instead of lib<name>.a to let people know that these are not
10000       # typical AIX shared libraries.
10001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002     else
10003       # We preserve .a as extension for shared libraries through AIX4.2
10004       # and later when we are not doing run time linking.
10005       library_names_spec='${libname}${release}.a $libname.a'
10006       soname_spec='${libname}${release}${shared_ext}$major'
10007     fi
10008     shlibpath_var=LIBPATH
10009   fi
10010   ;;
10011
10012 amigaos*)
10013   case $host_cpu in
10014   powerpc)
10015     # Since July 2007 AmigaOS4 officially supports .so libraries.
10016     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018     ;;
10019   m68k)
10020     library_names_spec='$libname.ixlibrary $libname.a'
10021     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10022     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10023     ;;
10024   esac
10025   ;;
10026
10027 beos*)
10028   library_names_spec='${libname}${shared_ext}'
10029   dynamic_linker="$host_os ld.so"
10030   shlibpath_var=LIBRARY_PATH
10031   ;;
10032
10033 bsdi[45]*)
10034   version_type=linux
10035   need_version=no
10036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037   soname_spec='${libname}${release}${shared_ext}$major'
10038   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10039   shlibpath_var=LD_LIBRARY_PATH
10040   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10041   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10042   # the default ld.so.conf also contains /usr/contrib/lib and
10043   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10044   # libtool to hard-code these into programs
10045   ;;
10046
10047 cygwin* | mingw* | pw32* | cegcc*)
10048   version_type=windows
10049   shrext_cmds=".dll"
10050   need_version=no
10051   need_lib_prefix=no
10052
10053   case $GCC,$host_os in
10054   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10055     library_names_spec='$libname.dll.a'
10056     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10057     postinstall_cmds='base_file=`basename \${file}`~
10058       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10059       dldir=$destdir/`dirname \$dlpath`~
10060       test -d \$dldir || mkdir -p \$dldir~
10061       $install_prog $dir/$dlname \$dldir/$dlname~
10062       chmod a+x \$dldir/$dlname~
10063       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10064         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10065       fi'
10066     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10067       dlpath=$dir/\$dldll~
10068        $RM \$dlpath'
10069     shlibpath_overrides_runpath=yes
10070
10071     case $host_os in
10072     cygwin*)
10073       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10074       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10075
10076       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10077       ;;
10078     mingw* | cegcc*)
10079       # MinGW DLLs use traditional 'lib' prefix
10080       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10081       ;;
10082     pw32*)
10083       # pw32 DLLs use 'pw' prefix rather than 'lib'
10084       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10085       ;;
10086     esac
10087     ;;
10088
10089   *)
10090     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10091     ;;
10092   esac
10093   dynamic_linker='Win32 ld.exe'
10094   # FIXME: first we should search . and the directory the executable is in
10095   shlibpath_var=PATH
10096   ;;
10097
10098 darwin* | rhapsody*)
10099   dynamic_linker="$host_os dyld"
10100   version_type=darwin
10101   need_lib_prefix=no
10102   need_version=no
10103   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10104   soname_spec='${libname}${release}${major}$shared_ext'
10105   shlibpath_overrides_runpath=yes
10106   shlibpath_var=DYLD_LIBRARY_PATH
10107   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10108
10109   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10110   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10111   ;;
10112
10113 dgux*)
10114   version_type=linux
10115   need_lib_prefix=no
10116   need_version=no
10117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10118   soname_spec='${libname}${release}${shared_ext}$major'
10119   shlibpath_var=LD_LIBRARY_PATH
10120   ;;
10121
10122 freebsd* | dragonfly*)
10123   # DragonFly does not have aout.  When/if they implement a new
10124   # versioning mechanism, adjust this.
10125   if test -x /usr/bin/objformat; then
10126     objformat=`/usr/bin/objformat`
10127   else
10128     case $host_os in
10129     freebsd[23].*) objformat=aout ;;
10130     *) objformat=elf ;;
10131     esac
10132   fi
10133   version_type=freebsd-$objformat
10134   case $version_type in
10135     freebsd-elf*)
10136       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137       need_version=no
10138       need_lib_prefix=no
10139       ;;
10140     freebsd-*)
10141       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10142       need_version=yes
10143       ;;
10144   esac
10145   shlibpath_var=LD_LIBRARY_PATH
10146   case $host_os in
10147   freebsd2.*)
10148     shlibpath_overrides_runpath=yes
10149     ;;
10150   freebsd3.[01]* | freebsdelf3.[01]*)
10151     shlibpath_overrides_runpath=yes
10152     hardcode_into_libs=yes
10153     ;;
10154   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10155   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10156     shlibpath_overrides_runpath=no
10157     hardcode_into_libs=yes
10158     ;;
10159   *) # from 4.6 on, and DragonFly
10160     shlibpath_overrides_runpath=yes
10161     hardcode_into_libs=yes
10162     ;;
10163   esac
10164   ;;
10165
10166 gnu*)
10167   version_type=linux
10168   need_lib_prefix=no
10169   need_version=no
10170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171   soname_spec='${libname}${release}${shared_ext}$major'
10172   shlibpath_var=LD_LIBRARY_PATH
10173   hardcode_into_libs=yes
10174   ;;
10175
10176 haiku*)
10177   version_type=linux
10178   need_lib_prefix=no
10179   need_version=no
10180   dynamic_linker="$host_os runtime_loader"
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   shlibpath_var=LIBRARY_PATH
10184   shlibpath_overrides_runpath=yes
10185   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10186   hardcode_into_libs=yes
10187   ;;
10188
10189 hpux9* | hpux10* | hpux11*)
10190   # Give a soname corresponding to the major version so that dld.sl refuses to
10191   # link against other versions.
10192   version_type=sunos
10193   need_lib_prefix=no
10194   need_version=no
10195   case $host_cpu in
10196   ia64*)
10197     shrext_cmds='.so'
10198     hardcode_into_libs=yes
10199     dynamic_linker="$host_os dld.so"
10200     shlibpath_var=LD_LIBRARY_PATH
10201     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203     soname_spec='${libname}${release}${shared_ext}$major'
10204     if test "X$HPUX_IA64_MODE" = X32; then
10205       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10206     else
10207       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10208     fi
10209     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210     ;;
10211   hppa*64*)
10212     shrext_cmds='.sl'
10213     hardcode_into_libs=yes
10214     dynamic_linker="$host_os dld.sl"
10215     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10216     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218     soname_spec='${libname}${release}${shared_ext}$major'
10219     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221     ;;
10222   *)
10223     shrext_cmds='.sl'
10224     dynamic_linker="$host_os dld.sl"
10225     shlibpath_var=SHLIB_PATH
10226     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228     soname_spec='${libname}${release}${shared_ext}$major'
10229     ;;
10230   esac
10231   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10232   postinstall_cmds='chmod 555 $lib'
10233   # or fails outright, so override atomically:
10234   install_override_mode=555
10235   ;;
10236
10237 interix[3-9]*)
10238   version_type=linux
10239   need_lib_prefix=no
10240   need_version=no
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242   soname_spec='${libname}${release}${shared_ext}$major'
10243   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   shlibpath_overrides_runpath=no
10246   hardcode_into_libs=yes
10247   ;;
10248
10249 irix5* | irix6* | nonstopux*)
10250   case $host_os in
10251     nonstopux*) version_type=nonstopux ;;
10252     *)
10253         if test "$lt_cv_prog_gnu_ld" = yes; then
10254                 version_type=linux
10255         else
10256                 version_type=irix
10257         fi ;;
10258   esac
10259   need_lib_prefix=no
10260   need_version=no
10261   soname_spec='${libname}${release}${shared_ext}$major'
10262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263   case $host_os in
10264   irix5* | nonstopux*)
10265     libsuff= shlibsuff=
10266     ;;
10267   *)
10268     case $LD in # libtool.m4 will add one of these switches to LD
10269     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270       libsuff= shlibsuff= libmagic=32-bit;;
10271     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272       libsuff=32 shlibsuff=N32 libmagic=N32;;
10273     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275     *) libsuff= shlibsuff= libmagic=never-match;;
10276     esac
10277     ;;
10278   esac
10279   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280   shlibpath_overrides_runpath=no
10281   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283   hardcode_into_libs=yes
10284   ;;
10285
10286 # No shared lib support for Linux oldld, aout, or coff.
10287 linux*oldld* | linux*aout* | linux*coff*)
10288   dynamic_linker=no
10289   ;;
10290
10291 # This must be Linux ELF.
10292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10293   version_type=linux
10294   need_lib_prefix=no
10295   need_version=no
10296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297   soname_spec='${libname}${release}${shared_ext}$major'
10298   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299   shlibpath_var=LD_LIBRARY_PATH
10300   shlibpath_overrides_runpath=no
10301
10302   # Some binutils ld are patched to set DT_RUNPATH
10303   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10304   $as_echo_n "(cached) " >&6
10305 else
10306   lt_cv_shlibpath_overrides_runpath=no
10307     save_LDFLAGS=$LDFLAGS
10308     save_libdir=$libdir
10309     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10310          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h.  */
10313
10314 int
10315 main ()
10316 {
10317
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10324   lt_cv_shlibpath_overrides_runpath=yes
10325 fi
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328     conftest$ac_exeext conftest.$ac_ext
10329     LDFLAGS=$save_LDFLAGS
10330     libdir=$save_libdir
10331
10332 fi
10333
10334   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10335
10336   # This implies no fast_install, which is unacceptable.
10337   # Some rework will be needed to allow for fast_install
10338   # before this can be enabled.
10339   hardcode_into_libs=yes
10340
10341   # Append ld.so.conf contents to the search path
10342   if test -f /etc/ld.so.conf; then
10343     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;s/"//g;/^$/d' | tr '\n' ' '`
10344     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10345   fi
10346
10347   # We used to test for /lib/ld.so.1 and disable shared libraries on
10348   # powerpc, because MkLinux only supported shared libraries with the
10349   # GNU dynamic linker.  Since this was broken with cross compilers,
10350   # most powerpc-linux boxes support dynamic linking these days and
10351   # people can always --disable-shared, the test was removed, and we
10352   # assume the GNU/Linux dynamic linker is in use.
10353   dynamic_linker='GNU/Linux ld.so'
10354   ;;
10355
10356 netbsd*)
10357   version_type=sunos
10358   need_lib_prefix=no
10359   need_version=no
10360   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10363     dynamic_linker='NetBSD (a.out) ld.so'
10364   else
10365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366     soname_spec='${libname}${release}${shared_ext}$major'
10367     dynamic_linker='NetBSD ld.elf_so'
10368   fi
10369   shlibpath_var=LD_LIBRARY_PATH
10370   shlibpath_overrides_runpath=yes
10371   hardcode_into_libs=yes
10372   ;;
10373
10374 newsos6)
10375   version_type=linux
10376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377   shlibpath_var=LD_LIBRARY_PATH
10378   shlibpath_overrides_runpath=yes
10379   ;;
10380
10381 *nto* | *qnx*)
10382   version_type=qnx
10383   need_lib_prefix=no
10384   need_version=no
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386   soname_spec='${libname}${release}${shared_ext}$major'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   shlibpath_overrides_runpath=no
10389   hardcode_into_libs=yes
10390   dynamic_linker='ldqnx.so'
10391   ;;
10392
10393 openbsd*)
10394   version_type=sunos
10395   sys_lib_dlsearch_path_spec="/usr/lib"
10396   need_lib_prefix=no
10397   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10398   case $host_os in
10399     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10400     *)                          need_version=no  ;;
10401   esac
10402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10404   shlibpath_var=LD_LIBRARY_PATH
10405   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406     case $host_os in
10407       openbsd2.[89] | openbsd2.[89].*)
10408         shlibpath_overrides_runpath=no
10409         ;;
10410       *)
10411         shlibpath_overrides_runpath=yes
10412         ;;
10413       esac
10414   else
10415     shlibpath_overrides_runpath=yes
10416   fi
10417   ;;
10418
10419 os2*)
10420   libname_spec='$name'
10421   shrext_cmds=".dll"
10422   need_lib_prefix=no
10423   library_names_spec='$libname${shared_ext} $libname.a'
10424   dynamic_linker='OS/2 ld.exe'
10425   shlibpath_var=LIBPATH
10426   ;;
10427
10428 osf3* | osf4* | osf5*)
10429   version_type=osf
10430   need_lib_prefix=no
10431   need_version=no
10432   soname_spec='${libname}${release}${shared_ext}$major'
10433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434   shlibpath_var=LD_LIBRARY_PATH
10435   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10436   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10437   ;;
10438
10439 rdos*)
10440   dynamic_linker=no
10441   ;;
10442
10443 solaris*)
10444   version_type=linux
10445   need_lib_prefix=no
10446   need_version=no
10447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448   soname_spec='${libname}${release}${shared_ext}$major'
10449   shlibpath_var=LD_LIBRARY_PATH
10450   shlibpath_overrides_runpath=yes
10451   hardcode_into_libs=yes
10452   # ldd complains unless libraries are executable
10453   postinstall_cmds='chmod +x $lib'
10454   ;;
10455
10456 sunos4*)
10457   version_type=sunos
10458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460   shlibpath_var=LD_LIBRARY_PATH
10461   shlibpath_overrides_runpath=yes
10462   if test "$with_gnu_ld" = yes; then
10463     need_lib_prefix=no
10464   fi
10465   need_version=yes
10466   ;;
10467
10468 sysv4 | sysv4.3*)
10469   version_type=linux
10470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471   soname_spec='${libname}${release}${shared_ext}$major'
10472   shlibpath_var=LD_LIBRARY_PATH
10473   case $host_vendor in
10474     sni)
10475       shlibpath_overrides_runpath=no
10476       need_lib_prefix=no
10477       runpath_var=LD_RUN_PATH
10478       ;;
10479     siemens)
10480       need_lib_prefix=no
10481       ;;
10482     motorola)
10483       need_lib_prefix=no
10484       need_version=no
10485       shlibpath_overrides_runpath=no
10486       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10487       ;;
10488   esac
10489   ;;
10490
10491 sysv4*MP*)
10492   if test -d /usr/nec ;then
10493     version_type=linux
10494     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10495     soname_spec='$libname${shared_ext}.$major'
10496     shlibpath_var=LD_LIBRARY_PATH
10497   fi
10498   ;;
10499
10500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10501   version_type=freebsd-elf
10502   need_lib_prefix=no
10503   need_version=no
10504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10505   soname_spec='${libname}${release}${shared_ext}$major'
10506   shlibpath_var=LD_LIBRARY_PATH
10507   shlibpath_overrides_runpath=yes
10508   hardcode_into_libs=yes
10509   if test "$with_gnu_ld" = yes; then
10510     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511   else
10512     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10513     case $host_os in
10514       sco3.2v5*)
10515         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10516         ;;
10517     esac
10518   fi
10519   sys_lib_dlsearch_path_spec='/usr/lib'
10520   ;;
10521
10522 tpf*)
10523   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10524   version_type=linux
10525   need_lib_prefix=no
10526   need_version=no
10527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528   shlibpath_var=LD_LIBRARY_PATH
10529   shlibpath_overrides_runpath=no
10530   hardcode_into_libs=yes
10531   ;;
10532
10533 uts4*)
10534   version_type=linux
10535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536   soname_spec='${libname}${release}${shared_ext}$major'
10537   shlibpath_var=LD_LIBRARY_PATH
10538   ;;
10539
10540 *)
10541   dynamic_linker=no
10542   ;;
10543 esac
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10545 $as_echo "$dynamic_linker" >&6; }
10546 test "$dynamic_linker" = no && can_build_shared=no
10547
10548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10549 if test "$GCC" = yes; then
10550   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10551 fi
10552
10553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10554   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10555 fi
10556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10557   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10558 fi
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10653 hardcode_action=
10654 if test -n "$hardcode_libdir_flag_spec" ||
10655    test -n "$runpath_var" ||
10656    test "X$hardcode_automatic" = "Xyes" ; then
10657
10658   # We can hardcode non-existent directories.
10659   if test "$hardcode_direct" != no &&
10660      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10661      # have to relink, otherwise we might link with an installed library
10662      # when we should be linking with a yet-to-be-installed one
10663      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10664      test "$hardcode_minus_L" != no; then
10665     # Linking always hardcodes the temporary library directory.
10666     hardcode_action=relink
10667   else
10668     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10669     hardcode_action=immediate
10670   fi
10671 else
10672   # We cannot hardcode anything, or else we can only hardcode existing
10673   # directories.
10674   hardcode_action=unsupported
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10677 $as_echo "$hardcode_action" >&6; }
10678
10679 if test "$hardcode_action" = relink ||
10680    test "$inherit_rpath" = yes; then
10681   # Fast installation is not supported
10682   enable_fast_install=no
10683 elif test "$shlibpath_overrides_runpath" = yes ||
10684      test "$enable_shared" = no; then
10685   # Fast installation is not necessary
10686   enable_fast_install=needless
10687 fi
10688
10689
10690
10691
10692
10693
10694   if test "x$enable_dlopen" != xyes; then
10695   enable_dlopen=unknown
10696   enable_dlopen_self=unknown
10697   enable_dlopen_self_static=unknown
10698 else
10699   lt_cv_dlopen=no
10700   lt_cv_dlopen_libs=
10701
10702   case $host_os in
10703   beos*)
10704     lt_cv_dlopen="load_add_on"
10705     lt_cv_dlopen_libs=
10706     lt_cv_dlopen_self=yes
10707     ;;
10708
10709   mingw* | pw32* | cegcc*)
10710     lt_cv_dlopen="LoadLibrary"
10711     lt_cv_dlopen_libs=
10712     ;;
10713
10714   cygwin*)
10715     lt_cv_dlopen="dlopen"
10716     lt_cv_dlopen_libs=
10717     ;;
10718
10719   darwin*)
10720   # if libdl is installed we need to link against it
10721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10724   $as_echo_n "(cached) " >&6
10725 else
10726   ac_check_lib_save_LIBS=$LIBS
10727 LIBS="-ldl  $LIBS"
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h.  */
10730
10731 /* Override any GCC internal prototype to avoid an error.
10732    Use char because int might match the return type of a GCC
10733    builtin and then its argument prototype would still apply.  */
10734 #ifdef __cplusplus
10735 extern "C"
10736 #endif
10737 char dlopen ();
10738 int
10739 main ()
10740 {
10741 return dlopen ();
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 if ac_fn_c_try_link "$LINENO"; then :
10747   ac_cv_lib_dl_dlopen=yes
10748 else
10749   ac_cv_lib_dl_dlopen=no
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext \
10752     conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10754 fi
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10758   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10759 else
10760
10761     lt_cv_dlopen="dyld"
10762     lt_cv_dlopen_libs=
10763     lt_cv_dlopen_self=yes
10764
10765 fi
10766
10767     ;;
10768
10769   *)
10770     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10771 if test "x$ac_cv_func_shl_load" = x""yes; then :
10772   lt_cv_dlopen="shl_load"
10773 else
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10775 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10776 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10777   $as_echo_n "(cached) " >&6
10778 else
10779   ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-ldld  $LIBS"
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785    Use char because int might match the return type of a GCC
10786    builtin and then its argument prototype would still apply.  */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char shl_load ();
10791 int
10792 main ()
10793 {
10794 return shl_load ();
10795   ;
10796   return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_link "$LINENO"; then :
10800   ac_cv_lib_dld_shl_load=yes
10801 else
10802   ac_cv_lib_dld_shl_load=no
10803 fi
10804 rm -f core conftest.err conftest.$ac_objext \
10805     conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10807 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10809 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10811   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10812 else
10813   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10814 if test "x$ac_cv_func_dlopen" = x""yes; then :
10815   lt_cv_dlopen="dlopen"
10816 else
10817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10818 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10819 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-ldl  $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828    Use char because int might match the return type of a GCC
10829    builtin and then its argument prototype would still apply.  */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char dlopen ();
10834 int
10835 main ()
10836 {
10837 return dlopen ();
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843   ac_cv_lib_dl_dlopen=yes
10844 else
10845   ac_cv_lib_dl_dlopen=no
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext \
10848     conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10852 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10853 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10854   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10855 else
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10857 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10858 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10859   $as_echo_n "(cached) " >&6
10860 else
10861   ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-lsvld  $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h.  */
10865
10866 /* Override any GCC internal prototype to avoid an error.
10867    Use char because int might match the return type of a GCC
10868    builtin and then its argument prototype would still apply.  */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 char dlopen ();
10873 int
10874 main ()
10875 {
10876 return dlopen ();
10877   ;
10878   return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882   ac_cv_lib_svld_dlopen=yes
10883 else
10884   ac_cv_lib_svld_dlopen=no
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext \
10887     conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10889 fi
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10891 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10892 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10893   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10894 else
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10896 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10898   $as_echo_n "(cached) " >&6
10899 else
10900   ac_check_lib_save_LIBS=$LIBS
10901 LIBS="-ldld  $LIBS"
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h.  */
10904
10905 /* Override any GCC internal prototype to avoid an error.
10906    Use char because int might match the return type of a GCC
10907    builtin and then its argument prototype would still apply.  */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char dld_link ();
10912 int
10913 main ()
10914 {
10915 return dld_link ();
10916   ;
10917   return 0;
10918 }
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"; then :
10921   ac_cv_lib_dld_dld_link=yes
10922 else
10923   ac_cv_lib_dld_dld_link=no
10924 fi
10925 rm -f core conftest.err conftest.$ac_objext \
10926     conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10930 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10931 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10932   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10933 fi
10934
10935
10936 fi
10937
10938
10939 fi
10940
10941
10942 fi
10943
10944
10945 fi
10946
10947
10948 fi
10949
10950     ;;
10951   esac
10952
10953   if test "x$lt_cv_dlopen" != xno; then
10954     enable_dlopen=yes
10955   else
10956     enable_dlopen=no
10957   fi
10958
10959   case $lt_cv_dlopen in
10960   dlopen)
10961     save_CPPFLAGS="$CPPFLAGS"
10962     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10963
10964     save_LDFLAGS="$LDFLAGS"
10965     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10966
10967     save_LIBS="$LIBS"
10968     LIBS="$lt_cv_dlopen_libs $LIBS"
10969
10970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10971 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10972 if test "${lt_cv_dlopen_self+set}" = set; then :
10973   $as_echo_n "(cached) " >&6
10974 else
10975           if test "$cross_compiling" = yes; then :
10976   lt_cv_dlopen_self=cross
10977 else
10978   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979   lt_status=$lt_dlunknown
10980   cat > conftest.$ac_ext <<_LT_EOF
10981 #line 10981 "configure"
10982 #include "confdefs.h"
10983
10984 #if HAVE_DLFCN_H
10985 #include <dlfcn.h>
10986 #endif
10987
10988 #include <stdio.h>
10989
10990 #ifdef RTLD_GLOBAL
10991 #  define LT_DLGLOBAL           RTLD_GLOBAL
10992 #else
10993 #  ifdef DL_GLOBAL
10994 #    define LT_DLGLOBAL         DL_GLOBAL
10995 #  else
10996 #    define LT_DLGLOBAL         0
10997 #  endif
10998 #endif
10999
11000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001    find out it does not work in some platform. */
11002 #ifndef LT_DLLAZY_OR_NOW
11003 #  ifdef RTLD_LAZY
11004 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11005 #  else
11006 #    ifdef DL_LAZY
11007 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11008 #    else
11009 #      ifdef RTLD_NOW
11010 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11011 #      else
11012 #        ifdef DL_NOW
11013 #          define LT_DLLAZY_OR_NOW      DL_NOW
11014 #        else
11015 #          define LT_DLLAZY_OR_NOW      0
11016 #        endif
11017 #      endif
11018 #    endif
11019 #  endif
11020 #endif
11021
11022 /* When -fvisbility=hidden is used, assume the code has been annotated
11023    correspondingly for the symbols needed.  */
11024 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11025 void fnord () __attribute__((visibility("default")));
11026 #endif
11027
11028 void fnord () { int i=42; }
11029 int main ()
11030 {
11031   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032   int status = $lt_dlunknown;
11033
11034   if (self)
11035     {
11036       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11037       else
11038         {
11039           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11040           else puts (dlerror ());
11041         }
11042       /* dlclose (self); */
11043     }
11044   else
11045     puts (dlerror ());
11046
11047   return status;
11048 }
11049 _LT_EOF
11050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11051   (eval $ac_link) 2>&5
11052   ac_status=$?
11053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11055     (./conftest; exit; ) >&5 2>/dev/null
11056     lt_status=$?
11057     case x$lt_status in
11058       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11061     esac
11062   else :
11063     # compilation failed
11064     lt_cv_dlopen_self=no
11065   fi
11066 fi
11067 rm -fr conftest*
11068
11069
11070 fi
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072 $as_echo "$lt_cv_dlopen_self" >&6; }
11073
11074     if test "x$lt_cv_dlopen_self" = xyes; then
11075       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081           if test "$cross_compiling" = yes; then :
11082   lt_cv_dlopen_self_static=cross
11083 else
11084   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085   lt_status=$lt_dlunknown
11086   cat > conftest.$ac_ext <<_LT_EOF
11087 #line 11087 "configure"
11088 #include "confdefs.h"
11089
11090 #if HAVE_DLFCN_H
11091 #include <dlfcn.h>
11092 #endif
11093
11094 #include <stdio.h>
11095
11096 #ifdef RTLD_GLOBAL
11097 #  define LT_DLGLOBAL           RTLD_GLOBAL
11098 #else
11099 #  ifdef DL_GLOBAL
11100 #    define LT_DLGLOBAL         DL_GLOBAL
11101 #  else
11102 #    define LT_DLGLOBAL         0
11103 #  endif
11104 #endif
11105
11106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107    find out it does not work in some platform. */
11108 #ifndef LT_DLLAZY_OR_NOW
11109 #  ifdef RTLD_LAZY
11110 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11111 #  else
11112 #    ifdef DL_LAZY
11113 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11114 #    else
11115 #      ifdef RTLD_NOW
11116 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11117 #      else
11118 #        ifdef DL_NOW
11119 #          define LT_DLLAZY_OR_NOW      DL_NOW
11120 #        else
11121 #          define LT_DLLAZY_OR_NOW      0
11122 #        endif
11123 #      endif
11124 #    endif
11125 #  endif
11126 #endif
11127
11128 /* When -fvisbility=hidden is used, assume the code has been annotated
11129    correspondingly for the symbols needed.  */
11130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11131 void fnord () __attribute__((visibility("default")));
11132 #endif
11133
11134 void fnord () { int i=42; }
11135 int main ()
11136 {
11137   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138   int status = $lt_dlunknown;
11139
11140   if (self)
11141     {
11142       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11143       else
11144         {
11145           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11146           else puts (dlerror ());
11147         }
11148       /* dlclose (self); */
11149     }
11150   else
11151     puts (dlerror ());
11152
11153   return status;
11154 }
11155 _LT_EOF
11156   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11157   (eval $ac_link) 2>&5
11158   ac_status=$?
11159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11160   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11161     (./conftest; exit; ) >&5 2>/dev/null
11162     lt_status=$?
11163     case x$lt_status in
11164       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11165       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11166       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11167     esac
11168   else :
11169     # compilation failed
11170     lt_cv_dlopen_self_static=no
11171   fi
11172 fi
11173 rm -fr conftest*
11174
11175
11176 fi
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11178 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11179     fi
11180
11181     CPPFLAGS="$save_CPPFLAGS"
11182     LDFLAGS="$save_LDFLAGS"
11183     LIBS="$save_LIBS"
11184     ;;
11185   esac
11186
11187   case $lt_cv_dlopen_self in
11188   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11189   *) enable_dlopen_self=unknown ;;
11190   esac
11191
11192   case $lt_cv_dlopen_self_static in
11193   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11194   *) enable_dlopen_self_static=unknown ;;
11195   esac
11196 fi
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214 striplib=
11215 old_striplib=
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11217 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11218 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11219   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; }
11223 else
11224 # FIXME - insert some real tests, host_os isn't really good enough
11225   case $host_os in
11226   darwin*)
11227     if test -n "$STRIP" ; then
11228       striplib="$STRIP -x"
11229       old_striplib="$STRIP -S"
11230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231 $as_echo "yes" >&6; }
11232     else
11233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235     fi
11236     ;;
11237   *)
11238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11240     ;;
11241   esac
11242 fi
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255   # Report which library types will actually be built
11256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11257 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11259 $as_echo "$can_build_shared" >&6; }
11260
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11262 $as_echo_n "checking whether to build shared libraries... " >&6; }
11263   test "$can_build_shared" = "no" && enable_shared=no
11264
11265   # On AIX, shared libraries and static libraries use the same namespace, and
11266   # are all built from PIC.
11267   case $host_os in
11268   aix3*)
11269     test "$enable_shared" = yes && enable_static=no
11270     if test -n "$RANLIB"; then
11271       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11272       postinstall_cmds='$RANLIB $lib'
11273     fi
11274     ;;
11275
11276   aix[4-9]*)
11277     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11278       test "$enable_shared" = yes && enable_static=no
11279     fi
11280     ;;
11281   esac
11282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11283 $as_echo "$enable_shared" >&6; }
11284
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11286 $as_echo_n "checking whether to build static libraries... " >&6; }
11287   # Make sure either enable_shared or enable_static is yes.
11288   test "$enable_shared" = yes || enable_static=yes
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11290 $as_echo "$enable_static" >&6; }
11291
11292
11293
11294
11295 fi
11296 ac_ext=c
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302 CC="$lt_save_CC"
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316         ac_config_commands="$ac_config_commands libtool"
11317
11318
11319
11320
11321 # Only expand once:
11322
11323
11324
11325 # The tests for host and target for $enable_largefile require
11326 # canonical names.
11327
11328
11329
11330 # As the $enable_largefile decision depends on --enable-plugins we must set it
11331 # even in directories otherwise not depending on the $plugins option.
11332
11333
11334   maybe_plugins=no
11335   for ac_header in dlfcn.h
11336 do :
11337   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11338 "
11339 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11340   cat >>confdefs.h <<_ACEOF
11341 #define HAVE_DLFCN_H 1
11342 _ACEOF
11343  maybe_plugins=yes
11344 fi
11345
11346 done
11347
11348   for ac_header in windows.h
11349 do :
11350   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11351 "
11352 if test "x$ac_cv_header_windows_h" = x""yes; then :
11353   cat >>confdefs.h <<_ACEOF
11354 #define HAVE_WINDOWS_H 1
11355 _ACEOF
11356  maybe_plugins=yes
11357 fi
11358
11359 done
11360
11361
11362   # Check whether --enable-plugins was given.
11363 if test "${enable_plugins+set}" = set; then :
11364   enableval=$enable_plugins; case "${enableval}" in
11365       no) plugins=no ;;
11366       *) plugins=yes
11367          if test "$maybe_plugins" != "yes" ; then
11368            as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11369          fi ;;
11370      esac
11371 else
11372   plugins=$maybe_plugins
11373
11374 fi
11375
11376   if test "$plugins" = "yes"; then
11377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11378 $as_echo_n "checking for library containing dlopen... " >&6; }
11379 if test "${ac_cv_search_dlopen+set}" = set; then :
11380   $as_echo_n "(cached) " >&6
11381 else
11382   ac_func_search_save_LIBS=$LIBS
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h.  */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387    Use char because int might match the return type of a GCC
11388    builtin and then its argument prototype would still apply.  */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char dlopen ();
11393 int
11394 main ()
11395 {
11396 return dlopen ();
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 for ac_lib in '' dl; do
11402   if test -z "$ac_lib"; then
11403     ac_res="none required"
11404   else
11405     ac_res=-l$ac_lib
11406     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11407   fi
11408   if ac_fn_c_try_link "$LINENO"; then :
11409   ac_cv_search_dlopen=$ac_res
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412     conftest$ac_exeext
11413   if test "${ac_cv_search_dlopen+set}" = set; then :
11414   break
11415 fi
11416 done
11417 if test "${ac_cv_search_dlopen+set}" = set; then :
11418
11419 else
11420   ac_cv_search_dlopen=no
11421 fi
11422 rm conftest.$ac_ext
11423 LIBS=$ac_func_search_save_LIBS
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11426 $as_echo "$ac_cv_search_dlopen" >&6; }
11427 ac_res=$ac_cv_search_dlopen
11428 if test "$ac_res" != no; then :
11429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11430
11431 fi
11432
11433   fi
11434
11435
11436 case "${host}" in
11437   sparc-*-solaris*|i[3-7]86-*-solaris*)
11438     # On native 32bit sparc and ia32 solaris, large-file and procfs support
11439     # are mutually exclusive; and without procfs support, the bfd/ elf module
11440     # cannot provide certain routines such as elfcore_write_prpsinfo
11441     # or elfcore_write_prstatus.  So unless the user explicitly requested
11442     # large-file support through the --enable-largefile switch, disable
11443     # large-file support in favor of procfs support.
11444     test "${target}" = "${host}" -a "x$plugins" = xno \
11445       && : ${enable_largefile="no"}
11446     ;;
11447 esac
11448
11449 # Check whether --enable-largefile was given.
11450 if test "${enable_largefile+set}" = set; then :
11451   enableval=$enable_largefile;
11452 fi
11453
11454 if test "$enable_largefile" != no; then
11455
11456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11459   $as_echo_n "(cached) " >&6
11460 else
11461   ac_cv_sys_largefile_CC=no
11462      if test "$GCC" != yes; then
11463        ac_save_CC=$CC
11464        while :; do
11465          # IRIX 6.2 and later do not support large files by default,
11466          # so use the C compiler's -n32 option if that helps.
11467          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h.  */
11469 #include <sys/types.h>
11470  /* Check that off_t can represent 2**63 - 1 correctly.
11471     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11472     since some C++ compilers masquerading as C compilers
11473     incorrectly reject 9223372036854775807.  */
11474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11475   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11476                        && LARGE_OFF_T % 2147483647 == 1)
11477                       ? 1 : -1];
11478 int
11479 main ()
11480 {
11481
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486          if ac_fn_c_try_compile "$LINENO"; then :
11487   break
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext
11490          CC="$CC -n32"
11491          if ac_fn_c_try_compile "$LINENO"; then :
11492   ac_cv_sys_largefile_CC=' -n32'; break
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext
11495          break
11496        done
11497        CC=$ac_save_CC
11498        rm -f conftest.$ac_ext
11499     fi
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11503   if test "$ac_cv_sys_largefile_CC" != no; then
11504     CC=$CC$ac_cv_sys_largefile_CC
11505   fi
11506
11507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   while :; do
11513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h.  */
11515 #include <sys/types.h>
11516  /* Check that off_t can represent 2**63 - 1 correctly.
11517     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11518     since some C++ compilers masquerading as C compilers
11519     incorrectly reject 9223372036854775807.  */
11520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11521   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11522                        && LARGE_OFF_T % 2147483647 == 1)
11523                       ? 1 : -1];
11524 int
11525 main ()
11526 {
11527
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_compile "$LINENO"; then :
11533   ac_cv_sys_file_offset_bits=no; break
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h.  */
11538 #define _FILE_OFFSET_BITS 64
11539 #include <sys/types.h>
11540  /* Check that off_t can represent 2**63 - 1 correctly.
11541     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11542     since some C++ compilers masquerading as C compilers
11543     incorrectly reject 9223372036854775807.  */
11544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11545   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11546                        && LARGE_OFF_T % 2147483647 == 1)
11547                       ? 1 : -1];
11548 int
11549 main ()
11550 {
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 if ac_fn_c_try_compile "$LINENO"; then :
11557   ac_cv_sys_file_offset_bits=64; break
11558 fi
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560   ac_cv_sys_file_offset_bits=unknown
11561   break
11562 done
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11566 case $ac_cv_sys_file_offset_bits in #(
11567   no | unknown) ;;
11568   *)
11569 cat >>confdefs.h <<_ACEOF
11570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11571 _ACEOF
11572 ;;
11573 esac
11574 rm -rf conftest*
11575   if test $ac_cv_sys_file_offset_bits = unknown; then
11576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11578 if test "${ac_cv_sys_large_files+set}" = set; then :
11579   $as_echo_n "(cached) " >&6
11580 else
11581   while :; do
11582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584 #include <sys/types.h>
11585  /* Check that off_t can represent 2**63 - 1 correctly.
11586     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11587     since some C++ compilers masquerading as C compilers
11588     incorrectly reject 9223372036854775807.  */
11589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11590   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11591                        && LARGE_OFF_T % 2147483647 == 1)
11592                       ? 1 : -1];
11593 int
11594 main ()
11595 {
11596
11597   ;
11598   return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_compile "$LINENO"; then :
11602   ac_cv_sys_large_files=no; break
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607 #define _LARGE_FILES 1
11608 #include <sys/types.h>
11609  /* Check that off_t can represent 2**63 - 1 correctly.
11610     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11611     since some C++ compilers masquerading as C compilers
11612     incorrectly reject 9223372036854775807.  */
11613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11614   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11615                        && LARGE_OFF_T % 2147483647 == 1)
11616                       ? 1 : -1];
11617 int
11618 main ()
11619 {
11620
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_compile "$LINENO"; then :
11626   ac_cv_sys_large_files=1; break
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629   ac_cv_sys_large_files=unknown
11630   break
11631 done
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11634 $as_echo "$ac_cv_sys_large_files" >&6; }
11635 case $ac_cv_sys_large_files in #(
11636   no | unknown) ;;
11637   *)
11638 cat >>confdefs.h <<_ACEOF
11639 #define _LARGE_FILES $ac_cv_sys_large_files
11640 _ACEOF
11641 ;;
11642 esac
11643 rm -rf conftest*
11644   fi
11645 fi
11646
11647
11648
11649 # Check whether --enable-targets was given.
11650 if test "${enable_targets+set}" = set; then :
11651   enableval=$enable_targets; case "${enableval}" in
11652   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11653             ;;
11654   no)       enable_targets= ;;
11655   *)        enable_targets=$enableval ;;
11656 esac
11657 fi
11658
11659 ac_checking=yes
11660 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11661   ac_checking=
11662 fi
11663 # Check whether --enable-checking was given.
11664 if test "${enable_checking+set}" = set; then :
11665   enableval=$enable_checking; case "${enableval}" in
11666   no|none)  ac_checking= ;;
11667   *)        ac_checking=yes ;;
11668 esac
11669 fi
11670 if test x$ac_checking != x ; then
11671
11672 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11673
11674 fi
11675
11676 # PR gas/19109
11677 # Decide the default method for compressing debug sections.
11678 ac_default_compressed_debug_sections=unset
11679 # Provide a configure time option to override our default.
11680 # Check whether --enable-compressed_debug_sections was given.
11681 if test "${enable_compressed_debug_sections+set}" = set; then :
11682   enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11683   ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11684   ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
11685   *)   ac_default_compressed_debug_sections=unset ;;
11686 esac
11687 fi
11688
11689 # PR gas/19520
11690 # Decide if x86 assembler should generate relax relocations.
11691 ac_default_x86_relax_relocations=unset
11692 # Provide a configure time option to override our default.
11693 # Check whether --enable-x86_relax_relocations was given.
11694 if test "${enable_x86_relax_relocations+set}" = set; then :
11695   enableval=$enable_x86_relax_relocations; case "${enableval}" in
11696   no)  ac_default_x86_relax_relocations=0 ;;
11697 esac
11698 fi
11699
11700 # Decide if ELF assembler should generate common symbols with the
11701 # STT_COMMON type.
11702 ac_default_elf_stt_common=unset
11703 # Provide a configure time option to override our default.
11704 # Check whether --enable-elf_stt_common was given.
11705 if test "${enable_elf_stt_common+set}" = set; then :
11706   enableval=$enable_elf_stt_common; case "${enableval}" in
11707   yes)  ac_default_elf_stt_common=1 ;;
11708 esac
11709 fi
11710
11711 using_cgen=no
11712
11713
11714 # Set the 'development' global.
11715 . $srcdir/../bfd/development.sh
11716
11717 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h.  */
11720 __GNUC__
11721 _ACEOF
11722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11723   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11724
11725 else
11726   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11727 fi
11728 rm -f conftest*
11729
11730
11731 # Check whether --enable-werror was given.
11732 if test "${enable_werror+set}" = set; then :
11733   enableval=$enable_werror; case "${enableval}" in
11734      yes | y) ERROR_ON_WARNING="yes" ;;
11735      no | n)  ERROR_ON_WARNING="no" ;;
11736      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11737    esac
11738 fi
11739
11740
11741 # Disable -Wformat by default when using gcc on mingw
11742 case "${host}" in
11743   *-*-mingw32*)
11744     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11745       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11746     fi
11747     ;;
11748   *) ;;
11749 esac
11750
11751 # Enable -Werror by default when using gcc.  Turn it off for releases.
11752 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11753     ERROR_ON_WARNING=yes
11754 fi
11755
11756 NO_WERROR=
11757 if test "${ERROR_ON_WARNING}" = yes ; then
11758     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror -Wstack-usage=262144"
11759     NO_WERROR="-Wno-error"
11760 fi
11761
11762 if test "${GCC}" = yes ; then
11763   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11764 fi
11765
11766 # Check whether --enable-build-warnings was given.
11767 if test "${enable_build_warnings+set}" = set; then :
11768   enableval=$enable_build_warnings; case "${enableval}" in
11769   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11770   no)   if test "${GCC}" = yes ; then
11771           WARN_CFLAGS="-w"
11772         fi;;
11773   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11774         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11775   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11776         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11777   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11778 esac
11779 fi
11780
11781
11782 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11783   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11784 fi
11785
11786
11787
11788
11789
11790 # Generate a header file
11791 ac_config_headers="$ac_config_headers config.h:config.in"
11792
11793
11794 # PR 14072
11795
11796
11797 # If we are on a DOS filesystem, we must use gdb.ini rather than
11798 # .gdbinit.
11799 case "${host}" in
11800   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11801     GDBINIT="gdb.ini"
11802     ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11803
11804     ;;
11805   *)
11806     GDBINIT=".gdbinit"
11807     ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11808
11809     ;;
11810 esac
11811
11812
11813 #We need this for the host.  BOUT header is in host order.
11814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11815 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11816 if test "${ac_cv_c_bigendian+set}" = set; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   ac_cv_c_bigendian=unknown
11820     # See if we're dealing with a universal compiler.
11821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h.  */
11823 #ifndef __APPLE_CC__
11824                not a universal capable compiler
11825              #endif
11826              typedef int dummy;
11827
11828 _ACEOF
11829 if ac_fn_c_try_compile "$LINENO"; then :
11830
11831         # Check for potential -arch flags.  It is not universal unless
11832         # there are at least two -arch flags with different values.
11833         ac_arch=
11834         ac_prev=
11835         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11836          if test -n "$ac_prev"; then
11837            case $ac_word in
11838              i?86 | x86_64 | ppc | ppc64)
11839                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11840                  ac_arch=$ac_word
11841                else
11842                  ac_cv_c_bigendian=universal
11843                  break
11844                fi
11845                ;;
11846            esac
11847            ac_prev=
11848          elif test "x$ac_word" = "x-arch"; then
11849            ac_prev=arch
11850          fi
11851        done
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854     if test $ac_cv_c_bigendian = unknown; then
11855       # See if sys/param.h defines the BYTE_ORDER macro.
11856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h.  */
11858 #include <sys/types.h>
11859              #include <sys/param.h>
11860
11861 int
11862 main ()
11863 {
11864 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11865                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11866                      && LITTLE_ENDIAN)
11867               bogus endian macros
11868              #endif
11869
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_c_try_compile "$LINENO"; then :
11875   # It does; now see whether it defined to BIG_ENDIAN or not.
11876          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h.  */
11878 #include <sys/types.h>
11879                 #include <sys/param.h>
11880
11881 int
11882 main ()
11883 {
11884 #if BYTE_ORDER != BIG_ENDIAN
11885                  not big endian
11886                 #endif
11887
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 if ac_fn_c_try_compile "$LINENO"; then :
11893   ac_cv_c_bigendian=yes
11894 else
11895   ac_cv_c_bigendian=no
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900     fi
11901     if test $ac_cv_c_bigendian = unknown; then
11902       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11903       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h.  */
11905 #include <limits.h>
11906
11907 int
11908 main ()
11909 {
11910 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11911               bogus endian macros
11912              #endif
11913
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_compile "$LINENO"; then :
11919   # It does; now see whether it defined to _BIG_ENDIAN or not.
11920          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h.  */
11922 #include <limits.h>
11923
11924 int
11925 main ()
11926 {
11927 #ifndef _BIG_ENDIAN
11928                  not big endian
11929                 #endif
11930
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 if ac_fn_c_try_compile "$LINENO"; then :
11936   ac_cv_c_bigendian=yes
11937 else
11938   ac_cv_c_bigendian=no
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943     fi
11944     if test $ac_cv_c_bigendian = unknown; then
11945       # Compile a test program.
11946       if test "$cross_compiling" = yes; then :
11947   # Try to guess by grepping values from an object file.
11948          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h.  */
11950 short int ascii_mm[] =
11951                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11952                 short int ascii_ii[] =
11953                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11954                 int use_ascii (int i) {
11955                   return ascii_mm[i] + ascii_ii[i];
11956                 }
11957                 short int ebcdic_ii[] =
11958                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11959                 short int ebcdic_mm[] =
11960                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11961                 int use_ebcdic (int i) {
11962                   return ebcdic_mm[i] + ebcdic_ii[i];
11963                 }
11964                 extern int foo;
11965
11966 int
11967 main ()
11968 {
11969 return use_ascii (foo) == use_ebcdic (foo);
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 if ac_fn_c_try_compile "$LINENO"; then :
11975   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11976               ac_cv_c_bigendian=yes
11977             fi
11978             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11979               if test "$ac_cv_c_bigendian" = unknown; then
11980                 ac_cv_c_bigendian=no
11981               else
11982                 # finding both strings is unlikely to happen, but who knows?
11983                 ac_cv_c_bigendian=unknown
11984               fi
11985             fi
11986 fi
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 else
11989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h.  */
11991 $ac_includes_default
11992 int
11993 main ()
11994 {
11995
11996              /* Are we little or big endian?  From Harbison&Steele.  */
11997              union
11998              {
11999                long int l;
12000                char c[sizeof (long int)];
12001              } u;
12002              u.l = 1;
12003              return u.c[sizeof (long int) - 1] == 1;
12004
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 if ac_fn_c_try_run "$LINENO"; then :
12010   ac_cv_c_bigendian=no
12011 else
12012   ac_cv_c_bigendian=yes
12013 fi
12014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12015   conftest.$ac_objext conftest.beam conftest.$ac_ext
12016 fi
12017
12018     fi
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12021 $as_echo "$ac_cv_c_bigendian" >&6; }
12022  case $ac_cv_c_bigendian in #(
12023    yes)
12024      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12025 ;; #(
12026    no)
12027       ;; #(
12028    universal)
12029
12030 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12031
12032      ;; #(
12033    *)
12034      as_fn_error "unknown endianness
12035  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12036  esac
12037
12038
12039 te_file=generic
12040
12041 # Makefile target for installing gas in $(tooldir)/bin.
12042 install_tooldir=install-exec-tooldir
12043
12044 canon_targets=""
12045 all_targets=no
12046 if test -n "$enable_targets" ; then
12047   for t in `echo $enable_targets | sed 's/,/ /g'`; do
12048     if test $t = "all"; then
12049       all_targets=yes
12050       continue
12051     fi
12052     result=`$ac_config_sub $t 2>/dev/null`
12053     if test -n "$result" ; then
12054       canon_targets="$canon_targets $result"
12055 #    else
12056 #      # Permit "all", etc.  We don't support it yet though.
12057 #      canon_targets="$canon_targets $t"
12058     fi
12059   done
12060   _gas_uniq_list="$canon_targets"
12061 _gas_uniq_newlist=""
12062 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12063   case $_gas_uniq_i in
12064   _gas_uniq_dummy) ;;
12065   *) case " $_gas_uniq_newlist " in
12066        *" $_gas_uniq_i "*) ;;
12067        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12068      esac ;;
12069   esac
12070 done
12071 canon_targets=$_gas_uniq_newlist
12072
12073 fi
12074
12075 emulations=""
12076
12077 for this_target in $target $canon_targets ; do
12078
12079     targ=${this_target}
12080     . ${srcdir}/configure.tgt
12081
12082     case ${target_cpu} in
12083       crisv32)
12084
12085 cat >>confdefs.h <<_ACEOF
12086 #define DEFAULT_CRIS_ARCH $arch
12087 _ACEOF
12088
12089         ;;
12090     esac
12091
12092     if test ${this_target} = $target ; then
12093       target_cpu_type=${cpu_type}
12094     elif test ${target_cpu_type} != ${cpu_type} ; then
12095       continue
12096     fi
12097
12098     generic_target=${cpu_type}-${target_vendor}-${target_os}
12099     case ${generic_target} in
12100       i386-*-sco3.2v5*)
12101         if test ${this_target} = $target; then
12102
12103 $as_echo "#define SCO_ELF 1" >>confdefs.h
12104
12105         fi
12106         ;;
12107
12108       i386-*-msdosdjgpp* \
12109       | i386-*-go32* \
12110       | i386-go32-rtems*)
12111
12112 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12113
12114         ;;
12115
12116       i386-*-solaris2 \
12117       | x86_64-*-solaris2 \
12118       | i386-*-solaris2.[0-9] \
12119       | i386-*-solaris2.1[01] \
12120       | x86_64-*-solaris2.1[01])
12121         if test ${this_target} = $target \
12122            && test ${ac_default_x86_relax_relocations} = unset; then
12123           ac_default_x86_relax_relocations=0
12124         fi
12125         ;;
12126
12127       i860-*-*)
12128         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12129 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12130         ;;
12131
12132       microblaze*)
12133         ;;
12134
12135       ppc-*-aix[5-9].*)
12136
12137 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12138
12139         ;;
12140       ppc-*-solaris*)
12141         if test ${this_target} = $target; then
12142
12143 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12144
12145         fi
12146         if test x${endian} = xbig; then
12147           as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12148         fi
12149         ;;
12150
12151       sh*-*-symbianelf*)
12152
12153 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12154
12155         ;;
12156     esac
12157
12158     if test ${this_target} = $target ; then
12159       endian_def=
12160       if test x${endian} = xbig; then
12161         endian_def=1
12162       elif test x${endian} = xlittle; then
12163         endian_def=0
12164       fi
12165       if test x${endian_def} != x; then
12166
12167 cat >>confdefs.h <<_ACEOF
12168 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12169 _ACEOF
12170
12171       fi
12172     fi
12173
12174 # Other random stuff.
12175
12176     case ${cpu_type} in
12177       mips)
12178         # Set mips_cpu to the name of the default CPU.
12179         case ${target_cpu} in
12180           mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12181             mips_cpu=from-abi
12182             ;;
12183           mipsisa32 | mipsisa32el)
12184             mips_cpu=mips32
12185             ;;
12186           mipsisa32r2 | mipsisa32r2el)
12187             mips_cpu=mips32r2
12188             ;;
12189           mipsisa32r3 | mipsisa32r3el)
12190             mips_cpu=mips32r3
12191             ;;
12192           mipsisa32r5 | mipsisa32r5el)
12193             mips_cpu=mips32r5
12194             ;;
12195           mipsisa32r6 | mipsisa32r6el)
12196             mips_cpu=mips32r6
12197             ;;
12198           mipsisa64 | mipsisa64el)
12199             mips_cpu=mips64
12200             ;;
12201           mipsisa64r2 | mipsisa64r2el)
12202             mips_cpu=mips64r2
12203             ;;
12204           mipsisa64r3 | mipsisa64r3el)
12205             mips_cpu=mips64r3
12206             ;;
12207           mipsisa64r5 | mipsisa64r5el)
12208             mips_cpu=mips64r5
12209             ;;
12210           mipsisa64r6 | mipsisa64r6el)
12211             mips_cpu=mips64r6
12212             ;;
12213           mipstx39 | mipstx39el)
12214             mips_cpu=r3900
12215             ;;
12216           mips64vr | mips64vrel)
12217             mips_cpu=vr4100
12218             ;;
12219           mipsisa32r2* | mipsisa64r2*)
12220             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12221             ;;
12222           mipsisa32r6* | mipsisa64r6*)
12223             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12224             ;;
12225           mips64* | mipsisa64* | mipsisa32*)
12226             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12227             ;;
12228           mips*)
12229             mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12230             ;;
12231           *)
12232             as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12233             ;;
12234         esac
12235         # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12236         # binaries.  It's a GNU extension that some OSes don't understand.
12237         case ${target} in
12238           *-*-irix*)
12239             use_e_mips_abi_o32=0
12240             ;;
12241           *)
12242             use_e_mips_abi_o32=1
12243             ;;
12244         esac
12245         # Decide whether to generate 32-bit or 64-bit code by default.
12246         # Used to resolve -march=from-abi when an embedded ABI is selected.
12247         case ${target} in
12248           mips64*-*-* | mipsisa64*-*-*)
12249             mips_default_64bit=1
12250             ;;
12251           *)
12252             mips_default_64bit=0
12253             ;;
12254         esac
12255         # Decide which ABI to target by default.
12256         case ${target} in
12257           mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12258             mips_default_abi=N32_ABI
12259             ;;
12260           mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12261             mips_default_abi=O32_ABI
12262             ;;
12263           mips64*-openbsd*)
12264             mips_default_abi=N64_ABI
12265             ;;
12266           *)
12267             mips_default_abi=NO_ABI
12268             ;;
12269         esac
12270
12271 cat >>confdefs.h <<_ACEOF
12272 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12273 _ACEOF
12274
12275
12276 cat >>confdefs.h <<_ACEOF
12277 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12278 _ACEOF
12279
12280
12281 cat >>confdefs.h <<_ACEOF
12282 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12283 _ACEOF
12284
12285
12286 cat >>confdefs.h <<_ACEOF
12287 #define MIPS_DEFAULT_ABI $mips_default_abi
12288 _ACEOF
12289
12290         ;;
12291     esac
12292
12293     # Do we need the opcodes library?
12294     case ${cpu_type} in
12295       vax | tic30)
12296         ;;
12297
12298       *)
12299         need_opcodes=yes
12300
12301         case "${enable_shared}" in
12302         yes) shared_opcodes=true ;;
12303         *opcodes*) shared_opcodes=true ;;
12304         *) shared_opcodes=false ;;
12305         esac
12306         ;;
12307     esac
12308
12309     # Any other special object files needed ?
12310     case ${cpu_type} in
12311
12312       bfin)
12313         echo ${extra_objects} | grep -s "bfin-parse.o"
12314         if test $? -ne 0 ; then
12315           extra_objects="$extra_objects bfin-parse.o"
12316         fi
12317
12318         echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12319         if test $? -ne 0 ; then
12320           extra_objects="$extra_objects bfin-lex-wrapper.o"
12321         fi
12322         ;;
12323
12324       epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12325         using_cgen=yes
12326         ;;
12327
12328       m32c)
12329         using_cgen=yes
12330         ;;
12331       frv)
12332         using_cgen=yes
12333         ;;
12334       m68k)
12335         case ${extra_objects} in
12336         *m68k-parse.o*) ;;
12337         *) extra_objects="$extra_objects m68k-parse.o" ;;
12338         esac
12339         ;;
12340
12341       mep)
12342         using_cgen=yes
12343         ;;
12344
12345       mips)
12346         echo ${extra_objects} | grep -s "itbl-parse.o"
12347         if test $? -ne 0 ; then
12348           extra_objects="$extra_objects itbl-parse.o"
12349         fi
12350
12351         echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12352         if test $? -ne 0 ; then
12353           extra_objects="$extra_objects itbl-lex-wrapper.o"
12354         fi
12355
12356         echo ${extra_objects} | grep -s "itbl-ops.o"
12357         if test $? -ne 0 ; then
12358           extra_objects="$extra_objects itbl-ops.o"
12359         fi
12360         ;;
12361
12362       mt)
12363         using_cgen=yes
12364         ;;
12365
12366       nds32)
12367         # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12368         # based on arch_name.
12369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12370 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12371         if test "x${with_arch}" != x; then
12372           case ${with_arch} in
12373             v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12374
12375 cat >>confdefs.h <<_ACEOF
12376 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12377 _ACEOF
12378
12379               ;;
12380             *)
12381               as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12382               ;;
12383           esac
12384         fi
12385         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12386 $as_echo "$with_arch" >&6; }
12387
12388         # Decide features one by one.
12389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12390 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12391         if test "x${enable_dx_regs}" = xyes; then
12392
12393 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12394
12395         else
12396
12397 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12398
12399         fi
12400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12401 $as_echo "$enable_dx_regs" >&6; }
12402
12403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12404 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12405         if test "x${enable_perf_ext}" = xno; then
12406
12407 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12408
12409         else
12410
12411 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12412
12413         fi
12414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12415 $as_echo "$enable_perf_ext" >&6; }
12416
12417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12418 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12419         if test "x${enable_perf_ext2}" = xno; then
12420
12421 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12422
12423         else
12424
12425 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12426
12427         fi
12428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12429 $as_echo "$enable_perf_ext2" >&6; }
12430
12431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12432 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12433         if test "x${enable_string_ext}" = xno; then
12434
12435 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12436
12437         else
12438
12439 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12440
12441         fi
12442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12443 $as_echo "$enable_string_ext" >&6; }
12444
12445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12446 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12447         if test "x${enable_audio_ext}" = xno; then
12448
12449 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12450
12451         else
12452
12453 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12454
12455         fi
12456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12457 $as_echo "$enable_audio_ext" >&6; }
12458         ;;
12459
12460       i386 | s390 | sparc)
12461         if test $this_target = $target ; then
12462
12463 cat >>confdefs.h <<_ACEOF
12464 #define DEFAULT_ARCH "${arch}"
12465 _ACEOF
12466
12467         fi
12468         ;;
12469
12470       rl78)
12471         echo ${extra_objects} | grep -s "rl78-parse.o"
12472         if test $? -ne 0 ; then
12473           extra_objects="$extra_objects rl78-parse.o"
12474         fi
12475         ;;
12476
12477       rx)
12478         echo ${extra_objects} | grep -s "rx-parse.o"
12479         if test $? -ne 0 ; then
12480           extra_objects="$extra_objects rx-parse.o"
12481         fi
12482         ;;
12483
12484       xstormy16)
12485         using_cgen=yes
12486         ;;
12487
12488       xc16x)
12489         using_cgen=yes
12490         ;;
12491
12492       xtensa)
12493         echo ${extra_objects} | grep -s "xtensa-relax.o"
12494         if test $? -ne 0 ; then
12495           extra_objects="$extra_objects xtensa-relax.o"
12496         fi
12497         ;;
12498
12499       *)
12500         ;;
12501     esac
12502
12503     if test $using_cgen = yes ; then
12504         case "x${extra_objects}" in
12505         *cgen.o*) ;;
12506         *) extra_objects="$extra_objects cgen.o" ;;
12507         esac
12508     fi
12509
12510 # See if we really can support this configuration with the emulation code.
12511
12512     if test $this_target = $target ; then
12513       obj_format=$fmt
12514       te_file=$em
12515     fi
12516
12517    case ${te_file} in
12518       vms) extra_objects="$extra_objects te-vms.o" ;;
12519    esac
12520
12521 # From target name and format, produce a list of supported emulations.
12522
12523     case ${generic_target}-${fmt} in
12524       mips-*-*-*)       case "$endian" in
12525                         big)    emulation="mipsbelf mipslelf mipself" ;;
12526                         *)      emulation="mipslelf mipsbelf mipself" ;;
12527                         esac ;;
12528       # i386-pc-pe-coff != i386-pc-coff.
12529       i386-*-pe-coff)   ;;
12530       # Uncommenting the next line will turn on support for i386 AOUT
12531       # for the default linux configuration
12532       # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12533       #
12534       i386-*-aout)      emulation="i386aout" ;;
12535       i386-*-coff)      emulation="i386coff" ;;
12536       i386-*-elf)       emulation="i386elf" ;;
12537
12538       # Always all formats.  The first stated emulation becomes the default.
12539       cris-*-*aout*)    emulation="crisaout criself" ;;
12540       cris-*-*)         emulation="criself crisaout" ;;
12541     esac
12542
12543     emulations="$emulations $emulation"
12544
12545 done
12546
12547 if test ${ac_default_x86_relax_relocations} = unset; then
12548   ac_default_x86_relax_relocations=1
12549 fi
12550
12551 cat >>confdefs.h <<_ACEOF
12552 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12553 _ACEOF
12554
12555
12556 if test ${ac_default_elf_stt_common} = unset; then
12557   ac_default_elf_stt_common=0
12558 fi
12559
12560 cat >>confdefs.h <<_ACEOF
12561 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12562 _ACEOF
12563
12564
12565 if test x$ac_default_compressed_debug_sections = xyes ; then
12566
12567 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12568
12569 fi
12570
12571 # Turn on all targets if possible
12572 if test ${all_targets} = "yes"; then
12573   case ${target_cpu_type} in
12574   i386)
12575     case ${obj_format} in
12576     aout)
12577       emulations="$emulations i386coff i386elf"
12578       ;;
12579     coff)
12580       emulations="$emulations i386aout i386elf"
12581     ;;
12582     elf)
12583       emulations="$emulations i386aout i386coff"
12584       ;;
12585     esac
12586   ;;
12587   x86_64)
12588     case ${obj_format} in
12589     aout)
12590       emulations="$emulations i386coff i386elf"
12591       ;;
12592     coff)
12593       emulations="$emulations i386aout i386elf"
12594     ;;
12595     elf)
12596       emulations="$emulations i386aout i386coff"
12597       ;;
12598     esac
12599   ;;
12600   esac
12601 fi
12602
12603 # PE code has way too many macros tweaking behaviour
12604 case ${te_file} in
12605   pe*) emulations="" ;;
12606 esac
12607
12608 # Assign floating point type.  Most processors with FP support
12609 # IEEE FP.  On those that don't support FP at all, usually IEEE
12610 # is emulated.
12611 case ${target_cpu} in
12612   vax | pdp11 ) atof=vax ;;
12613   *)            atof=ieee ;;
12614 esac
12615
12616 case "${obj_format}" in
12617   "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12618 esac
12619
12620 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12621 cgen_cpu_prefix=""
12622 if test $using_cgen = yes ; then
12623   case ${target_cpu} in
12624     or1knd)
12625        cgen_cpu_prefix=or1k ;;
12626     *) cgen_cpu_prefix=${target_cpu} ;;
12627   esac
12628
12629
12630 $as_echo "#define USING_CGEN 1" >>confdefs.h
12631
12632 fi
12633
12634
12635 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12636   as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12637 fi
12638
12639 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12640   as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12641 fi
12642
12643 # Some COFF configurations want these random other flags set.
12644 case ${obj_format} in
12645   coff)
12646     case ${target_cpu_type} in
12647       i386)
12648 $as_echo "#define I386COFF 1" >>confdefs.h
12649  ;;
12650       m68k)
12651 $as_echo "#define M68KCOFF 1" >>confdefs.h
12652  ;;
12653       m88k)
12654 $as_echo "#define M88KCOFF 1" >>confdefs.h
12655  ;;
12656       x86_64)
12657 $as_echo "#define I386COFF 1" >>confdefs.h
12658  ;;
12659     esac
12660     ;;
12661 esac
12662
12663 # Getting this done right is going to be a bitch.  Each configuration specified
12664 # with --enable-targets=... should be checked for environment, format, cpu
12665 # setting.
12666 #
12667 # For each configuration, the necessary object file support code must be linked
12668 # in.  This might be only one, it might be up to four.  The necessary emulation
12669 # code needs to be provided, too.
12670 #
12671 # And then there's "--enable-targets=all"....
12672 #
12673 # For now, just always do it for MIPS ELF configurations.  Sigh.
12674
12675 formats="${obj_format}"
12676 emfiles=""
12677 EMULATIONS=""
12678 _gas_uniq_list="$emulations"
12679 _gas_uniq_newlist=""
12680 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12681   case $_gas_uniq_i in
12682   _gas_uniq_dummy) ;;
12683   *) case " $_gas_uniq_newlist " in
12684        *" $_gas_uniq_i "*) ;;
12685        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12686      esac ;;
12687   esac
12688 done
12689 emulations=$_gas_uniq_newlist
12690
12691 for em in . $emulations ; do
12692   case $em in
12693     .)  continue ;;
12694     mipsbelf | mipslelf | mipself)
12695         fmt=elf   file=mipself ;;
12696     *coff)
12697         fmt=coff  file=$em ;;
12698     *aout)
12699         fmt=aout file=$em ;;
12700     *elf)
12701         fmt=elf file=$em ;;
12702   esac
12703   formats="$formats $fmt"
12704   emfiles="$emfiles e-$file.o"
12705   EMULATIONS="$EMULATIONS &$em,"
12706 done
12707 _gas_uniq_list="$formats"
12708 _gas_uniq_newlist=""
12709 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12710   case $_gas_uniq_i in
12711   _gas_uniq_dummy) ;;
12712   *) case " $_gas_uniq_newlist " in
12713        *" $_gas_uniq_i "*) ;;
12714        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12715      esac ;;
12716   esac
12717 done
12718 formats=$_gas_uniq_newlist
12719
12720 _gas_uniq_list="$emfiles"
12721 _gas_uniq_newlist=""
12722 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12723   case $_gas_uniq_i in
12724   _gas_uniq_dummy) ;;
12725   *) case " $_gas_uniq_newlist " in
12726        *" $_gas_uniq_i "*) ;;
12727        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12728      esac ;;
12729   esac
12730 done
12731 emfiles=$_gas_uniq_newlist
12732
12733 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12734   for fmt in $formats ; do
12735     case $fmt in
12736       aout)
12737 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12738    ;;
12739       bout)
12740 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12741    ;;
12742       coff)
12743 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12744     ;;
12745       ecoff)
12746 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12747    ;;
12748       elf)
12749 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12750      ;;
12751       generic)
12752 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12753  ;;
12754       som)
12755 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12756      ;;
12757     esac
12758     extra_objects="$extra_objects obj-$fmt.o"
12759   done
12760   obj_format=multi
12761 fi
12762 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12763   DEFAULT_EMULATION=`set . $emulations ; echo $2`
12764   # e-mipself has more than one emulation per file, e-i386* has just one at the
12765   # moment.  If only one emulation is specified, then don't define
12766   # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12767   case "${obj_format}${emfiles}" in
12768     multi* | *mipself*)
12769       extra_objects="$extra_objects $emfiles"
12770
12771 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12772  ;;
12773   esac
12774 fi
12775
12776
12777 cat >>confdefs.h <<_ACEOF
12778 #define EMULATIONS $EMULATIONS
12779 _ACEOF
12780
12781
12782 cat >>confdefs.h <<_ACEOF
12783 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12784 _ACEOF
12785
12786
12787 reject_dev_configs=yes
12788
12789 case ${reject_dev_configs}-${dev} in
12790   yes-yes) # Oops.
12791     as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12792     ;;
12793 esac
12794
12795
12796
12797
12798
12799
12800
12801 # do we need the opcodes library?
12802 case "${need_opcodes}" in
12803 yes)
12804   OPCODES_LIB=../opcodes/libopcodes.la
12805   ;;
12806 esac
12807
12808
12809
12810
12811 cat >>confdefs.h <<_ACEOF
12812 #define TARGET_ALIAS "${target_alias}"
12813 _ACEOF
12814
12815
12816 cat >>confdefs.h <<_ACEOF
12817 #define TARGET_CANONICAL "${target}"
12818 _ACEOF
12819
12820
12821 cat >>confdefs.h <<_ACEOF
12822 #define TARGET_CPU "${target_cpu}"
12823 _ACEOF
12824
12825
12826 cat >>confdefs.h <<_ACEOF
12827 #define TARGET_VENDOR "${target_vendor}"
12828 _ACEOF
12829
12830
12831 cat >>confdefs.h <<_ACEOF
12832 #define TARGET_OS "${target_os}"
12833 _ACEOF
12834
12835
12836 for ac_prog in 'bison -y' byacc
12837 do
12838   # Extract the first word of "$ac_prog", so it can be a program name with args.
12839 set dummy $ac_prog; ac_word=$2
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12841 $as_echo_n "checking for $ac_word... " >&6; }
12842 if test "${ac_cv_prog_YACC+set}" = set; then :
12843   $as_echo_n "(cached) " >&6
12844 else
12845   if test -n "$YACC"; then
12846   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12847 else
12848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851   IFS=$as_save_IFS
12852   test -z "$as_dir" && as_dir=.
12853     for ac_exec_ext in '' $ac_executable_extensions; do
12854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12855     ac_cv_prog_YACC="$ac_prog"
12856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857     break 2
12858   fi
12859 done
12860   done
12861 IFS=$as_save_IFS
12862
12863 fi
12864 fi
12865 YACC=$ac_cv_prog_YACC
12866 if test -n "$YACC"; then
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12868 $as_echo "$YACC" >&6; }
12869 else
12870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 $as_echo "no" >&6; }
12872 fi
12873
12874
12875   test -n "$YACC" && break
12876 done
12877 test -n "$YACC" || YACC="yacc"
12878
12879 for ac_prog in flex lex
12880 do
12881   # Extract the first word of "$ac_prog", so it can be a program name with args.
12882 set dummy $ac_prog; ac_word=$2
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 $as_echo_n "checking for $ac_word... " >&6; }
12885 if test "${ac_cv_prog_LEX+set}" = set; then :
12886   $as_echo_n "(cached) " >&6
12887 else
12888   if test -n "$LEX"; then
12889   ac_cv_prog_LEX="$LEX" # Let the user override the test.
12890 else
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12893 do
12894   IFS=$as_save_IFS
12895   test -z "$as_dir" && as_dir=.
12896     for ac_exec_ext in '' $ac_executable_extensions; do
12897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898     ac_cv_prog_LEX="$ac_prog"
12899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900     break 2
12901   fi
12902 done
12903   done
12904 IFS=$as_save_IFS
12905
12906 fi
12907 fi
12908 LEX=$ac_cv_prog_LEX
12909 if test -n "$LEX"; then
12910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12911 $as_echo "$LEX" >&6; }
12912 else
12913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12915 fi
12916
12917
12918   test -n "$LEX" && break
12919 done
12920 test -n "$LEX" || LEX=":"
12921
12922 case "$LEX" in
12923   :|*"missing "*) ;;
12924   *) cat >conftest.l <<_ACEOF
12925 %%
12926 a { ECHO; }
12927 b { REJECT; }
12928 c { yymore (); }
12929 d { yyless (1); }
12930 e { yyless (input () != 0); }
12931 f { unput (yytext[0]); }
12932 . { BEGIN INITIAL; }
12933 %%
12934 #ifdef YYTEXT_POINTER
12935 extern char *yytext;
12936 #endif
12937 int
12938 main (void)
12939 {
12940   return ! yylex () + ! yywrap ();
12941 }
12942 _ACEOF
12943 { { ac_try="$LEX conftest.l"
12944 case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12949 $as_echo "$ac_try_echo"; } >&5
12950   (eval "$LEX conftest.l") 2>&5
12951   ac_status=$?
12952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953   test $ac_status = 0; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12955 $as_echo_n "checking lex output file root... " >&6; }
12956 if test "${ac_cv_prog_lex_root+set}" = set; then :
12957   $as_echo_n "(cached) " >&6
12958 else
12959
12960 if test -f lex.yy.c; then
12961   ac_cv_prog_lex_root=lex.yy
12962 elif test -f lexyy.c; then
12963   ac_cv_prog_lex_root=lexyy
12964 else
12965   as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12966 fi
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12969 $as_echo "$ac_cv_prog_lex_root" >&6; }
12970 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12971
12972 if test -z "${LEXLIB+set}"; then
12973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12974 $as_echo_n "checking lex library... " >&6; }
12975 if test "${ac_cv_lib_lex+set}" = set; then :
12976   $as_echo_n "(cached) " >&6
12977 else
12978
12979     ac_save_LIBS=$LIBS
12980     ac_cv_lib_lex='none needed'
12981     for ac_lib in '' -lfl -ll; do
12982       LIBS="$ac_lib $ac_save_LIBS"
12983       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h.  */
12985 `cat $LEX_OUTPUT_ROOT.c`
12986 _ACEOF
12987 if ac_fn_c_try_link "$LINENO"; then :
12988   ac_cv_lib_lex=$ac_lib
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext \
12991     conftest$ac_exeext conftest.$ac_ext
12992       test "$ac_cv_lib_lex" != 'none needed' && break
12993     done
12994     LIBS=$ac_save_LIBS
12995
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12998 $as_echo "$ac_cv_lib_lex" >&6; }
12999   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13000 fi
13001
13002
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13004 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13005 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13006   $as_echo_n "(cached) " >&6
13007 else
13008   # POSIX says lex can declare yytext either as a pointer or an array; the
13009 # default is implementation-dependent.  Figure out which it is, since
13010 # not all implementations provide the %pointer and %array declarations.
13011 ac_cv_prog_lex_yytext_pointer=no
13012 ac_save_LIBS=$LIBS
13013 LIBS="$LEXLIB $ac_save_LIBS"
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h.  */
13016 #define YYTEXT_POINTER 1
13017 `cat $LEX_OUTPUT_ROOT.c`
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020   ac_cv_prog_lex_yytext_pointer=yes
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext \
13023     conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_save_LIBS
13025
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13028 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13029 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13030
13031 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13032
13033 fi
13034 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13035  ;;
13036 esac
13037 if test "$LEX" = :; then
13038   LEX=${am_missing_run}flex
13039 fi
13040
13041 ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
13042 # If we haven't got the data from the intl directory,
13043 # assume NLS is disabled.
13044 USE_NLS=no
13045 LIBINTL=
13046 LIBINTL_DEP=
13047 INCINTL=
13048 XGETTEXT=
13049 GMSGFMT=
13050 POSUB=
13051
13052 if test -f  ../intl/config.intl; then
13053   .  ../intl/config.intl
13054 fi
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13056 $as_echo_n "checking whether NLS is requested... " >&6; }
13057 if test x"$USE_NLS" != xyes; then
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13060 else
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063
13064 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13065
13066
13067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13068 $as_echo_n "checking for catalogs to be installed... " >&6; }
13069   # Look for .po and .gmo files in the source directory.
13070   CATALOGS=
13071   XLINGUAS=
13072   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13073     # If there aren't any .gmo files the shell will give us the
13074     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13075     # weeded out.
13076     case "$cat" in *\**)
13077       continue;;
13078     esac
13079     # The quadruple backslash is collapsed to a double backslash
13080     # by the backticks, then collapsed again by the double quotes,
13081     # leaving us with one backslash in the sed expression (right
13082     # before the dot that mustn't act as a wildcard).
13083     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13084     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13085     # The user is allowed to set LINGUAS to a list of languages to
13086     # install catalogs for.  If it's empty that means "all of them."
13087     if test "x$LINGUAS" = x; then
13088       CATALOGS="$CATALOGS $cat"
13089       XLINGUAS="$XLINGUAS $lang"
13090     else
13091       case "$LINGUAS" in *$lang*)
13092         CATALOGS="$CATALOGS $cat"
13093         XLINGUAS="$XLINGUAS $lang"
13094         ;;
13095       esac
13096     fi
13097   done
13098   LINGUAS="$XLINGUAS"
13099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13100 $as_echo "$LINGUAS" >&6; }
13101
13102
13103     DATADIRNAME=share
13104
13105   INSTOBJEXT=.mo
13106
13107   GENCAT=gencat
13108
13109   CATOBJEXT=.gmo
13110
13111 fi
13112
13113         MKINSTALLDIRS=
13114   if test -n "$ac_aux_dir"; then
13115     case "$ac_aux_dir" in
13116       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13117       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13118     esac
13119   fi
13120   if test -z "$MKINSTALLDIRS"; then
13121     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13122   fi
13123
13124
13125
13126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13127 $as_echo_n "checking whether NLS is requested... " >&6; }
13128     # Check whether --enable-nls was given.
13129 if test "${enable_nls+set}" = set; then :
13130   enableval=$enable_nls; USE_NLS=$enableval
13131 else
13132   USE_NLS=yes
13133 fi
13134
13135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13136 $as_echo "$USE_NLS" >&6; }
13137
13138
13139
13140
13141
13142
13143 # Prepare PATH_SEPARATOR.
13144 # The user is always right.
13145 if test "${PATH_SEPARATOR+set}" != set; then
13146   echo "#! /bin/sh" >conf$$.sh
13147   echo  "exit 0"   >>conf$$.sh
13148   chmod +x conf$$.sh
13149   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13150     PATH_SEPARATOR=';'
13151   else
13152     PATH_SEPARATOR=:
13153   fi
13154   rm -f conf$$.sh
13155 fi
13156
13157 # Find out how to test for executable files. Don't use a zero-byte file,
13158 # as systems may use methods other than mode bits to determine executability.
13159 cat >conf$$.file <<_ASEOF
13160 #! /bin/sh
13161 exit 0
13162 _ASEOF
13163 chmod +x conf$$.file
13164 if test -x conf$$.file >/dev/null 2>&1; then
13165   ac_executable_p="test -x"
13166 else
13167   ac_executable_p="test -f"
13168 fi
13169 rm -f conf$$.file
13170
13171 # Extract the first word of "msgfmt", so it can be a program name with args.
13172 set dummy msgfmt; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13176   $as_echo_n "(cached) " >&6
13177 else
13178   case "$MSGFMT" in
13179   [\\/]* | ?:[\\/]*)
13180     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13181     ;;
13182   *)
13183     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13184     for ac_dir in $PATH; do
13185       IFS="$ac_save_IFS"
13186       test -z "$ac_dir" && ac_dir=.
13187       for ac_exec_ext in '' $ac_executable_extensions; do
13188         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13189           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13190      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13191             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13192             break 2
13193           fi
13194         fi
13195       done
13196     done
13197     IFS="$ac_save_IFS"
13198   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13199     ;;
13200 esac
13201 fi
13202 MSGFMT="$ac_cv_path_MSGFMT"
13203 if test "$MSGFMT" != ":"; then
13204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13205 $as_echo "$MSGFMT" >&6; }
13206 else
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209 fi
13210
13211   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13212 set dummy gmsgfmt; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 $as_echo_n "checking for $ac_word... " >&6; }
13215 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13216   $as_echo_n "(cached) " >&6
13217 else
13218   case $GMSGFMT in
13219   [\\/]* | ?:[\\/]*)
13220   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13221   ;;
13222   *)
13223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13225 do
13226   IFS=$as_save_IFS
13227   test -z "$as_dir" && as_dir=.
13228     for ac_exec_ext in '' $ac_executable_extensions; do
13229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232     break 2
13233   fi
13234 done
13235   done
13236 IFS=$as_save_IFS
13237
13238   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13239   ;;
13240 esac
13241 fi
13242 GMSGFMT=$ac_cv_path_GMSGFMT
13243 if test -n "$GMSGFMT"; then
13244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13245 $as_echo "$GMSGFMT" >&6; }
13246 else
13247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13249 fi
13250
13251
13252
13253
13254 # Prepare PATH_SEPARATOR.
13255 # The user is always right.
13256 if test "${PATH_SEPARATOR+set}" != set; then
13257   echo "#! /bin/sh" >conf$$.sh
13258   echo  "exit 0"   >>conf$$.sh
13259   chmod +x conf$$.sh
13260   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13261     PATH_SEPARATOR=';'
13262   else
13263     PATH_SEPARATOR=:
13264   fi
13265   rm -f conf$$.sh
13266 fi
13267
13268 # Find out how to test for executable files. Don't use a zero-byte file,
13269 # as systems may use methods other than mode bits to determine executability.
13270 cat >conf$$.file <<_ASEOF
13271 #! /bin/sh
13272 exit 0
13273 _ASEOF
13274 chmod +x conf$$.file
13275 if test -x conf$$.file >/dev/null 2>&1; then
13276   ac_executable_p="test -x"
13277 else
13278   ac_executable_p="test -f"
13279 fi
13280 rm -f conf$$.file
13281
13282 # Extract the first word of "xgettext", so it can be a program name with args.
13283 set dummy xgettext; ac_word=$2
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13285 $as_echo_n "checking for $ac_word... " >&6; }
13286 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13287   $as_echo_n "(cached) " >&6
13288 else
13289   case "$XGETTEXT" in
13290   [\\/]* | ?:[\\/]*)
13291     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13292     ;;
13293   *)
13294     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13295     for ac_dir in $PATH; do
13296       IFS="$ac_save_IFS"
13297       test -z "$ac_dir" && ac_dir=.
13298       for ac_exec_ext in '' $ac_executable_extensions; do
13299         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13300           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13301      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13302             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13303             break 2
13304           fi
13305         fi
13306       done
13307     done
13308     IFS="$ac_save_IFS"
13309   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13310     ;;
13311 esac
13312 fi
13313 XGETTEXT="$ac_cv_path_XGETTEXT"
13314 if test "$XGETTEXT" != ":"; then
13315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13316 $as_echo "$XGETTEXT" >&6; }
13317 else
13318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13320 fi
13321
13322     rm -f messages.po
13323
13324
13325 # Prepare PATH_SEPARATOR.
13326 # The user is always right.
13327 if test "${PATH_SEPARATOR+set}" != set; then
13328   echo "#! /bin/sh" >conf$$.sh
13329   echo  "exit 0"   >>conf$$.sh
13330   chmod +x conf$$.sh
13331   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13332     PATH_SEPARATOR=';'
13333   else
13334     PATH_SEPARATOR=:
13335   fi
13336   rm -f conf$$.sh
13337 fi
13338
13339 # Find out how to test for executable files. Don't use a zero-byte file,
13340 # as systems may use methods other than mode bits to determine executability.
13341 cat >conf$$.file <<_ASEOF
13342 #! /bin/sh
13343 exit 0
13344 _ASEOF
13345 chmod +x conf$$.file
13346 if test -x conf$$.file >/dev/null 2>&1; then
13347   ac_executable_p="test -x"
13348 else
13349   ac_executable_p="test -f"
13350 fi
13351 rm -f conf$$.file
13352
13353 # Extract the first word of "msgmerge", so it can be a program name with args.
13354 set dummy msgmerge; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13358   $as_echo_n "(cached) " >&6
13359 else
13360   case "$MSGMERGE" in
13361   [\\/]* | ?:[\\/]*)
13362     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13363     ;;
13364   *)
13365     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13366     for ac_dir in $PATH; do
13367       IFS="$ac_save_IFS"
13368       test -z "$ac_dir" && ac_dir=.
13369       for ac_exec_ext in '' $ac_executable_extensions; do
13370         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13371           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13372             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13373             break 2
13374           fi
13375         fi
13376       done
13377     done
13378     IFS="$ac_save_IFS"
13379   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13380     ;;
13381 esac
13382 fi
13383 MSGMERGE="$ac_cv_path_MSGMERGE"
13384 if test "$MSGMERGE" != ":"; then
13385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13386 $as_echo "$MSGMERGE" >&6; }
13387 else
13388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }
13390 fi
13391
13392
13393       if test "$GMSGFMT" != ":"; then
13394             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13395        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13396       : ;
13397     else
13398       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13400 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13401       GMSGFMT=":"
13402     fi
13403   fi
13404
13405       if test "$XGETTEXT" != ":"; then
13406             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13407        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13408       : ;
13409     else
13410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13411 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13412       XGETTEXT=":"
13413     fi
13414         rm -f messages.po
13415   fi
13416
13417   ac_config_commands="$ac_config_commands default-1"
13418
13419
13420
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13423 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13424     # Check whether --enable-maintainer-mode was given.
13425 if test "${enable_maintainer_mode+set}" = set; then :
13426   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13427 else
13428   USE_MAINTAINER_MODE=no
13429 fi
13430
13431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13432 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13433    if test $USE_MAINTAINER_MODE = yes; then
13434   MAINTAINER_MODE_TRUE=
13435   MAINTAINER_MODE_FALSE='#'
13436 else
13437   MAINTAINER_MODE_TRUE='#'
13438   MAINTAINER_MODE_FALSE=
13439 fi
13440
13441   MAINT=$MAINTAINER_MODE_TRUE
13442
13443
13444  if false; then
13445   GENINSRC_NEVER_TRUE=
13446   GENINSRC_NEVER_FALSE='#'
13447 else
13448   GENINSRC_NEVER_TRUE='#'
13449   GENINSRC_NEVER_FALSE=
13450 fi
13451
13452
13453
13454 for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
13455 do :
13456   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13457 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13458 eval as_val=\$$as_ac_Header
13459    if test "x$as_val" = x""yes; then :
13460   cat >>confdefs.h <<_ACEOF
13461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13462 _ACEOF
13463
13464 fi
13465
13466 done
13467
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13469 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13470 if test "${gcc_cv_header_string+set}" = set; then :
13471   $as_echo_n "(cached) " >&6
13472 else
13473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h.  */
13475 #include <string.h>
13476 #include <strings.h>
13477 int
13478 main ()
13479 {
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 if ac_fn_c_try_compile "$LINENO"; then :
13486   gcc_cv_header_string=yes
13487 else
13488   gcc_cv_header_string=no
13489 fi
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13493 $as_echo "$gcc_cv_header_string" >&6; }
13494 if test $gcc_cv_header_string = yes; then
13495
13496 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13497
13498 fi
13499
13500
13501 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13502 # people who are not cross-compiling but are compiling cross-assemblers.
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13504 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13505 if test "${host}" = "${target}"; then
13506   cross_gas=no
13507 else
13508   cross_gas=yes
13509
13510 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13511
13512 fi
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13514 $as_echo "$cross_gas" >&6; }
13515
13516 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13517 # for constant arguments.  Useless!
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13519 $as_echo_n "checking for working alloca.h... " >&6; }
13520 if test "${ac_cv_working_alloca_h+set}" = set; then :
13521   $as_echo_n "(cached) " >&6
13522 else
13523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h.  */
13525 #include <alloca.h>
13526 int
13527 main ()
13528 {
13529 char *p = (char *) alloca (2 * sizeof (int));
13530                           if (p) return 0;
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 if ac_fn_c_try_link "$LINENO"; then :
13536   ac_cv_working_alloca_h=yes
13537 else
13538   ac_cv_working_alloca_h=no
13539 fi
13540 rm -f core conftest.err conftest.$ac_objext \
13541     conftest$ac_exeext conftest.$ac_ext
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13544 $as_echo "$ac_cv_working_alloca_h" >&6; }
13545 if test $ac_cv_working_alloca_h = yes; then
13546
13547 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13548
13549 fi
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13552 $as_echo_n "checking for alloca... " >&6; }
13553 if test "${ac_cv_func_alloca_works+set}" = set; then :
13554   $as_echo_n "(cached) " >&6
13555 else
13556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h.  */
13558 #ifdef __GNUC__
13559 # define alloca __builtin_alloca
13560 #else
13561 # ifdef _MSC_VER
13562 #  include <malloc.h>
13563 #  define alloca _alloca
13564 # else
13565 #  ifdef HAVE_ALLOCA_H
13566 #   include <alloca.h>
13567 #  else
13568 #   ifdef _AIX
13569  #pragma alloca
13570 #   else
13571 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13572 char *alloca ();
13573 #    endif
13574 #   endif
13575 #  endif
13576 # endif
13577 #endif
13578
13579 int
13580 main ()
13581 {
13582 char *p = (char *) alloca (1);
13583                                     if (p) return 0;
13584   ;
13585   return 0;
13586 }
13587 _ACEOF
13588 if ac_fn_c_try_link "$LINENO"; then :
13589   ac_cv_func_alloca_works=yes
13590 else
13591   ac_cv_func_alloca_works=no
13592 fi
13593 rm -f core conftest.err conftest.$ac_objext \
13594     conftest$ac_exeext conftest.$ac_ext
13595 fi
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13597 $as_echo "$ac_cv_func_alloca_works" >&6; }
13598
13599 if test $ac_cv_func_alloca_works = yes; then
13600
13601 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13602
13603 else
13604   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13605 # that cause trouble.  Some versions do not even contain alloca or
13606 # contain a buggy version.  If you still want to use their alloca,
13607 # use ar to extract alloca.o from them instead of compiling alloca.c.
13608
13609 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13610
13611 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13612
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13615 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13616 if test "${ac_cv_os_cray+set}" = set; then :
13617   $as_echo_n "(cached) " >&6
13618 else
13619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h.  */
13621 #if defined CRAY && ! defined CRAY2
13622 webecray
13623 #else
13624 wenotbecray
13625 #endif
13626
13627 _ACEOF
13628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13629   $EGREP "webecray" >/dev/null 2>&1; then :
13630   ac_cv_os_cray=yes
13631 else
13632   ac_cv_os_cray=no
13633 fi
13634 rm -f conftest*
13635
13636 fi
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13638 $as_echo "$ac_cv_os_cray" >&6; }
13639 if test $ac_cv_os_cray = yes; then
13640   for ac_func in _getb67 GETB67 getb67; do
13641     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13642 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13643 eval as_val=\$$as_ac_var
13644    if test "x$as_val" = x""yes; then :
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define CRAY_STACKSEG_END $ac_func
13648 _ACEOF
13649
13650     break
13651 fi
13652
13653   done
13654 fi
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13657 $as_echo_n "checking stack direction for C alloca... " >&6; }
13658 if test "${ac_cv_c_stack_direction+set}" = set; then :
13659   $as_echo_n "(cached) " >&6
13660 else
13661   if test "$cross_compiling" = yes; then :
13662   ac_cv_c_stack_direction=0
13663 else
13664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h.  */
13666 $ac_includes_default
13667 int
13668 find_stack_direction ()
13669 {
13670   static char *addr = 0;
13671   auto char dummy;
13672   if (addr == 0)
13673     {
13674       addr = &dummy;
13675       return find_stack_direction ();
13676     }
13677   else
13678     return (&dummy > addr) ? 1 : -1;
13679 }
13680
13681 int
13682 main ()
13683 {
13684   return find_stack_direction () < 0;
13685 }
13686 _ACEOF
13687 if ac_fn_c_try_run "$LINENO"; then :
13688   ac_cv_c_stack_direction=1
13689 else
13690   ac_cv_c_stack_direction=-1
13691 fi
13692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13693   conftest.$ac_objext conftest.beam conftest.$ac_ext
13694 fi
13695
13696 fi
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13698 $as_echo "$ac_cv_c_stack_direction" >&6; }
13699 cat >>confdefs.h <<_ACEOF
13700 #define STACK_DIRECTION $ac_cv_c_stack_direction
13701 _ACEOF
13702
13703
13704 fi
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13707 $as_echo_n "checking for inline... " >&6; }
13708 if test "${ac_cv_c_inline+set}" = set; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   ac_cv_c_inline=no
13712 for ac_kw in inline __inline__ __inline; do
13713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h.  */
13715 #ifndef __cplusplus
13716 typedef int foo_t;
13717 static $ac_kw foo_t static_foo () {return 0; }
13718 $ac_kw foo_t foo () {return 0; }
13719 #endif
13720
13721 _ACEOF
13722 if ac_fn_c_try_compile "$LINENO"; then :
13723   ac_cv_c_inline=$ac_kw
13724 fi
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13726   test "$ac_cv_c_inline" != no && break
13727 done
13728
13729 fi
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13731 $as_echo "$ac_cv_c_inline" >&6; }
13732
13733 case $ac_cv_c_inline in
13734   inline | yes) ;;
13735   *)
13736     case $ac_cv_c_inline in
13737       no) ac_val=;;
13738       *) ac_val=$ac_cv_c_inline;;
13739     esac
13740     cat >>confdefs.h <<_ACEOF
13741 #ifndef __cplusplus
13742 #define inline $ac_val
13743 #endif
13744 _ACEOF
13745     ;;
13746 esac
13747
13748
13749 # VMS doesn't have unlink.
13750 for ac_func in unlink remove
13751 do :
13752   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13754 eval as_val=\$$as_ac_var
13755    if test "x$as_val" = x""yes; then :
13756   cat >>confdefs.h <<_ACEOF
13757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13758 _ACEOF
13759  break
13760 fi
13761 done
13762
13763 for ac_func in sbrk setlocale
13764 do :
13765   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13767 eval as_val=\$$as_ac_var
13768    if test "x$as_val" = x""yes; then :
13769   cat >>confdefs.h <<_ACEOF
13770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13771 _ACEOF
13772
13773 fi
13774 done
13775
13776
13777
13778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13779 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13780 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13781   $as_echo_n "(cached) " >&6
13782 else
13783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785 #include <locale.h>
13786 int
13787 main ()
13788 {
13789 return LC_MESSAGES
13790   ;
13791   return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795   am_cv_val_LC_MESSAGES=yes
13796 else
13797   am_cv_val_LC_MESSAGES=no
13798 fi
13799 rm -f core conftest.err conftest.$ac_objext \
13800     conftest$ac_exeext conftest.$ac_ext
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13803 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13804   if test $am_cv_val_LC_MESSAGES = yes; then
13805
13806 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13807
13808   fi
13809
13810
13811 # do we need the math library?
13812 case "${need_libm}" in
13813 yes)
13814   LIBM=
13815 case $host in
13816 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13817   # These system don't have libm, or don't need it
13818   ;;
13819 *-ncr-sysv4.3*)
13820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13821 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13822 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13823   $as_echo_n "(cached) " >&6
13824 else
13825   ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-lmw  $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h.  */
13829
13830 /* Override any GCC internal prototype to avoid an error.
13831    Use char because int might match the return type of a GCC
13832    builtin and then its argument prototype would still apply.  */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char _mwvalidcheckl ();
13837 int
13838 main ()
13839 {
13840 return _mwvalidcheckl ();
13841   ;
13842   return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846   ac_cv_lib_mw__mwvalidcheckl=yes
13847 else
13848   ac_cv_lib_mw__mwvalidcheckl=no
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851     conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13855 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13856 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13857   LIBM="-lmw"
13858 fi
13859
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13861 $as_echo_n "checking for cos in -lm... " >&6; }
13862 if test "${ac_cv_lib_m_cos+set}" = set; then :
13863   $as_echo_n "(cached) " >&6
13864 else
13865   ac_check_lib_save_LIBS=$LIBS
13866 LIBS="-lm  $LIBS"
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h.  */
13869
13870 /* Override any GCC internal prototype to avoid an error.
13871    Use char because int might match the return type of a GCC
13872    builtin and then its argument prototype would still apply.  */
13873 #ifdef __cplusplus
13874 extern "C"
13875 #endif
13876 char cos ();
13877 int
13878 main ()
13879 {
13880 return cos ();
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 if ac_fn_c_try_link "$LINENO"; then :
13886   ac_cv_lib_m_cos=yes
13887 else
13888   ac_cv_lib_m_cos=no
13889 fi
13890 rm -f core conftest.err conftest.$ac_objext \
13891     conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13893 fi
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13895 $as_echo "$ac_cv_lib_m_cos" >&6; }
13896 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13897   LIBM="$LIBM -lm"
13898 fi
13899
13900   ;;
13901 *)
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13903 $as_echo_n "checking for cos in -lm... " >&6; }
13904 if test "${ac_cv_lib_m_cos+set}" = set; then :
13905   $as_echo_n "(cached) " >&6
13906 else
13907   ac_check_lib_save_LIBS=$LIBS
13908 LIBS="-lm  $LIBS"
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h.  */
13911
13912 /* Override any GCC internal prototype to avoid an error.
13913    Use char because int might match the return type of a GCC
13914    builtin and then its argument prototype would still apply.  */
13915 #ifdef __cplusplus
13916 extern "C"
13917 #endif
13918 char cos ();
13919 int
13920 main ()
13921 {
13922 return cos ();
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 if ac_fn_c_try_link "$LINENO"; then :
13928   ac_cv_lib_m_cos=yes
13929 else
13930   ac_cv_lib_m_cos=no
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext \
13933     conftest$ac_exeext conftest.$ac_ext
13934 LIBS=$ac_check_lib_save_LIBS
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13937 $as_echo "$ac_cv_lib_m_cos" >&6; }
13938 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13939   LIBM="-lm"
13940 fi
13941
13942   ;;
13943 esac
13944
13945
13946
13947   ;;
13948 esac
13949
13950 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
13951 # enough, but on some of those systems, the assert macro relies on requoting
13952 # working properly!
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13954 $as_echo_n "checking for working assert macro... " >&6; }
13955 if test "${gas_cv_assert_ok+set}" = set; then :
13956   $as_echo_n "(cached) " >&6
13957 else
13958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h.  */
13960 #include <assert.h>
13961 #include <stdio.h>
13962 int
13963 main ()
13964 {
13965
13966 /* check for requoting problems */
13967 static int a, b, c, d;
13968 static char *s;
13969 assert (!strcmp(s, "foo bar baz quux"));
13970 /* check for newline handling */
13971 assert (a == b
13972         || c == d);
13973
13974   ;
13975   return 0;
13976 }
13977 _ACEOF
13978 if ac_fn_c_try_link "$LINENO"; then :
13979   gas_cv_assert_ok=yes
13980 else
13981   gas_cv_assert_ok=no
13982 fi
13983 rm -f core conftest.err conftest.$ac_objext \
13984     conftest$ac_exeext conftest.$ac_ext
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13987 $as_echo "$gas_cv_assert_ok" >&6; }
13988 test $gas_cv_assert_ok = yes ||
13989 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13990
13991
13992
13993 # On some systems, the system header files may not declare malloc, realloc,
13994 # and free.  There are places where gas needs these functions to have been
13995 # declared -- such as when taking their addresses.
13996 gas_test_headers="
13997 #ifdef HAVE_MEMORY_H
13998 #include <memory.h>
13999 #endif
14000 #ifdef HAVE_STRING_H
14001 #include <string.h>
14002 #else
14003 #ifdef HAVE_STRINGS_H
14004 #include <strings.h>
14005 #endif
14006 #endif
14007 #ifdef HAVE_STDLIB_H
14008 #include <stdlib.h>
14009 #endif
14010 #ifdef HAVE_UNISTD_H
14011 #include <unistd.h>
14012 #endif
14013 "
14014
14015 # Does errno.h declare errno, or do we have to add a separate declaration
14016 # for it?
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14019 $as_echo_n "checking whether declaration is required for errno... " >&6; }
14020 if test "${gas_cv_decl_needed_errno+set}" = set; then :
14021   $as_echo_n "(cached) " >&6
14022 else
14023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025
14026 #ifdef HAVE_ERRNO_H
14027 #include <errno.h>
14028 #endif
14029
14030 int
14031 main ()
14032 {
14033
14034 typedef int f;
14035 f x;
14036 x = (f) errno;
14037
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"; then :
14043   gas_cv_decl_needed_errno=no
14044 else
14045   gas_cv_decl_needed_errno=yes
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext \
14048     conftest$ac_exeext conftest.$ac_ext
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14051 $as_echo "$gas_cv_decl_needed_errno" >&6; }
14052 if test $gas_cv_decl_needed_errno = yes; then
14053
14054 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
14055
14056 fi
14057
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14060 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14061 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14062   $as_echo_n "(cached) " >&6
14063 else
14064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h.  */
14066 #include <unistd.h>
14067 int
14068 main ()
14069 {
14070 extern int getopt (int, char *const*, const char *);
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076   gas_cv_decl_getopt_unistd_h=yes
14077 else
14078   gas_cv_decl_getopt_unistd_h=no
14079 fi
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 fi
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14084 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14085 if test $gas_cv_decl_getopt_unistd_h = yes; then
14086
14087 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14088
14089 fi
14090
14091
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14093 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14094 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14095   $as_echo_n "(cached) " >&6
14096 else
14097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h.  */
14099 $gas_test_headers
14100 int
14101 main ()
14102 {
14103
14104 typedef char **f;
14105 f x;
14106 x = (f) environ;
14107
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113   gas_cv_decl_needed_environ=no
14114 else
14115   gas_cv_decl_needed_environ=yes
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext \
14118     conftest$ac_exeext conftest.$ac_ext
14119 fi
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14121 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14122 if test $gas_cv_decl_needed_environ = yes; then
14123
14124 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14125
14126 fi
14127
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14130 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14131 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14132   $as_echo_n "(cached) " >&6
14133 else
14134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h.  */
14136 $gas_test_headers
14137 int
14138 main ()
14139 {
14140
14141 typedef int (*f)(int);
14142 f x;
14143 x = (f) ffs;
14144
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 if ac_fn_c_try_link "$LINENO"; then :
14150   gas_cv_decl_needed_ffs=no
14151 else
14152   gas_cv_decl_needed_ffs=yes
14153 fi
14154 rm -f core conftest.err conftest.$ac_objext \
14155     conftest$ac_exeext conftest.$ac_ext
14156 fi
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14158 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14159 if test $gas_cv_decl_needed_ffs = yes; then
14160
14161 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14162
14163 fi
14164
14165
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14167 $as_echo_n "checking whether declaration is required for free... " >&6; }
14168 if test "${gas_cv_decl_needed_free+set}" = set; then :
14169   $as_echo_n "(cached) " >&6
14170 else
14171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h.  */
14173 $gas_test_headers
14174 int
14175 main ()
14176 {
14177
14178 typedef void (*f)();
14179 f x;
14180 x = (f) free;
14181
14182   ;
14183   return 0;
14184 }
14185 _ACEOF
14186 if ac_fn_c_try_link "$LINENO"; then :
14187   gas_cv_decl_needed_free=no
14188 else
14189   gas_cv_decl_needed_free=yes
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext \
14192     conftest$ac_exeext conftest.$ac_ext
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14195 $as_echo "$gas_cv_decl_needed_free" >&6; }
14196 if test $gas_cv_decl_needed_free = yes; then
14197
14198 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14199
14200 fi
14201
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14204 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14205 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14206   $as_echo_n "(cached) " >&6
14207 else
14208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h.  */
14210 $gas_test_headers
14211 int
14212 main ()
14213 {
14214
14215 typedef char *(*f)();
14216 f x;
14217 x = (f) malloc;
14218
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 if ac_fn_c_try_link "$LINENO"; then :
14224   gas_cv_decl_needed_malloc=no
14225 else
14226   gas_cv_decl_needed_malloc=yes
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext \
14229     conftest$ac_exeext conftest.$ac_ext
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14232 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14233 if test $gas_cv_decl_needed_malloc = yes; then
14234
14235 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14236
14237 fi
14238
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14241 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14242 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14243   $as_echo_n "(cached) " >&6
14244 else
14245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h.  */
14247 $gas_test_headers
14248 int
14249 main ()
14250 {
14251
14252 typedef char *(*f)();
14253 f x;
14254 x = (f) sbrk;
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 if ac_fn_c_try_link "$LINENO"; then :
14261   gas_cv_decl_needed_sbrk=no
14262 else
14263   gas_cv_decl_needed_sbrk=yes
14264 fi
14265 rm -f core conftest.err conftest.$ac_objext \
14266     conftest$ac_exeext conftest.$ac_ext
14267 fi
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14269 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14270 if test $gas_cv_decl_needed_sbrk = yes; then
14271
14272 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14273
14274 fi
14275
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14278 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14279 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h.  */
14284 $gas_test_headers
14285 int
14286 main ()
14287 {
14288
14289 typedef char *(*f)();
14290 f x;
14291 x = (f) strstr;
14292
14293   ;
14294   return 0;
14295 }
14296 _ACEOF
14297 if ac_fn_c_try_link "$LINENO"; then :
14298   gas_cv_decl_needed_strstr=no
14299 else
14300   gas_cv_decl_needed_strstr=yes
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext \
14303     conftest$ac_exeext conftest.$ac_ext
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14306 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14307 if test $gas_cv_decl_needed_strstr = yes; then
14308
14309 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14310
14311 fi
14312
14313
14314 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14315 if test "x$ac_cv_have_decl_free" = x""yes; then :
14316   ac_have_decl=1
14317 else
14318   ac_have_decl=0
14319 fi
14320
14321 cat >>confdefs.h <<_ACEOF
14322 #define HAVE_DECL_FREE $ac_have_decl
14323 _ACEOF
14324 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14325 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14326   ac_have_decl=1
14327 else
14328   ac_have_decl=0
14329 fi
14330
14331 cat >>confdefs.h <<_ACEOF
14332 #define HAVE_DECL_GETENV $ac_have_decl
14333 _ACEOF
14334 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14335 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14336   ac_have_decl=1
14337 else
14338   ac_have_decl=0
14339 fi
14340
14341 cat >>confdefs.h <<_ACEOF
14342 #define HAVE_DECL_MALLOC $ac_have_decl
14343 _ACEOF
14344 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14345 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14346   ac_have_decl=1
14347 else
14348   ac_have_decl=0
14349 fi
14350
14351 cat >>confdefs.h <<_ACEOF
14352 #define HAVE_DECL_MEMPCPY $ac_have_decl
14353 _ACEOF
14354 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14355 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14356   ac_have_decl=1
14357 else
14358   ac_have_decl=0
14359 fi
14360
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_DECL_REALLOC $ac_have_decl
14363 _ACEOF
14364 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14365 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14366   ac_have_decl=1
14367 else
14368   ac_have_decl=0
14369 fi
14370
14371 cat >>confdefs.h <<_ACEOF
14372 #define HAVE_DECL_STPCPY $ac_have_decl
14373 _ACEOF
14374 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14375 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14376   ac_have_decl=1
14377 else
14378   ac_have_decl=0
14379 fi
14380
14381 cat >>confdefs.h <<_ACEOF
14382 #define HAVE_DECL_STRSTR $ac_have_decl
14383 _ACEOF
14384 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14385 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14386   ac_have_decl=1
14387 else
14388   ac_have_decl=0
14389 fi
14390
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14393 _ACEOF
14394 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14395 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14396   ac_have_decl=1
14397 else
14398   ac_have_decl=0
14399 fi
14400
14401 cat >>confdefs.h <<_ACEOF
14402 #define HAVE_DECL_ASPRINTF $ac_have_decl
14403 _ACEOF
14404
14405
14406
14407 case "${host}" in
14408 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14409
14410 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14411  ;;
14412 esac
14413
14414 # Link in zlib if we can.  This allows us to write compressed debug sections.
14415
14416   # Use the system's zlib library.
14417   zlibdir="-L\$(top_builddir)/../zlib"
14418   zlibinc="-I\$(top_srcdir)/../zlib"
14419
14420 # Check whether --with-system-zlib was given.
14421 if test "${with_system_zlib+set}" = set; then :
14422   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14423     zlibdir=
14424     zlibinc=
14425   fi
14426
14427 fi
14428
14429
14430
14431
14432
14433 # Support for VMS timestamps via cross compile
14434
14435 if test "$ac_cv_header_time_h" = yes; then
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14437 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14438  if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h.  */
14443
14444 #define _BSD_SOURCE 1
14445 #include <time.h>
14446 int
14447 main ()
14448 {
14449 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455   gas_cv_have_time_type_member_tm_gmtoff=yes
14456 else
14457   gas_cv_have_time_type_member_tm_gmtoff=no
14458
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 fi
14462
14463  if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14464
14465 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14466
14467  fi
14468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14469 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14470
14471 fi
14472
14473 if test "$ac_cv_header_sys_stat_h" = yes; then
14474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14475 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14476  if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14477   $as_echo_n "(cached) " >&6
14478 else
14479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h.  */
14481
14482 #define _BSD_SOURCE 1
14483 #include <sys/stat.h>
14484 int
14485 main ()
14486 {
14487 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493   gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14494 else
14495   gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14496
14497 fi
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 fi
14500
14501  if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14502
14503 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14504
14505  fi
14506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14507 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14508
14509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14510 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14511  if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14512   $as_echo_n "(cached) " >&6
14513 else
14514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h.  */
14516
14517 #define _BSD_SOURCE 1
14518 #include <sys/stat.h>
14519 int
14520 main ()
14521 {
14522 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14523   ;
14524   return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_compile "$LINENO"; then :
14528   gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14529 else
14530   gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14531
14532 fi
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 fi
14535
14536  if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14537
14538 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14539
14540  fi
14541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14542 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14543
14544 fi
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14555
14556 ac_config_commands="$ac_config_commands default"
14557
14558
14559 cat >confcache <<\_ACEOF
14560 # This file is a shell script that caches the results of configure
14561 # tests run on this system so they can be shared between configure
14562 # scripts and configure runs, see configure's option --config-cache.
14563 # It is not useful on other systems.  If it contains results you don't
14564 # want to keep, you may remove or edit it.
14565 #
14566 # config.status only pays attention to the cache file if you give it
14567 # the --recheck option to rerun configure.
14568 #
14569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14571 # following values.
14572
14573 _ACEOF
14574
14575 # The following way of writing the cache mishandles newlines in values,
14576 # but we know of no workaround that is simple, portable, and efficient.
14577 # So, we kill variables containing newlines.
14578 # Ultrix sh set writes to stderr and can't be redirected directly,
14579 # and sets the high bit in the cache file unless we assign to the vars.
14580 (
14581   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14582     eval ac_val=\$$ac_var
14583     case $ac_val in #(
14584     *${as_nl}*)
14585       case $ac_var in #(
14586       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14588       esac
14589       case $ac_var in #(
14590       _ | IFS | as_nl) ;; #(
14591       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14592       *) { eval $ac_var=; unset $ac_var;} ;;
14593       esac ;;
14594     esac
14595   done
14596
14597   (set) 2>&1 |
14598     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14599     *${as_nl}ac_space=\ *)
14600       # `set' does not quote correctly, so add quotes: double-quote
14601       # substitution turns \\\\ into \\, and sed turns \\ into \.
14602       sed -n \
14603         "s/'/'\\\\''/g;
14604           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14605       ;; #(
14606     *)
14607       # `set' quotes correctly as required by POSIX, so do not add quotes.
14608       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14609       ;;
14610     esac |
14611     sort
14612 ) |
14613   sed '
14614      /^ac_cv_env_/b end
14615      t clear
14616      :clear
14617      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14618      t end
14619      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14620      :end' >>confcache
14621 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14622   if test -w "$cache_file"; then
14623     test "x$cache_file" != "x/dev/null" &&
14624       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14625 $as_echo "$as_me: updating cache $cache_file" >&6;}
14626     cat confcache >$cache_file
14627   else
14628     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14629 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14630   fi
14631 fi
14632 rm -f confcache
14633
14634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14635 # Let make expand exec_prefix.
14636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14637
14638 DEFS=-DHAVE_CONFIG_H
14639
14640 ac_libobjs=
14641 ac_ltlibobjs=
14642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14643   # 1. Remove the extension, and $U if already installed.
14644   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14645   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14646   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14647   #    will be set to the directory where LIBOBJS objects are built.
14648   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14649   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14650 done
14651 LIBOBJS=$ac_libobjs
14652
14653 LTLIBOBJS=$ac_ltlibobjs
14654
14655
14656 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14657   as_fn_error "conditional \"AMDEP\" was never defined.
14658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14659 fi
14660 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14661   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 fi
14664  if test -n "$EXEEXT"; then
14665   am__EXEEXT_TRUE=
14666   am__EXEEXT_FALSE='#'
14667 else
14668   am__EXEEXT_TRUE='#'
14669   am__EXEEXT_FALSE=
14670 fi
14671
14672
14673 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14674   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14676 fi
14677 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14678   as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14680 fi
14681
14682 : ${CONFIG_STATUS=./config.status}
14683 ac_write_fail=0
14684 ac_clean_files_save=$ac_clean_files
14685 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14687 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14688 as_write_fail=0
14689 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14690 #! $SHELL
14691 # Generated by $as_me.
14692 # Run this file to recreate the current configuration.
14693 # Compiler output produced by configure, useful for debugging
14694 # configure, is in config.log if it exists.
14695
14696 debug=false
14697 ac_cs_recheck=false
14698 ac_cs_silent=false
14699
14700 SHELL=\${CONFIG_SHELL-$SHELL}
14701 export SHELL
14702 _ASEOF
14703 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14704 ## -------------------- ##
14705 ## M4sh Initialization. ##
14706 ## -------------------- ##
14707
14708 # Be more Bourne compatible
14709 DUALCASE=1; export DUALCASE # for MKS sh
14710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14711   emulate sh
14712   NULLCMD=:
14713   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14714   # is contrary to our usage.  Disable this feature.
14715   alias -g '${1+"$@"}'='"$@"'
14716   setopt NO_GLOB_SUBST
14717 else
14718   case `(set -o) 2>/dev/null` in #(
14719   *posix*) :
14720     set -o posix ;; #(
14721   *) :
14722      ;;
14723 esac
14724 fi
14725
14726
14727 as_nl='
14728 '
14729 export as_nl
14730 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14731 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14733 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14734 # Prefer a ksh shell builtin over an external printf program on Solaris,
14735 # but without wasting forks for bash or zsh.
14736 if test -z "$BASH_VERSION$ZSH_VERSION" \
14737     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14738   as_echo='print -r --'
14739   as_echo_n='print -rn --'
14740 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14741   as_echo='printf %s\n'
14742   as_echo_n='printf %s'
14743 else
14744   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14745     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14746     as_echo_n='/usr/ucb/echo -n'
14747   else
14748     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14749     as_echo_n_body='eval
14750       arg=$1;
14751       case $arg in #(
14752       *"$as_nl"*)
14753         expr "X$arg" : "X\\(.*\\)$as_nl";
14754         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14755       esac;
14756       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14757     '
14758     export as_echo_n_body
14759     as_echo_n='sh -c $as_echo_n_body as_echo'
14760   fi
14761   export as_echo_body
14762   as_echo='sh -c $as_echo_body as_echo'
14763 fi
14764
14765 # The user is always right.
14766 if test "${PATH_SEPARATOR+set}" != set; then
14767   PATH_SEPARATOR=:
14768   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14769     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14770       PATH_SEPARATOR=';'
14771   }
14772 fi
14773
14774
14775 # IFS
14776 # We need space, tab and new line, in precisely that order.  Quoting is
14777 # there to prevent editors from complaining about space-tab.
14778 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14779 # splitting by setting IFS to empty value.)
14780 IFS=" ""        $as_nl"
14781
14782 # Find who we are.  Look in the path if we contain no directory separator.
14783 case $0 in #((
14784   *[\\/]* ) as_myself=$0 ;;
14785   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786 for as_dir in $PATH
14787 do
14788   IFS=$as_save_IFS
14789   test -z "$as_dir" && as_dir=.
14790     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14791   done
14792 IFS=$as_save_IFS
14793
14794      ;;
14795 esac
14796 # We did not find ourselves, most probably we were run as `sh COMMAND'
14797 # in which case we are not to be found in the path.
14798 if test "x$as_myself" = x; then
14799   as_myself=$0
14800 fi
14801 if test ! -f "$as_myself"; then
14802   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14803   exit 1
14804 fi
14805
14806 # Unset variables that we do not need and which cause bugs (e.g. in
14807 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14808 # suppresses any "Segmentation fault" message there.  '((' could
14809 # trigger a bug in pdksh 5.2.14.
14810 for as_var in BASH_ENV ENV MAIL MAILPATH
14811 do eval test x\${$as_var+set} = xset \
14812   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14813 done
14814 PS1='$ '
14815 PS2='> '
14816 PS4='+ '
14817
14818 # NLS nuisances.
14819 LC_ALL=C
14820 export LC_ALL
14821 LANGUAGE=C
14822 export LANGUAGE
14823
14824 # CDPATH.
14825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14826
14827
14828 # as_fn_error ERROR [LINENO LOG_FD]
14829 # ---------------------------------
14830 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14831 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14832 # script with status $?, using 1 if that was 0.
14833 as_fn_error ()
14834 {
14835   as_status=$?; test $as_status -eq 0 && as_status=1
14836   if test "$3"; then
14837     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14838     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14839   fi
14840   $as_echo "$as_me: error: $1" >&2
14841   as_fn_exit $as_status
14842 } # as_fn_error
14843
14844
14845 # as_fn_set_status STATUS
14846 # -----------------------
14847 # Set $? to STATUS, without forking.
14848 as_fn_set_status ()
14849 {
14850   return $1
14851 } # as_fn_set_status
14852
14853 # as_fn_exit STATUS
14854 # -----------------
14855 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14856 as_fn_exit ()
14857 {
14858   set +e
14859   as_fn_set_status $1
14860   exit $1
14861 } # as_fn_exit
14862
14863 # as_fn_unset VAR
14864 # ---------------
14865 # Portably unset VAR.
14866 as_fn_unset ()
14867 {
14868   { eval $1=; unset $1;}
14869 }
14870 as_unset=as_fn_unset
14871 # as_fn_append VAR VALUE
14872 # ----------------------
14873 # Append the text in VALUE to the end of the definition contained in VAR. Take
14874 # advantage of any shell optimizations that allow amortized linear growth over
14875 # repeated appends, instead of the typical quadratic growth present in naive
14876 # implementations.
14877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14878   eval 'as_fn_append ()
14879   {
14880     eval $1+=\$2
14881   }'
14882 else
14883   as_fn_append ()
14884   {
14885     eval $1=\$$1\$2
14886   }
14887 fi # as_fn_append
14888
14889 # as_fn_arith ARG...
14890 # ------------------
14891 # Perform arithmetic evaluation on the ARGs, and store the result in the
14892 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14893 # must be portable across $(()) and expr.
14894 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14895   eval 'as_fn_arith ()
14896   {
14897     as_val=$(( $* ))
14898   }'
14899 else
14900   as_fn_arith ()
14901   {
14902     as_val=`expr "$@" || test $? -eq 1`
14903   }
14904 fi # as_fn_arith
14905
14906
14907 if expr a : '\(a\)' >/dev/null 2>&1 &&
14908    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14909   as_expr=expr
14910 else
14911   as_expr=false
14912 fi
14913
14914 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14915   as_basename=basename
14916 else
14917   as_basename=false
14918 fi
14919
14920 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14921   as_dirname=dirname
14922 else
14923   as_dirname=false
14924 fi
14925
14926 as_me=`$as_basename -- "$0" ||
14927 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14928          X"$0" : 'X\(//\)$' \| \
14929          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14930 $as_echo X/"$0" |
14931     sed '/^.*\/\([^/][^/]*\)\/*$/{
14932             s//\1/
14933             q
14934           }
14935           /^X\/\(\/\/\)$/{
14936             s//\1/
14937             q
14938           }
14939           /^X\/\(\/\).*/{
14940             s//\1/
14941             q
14942           }
14943           s/.*/./; q'`
14944
14945 # Avoid depending upon Character Ranges.
14946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14949 as_cr_digits='0123456789'
14950 as_cr_alnum=$as_cr_Letters$as_cr_digits
14951
14952 ECHO_C= ECHO_N= ECHO_T=
14953 case `echo -n x` in #(((((
14954 -n*)
14955   case `echo 'xy\c'` in
14956   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14957   xy)  ECHO_C='\c';;
14958   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14959        ECHO_T=' ';;
14960   esac;;
14961 *)
14962   ECHO_N='-n';;
14963 esac
14964
14965 rm -f conf$$ conf$$.exe conf$$.file
14966 if test -d conf$$.dir; then
14967   rm -f conf$$.dir/conf$$.file
14968 else
14969   rm -f conf$$.dir
14970   mkdir conf$$.dir 2>/dev/null
14971 fi
14972 if (echo >conf$$.file) 2>/dev/null; then
14973   if ln -s conf$$.file conf$$ 2>/dev/null; then
14974     as_ln_s='ln -s'
14975     # ... but there are two gotchas:
14976     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14977     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14978     # In both cases, we have to default to `cp -p'.
14979     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14980       as_ln_s='cp -p'
14981   elif ln conf$$.file conf$$ 2>/dev/null; then
14982     as_ln_s=ln
14983   else
14984     as_ln_s='cp -p'
14985   fi
14986 else
14987   as_ln_s='cp -p'
14988 fi
14989 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14990 rmdir conf$$.dir 2>/dev/null
14991
14992
14993 # as_fn_mkdir_p
14994 # -------------
14995 # Create "$as_dir" as a directory, including parents if necessary.
14996 as_fn_mkdir_p ()
14997 {
14998
14999   case $as_dir in #(
15000   -*) as_dir=./$as_dir;;
15001   esac
15002   test -d "$as_dir" || eval $as_mkdir_p || {
15003     as_dirs=
15004     while :; do
15005       case $as_dir in #(
15006       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15007       *) as_qdir=$as_dir;;
15008       esac
15009       as_dirs="'$as_qdir' $as_dirs"
15010       as_dir=`$as_dirname -- "$as_dir" ||
15011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15012          X"$as_dir" : 'X\(//\)[^/]' \| \
15013          X"$as_dir" : 'X\(//\)$' \| \
15014          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15015 $as_echo X"$as_dir" |
15016     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15017             s//\1/
15018             q
15019           }
15020           /^X\(\/\/\)[^/].*/{
15021             s//\1/
15022             q
15023           }
15024           /^X\(\/\/\)$/{
15025             s//\1/
15026             q
15027           }
15028           /^X\(\/\).*/{
15029             s//\1/
15030             q
15031           }
15032           s/.*/./; q'`
15033       test -d "$as_dir" && break
15034     done
15035     test -z "$as_dirs" || eval "mkdir $as_dirs"
15036   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15037
15038
15039 } # as_fn_mkdir_p
15040 if mkdir -p . 2>/dev/null; then
15041   as_mkdir_p='mkdir -p "$as_dir"'
15042 else
15043   test -d ./-p && rmdir ./-p
15044   as_mkdir_p=false
15045 fi
15046
15047 if test -x / >/dev/null 2>&1; then
15048   as_test_x='test -x'
15049 else
15050   if ls -dL / >/dev/null 2>&1; then
15051     as_ls_L_option=L
15052   else
15053     as_ls_L_option=
15054   fi
15055   as_test_x='
15056     eval sh -c '\''
15057       if test -d "$1"; then
15058         test -d "$1/.";
15059       else
15060         case $1 in #(
15061         -*)set "./$1";;
15062         esac;
15063         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15064         ???[sx]*):;;*)false;;esac;fi
15065     '\'' sh
15066   '
15067 fi
15068 as_executable_p=$as_test_x
15069
15070 # Sed expression to map a string onto a valid CPP name.
15071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15072
15073 # Sed expression to map a string onto a valid variable name.
15074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15075
15076
15077 exec 6>&1
15078 ## ----------------------------------- ##
15079 ## Main body of $CONFIG_STATUS script. ##
15080 ## ----------------------------------- ##
15081 _ASEOF
15082 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15083
15084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15085 # Save the log message, to keep $0 and so on meaningful, and to
15086 # report actual input values of CONFIG_FILES etc. instead of their
15087 # values after options handling.
15088 ac_log="
15089 This file was extended by gas $as_me 2.26.51, which was
15090 generated by GNU Autoconf 2.64.  Invocation command line was
15091
15092   CONFIG_FILES    = $CONFIG_FILES
15093   CONFIG_HEADERS  = $CONFIG_HEADERS
15094   CONFIG_LINKS    = $CONFIG_LINKS
15095   CONFIG_COMMANDS = $CONFIG_COMMANDS
15096   $ $0 $@
15097
15098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15099 "
15100
15101 _ACEOF
15102
15103 case $ac_config_files in *"
15104 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15105 esac
15106
15107 case $ac_config_headers in *"
15108 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15109 esac
15110
15111
15112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15113 # Files that config.status was made for.
15114 config_files="$ac_config_files"
15115 config_headers="$ac_config_headers"
15116 config_commands="$ac_config_commands"
15117
15118 _ACEOF
15119
15120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15121 ac_cs_usage="\
15122 \`$as_me' instantiates files and other configuration actions
15123 from templates according to the current configuration.  Unless the files
15124 and actions are specified as TAGs, all are instantiated by default.
15125
15126 Usage: $0 [OPTION]... [TAG]...
15127
15128   -h, --help       print this help, then exit
15129   -V, --version    print version number and configuration settings, then exit
15130   -q, --quiet, --silent
15131                    do not print progress messages
15132   -d, --debug      don't remove temporary files
15133       --recheck    update $as_me by reconfiguring in the same conditions
15134       --file=FILE[:TEMPLATE]
15135                    instantiate the configuration file FILE
15136       --header=FILE[:TEMPLATE]
15137                    instantiate the configuration header FILE
15138
15139 Configuration files:
15140 $config_files
15141
15142 Configuration headers:
15143 $config_headers
15144
15145 Configuration commands:
15146 $config_commands
15147
15148 Report bugs to the package provider."
15149
15150 _ACEOF
15151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152 ac_cs_version="\\
15153 gas config.status 2.26.51
15154 configured by $0, generated by GNU Autoconf 2.64,
15155   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15156
15157 Copyright (C) 2009 Free Software Foundation, Inc.
15158 This config.status script is free software; the Free Software Foundation
15159 gives unlimited permission to copy, distribute and modify it."
15160
15161 ac_pwd='$ac_pwd'
15162 srcdir='$srcdir'
15163 INSTALL='$INSTALL'
15164 MKDIR_P='$MKDIR_P'
15165 AWK='$AWK'
15166 test -n "\$AWK" || AWK=awk
15167 _ACEOF
15168
15169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170 # The default lists apply if the user does not specify any file.
15171 ac_need_defaults=:
15172 while test $# != 0
15173 do
15174   case $1 in
15175   --*=*)
15176     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15177     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15178     ac_shift=:
15179     ;;
15180   *)
15181     ac_option=$1
15182     ac_optarg=$2
15183     ac_shift=shift
15184     ;;
15185   esac
15186
15187   case $ac_option in
15188   # Handling of the options.
15189   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15190     ac_cs_recheck=: ;;
15191   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15192     $as_echo "$ac_cs_version"; exit ;;
15193   --debug | --debu | --deb | --de | --d | -d )
15194     debug=: ;;
15195   --file | --fil | --fi | --f )
15196     $ac_shift
15197     case $ac_optarg in
15198     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15199     esac
15200     as_fn_append CONFIG_FILES " '$ac_optarg'"
15201     ac_need_defaults=false;;
15202   --header | --heade | --head | --hea )
15203     $ac_shift
15204     case $ac_optarg in
15205     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15206     esac
15207     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15208     ac_need_defaults=false;;
15209   --he | --h)
15210     # Conflict between --help and --header
15211     as_fn_error "ambiguous option: \`$1'
15212 Try \`$0 --help' for more information.";;
15213   --help | --hel | -h )
15214     $as_echo "$ac_cs_usage"; exit ;;
15215   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15216   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15217     ac_cs_silent=: ;;
15218
15219   # This is an error.
15220   -*) as_fn_error "unrecognized option: \`$1'
15221 Try \`$0 --help' for more information." ;;
15222
15223   *) as_fn_append ac_config_targets " $1"
15224      ac_need_defaults=false ;;
15225
15226   esac
15227   shift
15228 done
15229
15230 ac_configure_extra_args=
15231
15232 if $ac_cs_silent; then
15233   exec 6>/dev/null
15234   ac_configure_extra_args="$ac_configure_extra_args --silent"
15235 fi
15236
15237 _ACEOF
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 if \$ac_cs_recheck; then
15240   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15241   shift
15242   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15243   CONFIG_SHELL='$SHELL'
15244   export CONFIG_SHELL
15245   exec "\$@"
15246 fi
15247
15248 _ACEOF
15249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 exec 5>>config.log
15251 {
15252   echo
15253   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15254 ## Running $as_me. ##
15255 _ASBOX
15256   $as_echo "$ac_log"
15257 } >&5
15258
15259 _ACEOF
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 #
15262 # INIT-COMMANDS
15263 #
15264 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15265
15266
15267 # The HP-UX ksh and POSIX shell print the target directory to stdout
15268 # if CDPATH is set.
15269 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15270
15271 sed_quote_subst='$sed_quote_subst'
15272 double_quote_subst='$double_quote_subst'
15273 delay_variable_subst='$delay_variable_subst'
15274 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15275 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15276 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15277 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15278 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15279 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15280 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15281 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15282 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15283 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15284 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15285 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15286 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15287 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15288 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15289 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15290 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15291 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15292 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15293 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15294 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15295 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15296 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15297 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15298 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15299 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15300 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15301 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15302 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15303 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15304 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15305 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15306 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15307 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15308 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15309 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15310 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15311 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15312 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15313 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15314 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15315 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15316 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15317 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15318 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15319 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15320 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15321 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15322 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15323 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15324 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15325 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15326 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15327 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15328 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15329 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15330 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15331 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15332 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15333 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15334 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15335 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15336 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15337 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15338 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15339 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15340 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15341 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15342 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15343 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15344 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15345 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15346 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15347 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15348 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15349 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15350 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15351 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15352 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15353 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15354 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15355 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15356 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15357 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15358 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15359 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15360 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15361 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15362 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15363 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15364 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15365 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15366 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15367 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15368 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15369 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15370 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15371 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15372 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15373 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15374 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15375 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15376 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15377 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15378 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15379 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15380 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15381 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15382 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15383 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15384 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15385 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15386 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15387 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15388 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15389 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15390 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15391 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15392 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15393 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15394
15395 LTCC='$LTCC'
15396 LTCFLAGS='$LTCFLAGS'
15397 compiler='$compiler_DEFAULT'
15398
15399 # A function that is used when there is no print builtin or printf.
15400 func_fallback_echo ()
15401 {
15402   eval 'cat <<_LTECHO_EOF
15403 \$1
15404 _LTECHO_EOF'
15405 }
15406
15407 # Quote evaled strings.
15408 for var in SHELL \
15409 ECHO \
15410 SED \
15411 GREP \
15412 EGREP \
15413 FGREP \
15414 LD \
15415 NM \
15416 LN_S \
15417 lt_SP2NL \
15418 lt_NL2SP \
15419 reload_flag \
15420 OBJDUMP \
15421 deplibs_check_method \
15422 file_magic_cmd \
15423 AR \
15424 AR_FLAGS \
15425 STRIP \
15426 RANLIB \
15427 CC \
15428 CFLAGS \
15429 compiler \
15430 lt_cv_sys_global_symbol_pipe \
15431 lt_cv_sys_global_symbol_to_cdecl \
15432 lt_cv_sys_global_symbol_to_c_name_address \
15433 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15434 lt_prog_compiler_no_builtin_flag \
15435 lt_prog_compiler_wl \
15436 lt_prog_compiler_pic \
15437 lt_prog_compiler_static \
15438 lt_cv_prog_compiler_c_o \
15439 need_locks \
15440 DSYMUTIL \
15441 NMEDIT \
15442 LIPO \
15443 OTOOL \
15444 OTOOL64 \
15445 shrext_cmds \
15446 export_dynamic_flag_spec \
15447 whole_archive_flag_spec \
15448 compiler_needs_object \
15449 with_gnu_ld \
15450 allow_undefined_flag \
15451 no_undefined_flag \
15452 hardcode_libdir_flag_spec \
15453 hardcode_libdir_flag_spec_ld \
15454 hardcode_libdir_separator \
15455 fix_srcfile_path \
15456 exclude_expsyms \
15457 include_expsyms \
15458 file_list_spec \
15459 variables_saved_for_relink \
15460 libname_spec \
15461 library_names_spec \
15462 soname_spec \
15463 install_override_mode \
15464 finish_eval \
15465 old_striplib \
15466 striplib; do
15467     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15468     *[\\\\\\\`\\"\\\$]*)
15469       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15470       ;;
15471     *)
15472       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15473       ;;
15474     esac
15475 done
15476
15477 # Double-quote double-evaled strings.
15478 for var in reload_cmds \
15479 old_postinstall_cmds \
15480 old_postuninstall_cmds \
15481 old_archive_cmds \
15482 extract_expsyms_cmds \
15483 old_archive_from_new_cmds \
15484 old_archive_from_expsyms_cmds \
15485 archive_cmds \
15486 archive_expsym_cmds \
15487 module_cmds \
15488 module_expsym_cmds \
15489 export_symbols_cmds \
15490 prelink_cmds \
15491 postinstall_cmds \
15492 postuninstall_cmds \
15493 finish_cmds \
15494 sys_lib_search_path_spec \
15495 sys_lib_dlsearch_path_spec; do
15496     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15497     *[\\\\\\\`\\"\\\$]*)
15498       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15499       ;;
15500     *)
15501       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15502       ;;
15503     esac
15504 done
15505
15506 ac_aux_dir='$ac_aux_dir'
15507 xsi_shell='$xsi_shell'
15508 lt_shell_append='$lt_shell_append'
15509
15510 # See if we are running on zsh, and set the options which allow our
15511 # commands through without removal of \ escapes INIT.
15512 if test -n "\${ZSH_VERSION+set}" ; then
15513    setopt NO_GLOB_SUBST
15514 fi
15515
15516
15517     PACKAGE='$PACKAGE'
15518     VERSION='$VERSION'
15519     TIMESTAMP='$TIMESTAMP'
15520     RM='$RM'
15521     ofile='$ofile'
15522
15523
15524
15525 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15526     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15527     # from automake.
15528     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15529     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15530     LINGUAS="${LINGUAS-%UNSET%}"
15531
15532 target_cpu_type=${target_cpu_type}
15533  cgen_cpu_prefix=${cgen_cpu_prefix}
15534  obj_format=${obj_format}
15535  te_file=${te_file}
15536
15537 _ACEOF
15538
15539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15540
15541 # Handling of arguments.
15542 for ac_config_target in $ac_config_targets
15543 do
15544   case $ac_config_target in
15545     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15546     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15547     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15548     "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15549     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15550     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15551     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15552     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15553     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15554     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15555
15556   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15557   esac
15558 done
15559
15560
15561 # If the user did not use the arguments to specify the items to instantiate,
15562 # then the envvar interface is used.  Set only those that are not.
15563 # We use the long form for the default assignment because of an extremely
15564 # bizarre bug on SunOS 4.1.3.
15565 if $ac_need_defaults; then
15566   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15567   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15568   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15569 fi
15570
15571 # Have a temporary directory for convenience.  Make it in the build tree
15572 # simply because there is no reason against having it here, and in addition,
15573 # creating and moving files from /tmp can sometimes cause problems.
15574 # Hook for its removal unless debugging.
15575 # Note that there is a small window in which the directory will not be cleaned:
15576 # after its creation but before its name has been assigned to `$tmp'.
15577 $debug ||
15578 {
15579   tmp=
15580   trap 'exit_status=$?
15581   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15582 ' 0
15583   trap 'as_fn_exit 1' 1 2 13 15
15584 }
15585 # Create a (secure) tmp directory for tmp files.
15586
15587 {
15588   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15589   test -n "$tmp" && test -d "$tmp"
15590 }  ||
15591 {
15592   tmp=./conf$$-$RANDOM
15593   (umask 077 && mkdir "$tmp")
15594 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15595
15596 # Set up the scripts for CONFIG_FILES section.
15597 # No need to generate them if there are no CONFIG_FILES.
15598 # This happens for instance with `./config.status config.h'.
15599 if test -n "$CONFIG_FILES"; then
15600
15601
15602 ac_cr=`echo X | tr X '\015'`
15603 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15604 # But we know of no other shell where ac_cr would be empty at this
15605 # point, so we can use a bashism as a fallback.
15606 if test "x$ac_cr" = x; then
15607   eval ac_cr=\$\'\\r\'
15608 fi
15609 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15610 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15611   ac_cs_awk_cr='\r'
15612 else
15613   ac_cs_awk_cr=$ac_cr
15614 fi
15615
15616 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15617 _ACEOF
15618
15619
15620 {
15621   echo "cat >conf$$subs.awk <<_ACEOF" &&
15622   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15623   echo "_ACEOF"
15624 } >conf$$subs.sh ||
15625   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15626 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15627 ac_delim='%!_!# '
15628 for ac_last_try in false false false false false :; do
15629   . ./conf$$subs.sh ||
15630     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15631
15632   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15633   if test $ac_delim_n = $ac_delim_num; then
15634     break
15635   elif $ac_last_try; then
15636     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15637   else
15638     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15639   fi
15640 done
15641 rm -f conf$$subs.sh
15642
15643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15644 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15645 _ACEOF
15646 sed -n '
15647 h
15648 s/^/S["/; s/!.*/"]=/
15649 p
15650 g
15651 s/^[^!]*!//
15652 :repl
15653 t repl
15654 s/'"$ac_delim"'$//
15655 t delim
15656 :nl
15657 h
15658 s/\(.\{148\}\).*/\1/
15659 t more1
15660 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15661 p
15662 n
15663 b repl
15664 :more1
15665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15666 p
15667 g
15668 s/.\{148\}//
15669 t nl
15670 :delim
15671 h
15672 s/\(.\{148\}\).*/\1/
15673 t more2
15674 s/["\\]/\\&/g; s/^/"/; s/$/"/
15675 p
15676 b
15677 :more2
15678 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15679 p
15680 g
15681 s/.\{148\}//
15682 t delim
15683 ' <conf$$subs.awk | sed '
15684 /^[^""]/{
15685   N
15686   s/\n//
15687 }
15688 ' >>$CONFIG_STATUS || ac_write_fail=1
15689 rm -f conf$$subs.awk
15690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15691 _ACAWK
15692 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15693   for (key in S) S_is_set[key] = 1
15694   FS = "\a"
15695
15696 }
15697 {
15698   line = $ 0
15699   nfields = split(line, field, "@")
15700   substed = 0
15701   len = length(field[1])
15702   for (i = 2; i < nfields; i++) {
15703     key = field[i]
15704     keylen = length(key)
15705     if (S_is_set[key]) {
15706       value = S[key]
15707       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15708       len += length(value) + length(field[++i])
15709       substed = 1
15710     } else
15711       len += 1 + keylen
15712   }
15713
15714   print line
15715 }
15716
15717 _ACAWK
15718 _ACEOF
15719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15720 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15721   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15722 else
15723   cat
15724 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15725   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15726 _ACEOF
15727
15728 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15729 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15730 # trailing colons and then remove the whole line if VPATH becomes empty
15731 # (actually we leave an empty line to preserve line numbers).
15732 if test "x$srcdir" = x.; then
15733   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15734 s/:*\$(srcdir):*/:/
15735 s/:*\${srcdir}:*/:/
15736 s/:*@srcdir@:*/:/
15737 s/^\([^=]*=[     ]*\):*/\1/
15738 s/:*$//
15739 s/^[^=]*=[       ]*$//
15740 }'
15741 fi
15742
15743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744 fi # test -n "$CONFIG_FILES"
15745
15746 # Set up the scripts for CONFIG_HEADERS section.
15747 # No need to generate them if there are no CONFIG_HEADERS.
15748 # This happens for instance with `./config.status Makefile'.
15749 if test -n "$CONFIG_HEADERS"; then
15750 cat >"$tmp/defines.awk" <<\_ACAWK ||
15751 BEGIN {
15752 _ACEOF
15753
15754 # Transform confdefs.h into an awk script `defines.awk', embedded as
15755 # here-document in config.status, that substitutes the proper values into
15756 # config.h.in to produce config.h.
15757
15758 # Create a delimiter string that does not exist in confdefs.h, to ease
15759 # handling of long lines.
15760 ac_delim='%!_!# '
15761 for ac_last_try in false false :; do
15762   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15763   if test -z "$ac_t"; then
15764     break
15765   elif $ac_last_try; then
15766     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15767   else
15768     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15769   fi
15770 done
15771
15772 # For the awk script, D is an array of macro values keyed by name,
15773 # likewise P contains macro parameters if any.  Preserve backslash
15774 # newline sequences.
15775
15776 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15777 sed -n '
15778 s/.\{148\}/&'"$ac_delim"'/g
15779 t rset
15780 :rset
15781 s/^[     ]*#[    ]*define[       ][      ]*/ /
15782 t def
15783 d
15784 :def
15785 s/\\$//
15786 t bsnl
15787 s/["\\]/\\&/g
15788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15789 D["\1"]=" \3"/p
15790 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15791 d
15792 :bsnl
15793 s/["\\]/\\&/g
15794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15795 D["\1"]=" \3\\\\\\n"\\/p
15796 t cont
15797 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15798 t cont
15799 d
15800 :cont
15801 n
15802 s/.\{148\}/&'"$ac_delim"'/g
15803 t clear
15804 :clear
15805 s/\\$//
15806 t bsnlc
15807 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15808 d
15809 :bsnlc
15810 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15811 b cont
15812 ' <confdefs.h | sed '
15813 s/'"$ac_delim"'/"\\\
15814 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15815
15816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817   for (key in D) D_is_set[key] = 1
15818   FS = "\a"
15819 }
15820 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15821   line = \$ 0
15822   split(line, arg, " ")
15823   if (arg[1] == "#") {
15824     defundef = arg[2]
15825     mac1 = arg[3]
15826   } else {
15827     defundef = substr(arg[1], 2)
15828     mac1 = arg[2]
15829   }
15830   split(mac1, mac2, "(") #)
15831   macro = mac2[1]
15832   prefix = substr(line, 1, index(line, defundef) - 1)
15833   if (D_is_set[macro]) {
15834     # Preserve the white space surrounding the "#".
15835     print prefix "define", macro P[macro] D[macro]
15836     next
15837   } else {
15838     # Replace #undef with comments.  This is necessary, for example,
15839     # in the case of _POSIX_SOURCE, which is predefined and required
15840     # on some systems where configure will not decide to define it.
15841     if (defundef == "undef") {
15842       print "/*", prefix defundef, macro, "*/"
15843       next
15844     }
15845   }
15846 }
15847 { print }
15848 _ACAWK
15849 _ACEOF
15850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15851   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15852 fi # test -n "$CONFIG_HEADERS"
15853
15854
15855 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15856 shift
15857 for ac_tag
15858 do
15859   case $ac_tag in
15860   :[FHLC]) ac_mode=$ac_tag; continue;;
15861   esac
15862   case $ac_mode$ac_tag in
15863   :[FHL]*:*);;
15864   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15865   :[FH]-) ac_tag=-:-;;
15866   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15867   esac
15868   ac_save_IFS=$IFS
15869   IFS=:
15870   set x $ac_tag
15871   IFS=$ac_save_IFS
15872   shift
15873   ac_file=$1
15874   shift
15875
15876   case $ac_mode in
15877   :L) ac_source=$1;;
15878   :[FH])
15879     ac_file_inputs=
15880     for ac_f
15881     do
15882       case $ac_f in
15883       -) ac_f="$tmp/stdin";;
15884       *) # Look for the file first in the build tree, then in the source tree
15885          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15886          # because $ac_f cannot contain `:'.
15887          test -f "$ac_f" ||
15888            case $ac_f in
15889            [\\/$]*) false;;
15890            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15891            esac ||
15892            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15893       esac
15894       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15895       as_fn_append ac_file_inputs " '$ac_f'"
15896     done
15897
15898     # Let's still pretend it is `configure' which instantiates (i.e., don't
15899     # use $as_me), people would be surprised to read:
15900     #    /* config.h.  Generated by config.status.  */
15901     configure_input='Generated from '`
15902           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15903         `' by configure.'
15904     if test x"$ac_file" != x-; then
15905       configure_input="$ac_file.  $configure_input"
15906       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15907 $as_echo "$as_me: creating $ac_file" >&6;}
15908     fi
15909     # Neutralize special characters interpreted by sed in replacement strings.
15910     case $configure_input in #(
15911     *\&* | *\|* | *\\* )
15912        ac_sed_conf_input=`$as_echo "$configure_input" |
15913        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15914     *) ac_sed_conf_input=$configure_input;;
15915     esac
15916
15917     case $ac_tag in
15918     *:-:* | *:-) cat >"$tmp/stdin" \
15919       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15920     esac
15921     ;;
15922   esac
15923
15924   ac_dir=`$as_dirname -- "$ac_file" ||
15925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15926          X"$ac_file" : 'X\(//\)[^/]' \| \
15927          X"$ac_file" : 'X\(//\)$' \| \
15928          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15929 $as_echo X"$ac_file" |
15930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15931             s//\1/
15932             q
15933           }
15934           /^X\(\/\/\)[^/].*/{
15935             s//\1/
15936             q
15937           }
15938           /^X\(\/\/\)$/{
15939             s//\1/
15940             q
15941           }
15942           /^X\(\/\).*/{
15943             s//\1/
15944             q
15945           }
15946           s/.*/./; q'`
15947   as_dir="$ac_dir"; as_fn_mkdir_p
15948   ac_builddir=.
15949
15950 case "$ac_dir" in
15951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15952 *)
15953   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15954   # A ".." for each directory in $ac_dir_suffix.
15955   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15956   case $ac_top_builddir_sub in
15957   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15958   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15959   esac ;;
15960 esac
15961 ac_abs_top_builddir=$ac_pwd
15962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15963 # for backward compatibility:
15964 ac_top_builddir=$ac_top_build_prefix
15965
15966 case $srcdir in
15967   .)  # We are building in place.
15968     ac_srcdir=.
15969     ac_top_srcdir=$ac_top_builddir_sub
15970     ac_abs_top_srcdir=$ac_pwd ;;
15971   [\\/]* | ?:[\\/]* )  # Absolute name.
15972     ac_srcdir=$srcdir$ac_dir_suffix;
15973     ac_top_srcdir=$srcdir
15974     ac_abs_top_srcdir=$srcdir ;;
15975   *) # Relative name.
15976     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15977     ac_top_srcdir=$ac_top_build_prefix$srcdir
15978     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15979 esac
15980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15981
15982
15983   case $ac_mode in
15984   :F)
15985   #
15986   # CONFIG_FILE
15987   #
15988
15989   case $INSTALL in
15990   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15991   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15992   esac
15993   ac_MKDIR_P=$MKDIR_P
15994   case $MKDIR_P in
15995   [\\/$]* | ?:[\\/]* ) ;;
15996   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15997   esac
15998 _ACEOF
15999
16000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001 # If the template does not know about datarootdir, expand it.
16002 # FIXME: This hack should be removed a few years after 2.60.
16003 ac_datarootdir_hack=; ac_datarootdir_seen=
16004 ac_sed_dataroot='
16005 /datarootdir/ {
16006   p
16007   q
16008 }
16009 /@datadir@/p
16010 /@docdir@/p
16011 /@infodir@/p
16012 /@localedir@/p
16013 /@mandir@/p'
16014 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16015 *datarootdir*) ac_datarootdir_seen=yes;;
16016 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16017   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16018 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16019 _ACEOF
16020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16021   ac_datarootdir_hack='
16022   s&@datadir@&$datadir&g
16023   s&@docdir@&$docdir&g
16024   s&@infodir@&$infodir&g
16025   s&@localedir@&$localedir&g
16026   s&@mandir@&$mandir&g
16027   s&\\\${datarootdir}&$datarootdir&g' ;;
16028 esac
16029 _ACEOF
16030
16031 # Neutralize VPATH when `$srcdir' = `.'.
16032 # Shell code in configure.ac might set extrasub.
16033 # FIXME: do we really want to maintain this feature?
16034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16035 ac_sed_extra="$ac_vpsub
16036 $extrasub
16037 _ACEOF
16038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16039 :t
16040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16041 s|@configure_input@|$ac_sed_conf_input|;t t
16042 s&@top_builddir@&$ac_top_builddir_sub&;t t
16043 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16044 s&@srcdir@&$ac_srcdir&;t t
16045 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16046 s&@top_srcdir@&$ac_top_srcdir&;t t
16047 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16048 s&@builddir@&$ac_builddir&;t t
16049 s&@abs_builddir@&$ac_abs_builddir&;t t
16050 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16051 s&@INSTALL@&$ac_INSTALL&;t t
16052 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16053 $ac_datarootdir_hack
16054 "
16055 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16056   || as_fn_error "could not create $ac_file" "$LINENO" 5
16057
16058 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16059   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16060   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16061   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16062 which seems to be undefined.  Please make sure it is defined." >&5
16063 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16064 which seems to be undefined.  Please make sure it is defined." >&2;}
16065
16066   rm -f "$tmp/stdin"
16067   case $ac_file in
16068   -) cat "$tmp/out" && rm -f "$tmp/out";;
16069   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16070   esac \
16071   || as_fn_error "could not create $ac_file" "$LINENO" 5
16072  ;;
16073   :H)
16074   #
16075   # CONFIG_HEADER
16076   #
16077   if test x"$ac_file" != x-; then
16078     {
16079       $as_echo "/* $configure_input  */" \
16080       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16081     } >"$tmp/config.h" \
16082       || as_fn_error "could not create $ac_file" "$LINENO" 5
16083     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16084       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16085 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16086     else
16087       rm -f "$ac_file"
16088       mv "$tmp/config.h" "$ac_file" \
16089         || as_fn_error "could not create $ac_file" "$LINENO" 5
16090     fi
16091   else
16092     $as_echo "/* $configure_input  */" \
16093       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16094       || as_fn_error "could not create -" "$LINENO" 5
16095   fi
16096 # Compute "$ac_file"'s index in $config_headers.
16097 _am_arg="$ac_file"
16098 _am_stamp_count=1
16099 for _am_header in $config_headers :; do
16100   case $_am_header in
16101     $_am_arg | $_am_arg:* )
16102       break ;;
16103     * )
16104       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16105   esac
16106 done
16107 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16108 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16109          X"$_am_arg" : 'X\(//\)[^/]' \| \
16110          X"$_am_arg" : 'X\(//\)$' \| \
16111          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16112 $as_echo X"$_am_arg" |
16113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16114             s//\1/
16115             q
16116           }
16117           /^X\(\/\/\)[^/].*/{
16118             s//\1/
16119             q
16120           }
16121           /^X\(\/\/\)$/{
16122             s//\1/
16123             q
16124           }
16125           /^X\(\/\).*/{
16126             s//\1/
16127             q
16128           }
16129           s/.*/./; q'`/stamp-h$_am_stamp_count
16130  ;;
16131
16132   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16133 $as_echo "$as_me: executing $ac_file commands" >&6;}
16134  ;;
16135   esac
16136
16137
16138   case $ac_file$ac_mode in
16139     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16140   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16141   # are listed without --file.  Let's play safe and only enable the eval
16142   # if we detect the quoting.
16143   case $CONFIG_FILES in
16144   *\'*) eval set x "$CONFIG_FILES" ;;
16145   *)   set x $CONFIG_FILES ;;
16146   esac
16147   shift
16148   for mf
16149   do
16150     # Strip MF so we end up with the name of the file.
16151     mf=`echo "$mf" | sed -e 's/:.*$//'`
16152     # Check whether this is an Automake generated Makefile or not.
16153     # We used to match only the files named `Makefile.in', but
16154     # some people rename them; so instead we look at the file content.
16155     # Grep'ing the first line is not enough: some people post-process
16156     # each Makefile.in and add a new line on top of each file to say so.
16157     # Grep'ing the whole file is not good either: AIX grep has a line
16158     # limit of 2048, but all sed's we know have understand at least 4000.
16159     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16160       dirpart=`$as_dirname -- "$mf" ||
16161 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16162          X"$mf" : 'X\(//\)[^/]' \| \
16163          X"$mf" : 'X\(//\)$' \| \
16164          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16165 $as_echo X"$mf" |
16166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16167             s//\1/
16168             q
16169           }
16170           /^X\(\/\/\)[^/].*/{
16171             s//\1/
16172             q
16173           }
16174           /^X\(\/\/\)$/{
16175             s//\1/
16176             q
16177           }
16178           /^X\(\/\).*/{
16179             s//\1/
16180             q
16181           }
16182           s/.*/./; q'`
16183     else
16184       continue
16185     fi
16186     # Extract the definition of DEPDIR, am__include, and am__quote
16187     # from the Makefile without running `make'.
16188     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16189     test -z "$DEPDIR" && continue
16190     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16191     test -z "am__include" && continue
16192     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16193     # When using ansi2knr, U may be empty or an underscore; expand it
16194     U=`sed -n 's/^U = //p' < "$mf"`
16195     # Find all dependency output files, they are included files with
16196     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16197     # simplest approach to changing $(DEPDIR) to its actual value in the
16198     # expansion.
16199     for file in `sed -n "
16200       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16201          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16202       # Make sure the directory exists.
16203       test -f "$dirpart/$file" && continue
16204       fdir=`$as_dirname -- "$file" ||
16205 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16206          X"$file" : 'X\(//\)[^/]' \| \
16207          X"$file" : 'X\(//\)$' \| \
16208          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16209 $as_echo X"$file" |
16210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16211             s//\1/
16212             q
16213           }
16214           /^X\(\/\/\)[^/].*/{
16215             s//\1/
16216             q
16217           }
16218           /^X\(\/\/\)$/{
16219             s//\1/
16220             q
16221           }
16222           /^X\(\/\).*/{
16223             s//\1/
16224             q
16225           }
16226           s/.*/./; q'`
16227       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16228       # echo "creating $dirpart/$file"
16229       echo '# dummy' > "$dirpart/$file"
16230     done
16231   done
16232 }
16233  ;;
16234     "libtool":C)
16235
16236     # See if we are running on zsh, and set the options which allow our
16237     # commands through without removal of \ escapes.
16238     if test -n "${ZSH_VERSION+set}" ; then
16239       setopt NO_GLOB_SUBST
16240     fi
16241
16242     cfgfile="${ofile}T"
16243     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16244     $RM "$cfgfile"
16245
16246     cat <<_LT_EOF >> "$cfgfile"
16247 #! $SHELL
16248
16249 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16250 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16252 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16253 #
16254 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16255 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16256 #   Written by Gordon Matzigkeit, 1996
16257 #
16258 #   This file is part of GNU Libtool.
16259 #
16260 # GNU Libtool is free software; you can redistribute it and/or
16261 # modify it under the terms of the GNU General Public License as
16262 # published by the Free Software Foundation; either version 2 of
16263 # the License, or (at your option) any later version.
16264 #
16265 # As a special exception to the GNU General Public License,
16266 # if you distribute this file as part of a program or library that
16267 # is built using GNU Libtool, you may include this file under the
16268 # same distribution terms that you use for the rest of that program.
16269 #
16270 # GNU Libtool is distributed in the hope that it will be useful,
16271 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16272 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16273 # GNU General Public License for more details.
16274 #
16275 # You should have received a copy of the GNU General Public License
16276 # along with GNU Libtool; see the file COPYING.  If not, a copy
16277 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16278 # obtained by writing to the Free Software Foundation, Inc.,
16279 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16280
16281
16282 # The names of the tagged configurations supported by this script.
16283 available_tags=""
16284
16285 # ### BEGIN LIBTOOL CONFIG
16286
16287 # Which release of libtool.m4 was used?
16288 macro_version=$macro_version
16289 macro_revision=$macro_revision
16290
16291 # Whether or not to build shared libraries.
16292 build_libtool_libs=$enable_shared
16293
16294 # Whether or not to build static libraries.
16295 build_old_libs=$enable_static
16296
16297 # What type of objects to build.
16298 pic_mode=$pic_mode
16299
16300 # Whether or not to optimize for fast installation.
16301 fast_install=$enable_fast_install
16302
16303 # Shell to use when invoking shell scripts.
16304 SHELL=$lt_SHELL
16305
16306 # An echo program that protects backslashes.
16307 ECHO=$lt_ECHO
16308
16309 # The host system.
16310 host_alias=$host_alias
16311 host=$host
16312 host_os=$host_os
16313
16314 # The build system.
16315 build_alias=$build_alias
16316 build=$build
16317 build_os=$build_os
16318
16319 # A sed program that does not truncate output.
16320 SED=$lt_SED
16321
16322 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16323 Xsed="\$SED -e 1s/^X//"
16324
16325 # A grep program that handles long lines.
16326 GREP=$lt_GREP
16327
16328 # An ERE matcher.
16329 EGREP=$lt_EGREP
16330
16331 # A literal string matcher.
16332 FGREP=$lt_FGREP
16333
16334 # A BSD- or MS-compatible name lister.
16335 NM=$lt_NM
16336
16337 # Whether we need soft or hard links.
16338 LN_S=$lt_LN_S
16339
16340 # What is the maximum length of a command?
16341 max_cmd_len=$max_cmd_len
16342
16343 # Object file suffix (normally "o").
16344 objext=$ac_objext
16345
16346 # Executable file suffix (normally "").
16347 exeext=$exeext
16348
16349 # whether the shell understands "unset".
16350 lt_unset=$lt_unset
16351
16352 # turn spaces into newlines.
16353 SP2NL=$lt_lt_SP2NL
16354
16355 # turn newlines into spaces.
16356 NL2SP=$lt_lt_NL2SP
16357
16358 # An object symbol dumper.
16359 OBJDUMP=$lt_OBJDUMP
16360
16361 # Method to check whether dependent libraries are shared objects.
16362 deplibs_check_method=$lt_deplibs_check_method
16363
16364 # Command to use when deplibs_check_method == "file_magic".
16365 file_magic_cmd=$lt_file_magic_cmd
16366
16367 # The archiver.
16368 AR=$lt_AR
16369 AR_FLAGS=$lt_AR_FLAGS
16370
16371 # A symbol stripping program.
16372 STRIP=$lt_STRIP
16373
16374 # Commands used to install an old-style archive.
16375 RANLIB=$lt_RANLIB
16376 old_postinstall_cmds=$lt_old_postinstall_cmds
16377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16378
16379 # Whether to use a lock for old archive extraction.
16380 lock_old_archive_extraction=$lock_old_archive_extraction
16381
16382 # A C compiler.
16383 LTCC=$lt_CC
16384
16385 # LTCC compiler flags.
16386 LTCFLAGS=$lt_CFLAGS
16387
16388 # Take the output of nm and produce a listing of raw symbols and C names.
16389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16390
16391 # Transform the output of nm in a proper C declaration.
16392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16393
16394 # Transform the output of nm in a C name address pair.
16395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16396
16397 # Transform the output of nm in a C name address pair when lib prefix is needed.
16398 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16399
16400 # The name of the directory that contains temporary libtool files.
16401 objdir=$objdir
16402
16403 # Used to examine libraries when file_magic_cmd begins with "file".
16404 MAGIC_CMD=$MAGIC_CMD
16405
16406 # Must we lock files when doing compilation?
16407 need_locks=$lt_need_locks
16408
16409 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16410 DSYMUTIL=$lt_DSYMUTIL
16411
16412 # Tool to change global to local symbols on Mac OS X.
16413 NMEDIT=$lt_NMEDIT
16414
16415 # Tool to manipulate fat objects and archives on Mac OS X.
16416 LIPO=$lt_LIPO
16417
16418 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16419 OTOOL=$lt_OTOOL
16420
16421 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16422 OTOOL64=$lt_OTOOL64
16423
16424 # Old archive suffix (normally "a").
16425 libext=$libext
16426
16427 # Shared library suffix (normally ".so").
16428 shrext_cmds=$lt_shrext_cmds
16429
16430 # The commands to extract the exported symbol list from a shared archive.
16431 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16432
16433 # Variables whose values should be saved in libtool wrapper scripts and
16434 # restored at link time.
16435 variables_saved_for_relink=$lt_variables_saved_for_relink
16436
16437 # Do we need the "lib" prefix for modules?
16438 need_lib_prefix=$need_lib_prefix
16439
16440 # Do we need a version for libraries?
16441 need_version=$need_version
16442
16443 # Library versioning type.
16444 version_type=$version_type
16445
16446 # Shared library runtime path variable.
16447 runpath_var=$runpath_var
16448
16449 # Shared library path variable.
16450 shlibpath_var=$shlibpath_var
16451
16452 # Is shlibpath searched before the hard-coded library search path?
16453 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16454
16455 # Format of library name prefix.
16456 libname_spec=$lt_libname_spec
16457
16458 # List of archive names.  First name is the real one, the rest are links.
16459 # The last name is the one that the linker finds with -lNAME
16460 library_names_spec=$lt_library_names_spec
16461
16462 # The coded name of the library, if different from the real name.
16463 soname_spec=$lt_soname_spec
16464
16465 # Permission mode override for installation of shared libraries.
16466 install_override_mode=$lt_install_override_mode
16467
16468 # Command to use after installation of a shared archive.
16469 postinstall_cmds=$lt_postinstall_cmds
16470
16471 # Command to use after uninstallation of a shared archive.
16472 postuninstall_cmds=$lt_postuninstall_cmds
16473
16474 # Commands used to finish a libtool library installation in a directory.
16475 finish_cmds=$lt_finish_cmds
16476
16477 # As "finish_cmds", except a single script fragment to be evaled but
16478 # not shown.
16479 finish_eval=$lt_finish_eval
16480
16481 # Whether we should hardcode library paths into libraries.
16482 hardcode_into_libs=$hardcode_into_libs
16483
16484 # Compile-time system search path for libraries.
16485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16486
16487 # Run-time system search path for libraries.
16488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16489
16490 # Whether dlopen is supported.
16491 dlopen_support=$enable_dlopen
16492
16493 # Whether dlopen of programs is supported.
16494 dlopen_self=$enable_dlopen_self
16495
16496 # Whether dlopen of statically linked programs is supported.
16497 dlopen_self_static=$enable_dlopen_self_static
16498
16499 # Commands to strip libraries.
16500 old_striplib=$lt_old_striplib
16501 striplib=$lt_striplib
16502
16503
16504 # The linker used to build libraries.
16505 LD=$lt_LD
16506
16507 # How to create reloadable object files.
16508 reload_flag=$lt_reload_flag
16509 reload_cmds=$lt_reload_cmds
16510
16511 # Commands used to build an old-style archive.
16512 old_archive_cmds=$lt_old_archive_cmds
16513
16514 # A language specific compiler.
16515 CC=$lt_compiler
16516
16517 # Is the compiler the GNU compiler?
16518 with_gcc=$GCC
16519
16520 # Compiler flag to turn off builtin functions.
16521 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16522
16523 # How to pass a linker flag through the compiler.
16524 wl=$lt_lt_prog_compiler_wl
16525
16526 # Additional compiler flags for building library objects.
16527 pic_flag=$lt_lt_prog_compiler_pic
16528
16529 # Compiler flag to prevent dynamic linking.
16530 link_static_flag=$lt_lt_prog_compiler_static
16531
16532 # Does compiler simultaneously support -c and -o options?
16533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16534
16535 # Whether or not to add -lc for building shared libraries.
16536 build_libtool_need_lc=$archive_cmds_need_lc
16537
16538 # Whether or not to disallow shared libs when runtime libs are static.
16539 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16540
16541 # Compiler flag to allow reflexive dlopens.
16542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16543
16544 # Compiler flag to generate shared objects directly from archives.
16545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16546
16547 # Whether the compiler copes with passing no objects directly.
16548 compiler_needs_object=$lt_compiler_needs_object
16549
16550 # Create an old-style archive from a shared archive.
16551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16552
16553 # Create a temporary old-style archive to link instead of a shared archive.
16554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16555
16556 # Commands used to build a shared archive.
16557 archive_cmds=$lt_archive_cmds
16558 archive_expsym_cmds=$lt_archive_expsym_cmds
16559
16560 # Commands used to build a loadable module if different from building
16561 # a shared archive.
16562 module_cmds=$lt_module_cmds
16563 module_expsym_cmds=$lt_module_expsym_cmds
16564
16565 # Whether we are building with GNU ld or not.
16566 with_gnu_ld=$lt_with_gnu_ld
16567
16568 # Flag that allows shared libraries with undefined symbols to be built.
16569 allow_undefined_flag=$lt_allow_undefined_flag
16570
16571 # Flag that enforces no undefined symbols.
16572 no_undefined_flag=$lt_no_undefined_flag
16573
16574 # Flag to hardcode \$libdir into a binary during linking.
16575 # This must work even if \$libdir does not exist
16576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16577
16578 # If ld is used when linking, flag to hardcode \$libdir into a binary
16579 # during linking.  This must work even if \$libdir does not exist.
16580 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16581
16582 # Whether we need a single "-rpath" flag with a separated argument.
16583 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16584
16585 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16586 # DIR into the resulting binary.
16587 hardcode_direct=$hardcode_direct
16588
16589 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16590 # DIR into the resulting binary and the resulting library dependency is
16591 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16592 # library is relocated.
16593 hardcode_direct_absolute=$hardcode_direct_absolute
16594
16595 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16596 # into the resulting binary.
16597 hardcode_minus_L=$hardcode_minus_L
16598
16599 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16600 # into the resulting binary.
16601 hardcode_shlibpath_var=$hardcode_shlibpath_var
16602
16603 # Set to "yes" if building a shared library automatically hardcodes DIR
16604 # into the library and all subsequent libraries and executables linked
16605 # against it.
16606 hardcode_automatic=$hardcode_automatic
16607
16608 # Set to yes if linker adds runtime paths of dependent libraries
16609 # to runtime path list.
16610 inherit_rpath=$inherit_rpath
16611
16612 # Whether libtool must link a program against all its dependency libraries.
16613 link_all_deplibs=$link_all_deplibs
16614
16615 # Fix the shell variable \$srcfile for the compiler.
16616 fix_srcfile_path=$lt_fix_srcfile_path
16617
16618 # Set to "yes" if exported symbols are required.
16619 always_export_symbols=$always_export_symbols
16620
16621 # The commands to list exported symbols.
16622 export_symbols_cmds=$lt_export_symbols_cmds
16623
16624 # Symbols that should not be listed in the preloaded symbols.
16625 exclude_expsyms=$lt_exclude_expsyms
16626
16627 # Symbols that must always be exported.
16628 include_expsyms=$lt_include_expsyms
16629
16630 # Commands necessary for linking programs (against libraries) with templates.
16631 prelink_cmds=$lt_prelink_cmds
16632
16633 # Specify filename containing input files.
16634 file_list_spec=$lt_file_list_spec
16635
16636 # How to hardcode a shared library path into an executable.
16637 hardcode_action=$hardcode_action
16638
16639 # ### END LIBTOOL CONFIG
16640
16641 _LT_EOF
16642
16643   case $host_os in
16644   aix3*)
16645     cat <<\_LT_EOF >> "$cfgfile"
16646 # AIX sometimes has problems with the GCC collect2 program.  For some
16647 # reason, if we set the COLLECT_NAMES environment variable, the problems
16648 # vanish in a puff of smoke.
16649 if test "X${COLLECT_NAMES+set}" != Xset; then
16650   COLLECT_NAMES=
16651   export COLLECT_NAMES
16652 fi
16653 _LT_EOF
16654     ;;
16655   esac
16656
16657
16658 ltmain="$ac_aux_dir/ltmain.sh"
16659
16660
16661   # We use sed instead of cat because bash on DJGPP gets confused if
16662   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16663   # text mode, it properly converts lines to CR/LF.  This bash problem
16664   # is reportedly fixed, but why not run on old versions too?
16665   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16666     || (rm -f "$cfgfile"; exit 1)
16667
16668   case $xsi_shell in
16669   yes)
16670     cat << \_LT_EOF >> "$cfgfile"
16671
16672 # func_dirname file append nondir_replacement
16673 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16674 # otherwise set result to NONDIR_REPLACEMENT.
16675 func_dirname ()
16676 {
16677   case ${1} in
16678     */*) func_dirname_result="${1%/*}${2}" ;;
16679     *  ) func_dirname_result="${3}" ;;
16680   esac
16681 }
16682
16683 # func_basename file
16684 func_basename ()
16685 {
16686   func_basename_result="${1##*/}"
16687 }
16688
16689 # func_dirname_and_basename file append nondir_replacement
16690 # perform func_basename and func_dirname in a single function
16691 # call:
16692 #   dirname:  Compute the dirname of FILE.  If nonempty,
16693 #             add APPEND to the result, otherwise set result
16694 #             to NONDIR_REPLACEMENT.
16695 #             value returned in "$func_dirname_result"
16696 #   basename: Compute filename of FILE.
16697 #             value retuned in "$func_basename_result"
16698 # Implementation must be kept synchronized with func_dirname
16699 # and func_basename. For efficiency, we do not delegate to
16700 # those functions but instead duplicate the functionality here.
16701 func_dirname_and_basename ()
16702 {
16703   case ${1} in
16704     */*) func_dirname_result="${1%/*}${2}" ;;
16705     *  ) func_dirname_result="${3}" ;;
16706   esac
16707   func_basename_result="${1##*/}"
16708 }
16709
16710 # func_stripname prefix suffix name
16711 # strip PREFIX and SUFFIX off of NAME.
16712 # PREFIX and SUFFIX must not contain globbing or regex special
16713 # characters, hashes, percent signs, but SUFFIX may contain a leading
16714 # dot (in which case that matches only a dot).
16715 func_stripname ()
16716 {
16717   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16718   # positional parameters, so assign one to ordinary parameter first.
16719   func_stripname_result=${3}
16720   func_stripname_result=${func_stripname_result#"${1}"}
16721   func_stripname_result=${func_stripname_result%"${2}"}
16722 }
16723
16724 # func_opt_split
16725 func_opt_split ()
16726 {
16727   func_opt_split_opt=${1%%=*}
16728   func_opt_split_arg=${1#*=}
16729 }
16730
16731 # func_lo2o object
16732 func_lo2o ()
16733 {
16734   case ${1} in
16735     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16736     *)    func_lo2o_result=${1} ;;
16737   esac
16738 }
16739
16740 # func_xform libobj-or-source
16741 func_xform ()
16742 {
16743   func_xform_result=${1%.*}.lo
16744 }
16745
16746 # func_arith arithmetic-term...
16747 func_arith ()
16748 {
16749   func_arith_result=$(( $* ))
16750 }
16751
16752 # func_len string
16753 # STRING may not start with a hyphen.
16754 func_len ()
16755 {
16756   func_len_result=${#1}
16757 }
16758
16759 _LT_EOF
16760     ;;
16761   *) # Bourne compatible functions.
16762     cat << \_LT_EOF >> "$cfgfile"
16763
16764 # func_dirname file append nondir_replacement
16765 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16766 # otherwise set result to NONDIR_REPLACEMENT.
16767 func_dirname ()
16768 {
16769   # Extract subdirectory from the argument.
16770   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16771   if test "X$func_dirname_result" = "X${1}"; then
16772     func_dirname_result="${3}"
16773   else
16774     func_dirname_result="$func_dirname_result${2}"
16775   fi
16776 }
16777
16778 # func_basename file
16779 func_basename ()
16780 {
16781   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16782 }
16783
16784
16785 # func_stripname prefix suffix name
16786 # strip PREFIX and SUFFIX off of NAME.
16787 # PREFIX and SUFFIX must not contain globbing or regex special
16788 # characters, hashes, percent signs, but SUFFIX may contain a leading
16789 # dot (in which case that matches only a dot).
16790 # func_strip_suffix prefix name
16791 func_stripname ()
16792 {
16793   case ${2} in
16794     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16795     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16796   esac
16797 }
16798
16799 # sed scripts:
16800 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16801 my_sed_long_arg='1s/^-[^=]*=//'
16802
16803 # func_opt_split
16804 func_opt_split ()
16805 {
16806   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16807   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16808 }
16809
16810 # func_lo2o object
16811 func_lo2o ()
16812 {
16813   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16814 }
16815
16816 # func_xform libobj-or-source
16817 func_xform ()
16818 {
16819   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16820 }
16821
16822 # func_arith arithmetic-term...
16823 func_arith ()
16824 {
16825   func_arith_result=`expr "$@"`
16826 }
16827
16828 # func_len string
16829 # STRING may not start with a hyphen.
16830 func_len ()
16831 {
16832   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16833 }
16834
16835 _LT_EOF
16836 esac
16837
16838 case $lt_shell_append in
16839   yes)
16840     cat << \_LT_EOF >> "$cfgfile"
16841
16842 # func_append var value
16843 # Append VALUE to the end of shell variable VAR.
16844 func_append ()
16845 {
16846   eval "$1+=\$2"
16847 }
16848 _LT_EOF
16849     ;;
16850   *)
16851     cat << \_LT_EOF >> "$cfgfile"
16852
16853 # func_append var value
16854 # Append VALUE to the end of shell variable VAR.
16855 func_append ()
16856 {
16857   eval "$1=\$$1\$2"
16858 }
16859
16860 _LT_EOF
16861     ;;
16862   esac
16863
16864
16865   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16866     || (rm -f "$cfgfile"; exit 1)
16867
16868   mv -f "$cfgfile" "$ofile" ||
16869     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16870   chmod +x "$ofile"
16871
16872  ;;
16873     "default-1":C)
16874     for ac_file in $CONFIG_FILES; do
16875       # Support "outfile[:infile[:infile...]]"
16876       case "$ac_file" in
16877         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16878       esac
16879       # PO directories have a Makefile.in generated from Makefile.in.in.
16880       case "$ac_file" in */Makefile.in)
16881         # Adjust a relative srcdir.
16882         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16883         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16884         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16885         # In autoconf-2.13 it is called $ac_given_srcdir.
16886         # In autoconf-2.50 it is called $srcdir.
16887         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16888         case "$ac_given_srcdir" in
16889           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16890           /*) top_srcdir="$ac_given_srcdir" ;;
16891           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16892         esac
16893         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16894           rm -f "$ac_dir/POTFILES"
16895           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16896           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16897           POMAKEFILEDEPS="POTFILES.in"
16898           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16899           # on $ac_dir but don't depend on user-specified configuration
16900           # parameters.
16901           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16902             # The LINGUAS file contains the set of available languages.
16903             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16904               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16905             fi
16906             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16907             # Hide the ALL_LINGUAS assigment from automake.
16908             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16909             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16910           else
16911             # The set of available languages was given in configure.ac.
16912             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16913           fi
16914           case "$ac_given_srcdir" in
16915             .) srcdirpre= ;;
16916             *) srcdirpre='$(srcdir)/' ;;
16917           esac
16918           POFILES=
16919           GMOFILES=
16920           UPDATEPOFILES=
16921           DUMMYPOFILES=
16922           for lang in $ALL_LINGUAS; do
16923             POFILES="$POFILES $srcdirpre$lang.po"
16924             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16925             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16926             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16927           done
16928           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16929           # environment variable.
16930           INST_LINGUAS=
16931           if test -n "$ALL_LINGUAS"; then
16932             for presentlang in $ALL_LINGUAS; do
16933               useit=no
16934               if test "%UNSET%" != "$LINGUAS"; then
16935                 desiredlanguages="$LINGUAS"
16936               else
16937                 desiredlanguages="$ALL_LINGUAS"
16938               fi
16939               for desiredlang in $desiredlanguages; do
16940                 # Use the presentlang catalog if desiredlang is
16941                 #   a. equal to presentlang, or
16942                 #   b. a variant of presentlang (because in this case,
16943                 #      presentlang can be used as a fallback for messages
16944                 #      which are not translated in the desiredlang catalog).
16945                 case "$desiredlang" in
16946                   "$presentlang"*) useit=yes;;
16947                 esac
16948               done
16949               if test $useit = yes; then
16950                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16951               fi
16952             done
16953           fi
16954           CATALOGS=
16955           if test -n "$INST_LINGUAS"; then
16956             for lang in $INST_LINGUAS; do
16957               CATALOGS="$CATALOGS $lang.gmo"
16958             done
16959           fi
16960           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16961           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16962           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16963             if test -f "$f"; then
16964               case "$f" in
16965                 *.orig | *.bak | *~) ;;
16966                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16967               esac
16968             fi
16969           done
16970         fi
16971         ;;
16972       esac
16973     done ;;
16974     "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16975  echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16976  echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16977  echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16978  echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16979  if test "x$cgen_cpu_prefix" != x ; then
16980    echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16981  fi ;;
16982
16983   esac
16984 done # for ac_tag
16985
16986
16987 as_fn_exit 0
16988 _ACEOF
16989 ac_clean_files=$ac_clean_files_save
16990
16991 test $ac_write_fail = 0 ||
16992   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16993
16994
16995 # configure is writing to config.log, and then calls config.status.
16996 # config.status does its own redirection, appending to config.log.
16997 # Unfortunately, on DOS this fails, as config.log is still kept open
16998 # by configure, so config.status won't be able to write to it; its
16999 # output is simply discarded.  So we exec the FD to /dev/null,
17000 # effectively closing config.log, so it can be properly (re)opened and
17001 # appended to by config.status.  When coming back to configure, we
17002 # need to make the FD available again.
17003 if test "$no_create" != yes; then
17004   ac_cs_success=:
17005   ac_config_status_args=
17006   test "$silent" = yes &&
17007     ac_config_status_args="$ac_config_status_args --quiet"
17008   exec 5>/dev/null
17009   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17010   exec 5>>config.log
17011   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17012   # would make configure fail if this is the last instruction.
17013   $ac_cs_success || as_fn_exit $?
17014 fi
17015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17016   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17017 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17018 fi
17019