Set to 2.32 release version and regenerate configure and pot files
[external/binutils.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gas 2.32.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='gas'
589 PACKAGE_TARNAME='gas'
590 PACKAGE_VERSION='2.32'
591 PACKAGE_STRING='gas 2.32'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="as.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 zlibinc
637 zlibdir
638 LIBM
639 ALLOCA
640 GENINSRC_NEVER_FALSE
641 GENINSRC_NEVER_TRUE
642 MAINT
643 MAINTAINER_MODE_FALSE
644 MAINTAINER_MODE_TRUE
645 MSGMERGE
646 MSGFMT
647 MKINSTALLDIRS
648 CATOBJEXT
649 GENCAT
650 INSTOBJEXT
651 DATADIRNAME
652 CATALOGS
653 POSUB
654 GMSGFMT
655 XGETTEXT
656 INCINTL
657 LIBINTL_DEP
658 LIBINTL
659 USE_NLS
660 LEXLIB
661 LEX_OUTPUT_ROOT
662 LEX
663 YFLAGS
664 YACC
665 OPCODES_LIB
666 atof
667 install_tooldir
668 te_file
669 obj_format
670 target_cpu_type
671 extra_objects
672 cgen_cpu_prefix
673 GDBINIT
674 WARN_WRITE_STRINGS
675 NO_WERROR
676 WARN_CFLAGS_FOR_BUILD
677 WARN_CFLAGS
678 do_compare
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 RANLIB
685 AR
686 OBJDUMP
687 LN_S
688 NM
689 ac_ct_DUMPBIN
690 DUMPBIN
691 LD
692 FGREP
693 SED
694 LIBTOOL
695 EGREP
696 GREP
697 CPP
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_dependency_tracking
796 enable_silent_rules
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 enable_libtool_lock
803 enable_plugins
804 enable_largefile
805 enable_targets
806 enable_checking
807 enable_compressed_debug_sections
808 enable_x86_relax_relocations
809 enable_elf_stt_common
810 enable_generate_build_notes
811 enable_x86_used_note
812 enable_default_riscv_attribute
813 enable_werror
814 enable_build_warnings
815 with_cpu
816 enable_nls
817 enable_maintainer_mode
818 with_system_zlib
819 '
820       ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 CPP
829 YACC
830 YFLAGS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885   # If the previous option needs an argument, assign it.
886   if test -n "$ac_prev"; then
887     eval $ac_prev=\$ac_option
888     ac_prev=
889     continue
890   fi
891
892   case $ac_option in
893   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894   *=)   ac_optarg= ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940       as_fn_error $? "invalid feature name: $ac_useropt"
941     ac_useropt_orig=$ac_useropt
942     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943     case $ac_user_opts in
944       *"
945 "enable_$ac_useropt"
946 "*) ;;
947       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948          ac_unrecognized_sep=', ';;
949     esac
950     eval enable_$ac_useropt=no ;;
951
952   -docdir | --docdir | --docdi | --doc | --do)
953     ac_prev=docdir ;;
954   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955     docdir=$ac_optarg ;;
956
957   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958     ac_prev=dvidir ;;
959   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960     dvidir=$ac_optarg ;;
961
962   -enable-* | --enable-*)
963     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964     # Reject names that are not valid shell variable names.
965     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966       as_fn_error $? "invalid feature name: $ac_useropt"
967     ac_useropt_orig=$ac_useropt
968     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969     case $ac_user_opts in
970       *"
971 "enable_$ac_useropt"
972 "*) ;;
973       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974          ac_unrecognized_sep=', ';;
975     esac
976     eval enable_$ac_useropt=\$ac_optarg ;;
977
978   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980   | --exec | --exe | --ex)
981     ac_prev=exec_prefix ;;
982   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984   | --exec=* | --exe=* | --ex=*)
985     exec_prefix=$ac_optarg ;;
986
987   -gas | --gas | --ga | --g)
988     # Obsolete; use --with-gas.
989     with_gas=yes ;;
990
991   -help | --help | --hel | --he | -h)
992     ac_init_help=long ;;
993   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994     ac_init_help=recursive ;;
995   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996     ac_init_help=short ;;
997
998   -host | --host | --hos | --ho)
999     ac_prev=host_alias ;;
1000   -host=* | --host=* | --hos=* | --ho=*)
1001     host_alias=$ac_optarg ;;
1002
1003   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004     ac_prev=htmldir ;;
1005   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006   | --ht=*)
1007     htmldir=$ac_optarg ;;
1008
1009   -includedir | --includedir | --includedi | --included | --include \
1010   | --includ | --inclu | --incl | --inc)
1011     ac_prev=includedir ;;
1012   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013   | --includ=* | --inclu=* | --incl=* | --inc=*)
1014     includedir=$ac_optarg ;;
1015
1016   -infodir | --infodir | --infodi | --infod | --info | --inf)
1017     ac_prev=infodir ;;
1018   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019     infodir=$ac_optarg ;;
1020
1021   -libdir | --libdir | --libdi | --libd)
1022     ac_prev=libdir ;;
1023   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024     libdir=$ac_optarg ;;
1025
1026   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027   | --libexe | --libex | --libe)
1028     ac_prev=libexecdir ;;
1029   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030   | --libexe=* | --libex=* | --libe=*)
1031     libexecdir=$ac_optarg ;;
1032
1033   -localedir | --localedir | --localedi | --localed | --locale)
1034     ac_prev=localedir ;;
1035   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036     localedir=$ac_optarg ;;
1037
1038   -localstatedir | --localstatedir | --localstatedi | --localstated \
1039   | --localstate | --localstat | --localsta | --localst | --locals)
1040     ac_prev=localstatedir ;;
1041   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043     localstatedir=$ac_optarg ;;
1044
1045   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046     ac_prev=mandir ;;
1047   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048     mandir=$ac_optarg ;;
1049
1050   -nfp | --nfp | --nf)
1051     # Obsolete; use --without-fp.
1052     with_fp=no ;;
1053
1054   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055   | --no-cr | --no-c | -n)
1056     no_create=yes ;;
1057
1058   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060     no_recursion=yes ;;
1061
1062   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064   | --oldin | --oldi | --old | --ol | --o)
1065     ac_prev=oldincludedir ;;
1066   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069     oldincludedir=$ac_optarg ;;
1070
1071   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072     ac_prev=prefix ;;
1073   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074     prefix=$ac_optarg ;;
1075
1076   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077   | --program-pre | --program-pr | --program-p)
1078     ac_prev=program_prefix ;;
1079   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081     program_prefix=$ac_optarg ;;
1082
1083   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084   | --program-suf | --program-su | --program-s)
1085     ac_prev=program_suffix ;;
1086   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088     program_suffix=$ac_optarg ;;
1089
1090   -program-transform-name | --program-transform-name \
1091   | --program-transform-nam | --program-transform-na \
1092   | --program-transform-n | --program-transform- \
1093   | --program-transform | --program-transfor \
1094   | --program-transfo | --program-transf \
1095   | --program-trans | --program-tran \
1096   | --progr-tra | --program-tr | --program-t)
1097     ac_prev=program_transform_name ;;
1098   -program-transform-name=* | --program-transform-name=* \
1099   | --program-transform-nam=* | --program-transform-na=* \
1100   | --program-transform-n=* | --program-transform-=* \
1101   | --program-transform=* | --program-transfor=* \
1102   | --program-transfo=* | --program-transf=* \
1103   | --program-trans=* | --program-tran=* \
1104   | --progr-tra=* | --program-tr=* | --program-t=*)
1105     program_transform_name=$ac_optarg ;;
1106
1107   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108     ac_prev=pdfdir ;;
1109   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110     pdfdir=$ac_optarg ;;
1111
1112   -psdir | --psdir | --psdi | --psd | --ps)
1113     ac_prev=psdir ;;
1114   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115     psdir=$ac_optarg ;;
1116
1117   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118   | -silent | --silent | --silen | --sile | --sil)
1119     silent=yes ;;
1120
1121   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122     ac_prev=sbindir ;;
1123   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124   | --sbi=* | --sb=*)
1125     sbindir=$ac_optarg ;;
1126
1127   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129   | --sharedst | --shareds | --shared | --share | --shar \
1130   | --sha | --sh)
1131     ac_prev=sharedstatedir ;;
1132   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135   | --sha=* | --sh=*)
1136     sharedstatedir=$ac_optarg ;;
1137
1138   -site | --site | --sit)
1139     ac_prev=site ;;
1140   -site=* | --site=* | --sit=*)
1141     site=$ac_optarg ;;
1142
1143   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144     ac_prev=srcdir ;;
1145   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146     srcdir=$ac_optarg ;;
1147
1148   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149   | --syscon | --sysco | --sysc | --sys | --sy)
1150     ac_prev=sysconfdir ;;
1151   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153     sysconfdir=$ac_optarg ;;
1154
1155   -target | --target | --targe | --targ | --tar | --ta | --t)
1156     ac_prev=target_alias ;;
1157   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158     target_alias=$ac_optarg ;;
1159
1160   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161     verbose=yes ;;
1162
1163   -version | --version | --versio | --versi | --vers | -V)
1164     ac_init_version=: ;;
1165
1166   -with-* | --with-*)
1167     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168     # Reject names that are not valid shell variable names.
1169     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170       as_fn_error $? "invalid package name: $ac_useropt"
1171     ac_useropt_orig=$ac_useropt
1172     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173     case $ac_user_opts in
1174       *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178          ac_unrecognized_sep=', ';;
1179     esac
1180     eval with_$ac_useropt=\$ac_optarg ;;
1181
1182   -without-* | --without-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error $? "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=no ;;
1197
1198   --x)
1199     # Obsolete; use --with-x.
1200     with_x=yes ;;
1201
1202   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203   | --x-incl | --x-inc | --x-in | --x-i)
1204     ac_prev=x_includes ;;
1205   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207     x_includes=$ac_optarg ;;
1208
1209   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211     ac_prev=x_libraries ;;
1212   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214     x_libraries=$ac_optarg ;;
1215
1216   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218     ;;
1219
1220   *=*)
1221     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222     # Reject names that are not valid shell variable names.
1223     case $ac_envvar in #(
1224       '' | [0-9]* | *[!_$as_cr_alnum]* )
1225       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226     esac
1227     eval $ac_envvar=\$ac_optarg
1228     export $ac_envvar ;;
1229
1230   *)
1231     # FIXME: should be removed in autoconf 3.0.
1232     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236     ;;
1237
1238   esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243   as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247   case $enable_option_checking in
1248     no) ;;
1249     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251   esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256                 datadir sysconfdir sharedstatedir localstatedir includedir \
1257                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258                 libdir localedir mandir
1259 do
1260   eval ac_val=\$$ac_var
1261   # Remove trailing slashes.
1262   case $ac_val in
1263     */ )
1264       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265       eval $ac_var=\$ac_val;;
1266   esac
1267   # Be sure to have absolute directory names.
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284   if test "x$build_alias" = x; then
1285     cross_compiling=maybe
1286   elif test "x$build_alias" != "x$host_alias"; then
1287     cross_compiling=yes
1288   fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300   as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302   as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307   ac_srcdir_defaulted=yes
1308   # Try the directory containing this script, then the parent directory.
1309   ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311          X"$as_myself" : 'X\(//\)[^/]' \| \
1312          X"$as_myself" : 'X\(//\)$' \| \
1313          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\/\)[^/].*/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\).*/{
1328             s//\1/
1329             q
1330           }
1331           s/.*/./; q'`
1332   srcdir=$ac_confdir
1333   if test ! -r "$srcdir/$ac_unique_file"; then
1334     srcdir=..
1335   fi
1336 else
1337   ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346         pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349   srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359   eval ac_env_${ac_var}_value=\$${ac_var}
1360   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368   # Omit some internal or obsolete options to make the list less imposing.
1369   # This message is too long to be a string in the A/UX 3.1 sh.
1370   cat <<_ACEOF
1371 \`configure' configures gas 2.32 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE.  See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381   -h, --help              display this help and exit
1382       --help=short        display options specific to this package
1383       --help=recursive    display the short help of all the included packages
1384   -V, --version           display version information and exit
1385   -q, --quiet, --silent   do not print \`checking ...' messages
1386       --cache-file=FILE   cache test results in FILE [disabled]
1387   -C, --config-cache      alias for \`--cache-file=config.cache'
1388   -n, --no-create         do not create output files
1389       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392   --prefix=PREFIX         install architecture-independent files in PREFIX
1393                           [$ac_default_prefix]
1394   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1395                           [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405   --bindir=DIR            user executables [EPREFIX/bin]
1406   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1407   --libexecdir=DIR        program executables [EPREFIX/libexec]
1408   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1409   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1410   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1411   --libdir=DIR            object code libraries [EPREFIX/lib]
1412   --includedir=DIR        C header files [PREFIX/include]
1413   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1414   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1415   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1416   --infodir=DIR           info documentation [DATAROOTDIR/info]
1417   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1418   --mandir=DIR            man documentation [DATAROOTDIR/man]
1419   --docdir=DIR            documentation root [DATAROOTDIR/doc/gas]
1420   --htmldir=DIR           html documentation [DOCDIR]
1421   --dvidir=DIR            dvi documentation [DOCDIR]
1422   --pdfdir=DIR            pdf documentation [DOCDIR]
1423   --psdir=DIR             ps documentation [DOCDIR]
1424 _ACEOF
1425
1426   cat <<\_ACEOF
1427
1428 Program names:
1429   --program-prefix=PREFIX            prepend PREFIX to installed program names
1430   --program-suffix=SUFFIX            append SUFFIX to installed program names
1431   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1432
1433 System types:
1434   --build=BUILD     configure for building on BUILD [guessed]
1435   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1436   --target=TARGET   configure for building compilers for TARGET [HOST]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441   case $ac_init_help in
1442      short | recursive ) echo "Configuration of gas 2.32:";;
1443    esac
1444   cat <<\_ACEOF
1445
1446 Optional Features:
1447   --disable-option-checking  ignore unrecognized --enable/--with options
1448   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450   --enable-dependency-tracking
1451                           do not reject slow dependency extractors
1452   --disable-dependency-tracking
1453                           speeds up one-time build
1454   --enable-silent-rules   less verbose build output (undo: "make V=1")
1455   --disable-silent-rules  verbose build output (undo: "make V=0")
1456   --enable-shared[=PKGS]  build shared libraries [default=yes]
1457   --enable-static[=PKGS]  build static libraries [default=yes]
1458   --enable-fast-install[=PKGS]
1459                           optimize for fast installation [default=yes]
1460   --disable-libtool-lock  avoid locking (might break parallel builds)
1461   --enable-plugins        Enable support for plugins
1462   --disable-largefile     omit support for large files
1463   --enable-targets        alternative target configurations besides the primary
1464   --enable-checking       enable run-time checks
1465   --enable-compressed-debug-sections={all,gas,none}
1466                           compress debug sections by default
1467   --enable-x86-relax-relocations
1468                           generate x86 relax relocations by default
1469   --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1470                           default
1471   --enable-generate-build-notes
1472                           generate GNU Build notes if none are provided by the
1473                           input
1474   --enable-x86-used-note  generate GNU x86 used ISA and feature properties
1475   --enable-default-riscv-attribute
1476                           generate RISC-V arch attribute by default
1477   --enable-werror         treat compile warnings as errors
1478   --enable-build-warnings enable build-time compiler warnings
1479   --disable-nls           do not use Native Language Support
1480   --enable-maintainer-mode
1481                           enable make rules and dependencies not useful (and
1482                           sometimes confusing) to the casual installer
1483
1484 Optional Packages:
1485   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487   --with-pic              try to use only PIC/non-PIC objects [default=use
1488                           both]
1489   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1490   --with-cpu=CPU          default cpu variant is CPU (currently only supported
1491                           on ARC)
1492   --with-system-zlib      use installed libz
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   LIBS        libraries to pass to the linker, e.g. -l<library>
1500   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501               you have headers in a nonstandard directory <include dir>
1502   CPP         C preprocessor
1503   YACC        The `Yet Another Compiler Compiler' implementation to use.
1504               Defaults to the first program found out of: `bison -y', `byacc',
1505               `yacc'.
1506   YFLAGS      The list of arguments that will be passed by default to $YACC.
1507               This script will default YFLAGS to the empty string to avoid a
1508               default value of `-d' given by some make applications.
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519   # If there are subdirs, report their specific --help.
1520   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521     test -d "$ac_dir" ||
1522       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523       continue
1524     ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530   # A ".." for each directory in $ac_dir_suffix.
1531   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532   case $ac_top_builddir_sub in
1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535   esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543   .)  # We are building in place.
1544     ac_srcdir=.
1545     ac_top_srcdir=$ac_top_builddir_sub
1546     ac_abs_top_srcdir=$ac_pwd ;;
1547   [\\/]* | ?:[\\/]* )  # Absolute name.
1548     ac_srcdir=$srcdir$ac_dir_suffix;
1549     ac_top_srcdir=$srcdir
1550     ac_abs_top_srcdir=$srcdir ;;
1551   *) # Relative name.
1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558     cd "$ac_dir" || { ac_status=$?; continue; }
1559     # Check for guested configure.
1560     if test -f "$ac_srcdir/configure.gnu"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563     elif test -f "$ac_srcdir/configure"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure" --help=recursive
1566     else
1567       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568     fi || ac_status=$?
1569     cd "$ac_pwd" || { ac_status=$?; break; }
1570   done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575   cat <<\_ACEOF
1576 gas configure 2.32
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583   exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   rm -f conftest.$ac_objext
1597   if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_compile") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } && {
1613          test -z "$ac_c_werror_flag" ||
1614          test ! -s conftest.err
1615        } && test -s conftest.$ac_objext; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621         ac_retval=1
1622 fi
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   rm -f conftest.$ac_objext conftest$ac_exeext
1635   if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_link") 2>conftest.err
1643   ac_status=$?
1644   if test -s conftest.err; then
1645     grep -v '^ *+' conftest.err >conftest.er1
1646     cat conftest.er1 >&5
1647     mv -f conftest.er1 conftest.err
1648   fi
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } && {
1651          test -z "$ac_c_werror_flag" ||
1652          test ! -s conftest.err
1653        } && test -s conftest$ac_exeext && {
1654          test "$cross_compiling" = yes ||
1655          test -x conftest$ac_exeext
1656        }; then :
1657   ac_retval=0
1658 else
1659   $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662         ac_retval=1
1663 fi
1664   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666   # interfere with the next link command; also delete a directory that is
1667   # left behind by Apple's compiler.  We do this before executing the actions.
1668   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_link
1673
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688   ac_status=$?
1689   if test -s conftest.err; then
1690     grep -v '^ *+' conftest.err >conftest.er1
1691     cat conftest.er1 >&5
1692     mv -f conftest.er1 conftest.err
1693   fi
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } > conftest.i && {
1696          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697          test ! -s conftest.err
1698        }; then :
1699   ac_retval=0
1700 else
1701   $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704     ac_retval=1
1705 fi
1706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707   as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_cpp
1710
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   if eval \${$3+:} false; then :
1720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723   $as_echo_n "(cached) " >&6
1724 fi
1725 eval ac_res=\$$3
1726                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729   # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h.  */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738   ac_header_compiler=yes
1739 else
1740   ac_header_compiler=no
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1745
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h.  */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754   ac_header_preproc=yes
1755 else
1756   ac_header_preproc=no
1757 fi
1758 rm -f conftest.err conftest.i conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1761
1762 # So?  What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764   yes:no: )
1765     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769     ;;
1770   no:yes:* )
1771     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1779     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781     ;;
1782 esac
1783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786   $as_echo_n "(cached) " >&6
1787 else
1788   eval "$3=\$ac_header_compiler"
1789 fi
1790 eval ac_res=\$$3
1791                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 fi
1794   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_mongrel
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_link") 2>&5
1813   ac_status=$?
1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816   { { case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_try") 2>&5
1823   ac_status=$?
1824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825   test $ac_status = 0; }; }; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: program exited with status $ac_status" >&5
1829        $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832        ac_retval=$ac_status
1833 fi
1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836   as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858   eval "$3=yes"
1859 else
1860   eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $2 (); below.
1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891     <limits.h> exists even on freestanding compilers.  */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902    Use char because int might match the return type of a GCC
1903    builtin and then its argument prototype would still apply.  */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS.  Some functions are actually named
1910     something starting with __ and the normal name is an alias.  */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939 # -------------------------------------------
1940 # Tests whether TYPE exists after having included INCLUDES, setting cache
1941 # variable VAR accordingly.
1942 ac_fn_c_check_type ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948   $as_echo_n "(cached) " >&6
1949 else
1950   eval "$3=no"
1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 $4
1954 int
1955 main ()
1956 {
1957 if (sizeof ($2))
1958          return 0;
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 int
1968 main ()
1969 {
1970 if (sizeof (($2)))
1971             return 0;
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977
1978 else
1979   eval "$3=yes"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_type
1991
1992 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1993 # ---------------------------------------------
1994 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1995 # accordingly.
1996 ac_fn_c_check_decl ()
1997 {
1998   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999   as_decl_name=`echo $2|sed 's/ *(.*//'`
2000   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2002 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2003 if eval \${$3+:} false; then :
2004   $as_echo_n "(cached) " >&6
2005 else
2006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $4
2009 int
2010 main ()
2011 {
2012 #ifndef $as_decl_name
2013 #ifdef __cplusplus
2014   (void) $as_decl_use;
2015 #else
2016   (void) $as_decl_name;
2017 #endif
2018 #endif
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   eval "$3=yes"
2026 else
2027   eval "$3=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 eval ac_res=\$$3
2032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036 } # ac_fn_c_check_decl
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by gas $as_me 2.32, which was
2042 generated by GNU Autoconf 2.69.  Invocation command line was
2043
2044   $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2062
2063 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2064 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2067 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2068 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2069 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076   IFS=$as_save_IFS
2077   test -z "$as_dir" && as_dir=.
2078     $as_echo "PATH: $as_dir"
2079   done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105   for ac_arg
2106   do
2107     case $ac_arg in
2108     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110     | -silent | --silent | --silen | --sile | --sil)
2111       continue ;;
2112     *\'*)
2113       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114     esac
2115     case $ac_pass in
2116     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117     2)
2118       as_fn_append ac_configure_args1 " '$ac_arg'"
2119       if test $ac_must_keep_next = true; then
2120         ac_must_keep_next=false # Got value, back to normal.
2121       else
2122         case $ac_arg in
2123           *=* | --config-cache | -C | -disable-* | --disable-* \
2124           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126           | -with-* | --with-* | -without-* | --without-* | --x)
2127             case "$ac_configure_args0 " in
2128               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129             esac
2130             ;;
2131           -* ) ac_must_keep_next=true ;;
2132         esac
2133       fi
2134       as_fn_append ac_configure_args " '$ac_arg'"
2135       ;;
2136     esac
2137   done
2138 done
2139 { ac_configure_args0=; unset ac_configure_args0;}
2140 { ac_configure_args1=; unset ac_configure_args1;}
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log.  We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148   # Save into config.log some information that might help in debugging.
2149   {
2150     echo
2151
2152     $as_echo "## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##"
2155     echo
2156     # The following way of writing the cache mishandles newlines in values,
2157 (
2158   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159     eval ac_val=\$$ac_var
2160     case $ac_val in #(
2161     *${as_nl}*)
2162       case $ac_var in #(
2163       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165       esac
2166       case $ac_var in #(
2167       _ | IFS | as_nl) ;; #(
2168       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169       *) { eval $ac_var=; unset $ac_var;} ;;
2170       esac ;;
2171     esac
2172   done
2173   (set) 2>&1 |
2174     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175     *${as_nl}ac_space=\ *)
2176       sed -n \
2177         "s/'\''/'\''\\\\'\'''\''/g;
2178           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179       ;; #(
2180     *)
2181       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182       ;;
2183     esac |
2184     sort
2185 )
2186     echo
2187
2188     $as_echo "## ----------------- ##
2189 ## Output variables. ##
2190 ## ----------------- ##"
2191     echo
2192     for ac_var in $ac_subst_vars
2193     do
2194       eval ac_val=\$$ac_var
2195       case $ac_val in
2196       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197       esac
2198       $as_echo "$ac_var='\''$ac_val'\''"
2199     done | sort
2200     echo
2201
2202     if test -n "$ac_subst_files"; then
2203       $as_echo "## ------------------- ##
2204 ## File substitutions. ##
2205 ## ------------------- ##"
2206       echo
2207       for ac_var in $ac_subst_files
2208       do
2209         eval ac_val=\$$ac_var
2210         case $ac_val in
2211         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212         esac
2213         $as_echo "$ac_var='\''$ac_val'\''"
2214       done | sort
2215       echo
2216     fi
2217
2218     if test -s confdefs.h; then
2219       $as_echo "## ----------- ##
2220 ## confdefs.h. ##
2221 ## ----------- ##"
2222       echo
2223       cat confdefs.h
2224       echo
2225     fi
2226     test "$ac_signal" != 0 &&
2227       $as_echo "$as_me: caught signal $ac_signal"
2228     $as_echo "$as_me: exit $exit_status"
2229   } >&5
2230   rm -f core *.core core.conftest.* &&
2231     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232     exit $exit_status
2233 ' 0
2234 for ac_signal in 1 2 13 15; do
2235   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 done
2237 ac_signal=0
2238
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2241
2242 $as_echo "/* confdefs.h */" > confdefs.h
2243
2244 # Predefined preprocessor variables.
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2268 _ACEOF
2269
2270
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2273 ac_site_file1=NONE
2274 ac_site_file2=NONE
2275 if test -n "$CONFIG_SITE"; then
2276   # We do not want a PATH search for config.site.
2277   case $CONFIG_SITE in #((
2278     -*)  ac_site_file1=./$CONFIG_SITE;;
2279     */*) ac_site_file1=$CONFIG_SITE;;
2280     *)   ac_site_file1=./$CONFIG_SITE;;
2281   esac
2282 elif test "x$prefix" != xNONE; then
2283   ac_site_file1=$prefix/share/config.site
2284   ac_site_file2=$prefix/etc/config.site
2285 else
2286   ac_site_file1=$ac_default_prefix/share/config.site
2287   ac_site_file2=$ac_default_prefix/etc/config.site
2288 fi
2289 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290 do
2291   test "x$ac_site_file" = xNONE && continue
2292   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295     sed 's/^/| /' "$ac_site_file" >&5
2296     . "$ac_site_file" \
2297       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 as_fn_error $? "failed to load site script $ac_site_file
2300 See \`config.log' for more details" "$LINENO" 5; }
2301   fi
2302 done
2303
2304 if test -r "$cache_file"; then
2305   # Some versions of bash will fail to source /dev/null (special files
2306   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2307   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309 $as_echo "$as_me: loading cache $cache_file" >&6;}
2310     case $cache_file in
2311       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312       *)                      . "./$cache_file";;
2313     esac
2314   fi
2315 else
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318   >$cache_file
2319 fi
2320
2321 # Check that the precious variables saved in the cache have kept the same
2322 # value.
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326   eval ac_new_set=\$ac_env_${ac_var}_set
2327   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328   eval ac_new_val=\$ac_env_${ac_var}_value
2329   case $ac_old_set,$ac_new_set in
2330     set,)
2331       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333       ac_cache_corrupted=: ;;
2334     ,set)
2335       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337       ac_cache_corrupted=: ;;
2338     ,);;
2339     *)
2340       if test "x$ac_old_val" != "x$ac_new_val"; then
2341         # differences in whitespace do not lead to failure.
2342         ac_old_val_w=`echo x $ac_old_val`
2343         ac_new_val_w=`echo x $ac_new_val`
2344         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347           ac_cache_corrupted=:
2348         else
2349           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351           eval $ac_var=\$ac_old_val
2352         fi
2353         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2354 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2355         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2357       fi;;
2358   esac
2359   # Pass precious variables to config.status.
2360   if test "$ac_new_set" = set; then
2361     case $ac_new_val in
2362     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363     *) ac_arg=$ac_var=$ac_new_val ;;
2364     esac
2365     case " $ac_configure_args " in
2366       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2367       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368     esac
2369   fi
2370 done
2371 if $ac_cache_corrupted; then
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377 fi
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389
2390
2391
2392
2393
2394 ac_aux_dir=
2395 for ac_dir in .. "$srcdir"/..; do
2396   if test -f "$ac_dir/install-sh"; then
2397     ac_aux_dir=$ac_dir
2398     ac_install_sh="$ac_aux_dir/install-sh -c"
2399     break
2400   elif test -f "$ac_dir/install.sh"; then
2401     ac_aux_dir=$ac_dir
2402     ac_install_sh="$ac_aux_dir/install.sh -c"
2403     break
2404   elif test -f "$ac_dir/shtool"; then
2405     ac_aux_dir=$ac_dir
2406     ac_install_sh="$ac_aux_dir/shtool install -c"
2407     break
2408   fi
2409 done
2410 if test -z "$ac_aux_dir"; then
2411   as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2412 fi
2413
2414 # These three variables are undocumented and unsupported,
2415 # and are intended to be withdrawn in a future Autoconf release.
2416 # They can cause serious problems if a builder's source tree is in a directory
2417 # whose full name contains unusual characters.
2418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2420 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2421
2422
2423 # Make sure we can run config.sub.
2424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2425   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2428 $as_echo_n "checking build system type... " >&6; }
2429 if ${ac_cv_build+:} false; then :
2430   $as_echo_n "(cached) " >&6
2431 else
2432   ac_build_alias=$build_alias
2433 test "x$ac_build_alias" = x &&
2434   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2435 test "x$ac_build_alias" = x &&
2436   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2437 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2438   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2439
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2442 $as_echo "$ac_cv_build" >&6; }
2443 case $ac_cv_build in
2444 *-*-*) ;;
2445 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2446 esac
2447 build=$ac_cv_build
2448 ac_save_IFS=$IFS; IFS='-'
2449 set x $ac_cv_build
2450 shift
2451 build_cpu=$1
2452 build_vendor=$2
2453 shift; shift
2454 # Remember, the first character of IFS is used to create $*,
2455 # except with old shells:
2456 build_os=$*
2457 IFS=$ac_save_IFS
2458 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2459
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462 $as_echo_n "checking host system type... " >&6; }
2463 if ${ac_cv_host+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   if test "x$host_alias" = x; then
2467   ac_cv_host=$ac_cv_build
2468 else
2469   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2471 fi
2472
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475 $as_echo "$ac_cv_host" >&6; }
2476 case $ac_cv_host in
2477 *-*-*) ;;
2478 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2479 esac
2480 host=$ac_cv_host
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_host
2483 shift
2484 host_cpu=$1
2485 host_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 host_os=$*
2490 IFS=$ac_save_IFS
2491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2492
2493
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495 $as_echo_n "checking target system type... " >&6; }
2496 if ${ac_cv_target+:} false; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test "x$target_alias" = x; then
2500   ac_cv_target=$ac_cv_host
2501 else
2502   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2504 fi
2505
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508 $as_echo "$ac_cv_target" >&6; }
2509 case $ac_cv_target in
2510 *-*-*) ;;
2511 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2512 esac
2513 target=$ac_cv_target
2514 ac_save_IFS=$IFS; IFS='-'
2515 set x $ac_cv_target
2516 shift
2517 target_cpu=$1
2518 target_vendor=$2
2519 shift; shift
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2522 target_os=$*
2523 IFS=$ac_save_IFS
2524 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2525
2526
2527 # The aliases save the names the user supplied, while $host etc.
2528 # will get canonicalized.
2529 test -n "$target_alias" &&
2530   test "$program_prefix$program_suffix$program_transform_name" = \
2531     NONENONEs,x,x, &&
2532   program_prefix=${target_alias}-
2533 # Expand $ac_aux_dir to an absolute path.
2534 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2535
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if ${ac_cv_prog_CC+:} false; then :
2547   $as_echo_n "(cached) " >&6
2548 else
2549   if test -n "$CC"; then
2550   ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557     for ac_exec_ext in '' $ac_executable_extensions; do
2558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564   done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2572 $as_echo "$CC" >&6; }
2573 else
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$ac_cv_prog_CC"; then
2581   ac_ct_CC=$CC
2582   # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2587   $as_echo_n "(cached) " >&6
2588 else
2589   if test -n "$ac_ct_CC"; then
2590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597     for ac_exec_ext in '' $ac_executable_extensions; do
2598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599     ac_cv_prog_ac_ct_CC="gcc"
2600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601     break 2
2602   fi
2603 done
2604   done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2612 $as_echo "$ac_ct_CC" >&6; }
2613 else
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2616 fi
2617
2618   if test "x$ac_ct_CC" = x; then
2619     CC=""
2620   else
2621     case $cross_compiling:$ac_tool_warned in
2622 yes:)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2625 ac_tool_warned=yes ;;
2626 esac
2627     CC=$ac_ct_CC
2628   fi
2629 else
2630   CC="$ac_cv_prog_CC"
2631 fi
2632
2633 if test -z "$CC"; then
2634           if test -n "$ac_tool_prefix"; then
2635     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}cc; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false; then :
2640   $as_echo_n "(cached) " >&6
2641 else
2642   if test -n "$CC"; then
2643   ac_cv_prog_CC="$CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650     for ac_exec_ext in '' $ac_executable_extensions; do
2651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652     ac_cv_prog_CC="${ac_tool_prefix}cc"
2653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657   done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 CC=$ac_cv_prog_CC
2663 if test -n "$CC"; then
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2666 else
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672   fi
2673 fi
2674 if test -z "$CC"; then
2675   # Extract the first word of "cc", so it can be a program name with args.
2676 set dummy cc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_CC+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   if test -n "$CC"; then
2683   ac_cv_prog_CC="$CC" # Let the user override the test.
2684 else
2685   ac_prog_rejected=no
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_exec_ext in '' $ac_executable_extensions; do
2692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2694        ac_prog_rejected=yes
2695        continue
2696      fi
2697     ac_cv_prog_CC="cc"
2698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702   done
2703 IFS=$as_save_IFS
2704
2705 if test $ac_prog_rejected = yes; then
2706   # We found a bogon in the path, so make sure we never use it.
2707   set dummy $ac_cv_prog_CC
2708   shift
2709   if test $# != 0; then
2710     # We chose a different compiler from the bogus one.
2711     # However, it has the same basename, so the bogon will be chosen
2712     # first if we set CC to just the basename; use the full file name.
2713     shift
2714     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2715   fi
2716 fi
2717 fi
2718 fi
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722 $as_echo "$CC" >&6; }
2723 else
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 fi
2730 if test -z "$CC"; then
2731   if test -n "$ac_tool_prefix"; then
2732   for ac_prog in cl.exe
2733   do
2734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_CC+:} false; then :
2739   $as_echo_n "(cached) " >&6
2740 else
2741   if test -n "$CC"; then
2742   ac_cv_prog_CC="$CC" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749     for ac_exec_ext in '' $ac_executable_extensions; do
2750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756   done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 $as_echo "$CC" >&6; }
2765 else
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771     test -n "$CC" && break
2772   done
2773 fi
2774 if test -z "$CC"; then
2775   ac_ct_CC=$CC
2776   for ac_prog in cl.exe
2777 do
2778   # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   if test -n "$ac_ct_CC"; then
2786   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795     ac_cv_prog_ac_ct_CC="$ac_prog"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 $as_echo "$ac_ct_CC" >&6; }
2809 else
2810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2813
2814
2815   test -n "$ac_ct_CC" && break
2816 done
2817
2818   if test "x$ac_ct_CC" = x; then
2819     CC=""
2820   else
2821     case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827     CC=$ac_ct_CC
2828   fi
2829 fi
2830
2831 fi
2832
2833
2834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 as_fn_error $? "no acceptable C compiler found in \$PATH
2837 See \`config.log' for more details" "$LINENO" 5; }
2838
2839 # Provide some information about the compiler.
2840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2841 set X $ac_compile
2842 ac_compiler=$2
2843 for ac_option in --version -v -V -qversion; do
2844   { { ac_try="$ac_compiler $ac_option >&5"
2845 case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850 $as_echo "$ac_try_echo"; } >&5
2851   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2852   ac_status=$?
2853   if test -s conftest.err; then
2854     sed '10a\
2855 ... rest of stderr output deleted ...
2856          10q' conftest.err >conftest.er1
2857     cat conftest.er1 >&5
2858   fi
2859   rm -f conftest.er1 conftest.err
2860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861   test $ac_status = 0; }
2862 done
2863
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h.  */
2866
2867 int
2868 main ()
2869 {
2870
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 ac_clean_files_save=$ac_clean_files
2876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2877 # Try to create an executable without -o first, disregard a.out.
2878 # It will help us diagnose broken compilers, and finding out an intuition
2879 # of exeext.
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2881 $as_echo_n "checking whether the C compiler works... " >&6; }
2882 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883
2884 # The possible output files:
2885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2886
2887 ac_rmfiles=
2888 for ac_file in $ac_files
2889 do
2890   case $ac_file in
2891     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2892     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2893   esac
2894 done
2895 rm -f $ac_rmfiles
2896
2897 if { { ac_try="$ac_link_default"
2898 case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904   (eval "$ac_link_default") 2>&5
2905   ac_status=$?
2906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907   test $ac_status = 0; }; then :
2908   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2910 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2911 # so that the user can short-circuit this test for compilers unknown to
2912 # Autoconf.
2913 for ac_file in $ac_files ''
2914 do
2915   test -f "$ac_file" || continue
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2918         ;;
2919     [ab].out )
2920         # We found the default executable, but exeext='' is most
2921         # certainly right.
2922         break;;
2923     *.* )
2924         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2925         then :; else
2926            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927         fi
2928         # We set ac_cv_exeext here because the later test for it is not
2929         # safe: cross compilers may not add the suffix if given an `-o'
2930         # argument, so we may need to know it at that point already.
2931         # Even if this section looks crufty: it has the advantage of
2932         # actually working.
2933         break;;
2934     * )
2935         break;;
2936   esac
2937 done
2938 test "$ac_cv_exeext" = no && ac_cv_exeext=
2939
2940 else
2941   ac_file=''
2942 fi
2943 if test -z "$ac_file"; then :
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error 77 "C compiler cannot create executables
2952 See \`config.log' for more details" "$LINENO" 5; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 fi
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2958 $as_echo_n "checking for C compiler default output file name... " >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2960 $as_echo "$ac_file" >&6; }
2961 ac_exeext=$ac_cv_exeext
2962
2963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2964 ac_clean_files=$ac_clean_files_save
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2966 $as_echo_n "checking for suffix of executables... " >&6; }
2967 if { { ac_try="$ac_link"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974   (eval "$ac_link") 2>&5
2975   ac_status=$?
2976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977   test $ac_status = 0; }; then :
2978   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2979 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2980 # work properly (i.e., refer to `conftest.exe'), while it won't with
2981 # `rm'.
2982 for ac_file in conftest.exe conftest conftest.*; do
2983   test -f "$ac_file" || continue
2984   case $ac_file in
2985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2986     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987           break;;
2988     * ) break;;
2989   esac
2990 done
2991 else
2992   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2995 See \`config.log' for more details" "$LINENO" 5; }
2996 fi
2997 rm -f conftest conftest$ac_cv_exeext
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2999 $as_echo "$ac_cv_exeext" >&6; }
3000
3001 rm -f conftest.$ac_ext
3002 EXEEXT=$ac_cv_exeext
3003 ac_exeext=$EXEEXT
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h.  */
3006 #include <stdio.h>
3007 int
3008 main ()
3009 {
3010 FILE *f = fopen ("conftest.out", "w");
3011  return ferror (f) || fclose (f) != 0;
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 ac_clean_files="$ac_clean_files conftest.out"
3018 # Check that the compiler produces executables we can run.  If not, either
3019 # the compiler is broken, or we cross compile.
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3021 $as_echo_n "checking whether we are cross compiling... " >&6; }
3022 if test "$cross_compiling" != yes; then
3023   { { ac_try="$ac_link"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030   (eval "$ac_link") 2>&5
3031   ac_status=$?
3032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033   test $ac_status = 0; }
3034   if { ac_try='./conftest$ac_cv_exeext'
3035   { { case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044   test $ac_status = 0; }; }; then
3045     cross_compiling=no
3046   else
3047     if test "$cross_compiling" = maybe; then
3048         cross_compiling=yes
3049     else
3050         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details" "$LINENO" 5; }
3055     fi
3056   fi
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3059 $as_echo "$cross_compiling" >&6; }
3060
3061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3062 ac_clean_files=$ac_clean_files_save
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3064 $as_echo_n "checking for suffix of object files... " >&6; }
3065 if ${ac_cv_objext+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.o conftest.obj
3080 if { { ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087   (eval "$ac_compile") 2>&5
3088   ac_status=$?
3089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090   test $ac_status = 0; }; then :
3091   for ac_file in conftest.o conftest.obj conftest.*; do
3092   test -f "$ac_file" || continue;
3093   case $ac_file in
3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3095     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096        break;;
3097   esac
3098 done
3099 else
3100   $as_echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105 as_fn_error $? "cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details" "$LINENO" 5; }
3107 fi
3108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3111 $as_echo "$ac_cv_objext" >&6; }
3112 OBJEXT=$ac_cv_objext
3113 ac_objext=$OBJEXT
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3116 if ${ac_cv_c_compiler_gnu+:} false; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125 #ifndef __GNUC__
3126        choke me
3127 #endif
3128
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 if ac_fn_c_try_compile "$LINENO"; then :
3134   ac_compiler_gnu=yes
3135 else
3136   ac_compiler_gnu=no
3137 fi
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3140
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3144 if test $ac_compiler_gnu = yes; then
3145   GCC=yes
3146 else
3147   GCC=
3148 fi
3149 ac_test_CFLAGS=${CFLAGS+set}
3150 ac_save_CFLAGS=$CFLAGS
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3153 if ${ac_cv_prog_cc_g+:} false; then :
3154   $as_echo_n "(cached) " >&6
3155 else
3156   ac_save_c_werror_flag=$ac_c_werror_flag
3157    ac_c_werror_flag=yes
3158    ac_cv_prog_cc_g=no
3159    CFLAGS="-g"
3160    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 if ac_fn_c_try_compile "$LINENO"; then :
3172   ac_cv_prog_cc_g=yes
3173 else
3174   CFLAGS=""
3175       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 if ac_fn_c_try_compile "$LINENO"; then :
3187
3188 else
3189   ac_c_werror_flag=$ac_save_c_werror_flag
3190          CFLAGS="-g"
3191          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"; then :
3203   ac_cv_prog_cc_g=yes
3204 fi
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210    ac_c_werror_flag=$ac_save_c_werror_flag
3211 fi
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3213 $as_echo "$ac_cv_prog_cc_g" >&6; }
3214 if test "$ac_test_CFLAGS" = set; then
3215   CFLAGS=$ac_save_CFLAGS
3216 elif test $ac_cv_prog_cc_g = yes; then
3217   if test "$GCC" = yes; then
3218     CFLAGS="-g -O2"
3219   else
3220     CFLAGS="-g"
3221   fi
3222 else
3223   if test "$GCC" = yes; then
3224     CFLAGS="-O2"
3225   else
3226     CFLAGS=
3227   fi
3228 fi
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3231 if ${ac_cv_prog_cc_c89+:} false; then :
3232   $as_echo_n "(cached) " >&6
3233 else
3234   ac_cv_prog_cc_c89=no
3235 ac_save_CC=$CC
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h.  */
3238 #include <stdarg.h>
3239 #include <stdio.h>
3240 struct stat;
3241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3242 struct buf { int x; };
3243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3244 static char *e (p, i)
3245      char **p;
3246      int i;
3247 {
3248   return p[i];
3249 }
3250 static char *f (char * (*g) (char **, int), char **p, ...)
3251 {
3252   char *s;
3253   va_list v;
3254   va_start (v,p);
3255   s = g (p, va_arg (v,int));
3256   va_end (v);
3257   return s;
3258 }
3259
3260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3261    function prototypes and stuff, but not '\xHH' hex character constants.
3262    These don't provoke an error unfortunately, instead are silently treated
3263    as 'x'.  The following induces an error, until -std is added to get
3264    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3265    array size at least.  It's necessary to write '\x00'==0 to get something
3266    that's true only with -std.  */
3267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268
3269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3270    inside strings and character constants.  */
3271 #define FOO(x) 'x'
3272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273
3274 int test (int i, double x);
3275 struct s1 {int (*f) (int a);};
3276 struct s2 {int (*f) (double a);};
3277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3278 int argc;
3279 char **argv;
3280 int
3281 main ()
3282 {
3283 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3289         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 do
3291   CC="$ac_save_CC $ac_arg"
3292   if ac_fn_c_try_compile "$LINENO"; then :
3293   ac_cv_prog_cc_c89=$ac_arg
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext
3296   test "x$ac_cv_prog_cc_c89" != "xno" && break
3297 done
3298 rm -f conftest.$ac_ext
3299 CC=$ac_save_CC
3300
3301 fi
3302 # AC_CACHE_VAL
3303 case "x$ac_cv_prog_cc_c89" in
3304   x)
3305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3306 $as_echo "none needed" >&6; } ;;
3307   xno)
3308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3309 $as_echo "unsupported" >&6; } ;;
3310   *)
3311     CC="$CC $ac_cv_prog_cc_c89"
3312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3314 esac
3315 if test "x$ac_cv_prog_cc_c89" != xno; then :
3316
3317 fi
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3331 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3332 if ${am_cv_prog_cc_c_o+:} false; then :
3333   $as_echo_n "(cached) " >&6
3334 else
3335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h.  */
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346   # Make sure it works both with $CC and with simple cc.
3347   # Following AC_PROG_CC_C_O, we do the test twice because some
3348   # compilers refuse to overwrite an existing .o file with -o,
3349   # though they will create one.
3350   am_cv_prog_cc_c_o=yes
3351   for am_i in 1 2; do
3352     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3353    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3354    ac_status=$?
3355    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356    (exit $ac_status); } \
3357          && test -f conftest2.$ac_objext; then
3358       : OK
3359     else
3360       am_cv_prog_cc_c_o=no
3361       break
3362     fi
3363   done
3364   rm -f core conftest*
3365   unset am_i
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3368 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3369 if test "$am_cv_prog_cc_c_o" != yes; then
3370    # Losing compiler, so override with the script.
3371    # FIXME: It is wrong to rewrite CC.
3372    # But if we don't then we get into trouble of one sort or another.
3373    # A longer-term fix would be to have automake use am__CC in this case,
3374    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3375    CC="$am_aux_dir/compile $CC"
3376 fi
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382
3383
3384
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3386 $as_echo_n "checking for library containing strerror... " >&6; }
3387 if ${ac_cv_search_strerror+:} false; then :
3388   $as_echo_n "(cached) " >&6
3389 else
3390   ac_func_search_save_LIBS=$LIBS
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h.  */
3393
3394 /* Override any GCC internal prototype to avoid an error.
3395    Use char because int might match the return type of a GCC
3396    builtin and then its argument prototype would still apply.  */
3397 #ifdef __cplusplus
3398 extern "C"
3399 #endif
3400 char strerror ();
3401 int
3402 main ()
3403 {
3404 return strerror ();
3405   ;
3406   return 0;
3407 }
3408 _ACEOF
3409 for ac_lib in '' cposix; do
3410   if test -z "$ac_lib"; then
3411     ac_res="none required"
3412   else
3413     ac_res=-l$ac_lib
3414     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3415   fi
3416   if ac_fn_c_try_link "$LINENO"; then :
3417   ac_cv_search_strerror=$ac_res
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext \
3420     conftest$ac_exeext
3421   if ${ac_cv_search_strerror+:} false; then :
3422   break
3423 fi
3424 done
3425 if ${ac_cv_search_strerror+:} false; then :
3426
3427 else
3428   ac_cv_search_strerror=no
3429 fi
3430 rm conftest.$ac_ext
3431 LIBS=$ac_func_search_save_LIBS
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3434 $as_echo "$ac_cv_search_strerror" >&6; }
3435 ac_res=$ac_cv_search_strerror
3436 if test "$ac_res" != no; then :
3437   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3438
3439 fi
3440
3441
3442 am__api_version='1.15'
3443
3444 # Find a good install program.  We prefer a C program (faster),
3445 # so one script is as good as another.  But avoid the broken or
3446 # incompatible versions:
3447 # SysV /etc/install, /usr/sbin/install
3448 # SunOS /usr/etc/install
3449 # IRIX /sbin/install
3450 # AIX /bin/install
3451 # AmigaOS /C/install, which installs bootblocks on floppy discs
3452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3455 # OS/2's system install, which has a completely different semantic
3456 # ./install, which can be erroneously created by make from ./install.sh.
3457 # Reject install programs that cannot install multiple files.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3460 if test -z "$INSTALL"; then
3461 if ${ac_cv_path_install+:} false; then :
3462   $as_echo_n "(cached) " >&6
3463 else
3464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469     # Account for people who put trailing slashes in PATH elements.
3470 case $as_dir/ in #((
3471   ./ | .// | /[cC]/* | \
3472   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3473   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3474   /usr/ucb/* ) ;;
3475   *)
3476     # OSF1 and SCO ODT 3.0 have their own names for install.
3477     # Don't use installbsd from OSF since it installs stuff as root
3478     # by default.
3479     for ac_prog in ginstall scoinst install; do
3480       for ac_exec_ext in '' $ac_executable_extensions; do
3481         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3482           if test $ac_prog = install &&
3483             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3484             # AIX install.  It has an incompatible calling convention.
3485             :
3486           elif test $ac_prog = install &&
3487             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488             # program-specific install script used by HP pwplus--don't use.
3489             :
3490           else
3491             rm -rf conftest.one conftest.two conftest.dir
3492             echo one > conftest.one
3493             echo two > conftest.two
3494             mkdir conftest.dir
3495             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3496               test -s conftest.one && test -s conftest.two &&
3497               test -s conftest.dir/conftest.one &&
3498               test -s conftest.dir/conftest.two
3499             then
3500               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3501               break 3
3502             fi
3503           fi
3504         fi
3505       done
3506     done
3507     ;;
3508 esac
3509
3510   done
3511 IFS=$as_save_IFS
3512
3513 rm -rf conftest.one conftest.two conftest.dir
3514
3515 fi
3516   if test "${ac_cv_path_install+set}" = set; then
3517     INSTALL=$ac_cv_path_install
3518   else
3519     # As a last resort, use the slow shell script.  Don't cache a
3520     # value for INSTALL within a source directory, because that will
3521     # break other packages using the cache if that directory is
3522     # removed, or if the value is a relative name.
3523     INSTALL=$ac_install_sh
3524   fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3527 $as_echo "$INSTALL" >&6; }
3528
3529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3530 # It thinks the first close brace ends the variable substitution.
3531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3532
3533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3534
3535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3536
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3538 $as_echo_n "checking whether build environment is sane... " >&6; }
3539 # Reject unsafe characters in $srcdir or the absolute working directory
3540 # name.  Accept space and tab only in the latter.
3541 am_lf='
3542 '
3543 case `pwd` in
3544   *[\\\"\#\$\&\'\`$am_lf]*)
3545     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3546 esac
3547 case $srcdir in
3548   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3549     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3550 esac
3551
3552 # Do 'set' in a subshell so we don't clobber the current shell's
3553 # arguments.  Must try -L first in case configure is actually a
3554 # symlink; some systems play weird games with the mod time of symlinks
3555 # (eg FreeBSD returns the mod time of the symlink's containing
3556 # directory).
3557 if (
3558    am_has_slept=no
3559    for am_try in 1 2; do
3560      echo "timestamp, slept: $am_has_slept" > conftest.file
3561      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3562      if test "$*" = "X"; then
3563         # -L didn't work.
3564         set X `ls -t "$srcdir/configure" conftest.file`
3565      fi
3566      if test "$*" != "X $srcdir/configure conftest.file" \
3567         && test "$*" != "X conftest.file $srcdir/configure"; then
3568
3569         # If neither matched, then we have a broken ls.  This can happen
3570         # if, for instance, CONFIG_SHELL is bash and it inherits a
3571         # broken ls alias from the environment.  This has actually
3572         # happened.  Such a system could not be considered "sane".
3573         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3574   alias in your environment" "$LINENO" 5
3575      fi
3576      if test "$2" = conftest.file || test $am_try -eq 2; then
3577        break
3578      fi
3579      # Just in case.
3580      sleep 1
3581      am_has_slept=yes
3582    done
3583    test "$2" = conftest.file
3584    )
3585 then
3586    # Ok.
3587    :
3588 else
3589    as_fn_error $? "newly created file is older than distributed files!
3590 Check your system clock" "$LINENO" 5
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593 $as_echo "yes" >&6; }
3594 # If we didn't sleep, we still need to ensure time stamps of config.status and
3595 # generated files are strictly newer.
3596 am_sleep_pid=
3597 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3598   ( sleep 1 ) &
3599   am_sleep_pid=$!
3600 fi
3601
3602 rm -f conftest.file
3603
3604 test "$program_prefix" != NONE &&
3605   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3606 # Use a double $ so make ignores it.
3607 test "$program_suffix" != NONE &&
3608   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3609 # Double any \ or $.
3610 # By default was `s,x,x', remove it if useless.
3611 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3612 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3613
3614 if test x"${MISSING+set}" != xset; then
3615   case $am_aux_dir in
3616   *\ * | *\     *)
3617     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3618   *)
3619     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3620   esac
3621 fi
3622 # Use eval to expand $SHELL
3623 if eval "$MISSING --is-lightweight"; then
3624   am_missing_run="$MISSING "
3625 else
3626   am_missing_run=
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3628 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3629 fi
3630
3631 if test x"${install_sh+set}" != xset; then
3632   case $am_aux_dir in
3633   *\ * | *\     *)
3634     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3635   *)
3636     install_sh="\${SHELL} $am_aux_dir/install-sh"
3637   esac
3638 fi
3639
3640 # Installed binaries are usually stripped using 'strip' when the user
3641 # run "make install-strip".  However 'strip' might not be the right
3642 # tool to use in cross-compilation environments, therefore Automake
3643 # will honor the 'STRIP' environment variable to overrule this program.
3644 if test "$cross_compiling" != no; then
3645   if test -n "$ac_tool_prefix"; then
3646   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3647 set dummy ${ac_tool_prefix}strip; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_STRIP+:} false; then :
3651   $as_echo_n "(cached) " >&6
3652 else
3653   if test -n "$STRIP"; then
3654   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661     for ac_exec_ext in '' $ac_executable_extensions; do
3662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 STRIP=$ac_cv_prog_STRIP
3674 if test -n "$STRIP"; then
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3676 $as_echo "$STRIP" >&6; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683 fi
3684 if test -z "$ac_cv_prog_STRIP"; then
3685   ac_ct_STRIP=$STRIP
3686   # Extract the first word of "strip", so it can be a program name with args.
3687 set dummy strip; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   if test -n "$ac_ct_STRIP"; then
3694   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701     for ac_exec_ext in '' $ac_executable_extensions; do
3702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703     ac_cv_prog_ac_ct_STRIP="strip"
3704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705     break 2
3706   fi
3707 done
3708   done
3709 IFS=$as_save_IFS
3710
3711 fi
3712 fi
3713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3714 if test -n "$ac_ct_STRIP"; then
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3716 $as_echo "$ac_ct_STRIP" >&6; }
3717 else
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722   if test "x$ac_ct_STRIP" = x; then
3723     STRIP=":"
3724   else
3725     case $cross_compiling:$ac_tool_warned in
3726 yes:)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3729 ac_tool_warned=yes ;;
3730 esac
3731     STRIP=$ac_ct_STRIP
3732   fi
3733 else
3734   STRIP="$ac_cv_prog_STRIP"
3735 fi
3736
3737 fi
3738 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3739
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3741 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3742 if test -z "$MKDIR_P"; then
3743   if ${ac_cv_path_mkdir+:} false; then :
3744   $as_echo_n "(cached) " >&6
3745 else
3746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751     for ac_prog in mkdir gmkdir; do
3752          for ac_exec_ext in '' $ac_executable_extensions; do
3753            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3754            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3755              'mkdir (GNU coreutils) '* | \
3756              'mkdir (coreutils) '* | \
3757              'mkdir (fileutils) '4.1*)
3758                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3759                break 3;;
3760            esac
3761          done
3762        done
3763   done
3764 IFS=$as_save_IFS
3765
3766 fi
3767
3768   test -d ./--version && rmdir ./--version
3769   if test "${ac_cv_path_mkdir+set}" = set; then
3770     MKDIR_P="$ac_cv_path_mkdir -p"
3771   else
3772     # As a last resort, use the slow shell script.  Don't cache a
3773     # value for MKDIR_P within a source directory, because that will
3774     # break other packages using the cache if that directory is
3775     # removed, or if the value is a relative name.
3776     MKDIR_P="$ac_install_sh -d"
3777   fi
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3780 $as_echo "$MKDIR_P" >&6; }
3781
3782 for ac_prog in gawk mawk nawk awk
3783 do
3784   # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_AWK+:} false; then :
3789   $as_echo_n "(cached) " >&6
3790 else
3791   if test -n "$AWK"; then
3792   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799     for ac_exec_ext in '' $ac_executable_extensions; do
3800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801     ac_cv_prog_AWK="$ac_prog"
3802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803     break 2
3804   fi
3805 done
3806   done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 AWK=$ac_cv_prog_AWK
3812 if test -n "$AWK"; then
3813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3814 $as_echo "$AWK" >&6; }
3815 else
3816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821   test -n "$AWK" && break
3822 done
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3825 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3826 set x ${MAKE-make}
3827 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3828 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3829   $as_echo_n "(cached) " >&6
3830 else
3831   cat >conftest.make <<\_ACEOF
3832 SHELL = /bin/sh
3833 all:
3834         @echo '@@@%%%=$(MAKE)=@@@%%%'
3835 _ACEOF
3836 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3837 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3838   *@@@%%%=?*=@@@%%%*)
3839     eval ac_cv_prog_make_${ac_make}_set=yes;;
3840   *)
3841     eval ac_cv_prog_make_${ac_make}_set=no;;
3842 esac
3843 rm -f conftest.make
3844 fi
3845 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847 $as_echo "yes" >&6; }
3848   SET_MAKE=
3849 else
3850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852   SET_MAKE="MAKE=${MAKE-make}"
3853 fi
3854
3855 rm -rf .tst 2>/dev/null
3856 mkdir .tst 2>/dev/null
3857 if test -d .tst; then
3858   am__leading_dot=.
3859 else
3860   am__leading_dot=_
3861 fi
3862 rmdir .tst 2>/dev/null
3863
3864 DEPDIR="${am__leading_dot}deps"
3865
3866 ac_config_commands="$ac_config_commands depfiles"
3867
3868
3869 am_make=${MAKE-make}
3870 cat > confinc << 'END'
3871 am__doit:
3872         @echo this is the am__doit target
3873 .PHONY: am__doit
3874 END
3875 # If we don't find an include directive, just comment out the code.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3877 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3878 am__include="#"
3879 am__quote=
3880 _am_result=none
3881 # First try GNU make style include.
3882 echo "include confinc" > confmf
3883 # Ignore all kinds of additional output from 'make'.
3884 case `$am_make -s -f confmf 2> /dev/null` in #(
3885 *the\ am__doit\ target*)
3886   am__include=include
3887   am__quote=
3888   _am_result=GNU
3889   ;;
3890 esac
3891 # Now try BSD make style include.
3892 if test "$am__include" = "#"; then
3893    echo '.include "confinc"' > confmf
3894    case `$am_make -s -f confmf 2> /dev/null` in #(
3895    *the\ am__doit\ target*)
3896      am__include=.include
3897      am__quote="\""
3898      _am_result=BSD
3899      ;;
3900    esac
3901 fi
3902
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3905 $as_echo "$_am_result" >&6; }
3906 rm -f confinc confmf
3907
3908 # Check whether --enable-dependency-tracking was given.
3909 if test "${enable_dependency_tracking+set}" = set; then :
3910   enableval=$enable_dependency_tracking;
3911 fi
3912
3913 if test "x$enable_dependency_tracking" != xno; then
3914   am_depcomp="$ac_aux_dir/depcomp"
3915   AMDEPBACKSLASH='\'
3916   am__nodep='_no'
3917 fi
3918  if test "x$enable_dependency_tracking" != xno; then
3919   AMDEP_TRUE=
3920   AMDEP_FALSE='#'
3921 else
3922   AMDEP_TRUE='#'
3923   AMDEP_FALSE=
3924 fi
3925
3926
3927 # Check whether --enable-silent-rules was given.
3928 if test "${enable_silent_rules+set}" = set; then :
3929   enableval=$enable_silent_rules;
3930 fi
3931
3932 case $enable_silent_rules in # (((
3933   yes) AM_DEFAULT_VERBOSITY=0;;
3934    no) AM_DEFAULT_VERBOSITY=1;;
3935     *) AM_DEFAULT_VERBOSITY=1;;
3936 esac
3937 am_make=${MAKE-make}
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3939 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3940 if ${am_cv_make_support_nested_variables+:} false; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   if $as_echo 'TRUE=$(BAR$(V))
3944 BAR0=false
3945 BAR1=true
3946 V=1
3947 am__doit:
3948         @$(TRUE)
3949 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3950   am_cv_make_support_nested_variables=yes
3951 else
3952   am_cv_make_support_nested_variables=no
3953 fi
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3956 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3957 if test $am_cv_make_support_nested_variables = yes; then
3958     AM_V='$(V)'
3959   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3960 else
3961   AM_V=$AM_DEFAULT_VERBOSITY
3962   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3963 fi
3964 AM_BACKSLASH='\'
3965
3966 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3967   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3968   # is not polluted with repeated "-I."
3969   am__isrc=' -I$(srcdir)'
3970   # test to see if srcdir already configured
3971   if test -f $srcdir/config.status; then
3972     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3973   fi
3974 fi
3975
3976 # test whether we have cygpath
3977 if test -z "$CYGPATH_W"; then
3978   if (cygpath --version) >/dev/null 2>/dev/null; then
3979     CYGPATH_W='cygpath -w'
3980   else
3981     CYGPATH_W=echo
3982   fi
3983 fi
3984
3985
3986 # Define the identity of the package.
3987  PACKAGE='gas'
3988  VERSION='2.32'
3989
3990
3991 cat >>confdefs.h <<_ACEOF
3992 #define PACKAGE "$PACKAGE"
3993 _ACEOF
3994
3995
3996 cat >>confdefs.h <<_ACEOF
3997 #define VERSION "$VERSION"
3998 _ACEOF
3999
4000 # Some tools Automake needs.
4001
4002 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4003
4004
4005 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4006
4007
4008 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4009
4010
4011 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4012
4013
4014 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4015
4016 # For better backward compatibility.  To be removed once Automake 1.9.x
4017 # dies out for good.  For more background, see:
4018 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4019 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4020 mkdir_p='$(MKDIR_P)'
4021
4022 # We need awk for the "check" target (and possibly the TAP driver).  The
4023 # system "awk" is bad on some platforms.
4024 # Always define AMTAR for backward compatibility.  Yes, it's still used
4025 # in the wild :-(  We should find a proper way to deprecate it ...
4026 AMTAR='$${TAR-tar}'
4027
4028
4029 # We'll loop over all known methods to create a tar archive until one works.
4030 _am_tools='gnutar  pax cpio none'
4031
4032 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4033
4034
4035
4036
4037
4038 depcc="$CC"   am_compiler_list=
4039
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041 $as_echo_n "checking dependency style of $depcc... " >&6; }
4042 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4043   $as_echo_n "(cached) " >&6
4044 else
4045   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046   # We make a subdir and do the tests there.  Otherwise we can end up
4047   # making bogus files that we don't know about and never remove.  For
4048   # instance it was reported that on HP-UX the gcc test will end up
4049   # making a dummy file named 'D' -- because '-MD' means "put the output
4050   # in D".
4051   rm -rf conftest.dir
4052   mkdir conftest.dir
4053   # Copy depcomp to subdir because otherwise we won't find it if we're
4054   # using a relative directory.
4055   cp "$am_depcomp" conftest.dir
4056   cd conftest.dir
4057   # We will build objects and dependencies in a subdirectory because
4058   # it helps to detect inapplicable dependency modes.  For instance
4059   # both Tru64's cc and ICC support -MD to output dependencies as a
4060   # side effect of compilation, but ICC will put the dependencies in
4061   # the current directory while Tru64 will put them in the object
4062   # directory.
4063   mkdir sub
4064
4065   am_cv_CC_dependencies_compiler_type=none
4066   if test "$am_compiler_list" = ""; then
4067      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068   fi
4069   am__universal=false
4070   case " $depcc " in #(
4071      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072      esac
4073
4074   for depmode in $am_compiler_list; do
4075     # Setup a source with many dependencies, because some compilers
4076     # like to wrap large dependency lists on column 80 (with \), and
4077     # we should not choose a depcomp mode which is confused by this.
4078     #
4079     # We need to recreate these files for each test, as the compiler may
4080     # overwrite some of them when testing with obscure command lines.
4081     # This happens at least with the AIX C compiler.
4082     : > sub/conftest.c
4083     for i in 1 2 3 4 5 6; do
4084       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4086       # Solaris 10 /bin/sh.
4087       echo '/* dummy */' > sub/conftst$i.h
4088     done
4089     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090
4091     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4092     # mode.  It turns out that the SunPro C++ compiler does not properly
4093     # handle '-M -o', and we need to detect this.  Also, some Intel
4094     # versions had trouble with output in subdirs.
4095     am__obj=sub/conftest.${OBJEXT-o}
4096     am__minus_obj="-o $am__obj"
4097     case $depmode in
4098     gcc)
4099       # This depmode causes a compiler race in universal mode.
4100       test "$am__universal" = false || continue
4101       ;;
4102     nosideeffect)
4103       # After this tag, mechanisms are not by side-effect, so they'll
4104       # only be used when explicitly requested.
4105       if test "x$enable_dependency_tracking" = xyes; then
4106         continue
4107       else
4108         break
4109       fi
4110       ;;
4111     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4112       # This compiler won't grok '-c -o', but also, the minuso test has
4113       # not run yet.  These depmodes are late enough in the game, and
4114       # so weak that their functioning should not be impacted.
4115       am__obj=conftest.${OBJEXT-o}
4116       am__minus_obj=
4117       ;;
4118     none) break ;;
4119     esac
4120     if depmode=$depmode \
4121        source=sub/conftest.c object=$am__obj \
4122        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4123        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4124          >/dev/null 2>conftest.err &&
4125        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4126        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4127        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4128        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4129       # icc doesn't choke on unknown options, it will just issue warnings
4130       # or remarks (even with -Werror).  So we grep stderr for any message
4131       # that says an option was ignored or not supported.
4132       # When given -MP, icc 7.0 and 7.1 complain thusly:
4133       #   icc: Command line warning: ignoring option '-M'; no argument required
4134       # The diagnosis changed in icc 8.0:
4135       #   icc: Command line remark: option '-MP' not supported
4136       if (grep 'ignoring option' conftest.err ||
4137           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4138         am_cv_CC_dependencies_compiler_type=$depmode
4139         break
4140       fi
4141     fi
4142   done
4143
4144   cd ..
4145   rm -rf conftest.dir
4146 else
4147   am_cv_CC_dependencies_compiler_type=none
4148 fi
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4152 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4153 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4154
4155  if
4156   test "x$enable_dependency_tracking" != xno \
4157   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4158   am__fastdepCC_TRUE=
4159   am__fastdepCC_FALSE='#'
4160 else
4161   am__fastdepCC_TRUE='#'
4162   am__fastdepCC_FALSE=
4163 fi
4164
4165
4166
4167 # POSIX will say in a future version that running "rm -f" with no argument
4168 # is OK; and we want to be able to make that assumption in our Makefile
4169 # recipes.  So use an aggressive probe to check that the usage we want is
4170 # actually supported "in the wild" to an acceptable degree.
4171 # See automake bug#10828.
4172 # To make any issue more visible, cause the running configure to be aborted
4173 # by default if the 'rm' program in use doesn't match our expectations; the
4174 # user can still override this though.
4175 if rm -f && rm -fr && rm -rf; then : OK; else
4176   cat >&2 <<'END'
4177 Oops!
4178
4179 Your 'rm' program seems unable to run without file operands specified
4180 on the command line, even when the '-f' option is present.  This is contrary
4181 to the behaviour of most rm programs out there, and not conforming with
4182 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4183
4184 Please tell bug-automake@gnu.org about your system, including the value
4185 of your $PATH and any error possibly output before this message.  This
4186 can help us improve future automake versions.
4187
4188 END
4189   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4190     echo 'Configuration will proceed anyway, since you have set the' >&2
4191     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4192     echo >&2
4193   else
4194     cat >&2 <<'END'
4195 Aborting the configuration process, to ensure you take notice of the issue.
4196
4197 You can download and install GNU coreutils to get an 'rm' implementation
4198 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4199
4200 If you want to complete the configuration process using your problematic
4201 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4202 to "yes", and re-run configure.
4203
4204 END
4205     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4206   fi
4207 fi
4208
4209
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 if test -n "$ac_tool_prefix"; then
4216   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_CC+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   if test -n "$CC"; then
4224   ac_cv_prog_CC="$CC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231     for ac_exec_ext in '' $ac_executable_extensions; do
4232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238   done
4239 IFS=$as_save_IFS
4240
4241 fi
4242 fi
4243 CC=$ac_cv_prog_CC
4244 if test -n "$CC"; then
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4246 $as_echo "$CC" >&6; }
4247 else
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252
4253 fi
4254 if test -z "$ac_cv_prog_CC"; then
4255   ac_ct_CC=$CC
4256   # Extract the first word of "gcc", so it can be a program name with args.
4257 set dummy gcc; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   if test -n "$ac_ct_CC"; then
4264   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_exec_ext in '' $ac_executable_extensions; do
4272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_ac_ct_CC="gcc"
4274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278   done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4286 $as_echo "$ac_ct_CC" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292   if test "x$ac_ct_CC" = x; then
4293     CC=""
4294   else
4295     case $cross_compiling:$ac_tool_warned in
4296 yes:)
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299 ac_tool_warned=yes ;;
4300 esac
4301     CC=$ac_ct_CC
4302   fi
4303 else
4304   CC="$ac_cv_prog_CC"
4305 fi
4306
4307 if test -z "$CC"; then
4308           if test -n "$ac_tool_prefix"; then
4309     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}cc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CC+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   if test -n "$CC"; then
4317   ac_cv_prog_CC="$CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_CC="${ac_tool_prefix}cc"
4327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331   done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 CC=$ac_cv_prog_CC
4337 if test -n "$CC"; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339 $as_echo "$CC" >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343 fi
4344
4345
4346   fi
4347 fi
4348 if test -z "$CC"; then
4349   # Extract the first word of "cc", so it can be a program name with args.
4350 set dummy cc; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_CC+:} false; then :
4354   $as_echo_n "(cached) " >&6
4355 else
4356   if test -n "$CC"; then
4357   ac_cv_prog_CC="$CC" # Let the user override the test.
4358 else
4359   ac_prog_rejected=no
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4368        ac_prog_rejected=yes
4369        continue
4370      fi
4371     ac_cv_prog_CC="cc"
4372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376   done
4377 IFS=$as_save_IFS
4378
4379 if test $ac_prog_rejected = yes; then
4380   # We found a bogon in the path, so make sure we never use it.
4381   set dummy $ac_cv_prog_CC
4382   shift
4383   if test $# != 0; then
4384     # We chose a different compiler from the bogus one.
4385     # However, it has the same basename, so the bogon will be chosen
4386     # first if we set CC to just the basename; use the full file name.
4387     shift
4388     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4389   fi
4390 fi
4391 fi
4392 fi
4393 CC=$ac_cv_prog_CC
4394 if test -n "$CC"; then
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396 $as_echo "$CC" >&6; }
4397 else
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402
4403 fi
4404 if test -z "$CC"; then
4405   if test -n "$ac_tool_prefix"; then
4406   for ac_prog in cl.exe
4407   do
4408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_CC+:} false; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415   if test -n "$CC"; then
4416   ac_cv_prog_CC="$CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423     for ac_exec_ext in '' $ac_executable_extensions; do
4424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430   done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 CC=$ac_cv_prog_CC
4436 if test -n "$CC"; then
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438 $as_echo "$CC" >&6; }
4439 else
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444
4445     test -n "$CC" && break
4446   done
4447 fi
4448 if test -z "$CC"; then
4449   ac_ct_CC=$CC
4450   for ac_prog in cl.exe
4451 do
4452   # Extract the first word of "$ac_prog", so it can be a program name with args.
4453 set dummy $ac_prog; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459   if test -n "$ac_ct_CC"; then
4460   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467     for ac_exec_ext in '' $ac_executable_extensions; do
4468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469     ac_cv_prog_ac_ct_CC="$ac_prog"
4470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474   done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4480 if test -n "$ac_ct_CC"; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4482 $as_echo "$ac_ct_CC" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488
4489   test -n "$ac_ct_CC" && break
4490 done
4491
4492   if test "x$ac_ct_CC" = x; then
4493     CC=""
4494   else
4495     case $cross_compiling:$ac_tool_warned in
4496 yes:)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned=yes ;;
4500 esac
4501     CC=$ac_ct_CC
4502   fi
4503 fi
4504
4505 fi
4506
4507
4508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error $? "no acceptable C compiler found in \$PATH
4511 See \`config.log' for more details" "$LINENO" 5; }
4512
4513 # Provide some information about the compiler.
4514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4515 set X $ac_compile
4516 ac_compiler=$2
4517 for ac_option in --version -v -V -qversion; do
4518   { { ac_try="$ac_compiler $ac_option >&5"
4519 case "(($ac_try" in
4520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521   *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4526   ac_status=$?
4527   if test -s conftest.err; then
4528     sed '10a\
4529 ... rest of stderr output deleted ...
4530          10q' conftest.err >conftest.er1
4531     cat conftest.er1 >&5
4532   fi
4533   rm -f conftest.er1 conftest.err
4534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535   test $ac_status = 0; }
4536 done
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4539 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4540 if ${ac_cv_c_compiler_gnu+:} false; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h.  */
4545
4546 int
4547 main ()
4548 {
4549 #ifndef __GNUC__
4550        choke me
4551 #endif
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558   ac_compiler_gnu=yes
4559 else
4560   ac_compiler_gnu=no
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4564
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4568 if test $ac_compiler_gnu = yes; then
4569   GCC=yes
4570 else
4571   GCC=
4572 fi
4573 ac_test_CFLAGS=${CFLAGS+set}
4574 ac_save_CFLAGS=$CFLAGS
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4577 if ${ac_cv_prog_cc_g+:} false; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580   ac_save_c_werror_flag=$ac_c_werror_flag
4581    ac_c_werror_flag=yes
4582    ac_cv_prog_cc_g=no
4583    CFLAGS="-g"
4584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h.  */
4586
4587 int
4588 main ()
4589 {
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 if ac_fn_c_try_compile "$LINENO"; then :
4596   ac_cv_prog_cc_g=yes
4597 else
4598   CFLAGS=""
4599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h.  */
4601
4602 int
4603 main ()
4604 {
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611
4612 else
4613   ac_c_werror_flag=$ac_save_c_werror_flag
4614          CFLAGS="-g"
4615          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h.  */
4617
4618 int
4619 main ()
4620 {
4621
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627   ac_cv_prog_cc_g=yes
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634    ac_c_werror_flag=$ac_save_c_werror_flag
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4637 $as_echo "$ac_cv_prog_cc_g" >&6; }
4638 if test "$ac_test_CFLAGS" = set; then
4639   CFLAGS=$ac_save_CFLAGS
4640 elif test $ac_cv_prog_cc_g = yes; then
4641   if test "$GCC" = yes; then
4642     CFLAGS="-g -O2"
4643   else
4644     CFLAGS="-g"
4645   fi
4646 else
4647   if test "$GCC" = yes; then
4648     CFLAGS="-O2"
4649   else
4650     CFLAGS=
4651   fi
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4654 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4655 if ${ac_cv_prog_cc_c89+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   ac_cv_prog_cc_c89=no
4659 ac_save_CC=$CC
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662 #include <stdarg.h>
4663 #include <stdio.h>
4664 struct stat;
4665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4666 struct buf { int x; };
4667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4668 static char *e (p, i)
4669      char **p;
4670      int i;
4671 {
4672   return p[i];
4673 }
4674 static char *f (char * (*g) (char **, int), char **p, ...)
4675 {
4676   char *s;
4677   va_list v;
4678   va_start (v,p);
4679   s = g (p, va_arg (v,int));
4680   va_end (v);
4681   return s;
4682 }
4683
4684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4685    function prototypes and stuff, but not '\xHH' hex character constants.
4686    These don't provoke an error unfortunately, instead are silently treated
4687    as 'x'.  The following induces an error, until -std is added to get
4688    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4689    array size at least.  It's necessary to write '\x00'==0 to get something
4690    that's true only with -std.  */
4691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4692
4693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4694    inside strings and character constants.  */
4695 #define FOO(x) 'x'
4696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4697
4698 int test (int i, double x);
4699 struct s1 {int (*f) (int a);};
4700 struct s2 {int (*f) (double a);};
4701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4702 int argc;
4703 char **argv;
4704 int
4705 main ()
4706 {
4707 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4713         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4714 do
4715   CC="$ac_save_CC $ac_arg"
4716   if ac_fn_c_try_compile "$LINENO"; then :
4717   ac_cv_prog_cc_c89=$ac_arg
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext
4720   test "x$ac_cv_prog_cc_c89" != "xno" && break
4721 done
4722 rm -f conftest.$ac_ext
4723 CC=$ac_save_CC
4724
4725 fi
4726 # AC_CACHE_VAL
4727 case "x$ac_cv_prog_cc_c89" in
4728   x)
4729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730 $as_echo "none needed" >&6; } ;;
4731   xno)
4732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733 $as_echo "unsupported" >&6; } ;;
4734   *)
4735     CC="$CC $ac_cv_prog_cc_c89"
4736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4738 esac
4739 if test "x$ac_cv_prog_cc_c89" != xno; then :
4740
4741 fi
4742
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749 ac_ext=c
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4755 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4756 if ${am_cv_prog_cc_c_o+:} false; then :
4757   $as_echo_n "(cached) " >&6
4758 else
4759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h.  */
4761
4762 int
4763 main ()
4764 {
4765
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770   # Make sure it works both with $CC and with simple cc.
4771   # Following AC_PROG_CC_C_O, we do the test twice because some
4772   # compilers refuse to overwrite an existing .o file with -o,
4773   # though they will create one.
4774   am_cv_prog_cc_c_o=yes
4775   for am_i in 1 2; do
4776     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4777    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4778    ac_status=$?
4779    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780    (exit $ac_status); } \
4781          && test -f conftest2.$ac_objext; then
4782       : OK
4783     else
4784       am_cv_prog_cc_c_o=no
4785       break
4786     fi
4787   done
4788   rm -f core conftest*
4789   unset am_i
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4792 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4793 if test "$am_cv_prog_cc_c_o" != yes; then
4794    # Losing compiler, so override with the script.
4795    # FIXME: It is wrong to rewrite CC.
4796    # But if we don't then we get into trouble of one sort or another.
4797    # A longer-term fix would be to have automake use am__CC in this case,
4798    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4799    CC="$am_aux_dir/compile $CC"
4800 fi
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4815 # On Suns, sometimes $CPP names a directory.
4816 if test -n "$CPP" && test -d "$CPP"; then
4817   CPP=
4818 fi
4819 if test -z "$CPP"; then
4820   if ${ac_cv_prog_CPP+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823       # Double quotes because CPP needs to be expanded
4824     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4825     do
4826       ac_preproc_ok=false
4827 for ac_c_preproc_warn_flag in '' yes
4828 do
4829   # Use a header file that comes with gcc, so configuring glibc
4830   # with a fresh cross-compiler works.
4831   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4832   # <limits.h> exists even on freestanding compilers.
4833   # On the NeXT, cc -E runs the code through the compiler's parser,
4834   # not just through cpp. "Syntax error" is here to catch this case.
4835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h.  */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842                      Syntax error
4843 _ACEOF
4844 if ac_fn_c_try_cpp "$LINENO"; then :
4845
4846 else
4847   # Broken: fails on valid input.
4848 continue
4849 fi
4850 rm -f conftest.err conftest.i conftest.$ac_ext
4851
4852   # OK, works on sane cases.  Now check whether nonexistent headers
4853   # can be detected and how.
4854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856 #include <ac_nonexistent.h>
4857 _ACEOF
4858 if ac_fn_c_try_cpp "$LINENO"; then :
4859   # Broken: success on invalid input.
4860 continue
4861 else
4862   # Passes both tests.
4863 ac_preproc_ok=:
4864 break
4865 fi
4866 rm -f conftest.err conftest.i conftest.$ac_ext
4867
4868 done
4869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4870 rm -f conftest.i conftest.err conftest.$ac_ext
4871 if $ac_preproc_ok; then :
4872   break
4873 fi
4874
4875     done
4876     ac_cv_prog_CPP=$CPP
4877
4878 fi
4879   CPP=$ac_cv_prog_CPP
4880 else
4881   ac_cv_prog_CPP=$CPP
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4884 $as_echo "$CPP" >&6; }
4885 ac_preproc_ok=false
4886 for ac_c_preproc_warn_flag in '' yes
4887 do
4888   # Use a header file that comes with gcc, so configuring glibc
4889   # with a fresh cross-compiler works.
4890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4891   # <limits.h> exists even on freestanding compilers.
4892   # On the NeXT, cc -E runs the code through the compiler's parser,
4893   # not just through cpp. "Syntax error" is here to catch this case.
4894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h.  */
4896 #ifdef __STDC__
4897 # include <limits.h>
4898 #else
4899 # include <assert.h>
4900 #endif
4901                      Syntax error
4902 _ACEOF
4903 if ac_fn_c_try_cpp "$LINENO"; then :
4904
4905 else
4906   # Broken: fails on valid input.
4907 continue
4908 fi
4909 rm -f conftest.err conftest.i conftest.$ac_ext
4910
4911   # OK, works on sane cases.  Now check whether nonexistent headers
4912   # can be detected and how.
4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h.  */
4915 #include <ac_nonexistent.h>
4916 _ACEOF
4917 if ac_fn_c_try_cpp "$LINENO"; then :
4918   # Broken: success on invalid input.
4919 continue
4920 else
4921   # Passes both tests.
4922 ac_preproc_ok=:
4923 break
4924 fi
4925 rm -f conftest.err conftest.i conftest.$ac_ext
4926
4927 done
4928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4929 rm -f conftest.i conftest.err conftest.$ac_ext
4930 if $ac_preproc_ok; then :
4931
4932 else
4933   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4935 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4936 See \`config.log' for more details" "$LINENO" 5; }
4937 fi
4938
4939 ac_ext=c
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4948 if ${ac_cv_path_GREP+:} false; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   if test -z "$GREP"; then
4952   ac_path_GREP_found=false
4953   # Loop through the user's path and test for each of PROGNAME-LIST
4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959     for ac_prog in grep ggrep; do
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4962       as_fn_executable_p "$ac_path_GREP" || continue
4963 # Check for GNU ac_path_GREP and select it if it is found.
4964   # Check for GNU $ac_path_GREP
4965 case `"$ac_path_GREP" --version 2>&1` in
4966 *GNU*)
4967   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4968 *)
4969   ac_count=0
4970   $as_echo_n 0123456789 >"conftest.in"
4971   while :
4972   do
4973     cat "conftest.in" "conftest.in" >"conftest.tmp"
4974     mv "conftest.tmp" "conftest.in"
4975     cp "conftest.in" "conftest.nl"
4976     $as_echo 'GREP' >> "conftest.nl"
4977     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4978     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4979     as_fn_arith $ac_count + 1 && ac_count=$as_val
4980     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4981       # Best one so far, save it but keep looking for a better one
4982       ac_cv_path_GREP="$ac_path_GREP"
4983       ac_path_GREP_max=$ac_count
4984     fi
4985     # 10*(2^10) chars as input seems more than enough
4986     test $ac_count -gt 10 && break
4987   done
4988   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4989 esac
4990
4991       $ac_path_GREP_found && break 3
4992     done
4993   done
4994   done
4995 IFS=$as_save_IFS
4996   if test -z "$ac_cv_path_GREP"; then
4997     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4998   fi
4999 else
5000   ac_cv_path_GREP=$GREP
5001 fi
5002
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5005 $as_echo "$ac_cv_path_GREP" >&6; }
5006  GREP="$ac_cv_path_GREP"
5007
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5010 $as_echo_n "checking for egrep... " >&6; }
5011 if ${ac_cv_path_EGREP+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5015    then ac_cv_path_EGREP="$GREP -E"
5016    else
5017      if test -z "$EGREP"; then
5018   ac_path_EGREP_found=false
5019   # Loop through the user's path and test for each of PROGNAME-LIST
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025     for ac_prog in egrep; do
5026     for ac_exec_ext in '' $ac_executable_extensions; do
5027       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5028       as_fn_executable_p "$ac_path_EGREP" || continue
5029 # Check for GNU ac_path_EGREP and select it if it is found.
5030   # Check for GNU $ac_path_EGREP
5031 case `"$ac_path_EGREP" --version 2>&1` in
5032 *GNU*)
5033   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5034 *)
5035   ac_count=0
5036   $as_echo_n 0123456789 >"conftest.in"
5037   while :
5038   do
5039     cat "conftest.in" "conftest.in" >"conftest.tmp"
5040     mv "conftest.tmp" "conftest.in"
5041     cp "conftest.in" "conftest.nl"
5042     $as_echo 'EGREP' >> "conftest.nl"
5043     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045     as_fn_arith $ac_count + 1 && ac_count=$as_val
5046     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5047       # Best one so far, save it but keep looking for a better one
5048       ac_cv_path_EGREP="$ac_path_EGREP"
5049       ac_path_EGREP_max=$ac_count
5050     fi
5051     # 10*(2^10) chars as input seems more than enough
5052     test $ac_count -gt 10 && break
5053   done
5054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 esac
5056
5057       $ac_path_EGREP_found && break 3
5058     done
5059   done
5060   done
5061 IFS=$as_save_IFS
5062   if test -z "$ac_cv_path_EGREP"; then
5063     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064   fi
5065 else
5066   ac_cv_path_EGREP=$EGREP
5067 fi
5068
5069    fi
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5072 $as_echo "$ac_cv_path_EGREP" >&6; }
5073  EGREP="$ac_cv_path_EGREP"
5074
5075
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5077 $as_echo_n "checking for ANSI C header files... " >&6; }
5078 if ${ac_cv_header_stdc+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h.  */
5083 #include <stdlib.h>
5084 #include <stdarg.h>
5085 #include <string.h>
5086 #include <float.h>
5087
5088 int
5089 main ()
5090 {
5091
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 if ac_fn_c_try_compile "$LINENO"; then :
5097   ac_cv_header_stdc=yes
5098 else
5099   ac_cv_header_stdc=no
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102
5103 if test $ac_cv_header_stdc = yes; then
5104   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h.  */
5107 #include <string.h>
5108
5109 _ACEOF
5110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5111   $EGREP "memchr" >/dev/null 2>&1; then :
5112
5113 else
5114   ac_cv_header_stdc=no
5115 fi
5116 rm -f conftest*
5117
5118 fi
5119
5120 if test $ac_cv_header_stdc = yes; then
5121   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124 #include <stdlib.h>
5125
5126 _ACEOF
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128   $EGREP "free" >/dev/null 2>&1; then :
5129
5130 else
5131   ac_cv_header_stdc=no
5132 fi
5133 rm -f conftest*
5134
5135 fi
5136
5137 if test $ac_cv_header_stdc = yes; then
5138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5139   if test "$cross_compiling" = yes; then :
5140   :
5141 else
5142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144 #include <ctype.h>
5145 #include <stdlib.h>
5146 #if ((' ' & 0x0FF) == 0x020)
5147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5149 #else
5150 # define ISLOWER(c) \
5151                    (('a' <= (c) && (c) <= 'i') \
5152                      || ('j' <= (c) && (c) <= 'r') \
5153                      || ('s' <= (c) && (c) <= 'z'))
5154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5155 #endif
5156
5157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5158 int
5159 main ()
5160 {
5161   int i;
5162   for (i = 0; i < 256; i++)
5163     if (XOR (islower (i), ISLOWER (i))
5164         || toupper (i) != TOUPPER (i))
5165       return 2;
5166   return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_run "$LINENO"; then :
5170
5171 else
5172   ac_cv_header_stdc=no
5173 fi
5174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5175   conftest.$ac_objext conftest.beam conftest.$ac_ext
5176 fi
5177
5178 fi
5179 fi
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5181 $as_echo "$ac_cv_header_stdc" >&6; }
5182 if test $ac_cv_header_stdc = yes; then
5183
5184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5185
5186 fi
5187
5188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5190                   inttypes.h stdint.h unistd.h
5191 do :
5192   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5194 "
5195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5196   cat >>confdefs.h <<_ACEOF
5197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5198 _ACEOF
5199
5200 fi
5201
5202 done
5203
5204
5205
5206   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5207 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5208   MINIX=yes
5209 else
5210   MINIX=
5211 fi
5212
5213
5214   if test "$MINIX" = yes; then
5215
5216 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5217
5218
5219 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5220
5221
5222 $as_echo "#define _MINIX 1" >>confdefs.h
5223
5224   fi
5225
5226
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5228 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5229 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h.  */
5234
5235 #         define __EXTENSIONS__ 1
5236           $ac_includes_default
5237 int
5238 main ()
5239 {
5240
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246   ac_cv_safe_to_define___extensions__=yes
5247 else
5248   ac_cv_safe_to_define___extensions__=no
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5253 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5254   test $ac_cv_safe_to_define___extensions__ = yes &&
5255     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5256
5257   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5258
5259   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5260
5261   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5262
5263   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5264
5265
5266
5267
5268
5269 case `pwd` in
5270   *\ * | *\     *)
5271     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5272 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5273 esac
5274
5275
5276
5277 macro_version='2.2.7a'
5278 macro_revision='1.3134'
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 ltmain="$ac_aux_dir/ltmain.sh"
5293
5294 # Backslashify metacharacters that are still active within
5295 # double-quoted strings.
5296 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5297
5298 # Same as above, but do not quote variable references.
5299 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5300
5301 # Sed substitution to delay expansion of an escaped shell variable in a
5302 # double_quote_subst'ed string.
5303 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5304
5305 # Sed substitution to delay expansion of an escaped single quote.
5306 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5307
5308 # Sed substitution to avoid accidental globbing in evaled expressions
5309 no_glob_subst='s/\*/\\\*/g'
5310
5311 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5312 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5313 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5316 $as_echo_n "checking how to print strings... " >&6; }
5317 # Test print first, because it will be a builtin if present.
5318 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5319    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5320   ECHO='print -r --'
5321 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5322   ECHO='printf %s\n'
5323 else
5324   # Use this function as a fallback that always works.
5325   func_fallback_echo ()
5326   {
5327     eval 'cat <<_LTECHO_EOF
5328 $1
5329 _LTECHO_EOF'
5330   }
5331   ECHO='func_fallback_echo'
5332 fi
5333
5334 # func_echo_all arg...
5335 # Invoke $ECHO with all args, space-separated.
5336 func_echo_all ()
5337 {
5338     $ECHO ""
5339 }
5340
5341 case "$ECHO" in
5342   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5343 $as_echo "printf" >&6; } ;;
5344   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5345 $as_echo "print -r" >&6; } ;;
5346   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5347 $as_echo "cat" >&6; } ;;
5348 esac
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5365 if ${ac_cv_path_SED+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5369      for ac_i in 1 2 3 4 5 6 7; do
5370        ac_script="$ac_script$as_nl$ac_script"
5371      done
5372      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5373      { ac_script=; unset ac_script;}
5374      if test -z "$SED"; then
5375   ac_path_SED_found=false
5376   # Loop through the user's path and test for each of PROGNAME-LIST
5377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380   IFS=$as_save_IFS
5381   test -z "$as_dir" && as_dir=.
5382     for ac_prog in sed gsed; do
5383     for ac_exec_ext in '' $ac_executable_extensions; do
5384       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5385       as_fn_executable_p "$ac_path_SED" || continue
5386 # Check for GNU ac_path_SED and select it if it is found.
5387   # Check for GNU $ac_path_SED
5388 case `"$ac_path_SED" --version 2>&1` in
5389 *GNU*)
5390   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5391 *)
5392   ac_count=0
5393   $as_echo_n 0123456789 >"conftest.in"
5394   while :
5395   do
5396     cat "conftest.in" "conftest.in" >"conftest.tmp"
5397     mv "conftest.tmp" "conftest.in"
5398     cp "conftest.in" "conftest.nl"
5399     $as_echo '' >> "conftest.nl"
5400     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5401     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5402     as_fn_arith $ac_count + 1 && ac_count=$as_val
5403     if test $ac_count -gt ${ac_path_SED_max-0}; then
5404       # Best one so far, save it but keep looking for a better one
5405       ac_cv_path_SED="$ac_path_SED"
5406       ac_path_SED_max=$ac_count
5407     fi
5408     # 10*(2^10) chars as input seems more than enough
5409     test $ac_count -gt 10 && break
5410   done
5411   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5412 esac
5413
5414       $ac_path_SED_found && break 3
5415     done
5416   done
5417   done
5418 IFS=$as_save_IFS
5419   if test -z "$ac_cv_path_SED"; then
5420     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5421   fi
5422 else
5423   ac_cv_path_SED=$SED
5424 fi
5425
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5428 $as_echo "$ac_cv_path_SED" >&6; }
5429  SED="$ac_cv_path_SED"
5430   rm -f conftest.sed
5431
5432 test -z "$SED" && SED=sed
5433 Xsed="$SED -e 1s/^X//"
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5446 $as_echo_n "checking for fgrep... " >&6; }
5447 if ${ac_cv_path_FGREP+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5451    then ac_cv_path_FGREP="$GREP -F"
5452    else
5453      if test -z "$FGREP"; then
5454   ac_path_FGREP_found=false
5455   # Loop through the user's path and test for each of PROGNAME-LIST
5456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461     for ac_prog in fgrep; do
5462     for ac_exec_ext in '' $ac_executable_extensions; do
5463       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5464       as_fn_executable_p "$ac_path_FGREP" || continue
5465 # Check for GNU ac_path_FGREP and select it if it is found.
5466   # Check for GNU $ac_path_FGREP
5467 case `"$ac_path_FGREP" --version 2>&1` in
5468 *GNU*)
5469   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5470 *)
5471   ac_count=0
5472   $as_echo_n 0123456789 >"conftest.in"
5473   while :
5474   do
5475     cat "conftest.in" "conftest.in" >"conftest.tmp"
5476     mv "conftest.tmp" "conftest.in"
5477     cp "conftest.in" "conftest.nl"
5478     $as_echo 'FGREP' >> "conftest.nl"
5479     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5480     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5481     as_fn_arith $ac_count + 1 && ac_count=$as_val
5482     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5483       # Best one so far, save it but keep looking for a better one
5484       ac_cv_path_FGREP="$ac_path_FGREP"
5485       ac_path_FGREP_max=$ac_count
5486     fi
5487     # 10*(2^10) chars as input seems more than enough
5488     test $ac_count -gt 10 && break
5489   done
5490   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491 esac
5492
5493       $ac_path_FGREP_found && break 3
5494     done
5495   done
5496   done
5497 IFS=$as_save_IFS
5498   if test -z "$ac_cv_path_FGREP"; then
5499     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5500   fi
5501 else
5502   ac_cv_path_FGREP=$FGREP
5503 fi
5504
5505    fi
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5508 $as_echo "$ac_cv_path_FGREP" >&6; }
5509  FGREP="$ac_cv_path_FGREP"
5510
5511
5512 test -z "$GREP" && GREP=grep
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 # Check whether --with-gnu-ld was given.
5533 if test "${with_gnu_ld+set}" = set; then :
5534   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5535 else
5536   with_gnu_ld=no
5537 fi
5538
5539 ac_prog=ld
5540 if test "$GCC" = yes; then
5541   # Check if gcc -print-prog-name=ld gives a path.
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5543 $as_echo_n "checking for ld used by $CC... " >&6; }
5544   case $host in
5545   *-*-mingw*)
5546     # gcc leaves a trailing carriage return which upsets mingw
5547     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5548   *)
5549     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5550   esac
5551   case $ac_prog in
5552     # Accept absolute paths.
5553     [\\/]* | ?:[\\/]*)
5554       re_direlt='/[^/][^/]*/\.\./'
5555       # Canonicalize the pathname of ld
5556       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5557       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5558         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5559       done
5560       test -z "$LD" && LD="$ac_prog"
5561       ;;
5562   "")
5563     # If it fails, then pretend we aren't using GCC.
5564     ac_prog=ld
5565     ;;
5566   *)
5567     # If it is relative, then search for the first ld in PATH.
5568     with_gnu_ld=unknown
5569     ;;
5570   esac
5571 elif test "$with_gnu_ld" = yes; then
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5573 $as_echo_n "checking for GNU ld... " >&6; }
5574 else
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5576 $as_echo_n "checking for non-GNU ld... " >&6; }
5577 fi
5578 if ${lt_cv_path_LD+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -z "$LD"; then
5582   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5583   for ac_dir in $PATH; do
5584     IFS="$lt_save_ifs"
5585     test -z "$ac_dir" && ac_dir=.
5586     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5587       lt_cv_path_LD="$ac_dir/$ac_prog"
5588       # Check to see if the program is GNU ld.  I'd rather use --version,
5589       # but apparently some variants of GNU ld only accept -v.
5590       # Break only if it was the GNU/non-GNU ld that we prefer.
5591       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5592       *GNU* | *'with BFD'*)
5593         test "$with_gnu_ld" != no && break
5594         ;;
5595       *)
5596         test "$with_gnu_ld" != yes && break
5597         ;;
5598       esac
5599     fi
5600   done
5601   IFS="$lt_save_ifs"
5602 else
5603   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5604 fi
5605 fi
5606
5607 LD="$lt_cv_path_LD"
5608 if test -n "$LD"; then
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5610 $as_echo "$LD" >&6; }
5611 else
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5617 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5618 if ${lt_cv_prog_gnu_ld+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5622 case `$LD -v 2>&1 </dev/null` in
5623 *GNU* | *'with BFD'*)
5624   lt_cv_prog_gnu_ld=yes
5625   ;;
5626 *)
5627   lt_cv_prog_gnu_ld=no
5628   ;;
5629 esac
5630 fi
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5632 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5633 with_gnu_ld=$lt_cv_prog_gnu_ld
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5644 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5645 if ${lt_cv_path_NM+:} false; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   if test -n "$NM"; then
5649   # Let the user override the test.
5650   lt_cv_path_NM="$NM"
5651 else
5652   lt_nm_to_check="${ac_tool_prefix}nm"
5653   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5654     lt_nm_to_check="$lt_nm_to_check nm"
5655   fi
5656   for lt_tmp_nm in $lt_nm_to_check; do
5657     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5658     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5659       IFS="$lt_save_ifs"
5660       test -z "$ac_dir" && ac_dir=.
5661       tmp_nm="$ac_dir/$lt_tmp_nm"
5662       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5663         # Check to see if the nm accepts a BSD-compat flag.
5664         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5665         #   nm: unknown option "B" ignored
5666         # Tru64's nm complains that /dev/null is an invalid object file
5667         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5668         */dev/null* | *'Invalid file or object type'*)
5669           lt_cv_path_NM="$tmp_nm -B"
5670           break
5671           ;;
5672         *)
5673           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5674           */dev/null*)
5675             lt_cv_path_NM="$tmp_nm -p"
5676             break
5677             ;;
5678           *)
5679             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5680             continue # so that we can try to find one that supports BSD flags
5681             ;;
5682           esac
5683           ;;
5684         esac
5685       fi
5686     done
5687     IFS="$lt_save_ifs"
5688   done
5689   : ${lt_cv_path_NM=no}
5690 fi
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5693 $as_echo "$lt_cv_path_NM" >&6; }
5694 if test "$lt_cv_path_NM" != "no"; then
5695   NM="$lt_cv_path_NM"
5696 else
5697   # Didn't find any BSD compatible name lister, look for dumpbin.
5698   if test -n "$DUMPBIN"; then :
5699     # Let the user override the test.
5700   else
5701     if test -n "$ac_tool_prefix"; then
5702   for ac_prog in dumpbin "link -dump"
5703   do
5704     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_prog_DUMPBIN+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   if test -n "$DUMPBIN"; then
5712   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726   done
5727 IFS=$as_save_IFS
5728
5729 fi
5730 fi
5731 DUMPBIN=$ac_cv_prog_DUMPBIN
5732 if test -n "$DUMPBIN"; then
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5734 $as_echo "$DUMPBIN" >&6; }
5735 else
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739
5740
5741     test -n "$DUMPBIN" && break
5742   done
5743 fi
5744 if test -z "$DUMPBIN"; then
5745   ac_ct_DUMPBIN=$DUMPBIN
5746   for ac_prog in dumpbin "link -dump"
5747 do
5748   # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   if test -n "$ac_ct_DUMPBIN"; then
5756   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763     for ac_exec_ext in '' $ac_executable_extensions; do
5764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770   done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5776 if test -n "$ac_ct_DUMPBIN"; then
5777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5778 $as_echo "$ac_ct_DUMPBIN" >&6; }
5779 else
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 fi
5783
5784
5785   test -n "$ac_ct_DUMPBIN" && break
5786 done
5787
5788   if test "x$ac_ct_DUMPBIN" = x; then
5789     DUMPBIN=":"
5790   else
5791     case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797     DUMPBIN=$ac_ct_DUMPBIN
5798   fi
5799 fi
5800
5801     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5802     *COFF*)
5803       DUMPBIN="$DUMPBIN -symbols"
5804       ;;
5805     *)
5806       DUMPBIN=:
5807       ;;
5808     esac
5809   fi
5810
5811   if test "$DUMPBIN" != ":"; then
5812     NM="$DUMPBIN"
5813   fi
5814 fi
5815 test -z "$NM" && NM=nm
5816
5817
5818
5819
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5823 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5824 if ${lt_cv_nm_interface+:} false; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   lt_cv_nm_interface="BSD nm"
5828   echo "int some_variable = 0;" > conftest.$ac_ext
5829   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5830   (eval "$ac_compile" 2>conftest.err)
5831   cat conftest.err >&5
5832   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5833   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5834   cat conftest.err >&5
5835   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5836   cat conftest.out >&5
5837   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5838     lt_cv_nm_interface="MS dumpbin"
5839   fi
5840   rm -f conftest*
5841 fi
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5843 $as_echo "$lt_cv_nm_interface" >&6; }
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5846 $as_echo_n "checking whether ln -s works... " >&6; }
5847 LN_S=$as_ln_s
5848 if test "$LN_S" = "ln -s"; then
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5850 $as_echo "yes" >&6; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5853 $as_echo "no, using $LN_S" >&6; }
5854 fi
5855
5856 # find the maximum length of command line arguments
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5858 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5859 if ${lt_cv_sys_max_cmd_len+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862     i=0
5863   teststring="ABCD"
5864
5865   case $build_os in
5866   msdosdjgpp*)
5867     # On DJGPP, this test can blow up pretty badly due to problems in libc
5868     # (any single argument exceeding 2000 bytes causes a buffer overrun
5869     # during glob expansion).  Even if it were fixed, the result of this
5870     # check would be larger than it should be.
5871     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5872     ;;
5873
5874   gnu*)
5875     # Under GNU Hurd, this test is not required because there is
5876     # no limit to the length of command line arguments.
5877     # Libtool will interpret -1 as no limit whatsoever
5878     lt_cv_sys_max_cmd_len=-1;
5879     ;;
5880
5881   cygwin* | mingw* | cegcc*)
5882     # On Win9x/ME, this test blows up -- it succeeds, but takes
5883     # about 5 minutes as the teststring grows exponentially.
5884     # Worse, since 9x/ME are not pre-emptively multitasking,
5885     # you end up with a "frozen" computer, even though with patience
5886     # the test eventually succeeds (with a max line length of 256k).
5887     # Instead, let's just punt: use the minimum linelength reported by
5888     # all of the supported platforms: 8192 (on NT/2K/XP).
5889     lt_cv_sys_max_cmd_len=8192;
5890     ;;
5891
5892   mint*)
5893     # On MiNT this can take a long time and run out of memory.
5894     lt_cv_sys_max_cmd_len=8192;
5895     ;;
5896
5897   amigaos*)
5898     # On AmigaOS with pdksh, this test takes hours, literally.
5899     # So we just punt and use a minimum line length of 8192.
5900     lt_cv_sys_max_cmd_len=8192;
5901     ;;
5902
5903   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5904     # This has been around since 386BSD, at least.  Likely further.
5905     if test -x /sbin/sysctl; then
5906       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5907     elif test -x /usr/sbin/sysctl; then
5908       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5909     else
5910       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5911     fi
5912     # And add a safety zone
5913     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5914     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5915     ;;
5916
5917   interix*)
5918     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5919     lt_cv_sys_max_cmd_len=196608
5920     ;;
5921
5922   osf*)
5923     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5924     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5925     # nice to cause kernel panics so lets avoid the loop below.
5926     # First set a reasonable default.
5927     lt_cv_sys_max_cmd_len=16384
5928     #
5929     if test -x /sbin/sysconfig; then
5930       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5931         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5932       esac
5933     fi
5934     ;;
5935   sco3.2v5*)
5936     lt_cv_sys_max_cmd_len=102400
5937     ;;
5938   sysv5* | sco5v6* | sysv4.2uw2*)
5939     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5940     if test -n "$kargmax"; then
5941       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5942     else
5943       lt_cv_sys_max_cmd_len=32768
5944     fi
5945     ;;
5946   *)
5947     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5948     if test -n "$lt_cv_sys_max_cmd_len"; then
5949       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5950       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5951     else
5952       # Make teststring a little bigger before we do anything with it.
5953       # a 1K string should be a reasonable start.
5954       for i in 1 2 3 4 5 6 7 8 ; do
5955         teststring=$teststring$teststring
5956       done
5957       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5958       # If test is not a shell built-in, we'll probably end up computing a
5959       # maximum length that is only half of the actual maximum length, but
5960       # we can't tell.
5961       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5962                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5963               test $i != 17 # 1/2 MB should be enough
5964       do
5965         i=`expr $i + 1`
5966         teststring=$teststring$teststring
5967       done
5968       # Only check the string length outside the loop.
5969       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5970       teststring=
5971       # Add a significant safety factor because C++ compilers can tack on
5972       # massive amounts of additional arguments before passing them to the
5973       # linker.  It appears as though 1/2 is a usable value.
5974       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5975     fi
5976     ;;
5977   esac
5978
5979 fi
5980
5981 if test -n $lt_cv_sys_max_cmd_len ; then
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5983 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5984 else
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5986 $as_echo "none" >&6; }
5987 fi
5988 max_cmd_len=$lt_cv_sys_max_cmd_len
5989
5990
5991
5992
5993
5994
5995 : ${CP="cp -f"}
5996 : ${MV="mv -f"}
5997 : ${RM="rm -f"}
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6000 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6001 # Try some XSI features
6002 xsi_shell=no
6003 ( _lt_dummy="a/b/c"
6004   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6005       = c,a/b,, \
6006     && eval 'test $(( 1 + 1 )) -eq 2 \
6007     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6008   && xsi_shell=yes
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6010 $as_echo "$xsi_shell" >&6; }
6011
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6014 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6015 lt_shell_append=no
6016 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6017     >/dev/null 2>&1 \
6018   && lt_shell_append=yes
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6020 $as_echo "$lt_shell_append" >&6; }
6021
6022
6023 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6024   lt_unset=unset
6025 else
6026   lt_unset=false
6027 fi
6028
6029
6030
6031
6032
6033 # test EBCDIC or ASCII
6034 case `echo X|tr X '\101'` in
6035  A) # ASCII based system
6036     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6037   lt_SP2NL='tr \040 \012'
6038   lt_NL2SP='tr \015\012 \040\040'
6039   ;;
6040  *) # EBCDIC based system
6041   lt_SP2NL='tr \100 \n'
6042   lt_NL2SP='tr \r\n \100\100'
6043   ;;
6044 esac
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6055 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6056 if ${lt_cv_ld_reload_flag+:} false; then :
6057   $as_echo_n "(cached) " >&6
6058 else
6059   lt_cv_ld_reload_flag='-r'
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6062 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6063 reload_flag=$lt_cv_ld_reload_flag
6064 case $reload_flag in
6065 "" | " "*) ;;
6066 *) reload_flag=" $reload_flag" ;;
6067 esac
6068 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6069 case $host_os in
6070   darwin*)
6071     if test "$GCC" = yes; then
6072       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6073     else
6074       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6075     fi
6076     ;;
6077 esac
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 if test -n "$ac_tool_prefix"; then
6088   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_OBJDUMP+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   if test -n "$OBJDUMP"; then
6096   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103     for ac_exec_ext in '' $ac_executable_extensions; do
6104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110   done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 OBJDUMP=$ac_cv_prog_OBJDUMP
6116 if test -n "$OBJDUMP"; then
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6118 $as_echo "$OBJDUMP" >&6; }
6119 else
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125 fi
6126 if test -z "$ac_cv_prog_OBJDUMP"; then
6127   ac_ct_OBJDUMP=$OBJDUMP
6128   # Extract the first word of "objdump", so it can be a program name with args.
6129 set dummy objdump; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   if test -n "$ac_ct_OBJDUMP"; then
6136   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141   IFS=$as_save_IFS
6142   test -z "$as_dir" && as_dir=.
6143     for ac_exec_ext in '' $ac_executable_extensions; do
6144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147     break 2
6148   fi
6149 done
6150   done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6156 if test -n "$ac_ct_OBJDUMP"; then
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6158 $as_echo "$ac_ct_OBJDUMP" >&6; }
6159 else
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164   if test "x$ac_ct_OBJDUMP" = x; then
6165     OBJDUMP="false"
6166   else
6167     case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173     OBJDUMP=$ac_ct_OBJDUMP
6174   fi
6175 else
6176   OBJDUMP="$ac_cv_prog_OBJDUMP"
6177 fi
6178
6179 test -z "$OBJDUMP" && OBJDUMP=objdump
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6190 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6191 if ${lt_cv_deplibs_check_method+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   lt_cv_file_magic_cmd='$MAGIC_CMD'
6195 lt_cv_file_magic_test_file=
6196 lt_cv_deplibs_check_method='unknown'
6197 # Need to set the preceding variable on all platforms that support
6198 # interlibrary dependencies.
6199 # 'none' -- dependencies not supported.
6200 # `unknown' -- same as none, but documents that we really don't know.
6201 # 'pass_all' -- all dependencies passed with no checks.
6202 # 'test_compile' -- check by making test program.
6203 # 'file_magic [[regex]]' -- check by looking for files in library path
6204 # which responds to the $file_magic_cmd with a given extended regex.
6205 # If you have `file' or equivalent on your system and you're not sure
6206 # whether `pass_all' will *always* work, you probably want this one.
6207
6208 case $host_os in
6209 aix[4-9]*)
6210   lt_cv_deplibs_check_method=pass_all
6211   ;;
6212
6213 beos*)
6214   lt_cv_deplibs_check_method=pass_all
6215   ;;
6216
6217 bsdi[45]*)
6218   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6219   lt_cv_file_magic_cmd='/usr/bin/file -L'
6220   lt_cv_file_magic_test_file=/shlib/libc.so
6221   ;;
6222
6223 cygwin*)
6224   # func_win32_libid is a shell function defined in ltmain.sh
6225   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6226   lt_cv_file_magic_cmd='func_win32_libid'
6227   ;;
6228
6229 mingw* | pw32*)
6230   # Base MSYS/MinGW do not provide the 'file' command needed by
6231   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6232   # unless we find 'file', for example because we are cross-compiling.
6233   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6234   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6235     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6236     lt_cv_file_magic_cmd='func_win32_libid'
6237   else
6238     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6239     lt_cv_file_magic_cmd='$OBJDUMP -f'
6240   fi
6241   ;;
6242
6243 cegcc*)
6244   # use the weaker test based on 'objdump'. See mingw*.
6245   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6246   lt_cv_file_magic_cmd='$OBJDUMP -f'
6247   ;;
6248
6249 darwin* | rhapsody*)
6250   lt_cv_deplibs_check_method=pass_all
6251   ;;
6252
6253 freebsd* | dragonfly*)
6254   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6255     case $host_cpu in
6256     i*86 )
6257       # Not sure whether the presence of OpenBSD here was a mistake.
6258       # Let's accept both of them until this is cleared up.
6259       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6260       lt_cv_file_magic_cmd=/usr/bin/file
6261       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6262       ;;
6263     esac
6264   else
6265     lt_cv_deplibs_check_method=pass_all
6266   fi
6267   ;;
6268
6269 gnu*)
6270   lt_cv_deplibs_check_method=pass_all
6271   ;;
6272
6273 haiku*)
6274   lt_cv_deplibs_check_method=pass_all
6275   ;;
6276
6277 hpux10.20* | hpux11*)
6278   lt_cv_file_magic_cmd=/usr/bin/file
6279   case $host_cpu in
6280   ia64*)
6281     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6282     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6283     ;;
6284   hppa*64*)
6285     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]'
6286     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6287     ;;
6288   *)
6289     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6290     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6291     ;;
6292   esac
6293   ;;
6294
6295 interix[3-9]*)
6296   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6297   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6298   ;;
6299
6300 irix5* | irix6* | nonstopux*)
6301   case $LD in
6302   *-32|*"-32 ") libmagic=32-bit;;
6303   *-n32|*"-n32 ") libmagic=N32;;
6304   *-64|*"-64 ") libmagic=64-bit;;
6305   *) libmagic=never-match;;
6306   esac
6307   lt_cv_deplibs_check_method=pass_all
6308   ;;
6309
6310 # This must be Linux ELF.
6311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6312   lt_cv_deplibs_check_method=pass_all
6313   ;;
6314
6315 netbsd*)
6316   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6317     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318   else
6319     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6320   fi
6321   ;;
6322
6323 newos6*)
6324   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6325   lt_cv_file_magic_cmd=/usr/bin/file
6326   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6327   ;;
6328
6329 *nto* | *qnx*)
6330   lt_cv_deplibs_check_method=pass_all
6331   ;;
6332
6333 openbsd*)
6334   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6335     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6336   else
6337     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6338   fi
6339   ;;
6340
6341 osf3* | osf4* | osf5*)
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 rdos*)
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 solaris*)
6350   lt_cv_deplibs_check_method=pass_all
6351   ;;
6352
6353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6354   lt_cv_deplibs_check_method=pass_all
6355   ;;
6356
6357 sysv4 | sysv4.3*)
6358   case $host_vendor in
6359   motorola)
6360     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]'
6361     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6362     ;;
6363   ncr)
6364     lt_cv_deplibs_check_method=pass_all
6365     ;;
6366   sequent)
6367     lt_cv_file_magic_cmd='/bin/file'
6368     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6369     ;;
6370   sni)
6371     lt_cv_file_magic_cmd='/bin/file'
6372     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6373     lt_cv_file_magic_test_file=/lib/libc.so
6374     ;;
6375   siemens)
6376     lt_cv_deplibs_check_method=pass_all
6377     ;;
6378   pc)
6379     lt_cv_deplibs_check_method=pass_all
6380     ;;
6381   esac
6382   ;;
6383
6384 tpf*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387 esac
6388
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6391 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6392 file_magic_cmd=$lt_cv_file_magic_cmd
6393 deplibs_check_method=$lt_cv_deplibs_check_method
6394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407 if test -n "$ac_tool_prefix"; then
6408   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6409 set dummy ${ac_tool_prefix}ar; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_AR+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   if test -n "$AR"; then
6416   ac_cv_prog_AR="$AR" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423     for ac_exec_ext in '' $ac_executable_extensions; do
6424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425     ac_cv_prog_AR="${ac_tool_prefix}ar"
6426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430   done
6431 IFS=$as_save_IFS
6432
6433 fi
6434 fi
6435 AR=$ac_cv_prog_AR
6436 if test -n "$AR"; then
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6438 $as_echo "$AR" >&6; }
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444
6445 fi
6446 if test -z "$ac_cv_prog_AR"; then
6447   ac_ct_AR=$AR
6448   # Extract the first word of "ar", so it can be a program name with args.
6449 set dummy ar; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   if test -n "$ac_ct_AR"; then
6456   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465     ac_cv_prog_ac_ct_AR="ar"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6476 if test -n "$ac_ct_AR"; then
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6478 $as_echo "$ac_ct_AR" >&6; }
6479 else
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484   if test "x$ac_ct_AR" = x; then
6485     AR="false"
6486   else
6487     case $cross_compiling:$ac_tool_warned in
6488 yes:)
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6491 ac_tool_warned=yes ;;
6492 esac
6493     AR=$ac_ct_AR
6494   fi
6495 else
6496   AR="$ac_cv_prog_AR"
6497 fi
6498
6499 test -z "$AR" && AR=ar
6500 test -z "$AR_FLAGS" && AR_FLAGS=cru
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 if test -n "$ac_tool_prefix"; then
6513   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}strip; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_STRIP+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   if test -n "$STRIP"; then
6521   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528     for ac_exec_ext in '' $ac_executable_extensions; do
6529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535   done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 STRIP=$ac_cv_prog_STRIP
6541 if test -n "$STRIP"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6543 $as_echo "$STRIP" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_STRIP"; then
6552   ac_ct_STRIP=$STRIP
6553   # Extract the first word of "strip", so it can be a program name with args.
6554 set dummy strip; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   if test -n "$ac_ct_STRIP"; then
6561   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570     ac_cv_prog_ac_ct_STRIP="strip"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6581 if test -n "$ac_ct_STRIP"; then
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6583 $as_echo "$ac_ct_STRIP" >&6; }
6584 else
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589   if test "x$ac_ct_STRIP" = x; then
6590     STRIP=":"
6591   else
6592     case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598     STRIP=$ac_ct_STRIP
6599   fi
6600 else
6601   STRIP="$ac_cv_prog_STRIP"
6602 fi
6603
6604 test -z "$STRIP" && STRIP=:
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_RANLIB+:} false; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   if test -n "$RANLIB"; then
6620   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627     for ac_exec_ext in '' $ac_executable_extensions; do
6628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634   done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 RANLIB=$ac_cv_prog_RANLIB
6640 if test -n "$RANLIB"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6642 $as_echo "$RANLIB" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_RANLIB"; then
6651   ac_ct_RANLIB=$RANLIB
6652   # Extract the first word of "ranlib", so it can be a program name with args.
6653 set dummy ranlib; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   if test -n "$ac_ct_RANLIB"; then
6660   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667     for ac_exec_ext in '' $ac_executable_extensions; do
6668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669     ac_cv_prog_ac_ct_RANLIB="ranlib"
6670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674   done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680 if test -n "$ac_ct_RANLIB"; then
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6682 $as_echo "$ac_ct_RANLIB" >&6; }
6683 else
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688   if test "x$ac_ct_RANLIB" = x; then
6689     RANLIB=":"
6690   else
6691     case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697     RANLIB=$ac_ct_RANLIB
6698   fi
6699 else
6700   RANLIB="$ac_cv_prog_RANLIB"
6701 fi
6702
6703 test -z "$RANLIB" && RANLIB=:
6704
6705
6706
6707
6708
6709
6710 # Determine commands to create old-style static archives.
6711 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6712 old_postinstall_cmds='chmod 644 $oldlib'
6713 old_postuninstall_cmds=
6714
6715 if test -n "$RANLIB"; then
6716   case $host_os in
6717   openbsd*)
6718     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6719     ;;
6720   *)
6721     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6722     ;;
6723   esac
6724   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6725 fi
6726
6727 case $host_os in
6728   darwin*)
6729     lock_old_archive_extraction=yes ;;
6730   *)
6731     lock_old_archive_extraction=no ;;
6732 esac
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 # If no C compiler was specified, use CC.
6773 LTCC=${LTCC-"$CC"}
6774
6775 # If no C compiler flags were specified, use CFLAGS.
6776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777
6778 # Allow CC to be a program name with arguments.
6779 compiler=$CC
6780
6781
6782 # Check for command to grab the raw symbol name followed by C symbol from nm.
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6784 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6785 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788
6789 # These are sane defaults that work on at least a few old systems.
6790 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6791
6792 # Character class describing NM global symbol codes.
6793 symcode='[BCDEGRST]'
6794
6795 # Regexp to match symbols that can be accessed directly from C.
6796 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797
6798 # Define system-specific variables.
6799 case $host_os in
6800 aix*)
6801   symcode='[BCDT]'
6802   ;;
6803 cygwin* | mingw* | pw32* | cegcc*)
6804   symcode='[ABCDGISTW]'
6805   ;;
6806 hpux*)
6807   if test "$host_cpu" = ia64; then
6808     symcode='[ABCDEGRST]'
6809   fi
6810   ;;
6811 irix* | nonstopux*)
6812   symcode='[BCDEGRST]'
6813   ;;
6814 osf*)
6815   symcode='[BCDEGQRST]'
6816   ;;
6817 solaris*)
6818   symcode='[BDRT]'
6819   ;;
6820 sco3.2v5*)
6821   symcode='[DT]'
6822   ;;
6823 sysv4.2uw2*)
6824   symcode='[DT]'
6825   ;;
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827   symcode='[ABDT]'
6828   ;;
6829 sysv4)
6830   symcode='[DFNSTU]'
6831   ;;
6832 esac
6833
6834 # If we're using GNU nm, then use its standard symbol codes.
6835 case `$NM -V 2>&1` in
6836 *GNU* | *'with BFD'*)
6837   symcode='[ABCDGIRSTW]' ;;
6838 esac
6839
6840 # Transform an extracted symbol line into a proper C declaration.
6841 # Some systems (esp. on ia64) link data and code symbols differently,
6842 # so use this general approach.
6843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6844
6845 # Transform an extracted symbol line into symbol name and symbol address
6846 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6847 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'"
6848
6849 # Handle CRLF in mingw tool chain
6850 opt_cr=
6851 case $build_os in
6852 mingw*)
6853   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6854   ;;
6855 esac
6856
6857 # Try without a prefix underscore, then with it.
6858 for ac_symprfx in "" "_"; do
6859
6860   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6861   symxfrm="\\1 $ac_symprfx\\2 \\2"
6862
6863   # Write the raw and C identifiers.
6864   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6865     # Fake it for dumpbin and say T for any non-static function
6866     # and D for any global variable.
6867     # Also find C++ and __fastcall symbols from MSVC++,
6868     # which start with @ or ?.
6869     lt_cv_sys_global_symbol_pipe="$AWK '"\
6870 "     {last_section=section; section=\$ 3};"\
6871 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6872 "     \$ 0!~/External *\|/{next};"\
6873 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6874 "     {if(hide[section]) next};"\
6875 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6876 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6877 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6878 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6879 "     ' prfx=^$ac_symprfx"
6880   else
6881     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6882   fi
6883
6884   # Check to see that the pipe works correctly.
6885   pipe_works=no
6886
6887   rm -f conftest*
6888   cat > conftest.$ac_ext <<_LT_EOF
6889 #ifdef __cplusplus
6890 extern "C" {
6891 #endif
6892 char nm_test_var;
6893 void nm_test_func(void);
6894 void nm_test_func(void){}
6895 #ifdef __cplusplus
6896 }
6897 #endif
6898 int main(){nm_test_var='a';nm_test_func();return(0);}
6899 _LT_EOF
6900
6901   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902   (eval $ac_compile) 2>&5
6903   ac_status=$?
6904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905   test $ac_status = 0; }; then
6906     # Now try to grab the symbols.
6907     nlist=conftest.nm
6908     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6909   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6910   ac_status=$?
6911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912   test $ac_status = 0; } && test -s "$nlist"; then
6913       # Try sorting and uniquifying the output.
6914       if sort "$nlist" | uniq > "$nlist"T; then
6915         mv -f "$nlist"T "$nlist"
6916       else
6917         rm -f "$nlist"T
6918       fi
6919
6920       # Make sure that we snagged all the symbols we need.
6921       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6922         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6923           cat <<_LT_EOF > conftest.$ac_ext
6924 #ifdef __cplusplus
6925 extern "C" {
6926 #endif
6927
6928 _LT_EOF
6929           # Now generate the symbol file.
6930           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6931
6932           cat <<_LT_EOF >> conftest.$ac_ext
6933
6934 /* The mapping between symbol names and symbols.  */
6935 const struct {
6936   const char *name;
6937   void       *address;
6938 }
6939 lt__PROGRAM__LTX_preloaded_symbols[] =
6940 {
6941   { "@PROGRAM@", (void *) 0 },
6942 _LT_EOF
6943           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6944           cat <<\_LT_EOF >> conftest.$ac_ext
6945   {0, (void *) 0}
6946 };
6947
6948 /* This works around a problem in FreeBSD linker */
6949 #ifdef FREEBSD_WORKAROUND
6950 static const void *lt_preloaded_setup() {
6951   return lt__PROGRAM__LTX_preloaded_symbols;
6952 }
6953 #endif
6954
6955 #ifdef __cplusplus
6956 }
6957 #endif
6958 _LT_EOF
6959           # Now try linking the two files.
6960           mv conftest.$ac_objext conftstm.$ac_objext
6961           lt_save_LIBS="$LIBS"
6962           lt_save_CFLAGS="$CFLAGS"
6963           LIBS="conftstm.$ac_objext"
6964           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6965           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6966   (eval $ac_link) 2>&5
6967   ac_status=$?
6968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6970             pipe_works=yes
6971           fi
6972           LIBS="$lt_save_LIBS"
6973           CFLAGS="$lt_save_CFLAGS"
6974         else
6975           echo "cannot find nm_test_func in $nlist" >&5
6976         fi
6977       else
6978         echo "cannot find nm_test_var in $nlist" >&5
6979       fi
6980     else
6981       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6982     fi
6983   else
6984     echo "$progname: failed program was:" >&5
6985     cat conftest.$ac_ext >&5
6986   fi
6987   rm -rf conftest* conftst*
6988
6989   # Do not use the global_symbol_pipe unless it works.
6990   if test "$pipe_works" = yes; then
6991     break
6992   else
6993     lt_cv_sys_global_symbol_pipe=
6994   fi
6995 done
6996
6997 fi
6998
6999 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7000   lt_cv_sys_global_symbol_to_cdecl=
7001 fi
7002 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7004 $as_echo "failed" >&6; }
7005 else
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7007 $as_echo "ok" >&6; }
7008 fi
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 # Check whether --enable-libtool-lock was given.
7032 if test "${enable_libtool_lock+set}" = set; then :
7033   enableval=$enable_libtool_lock;
7034 fi
7035
7036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038 # Some flags need to be propagated to the compiler or linker for good
7039 # libtool support.
7040 case $host in
7041 ia64-*-hpux*)
7042   # Find out which ABI we are using.
7043   echo 'int i;' > conftest.$ac_ext
7044   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045   (eval $ac_compile) 2>&5
7046   ac_status=$?
7047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048   test $ac_status = 0; }; then
7049     case `/usr/bin/file conftest.$ac_objext` in
7050       *ELF-32*)
7051         HPUX_IA64_MODE="32"
7052         ;;
7053       *ELF-64*)
7054         HPUX_IA64_MODE="64"
7055         ;;
7056     esac
7057   fi
7058   rm -rf conftest*
7059   ;;
7060 *-*-irix6*)
7061   # Find out which ABI we are using.
7062   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7063   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064   (eval $ac_compile) 2>&5
7065   ac_status=$?
7066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067   test $ac_status = 0; }; then
7068     if test "$lt_cv_prog_gnu_ld" = yes; then
7069       case `/usr/bin/file conftest.$ac_objext` in
7070         *32-bit*)
7071           LD="${LD-ld} -melf32bsmip"
7072           ;;
7073         *N32*)
7074           LD="${LD-ld} -melf32bmipn32"
7075           ;;
7076         *64-bit*)
7077           LD="${LD-ld} -melf64bmip"
7078         ;;
7079       esac
7080     else
7081       case `/usr/bin/file conftest.$ac_objext` in
7082         *32-bit*)
7083           LD="${LD-ld} -32"
7084           ;;
7085         *N32*)
7086           LD="${LD-ld} -n32"
7087           ;;
7088         *64-bit*)
7089           LD="${LD-ld} -64"
7090           ;;
7091       esac
7092     fi
7093   fi
7094   rm -rf conftest*
7095   ;;
7096
7097 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7098 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099   # Find out which ABI we are using.
7100   echo 'int i;' > conftest.$ac_ext
7101   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102   (eval $ac_compile) 2>&5
7103   ac_status=$?
7104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105   test $ac_status = 0; }; then
7106     case `/usr/bin/file conftest.o` in
7107       *32-bit*)
7108         case $host in
7109           x86_64-*kfreebsd*-gnu)
7110             LD="${LD-ld} -m elf_i386_fbsd"
7111             ;;
7112           x86_64-*linux*)
7113             case `/usr/bin/file conftest.o` in
7114               *x86-64*)
7115                 LD="${LD-ld} -m elf32_x86_64"
7116                 ;;
7117               *)
7118                 LD="${LD-ld} -m elf_i386"
7119                 ;;
7120             esac
7121             ;;
7122           powerpc64le-*linux*)
7123             LD="${LD-ld} -m elf32lppclinux"
7124             ;;
7125           powerpc64-*linux*)
7126             LD="${LD-ld} -m elf32ppclinux"
7127             ;;
7128           s390x-*linux*)
7129             LD="${LD-ld} -m elf_s390"
7130             ;;
7131           sparc64-*linux*)
7132             LD="${LD-ld} -m elf32_sparc"
7133             ;;
7134         esac
7135         ;;
7136       *64-bit*)
7137         case $host in
7138           x86_64-*kfreebsd*-gnu)
7139             LD="${LD-ld} -m elf_x86_64_fbsd"
7140             ;;
7141           x86_64-*linux*)
7142             LD="${LD-ld} -m elf_x86_64"
7143             ;;
7144           powerpcle-*linux*)
7145             LD="${LD-ld} -m elf64lppc"
7146             ;;
7147           powerpc-*linux*)
7148             LD="${LD-ld} -m elf64ppc"
7149             ;;
7150           s390*-*linux*|s390*-*tpf*)
7151             LD="${LD-ld} -m elf64_s390"
7152             ;;
7153           sparc*-*linux*)
7154             LD="${LD-ld} -m elf64_sparc"
7155             ;;
7156         esac
7157         ;;
7158     esac
7159   fi
7160   rm -rf conftest*
7161   ;;
7162
7163 *-*-sco3.2v5*)
7164   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7165   SAVE_CFLAGS="$CFLAGS"
7166   CFLAGS="$CFLAGS -belf"
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7168 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7169 if ${lt_cv_cc_needs_belf+:} false; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   ac_ext=c
7173 ac_cpp='$CPP $CPPFLAGS'
7174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7177
7178      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h.  */
7180
7181 int
7182 main ()
7183 {
7184
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 if ac_fn_c_try_link "$LINENO"; then :
7190   lt_cv_cc_needs_belf=yes
7191 else
7192   lt_cv_cc_needs_belf=no
7193 fi
7194 rm -f core conftest.err conftest.$ac_objext \
7195     conftest$ac_exeext conftest.$ac_ext
7196      ac_ext=c
7197 ac_cpp='$CPP $CPPFLAGS'
7198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7201
7202 fi
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7204 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7205   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7206     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7207     CFLAGS="$SAVE_CFLAGS"
7208   fi
7209   ;;
7210 sparc*-*solaris*)
7211   # Find out which ABI we are using.
7212   echo 'int i;' > conftest.$ac_ext
7213   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7214   (eval $ac_compile) 2>&5
7215   ac_status=$?
7216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217   test $ac_status = 0; }; then
7218     case `/usr/bin/file conftest.o` in
7219     *64-bit*)
7220       case $lt_cv_prog_gnu_ld in
7221       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7222       *)
7223         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7224           LD="${LD-ld} -64"
7225         fi
7226         ;;
7227       esac
7228       ;;
7229     esac
7230   fi
7231   rm -rf conftest*
7232   ;;
7233 esac
7234
7235 need_locks="$enable_libtool_lock"
7236
7237
7238   case $host_os in
7239     rhapsody* | darwin*)
7240     if test -n "$ac_tool_prefix"; then
7241   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if test -n "$DSYMUTIL"; then
7249   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7269 if test -n "$DSYMUTIL"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7271 $as_echo "$DSYMUTIL" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277
7278 fi
7279 if test -z "$ac_cv_prog_DSYMUTIL"; then
7280   ac_ct_DSYMUTIL=$DSYMUTIL
7281   # Extract the first word of "dsymutil", so it can be a program name with args.
7282 set dummy dsymutil; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   if test -n "$ac_ct_DSYMUTIL"; then
7289   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296     for ac_exec_ext in '' $ac_executable_extensions; do
7297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303   done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7309 if test -n "$ac_ct_DSYMUTIL"; then
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7311 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7312 else
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317   if test "x$ac_ct_DSYMUTIL" = x; then
7318     DSYMUTIL=":"
7319   else
7320     case $cross_compiling:$ac_tool_warned in
7321 yes:)
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324 ac_tool_warned=yes ;;
7325 esac
7326     DSYMUTIL=$ac_ct_DSYMUTIL
7327   fi
7328 else
7329   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7330 fi
7331
7332     if test -n "$ac_tool_prefix"; then
7333   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7334 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_NMEDIT+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$NMEDIT"; then
7341   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 NMEDIT=$ac_cv_prog_NMEDIT
7361 if test -n "$NMEDIT"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7363 $as_echo "$NMEDIT" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369
7370 fi
7371 if test -z "$ac_cv_prog_NMEDIT"; then
7372   ac_ct_NMEDIT=$NMEDIT
7373   # Extract the first word of "nmedit", so it can be a program name with args.
7374 set dummy nmedit; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380   if test -n "$ac_ct_NMEDIT"; then
7381   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388     for ac_exec_ext in '' $ac_executable_extensions; do
7389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395   done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7401 if test -n "$ac_ct_NMEDIT"; then
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7403 $as_echo "$ac_ct_NMEDIT" >&6; }
7404 else
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409   if test "x$ac_ct_NMEDIT" = x; then
7410     NMEDIT=":"
7411   else
7412     case $cross_compiling:$ac_tool_warned in
7413 yes:)
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418     NMEDIT=$ac_ct_NMEDIT
7419   fi
7420 else
7421   NMEDIT="$ac_cv_prog_NMEDIT"
7422 fi
7423
7424     if test -n "$ac_tool_prefix"; then
7425   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_LIPO+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   if test -n "$LIPO"; then
7433   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 LIPO=$ac_cv_prog_LIPO
7453 if test -n "$LIPO"; then
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7455 $as_echo "$LIPO" >&6; }
7456 else
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462 fi
7463 if test -z "$ac_cv_prog_LIPO"; then
7464   ac_ct_LIPO=$LIPO
7465   # Extract the first word of "lipo", so it can be a program name with args.
7466 set dummy lipo; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   if test -n "$ac_ct_LIPO"; then
7473   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480     for ac_exec_ext in '' $ac_executable_extensions; do
7481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482     ac_cv_prog_ac_ct_LIPO="lipo"
7483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487   done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7493 if test -n "$ac_ct_LIPO"; then
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7495 $as_echo "$ac_ct_LIPO" >&6; }
7496 else
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501   if test "x$ac_ct_LIPO" = x; then
7502     LIPO=":"
7503   else
7504     case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510     LIPO=$ac_ct_LIPO
7511   fi
7512 else
7513   LIPO="$ac_cv_prog_LIPO"
7514 fi
7515
7516     if test -n "$ac_tool_prefix"; then
7517   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}otool; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_OTOOL+:} false; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   if test -n "$OTOOL"; then
7525   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532     for ac_exec_ext in '' $ac_executable_extensions; do
7533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539   done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 OTOOL=$ac_cv_prog_OTOOL
7545 if test -n "$OTOOL"; then
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7547 $as_echo "$OTOOL" >&6; }
7548 else
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553
7554 fi
7555 if test -z "$ac_cv_prog_OTOOL"; then
7556   ac_ct_OTOOL=$OTOOL
7557   # Extract the first word of "otool", so it can be a program name with args.
7558 set dummy otool; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   if test -n "$ac_ct_OTOOL"; then
7565   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570   IFS=$as_save_IFS
7571   test -z "$as_dir" && as_dir=.
7572     for ac_exec_ext in '' $ac_executable_extensions; do
7573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574     ac_cv_prog_ac_ct_OTOOL="otool"
7575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576     break 2
7577   fi
7578 done
7579   done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7585 if test -n "$ac_ct_OTOOL"; then
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7587 $as_echo "$ac_ct_OTOOL" >&6; }
7588 else
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593   if test "x$ac_ct_OTOOL" = x; then
7594     OTOOL=":"
7595   else
7596     case $cross_compiling:$ac_tool_warned in
7597 yes:)
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602     OTOOL=$ac_ct_OTOOL
7603   fi
7604 else
7605   OTOOL="$ac_cv_prog_OTOOL"
7606 fi
7607
7608     if test -n "$ac_tool_prefix"; then
7609   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7610 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_OTOOL64+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   if test -n "$OTOOL64"; then
7617   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624     for ac_exec_ext in '' $ac_executable_extensions; do
7625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631   done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 OTOOL64=$ac_cv_prog_OTOOL64
7637 if test -n "$OTOOL64"; then
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7639 $as_echo "$OTOOL64" >&6; }
7640 else
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645
7646 fi
7647 if test -z "$ac_cv_prog_OTOOL64"; then
7648   ac_ct_OTOOL64=$OTOOL64
7649   # Extract the first word of "otool64", so it can be a program name with args.
7650 set dummy otool64; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   if test -n "$ac_ct_OTOOL64"; then
7657   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662   IFS=$as_save_IFS
7663   test -z "$as_dir" && as_dir=.
7664     for ac_exec_ext in '' $ac_executable_extensions; do
7665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666     ac_cv_prog_ac_ct_OTOOL64="otool64"
7667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668     break 2
7669   fi
7670 done
7671   done
7672 IFS=$as_save_IFS
7673
7674 fi
7675 fi
7676 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7677 if test -n "$ac_ct_OTOOL64"; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7679 $as_echo "$ac_ct_OTOOL64" >&6; }
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685   if test "x$ac_ct_OTOOL64" = x; then
7686     OTOOL64=":"
7687   else
7688     case $cross_compiling:$ac_tool_warned in
7689 yes:)
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7692 ac_tool_warned=yes ;;
7693 esac
7694     OTOOL64=$ac_ct_OTOOL64
7695   fi
7696 else
7697   OTOOL64="$ac_cv_prog_OTOOL64"
7698 fi
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7727 $as_echo_n "checking for -single_module linker flag... " >&6; }
7728 if ${lt_cv_apple_cc_single_mod+:} false; then :
7729   $as_echo_n "(cached) " >&6
7730 else
7731   lt_cv_apple_cc_single_mod=no
7732       if test -z "${LT_MULTI_MODULE}"; then
7733         # By default we will add the -single_module flag. You can override
7734         # by either setting the environment variable LT_MULTI_MODULE
7735         # non-empty at configure time, or by adding -multi_module to the
7736         # link flags.
7737         rm -rf libconftest.dylib*
7738         echo "int foo(void){return 1;}" > conftest.c
7739         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7740 -dynamiclib -Wl,-single_module conftest.c" >&5
7741         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7742           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7743         _lt_result=$?
7744         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7745           lt_cv_apple_cc_single_mod=yes
7746         else
7747           cat conftest.err >&5
7748         fi
7749         rm -rf libconftest.dylib*
7750         rm -f conftest.*
7751       fi
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7754 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7756 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7757 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   lt_cv_ld_exported_symbols_list=no
7761       save_LDFLAGS=$LDFLAGS
7762       echo "_main" > conftest.sym
7763       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7764       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766
7767 int
7768 main ()
7769 {
7770
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"; then :
7776   lt_cv_ld_exported_symbols_list=yes
7777 else
7778   lt_cv_ld_exported_symbols_list=no
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext \
7781     conftest$ac_exeext conftest.$ac_ext
7782         LDFLAGS="$save_LDFLAGS"
7783
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7786 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7788 $as_echo_n "checking for -force_load linker flag... " >&6; }
7789 if ${lt_cv_ld_force_load+:} false; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   lt_cv_ld_force_load=no
7793       cat > conftest.c << _LT_EOF
7794 int forced_loaded() { return 2;}
7795 _LT_EOF
7796       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7797       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7798       echo "$AR cru libconftest.a conftest.o" >&5
7799       $AR cru libconftest.a conftest.o 2>&5
7800       cat > conftest.c << _LT_EOF
7801 int main() { return 0;}
7802 _LT_EOF
7803       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7804       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7805       _lt_result=$?
7806       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7807         lt_cv_ld_force_load=yes
7808       else
7809         cat conftest.err >&5
7810       fi
7811         rm -f conftest.err libconftest.a conftest conftest.c
7812         rm -rf conftest.dSYM
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7816 $as_echo "$lt_cv_ld_force_load" >&6; }
7817     case $host_os in
7818     rhapsody* | darwin1.[012])
7819       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7820     darwin1.*)
7821       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7822     darwin*) # darwin 5.x on
7823       # if running on 10.5 or later, the deployment target defaults
7824       # to the OS version, if on x86, and 10.4, the deployment
7825       # target defaults to 10.4. Don't you love it?
7826       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7827         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7828           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7829         10.[012][,.]*)
7830           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7831         10.*)
7832           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7833       esac
7834     ;;
7835   esac
7836     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7837       _lt_dar_single_mod='$single_module'
7838     fi
7839     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7840       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7841     else
7842       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7843     fi
7844     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7845       _lt_dsymutil='~$DSYMUTIL $lib || :'
7846     else
7847       _lt_dsymutil=
7848     fi
7849     ;;
7850   esac
7851
7852 for ac_header in dlfcn.h
7853 do :
7854   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7855 "
7856 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7857   cat >>confdefs.h <<_ACEOF
7858 #define HAVE_DLFCN_H 1
7859 _ACEOF
7860
7861 fi
7862
7863 done
7864
7865
7866
7867
7868
7869 # Set options
7870
7871
7872
7873         enable_dlopen=no
7874
7875
7876   enable_win32_dll=no
7877
7878
7879             # Check whether --enable-shared was given.
7880 if test "${enable_shared+set}" = set; then :
7881   enableval=$enable_shared; p=${PACKAGE-default}
7882     case $enableval in
7883     yes) enable_shared=yes ;;
7884     no) enable_shared=no ;;
7885     *)
7886       enable_shared=no
7887       # Look at the argument we got.  We use all the common list separators.
7888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7889       for pkg in $enableval; do
7890         IFS="$lt_save_ifs"
7891         if test "X$pkg" = "X$p"; then
7892           enable_shared=yes
7893         fi
7894       done
7895       IFS="$lt_save_ifs"
7896       ;;
7897     esac
7898 else
7899   enable_shared=yes
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910   # Check whether --enable-static was given.
7911 if test "${enable_static+set}" = set; then :
7912   enableval=$enable_static; p=${PACKAGE-default}
7913     case $enableval in
7914     yes) enable_static=yes ;;
7915     no) enable_static=no ;;
7916     *)
7917      enable_static=no
7918       # Look at the argument we got.  We use all the common list separators.
7919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920       for pkg in $enableval; do
7921         IFS="$lt_save_ifs"
7922         if test "X$pkg" = "X$p"; then
7923           enable_static=yes
7924         fi
7925       done
7926       IFS="$lt_save_ifs"
7927       ;;
7928     esac
7929 else
7930   enable_static=yes
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942 # Check whether --with-pic was given.
7943 if test "${with_pic+set}" = set; then :
7944   withval=$with_pic; pic_mode="$withval"
7945 else
7946   pic_mode=default
7947 fi
7948
7949
7950 test -z "$pic_mode" && pic_mode=default
7951
7952
7953
7954
7955
7956
7957
7958   # Check whether --enable-fast-install was given.
7959 if test "${enable_fast_install+set}" = set; then :
7960   enableval=$enable_fast_install; p=${PACKAGE-default}
7961     case $enableval in
7962     yes) enable_fast_install=yes ;;
7963     no) enable_fast_install=no ;;
7964     *)
7965       enable_fast_install=no
7966       # Look at the argument we got.  We use all the common list separators.
7967       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7968       for pkg in $enableval; do
7969         IFS="$lt_save_ifs"
7970         if test "X$pkg" = "X$p"; then
7971           enable_fast_install=yes
7972         fi
7973       done
7974       IFS="$lt_save_ifs"
7975       ;;
7976     esac
7977 else
7978   enable_fast_install=yes
7979 fi
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991 # This can be used to rebuild libtool when needed
7992 LIBTOOL_DEPS="$ltmain"
7993
7994 # Always use our own libtool.
7995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 test -z "$LN_S" && LN_S="ln -s"
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 if test -n "${ZSH_VERSION+set}" ; then
8038    setopt NO_GLOB_SUBST
8039 fi
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8042 $as_echo_n "checking for objdir... " >&6; }
8043 if ${lt_cv_objdir+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   rm -f .libs 2>/dev/null
8047 mkdir .libs 2>/dev/null
8048 if test -d .libs; then
8049   lt_cv_objdir=.libs
8050 else
8051   # MS-DOS does not allow filenames that begin with a dot.
8052   lt_cv_objdir=_libs
8053 fi
8054 rmdir .libs 2>/dev/null
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8057 $as_echo "$lt_cv_objdir" >&6; }
8058 objdir=$lt_cv_objdir
8059
8060
8061
8062
8063
8064 cat >>confdefs.h <<_ACEOF
8065 #define LT_OBJDIR "$lt_cv_objdir/"
8066 _ACEOF
8067
8068
8069
8070
8071 case $host_os in
8072 aix3*)
8073   # AIX sometimes has problems with the GCC collect2 program.  For some
8074   # reason, if we set the COLLECT_NAMES environment variable, the problems
8075   # vanish in a puff of smoke.
8076   if test "X${COLLECT_NAMES+set}" != Xset; then
8077     COLLECT_NAMES=
8078     export COLLECT_NAMES
8079   fi
8080   ;;
8081 esac
8082
8083 # Global variables:
8084 ofile=libtool
8085 can_build_shared=yes
8086
8087 # All known linkers require a `.a' archive for static linking (except MSVC,
8088 # which needs '.lib').
8089 libext=a
8090
8091 with_gnu_ld="$lt_cv_prog_gnu_ld"
8092
8093 old_CC="$CC"
8094 old_CFLAGS="$CFLAGS"
8095
8096 # Set sane defaults for various variables
8097 test -z "$CC" && CC=cc
8098 test -z "$LTCC" && LTCC=$CC
8099 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8100 test -z "$LD" && LD=ld
8101 test -z "$ac_objext" && ac_objext=o
8102
8103 for cc_temp in $compiler""; do
8104   case $cc_temp in
8105     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8106     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8107     \-*) ;;
8108     *) break;;
8109   esac
8110 done
8111 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8112
8113
8114 # Only perform the check for file, if the check method requires it
8115 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8116 case $deplibs_check_method in
8117 file_magic*)
8118   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8120 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8121 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8122   $as_echo_n "(cached) " >&6
8123 else
8124   case $MAGIC_CMD in
8125 [\\/*] |  ?:[\\/]*)
8126   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8127   ;;
8128 *)
8129   lt_save_MAGIC_CMD="$MAGIC_CMD"
8130   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8131   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132   for ac_dir in $ac_dummy; do
8133     IFS="$lt_save_ifs"
8134     test -z "$ac_dir" && ac_dir=.
8135     if test -f $ac_dir/${ac_tool_prefix}file; then
8136       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8137       if test -n "$file_magic_test_file"; then
8138         case $deplibs_check_method in
8139         "file_magic "*)
8140           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8142           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143             $EGREP "$file_magic_regex" > /dev/null; then
8144             :
8145           else
8146             cat <<_LT_EOF 1>&2
8147
8148 *** Warning: the command libtool uses to detect shared libraries,
8149 *** $file_magic_cmd, produces output that libtool cannot recognize.
8150 *** The result is that libtool may fail to recognize shared libraries
8151 *** as such.  This will affect the creation of libtool libraries that
8152 *** depend on shared libraries, but programs linked with such libtool
8153 *** libraries will work regardless of this problem.  Nevertheless, you
8154 *** may want to report the problem to your system manager and/or to
8155 *** bug-libtool@gnu.org
8156
8157 _LT_EOF
8158           fi ;;
8159         esac
8160       fi
8161       break
8162     fi
8163   done
8164   IFS="$lt_save_ifs"
8165   MAGIC_CMD="$lt_save_MAGIC_CMD"
8166   ;;
8167 esac
8168 fi
8169
8170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171 if test -n "$MAGIC_CMD"; then
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8173 $as_echo "$MAGIC_CMD" >&6; }
8174 else
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178
8179
8180
8181
8182
8183 if test -z "$lt_cv_path_MAGIC_CMD"; then
8184   if test -n "$ac_tool_prefix"; then
8185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8186 $as_echo_n "checking for file... " >&6; }
8187 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   case $MAGIC_CMD in
8191 [\\/*] |  ?:[\\/]*)
8192   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8193   ;;
8194 *)
8195   lt_save_MAGIC_CMD="$MAGIC_CMD"
8196   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8197   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8198   for ac_dir in $ac_dummy; do
8199     IFS="$lt_save_ifs"
8200     test -z "$ac_dir" && ac_dir=.
8201     if test -f $ac_dir/file; then
8202       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8203       if test -n "$file_magic_test_file"; then
8204         case $deplibs_check_method in
8205         "file_magic "*)
8206           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8207           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8208           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8209             $EGREP "$file_magic_regex" > /dev/null; then
8210             :
8211           else
8212             cat <<_LT_EOF 1>&2
8213
8214 *** Warning: the command libtool uses to detect shared libraries,
8215 *** $file_magic_cmd, produces output that libtool cannot recognize.
8216 *** The result is that libtool may fail to recognize shared libraries
8217 *** as such.  This will affect the creation of libtool libraries that
8218 *** depend on shared libraries, but programs linked with such libtool
8219 *** libraries will work regardless of this problem.  Nevertheless, you
8220 *** may want to report the problem to your system manager and/or to
8221 *** bug-libtool@gnu.org
8222
8223 _LT_EOF
8224           fi ;;
8225         esac
8226       fi
8227       break
8228     fi
8229   done
8230   IFS="$lt_save_ifs"
8231   MAGIC_CMD="$lt_save_MAGIC_CMD"
8232   ;;
8233 esac
8234 fi
8235
8236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237 if test -n "$MAGIC_CMD"; then
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8239 $as_echo "$MAGIC_CMD" >&6; }
8240 else
8241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245
8246   else
8247     MAGIC_CMD=:
8248   fi
8249 fi
8250
8251   fi
8252   ;;
8253 esac
8254
8255 # Use C for the default configuration in the libtool script
8256
8257 lt_save_CC="$CC"
8258 ac_ext=c
8259 ac_cpp='$CPP $CPPFLAGS'
8260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8263
8264
8265 # Source file extension for C test sources.
8266 ac_ext=c
8267
8268 # Object file extension for compiled C test sources.
8269 objext=o
8270 objext=$objext
8271
8272 # Code to be used in simple compile tests
8273 lt_simple_compile_test_code="int some_variable = 0;"
8274
8275 # Code to be used in simple link tests
8276 lt_simple_link_test_code='int main(){return(0);}'
8277
8278
8279
8280
8281
8282
8283
8284 # If no C compiler was specified, use CC.
8285 LTCC=${LTCC-"$CC"}
8286
8287 # If no C compiler flags were specified, use CFLAGS.
8288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8289
8290 # Allow CC to be a program name with arguments.
8291 compiler=$CC
8292
8293 # Save the default compiler, since it gets overwritten when the other
8294 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8295 compiler_DEFAULT=$CC
8296
8297 # save warnings/boilerplate of simple test code
8298 ac_outfile=conftest.$ac_objext
8299 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8300 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301 _lt_compiler_boilerplate=`cat conftest.err`
8302 $RM conftest*
8303
8304 ac_outfile=conftest.$ac_objext
8305 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8306 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8307 _lt_linker_boilerplate=`cat conftest.err`
8308 $RM -r conftest*
8309
8310
8311 ## CAVEAT EMPTOR:
8312 ## There is no encapsulation within the following macros, do not change
8313 ## the running order or otherwise move them around unless you know exactly
8314 ## what you are doing...
8315 if test -n "$compiler"; then
8316
8317 lt_prog_compiler_no_builtin_flag=
8318
8319 if test "$GCC" = yes; then
8320   case $cc_basename in
8321   nvcc*)
8322     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8323   *)
8324     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8325   esac
8326
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8328 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8329 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   lt_cv_prog_compiler_rtti_exceptions=no
8333    ac_outfile=conftest.$ac_objext
8334    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335    lt_compiler_flag="-fno-rtti -fno-exceptions"
8336    # Insert the option either (1) after the last *FLAGS variable, or
8337    # (2) before a word containing "conftest.", or (3) at the end.
8338    # Note that $ac_compile itself does not contain backslashes and begins
8339    # with a dollar sign (not a hyphen), so the echo should work correctly.
8340    # The option is referenced via a variable to avoid confusing sed.
8341    lt_compile=`echo "$ac_compile" | $SED \
8342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344    -e 's:$: $lt_compiler_flag:'`
8345    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8346    (eval "$lt_compile" 2>conftest.err)
8347    ac_status=$?
8348    cat conftest.err >&5
8349    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350    if (exit $ac_status) && test -s "$ac_outfile"; then
8351      # The compiler can only warn and ignore the option if not recognized
8352      # So say no if there are warnings other than the usual output.
8353      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8354      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8355      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8356        lt_cv_prog_compiler_rtti_exceptions=yes
8357      fi
8358    fi
8359    $RM conftest*
8360
8361 fi
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8363 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8364
8365 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8366     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8367 else
8368     :
8369 fi
8370
8371 fi
8372
8373
8374
8375
8376
8377
8378   lt_prog_compiler_wl=
8379 lt_prog_compiler_pic=
8380 lt_prog_compiler_static=
8381
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8383 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8384
8385   if test "$GCC" = yes; then
8386     lt_prog_compiler_wl='-Wl,'
8387     lt_prog_compiler_static='-static'
8388
8389     case $host_os in
8390       aix*)
8391       # All AIX code is PIC.
8392       if test "$host_cpu" = ia64; then
8393         # AIX 5 now supports IA64 processor
8394         lt_prog_compiler_static='-Bstatic'
8395       fi
8396       lt_prog_compiler_pic='-fPIC'
8397       ;;
8398
8399     amigaos*)
8400       case $host_cpu in
8401       powerpc)
8402             # see comment about AmigaOS4 .so support
8403             lt_prog_compiler_pic='-fPIC'
8404         ;;
8405       m68k)
8406             # FIXME: we need at least 68020 code to build shared libraries, but
8407             # adding the `-m68020' flag to GCC prevents building anything better,
8408             # like `-m68040'.
8409             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8410         ;;
8411       esac
8412       ;;
8413
8414     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8415       # PIC is the default for these OSes.
8416       ;;
8417
8418     mingw* | cygwin* | pw32* | os2* | cegcc*)
8419       # This hack is so that the source file can tell whether it is being
8420       # built for inclusion in a dll (and should export symbols for example).
8421       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8422       # (--disable-auto-import) libraries
8423       lt_prog_compiler_pic='-DDLL_EXPORT'
8424       ;;
8425
8426     darwin* | rhapsody*)
8427       # PIC is the default on this platform
8428       # Common symbols not allowed in MH_DYLIB files
8429       lt_prog_compiler_pic='-fno-common'
8430       ;;
8431
8432     haiku*)
8433       # PIC is the default for Haiku.
8434       # The "-static" flag exists, but is broken.
8435       lt_prog_compiler_static=
8436       ;;
8437
8438     hpux*)
8439       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8440       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8441       # sets the default TLS model and affects inlining.
8442       case $host_cpu in
8443       hppa*64*)
8444         # +Z the default
8445         ;;
8446       *)
8447         lt_prog_compiler_pic='-fPIC'
8448         ;;
8449       esac
8450       ;;
8451
8452     interix[3-9]*)
8453       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8454       # Instead, we relocate shared libraries at runtime.
8455       ;;
8456
8457     msdosdjgpp*)
8458       # Just because we use GCC doesn't mean we suddenly get shared libraries
8459       # on systems that don't support them.
8460       lt_prog_compiler_can_build_shared=no
8461       enable_shared=no
8462       ;;
8463
8464     *nto* | *qnx*)
8465       # QNX uses GNU C++, but need to define -shared option too, otherwise
8466       # it will coredump.
8467       lt_prog_compiler_pic='-fPIC -shared'
8468       ;;
8469
8470     sysv4*MP*)
8471       if test -d /usr/nec; then
8472         lt_prog_compiler_pic=-Kconform_pic
8473       fi
8474       ;;
8475
8476     *)
8477       lt_prog_compiler_pic='-fPIC'
8478       ;;
8479     esac
8480
8481     case $cc_basename in
8482     nvcc*) # Cuda Compiler Driver 2.2
8483       lt_prog_compiler_wl='-Xlinker '
8484       lt_prog_compiler_pic='-Xcompiler -fPIC'
8485       ;;
8486     esac
8487   else
8488     # PORTME Check for flag to pass linker flags through the system compiler.
8489     case $host_os in
8490     aix*)
8491       lt_prog_compiler_wl='-Wl,'
8492       if test "$host_cpu" = ia64; then
8493         # AIX 5 now supports IA64 processor
8494         lt_prog_compiler_static='-Bstatic'
8495       else
8496         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8497       fi
8498       ;;
8499
8500     mingw* | cygwin* | pw32* | os2* | cegcc*)
8501       # This hack is so that the source file can tell whether it is being
8502       # built for inclusion in a dll (and should export symbols for example).
8503       lt_prog_compiler_pic='-DDLL_EXPORT'
8504       ;;
8505
8506     hpux9* | hpux10* | hpux11*)
8507       lt_prog_compiler_wl='-Wl,'
8508       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509       # not for PA HP-UX.
8510       case $host_cpu in
8511       hppa*64*|ia64*)
8512         # +Z the default
8513         ;;
8514       *)
8515         lt_prog_compiler_pic='+Z'
8516         ;;
8517       esac
8518       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8519       lt_prog_compiler_static='${wl}-a ${wl}archive'
8520       ;;
8521
8522     irix5* | irix6* | nonstopux*)
8523       lt_prog_compiler_wl='-Wl,'
8524       # PIC (with -KPIC) is the default.
8525       lt_prog_compiler_static='-non_shared'
8526       ;;
8527
8528     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8529       case $cc_basename in
8530       # old Intel for x86_64 which still supported -KPIC.
8531       ecc*)
8532         lt_prog_compiler_wl='-Wl,'
8533         lt_prog_compiler_pic='-KPIC'
8534         lt_prog_compiler_static='-static'
8535         ;;
8536       # icc used to be incompatible with GCC.
8537       # ICC 10 doesn't accept -KPIC any more.
8538       icc* | ifort*)
8539         lt_prog_compiler_wl='-Wl,'
8540         lt_prog_compiler_pic='-fPIC'
8541         lt_prog_compiler_static='-static'
8542         ;;
8543       # Lahey Fortran 8.1.
8544       lf95*)
8545         lt_prog_compiler_wl='-Wl,'
8546         lt_prog_compiler_pic='--shared'
8547         lt_prog_compiler_static='--static'
8548         ;;
8549       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8550         # Portland Group compilers (*not* the Pentium gcc compiler,
8551         # which looks to be a dead project)
8552         lt_prog_compiler_wl='-Wl,'
8553         lt_prog_compiler_pic='-fpic'
8554         lt_prog_compiler_static='-Bstatic'
8555         ;;
8556       ccc*)
8557         lt_prog_compiler_wl='-Wl,'
8558         # All Alpha code is PIC.
8559         lt_prog_compiler_static='-non_shared'
8560         ;;
8561       xl* | bgxl* | bgf* | mpixl*)
8562         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8563         lt_prog_compiler_wl='-Wl,'
8564         lt_prog_compiler_pic='-qpic'
8565         lt_prog_compiler_static='-qstaticlink'
8566         ;;
8567       *)
8568         case `$CC -V 2>&1 | sed 5q` in
8569         *Sun\ F* | *Sun*Fortran*)
8570           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8571           lt_prog_compiler_pic='-KPIC'
8572           lt_prog_compiler_static='-Bstatic'
8573           lt_prog_compiler_wl=''
8574           ;;
8575         *Sun\ C*)
8576           # Sun C 5.9
8577           lt_prog_compiler_pic='-KPIC'
8578           lt_prog_compiler_static='-Bstatic'
8579           lt_prog_compiler_wl='-Wl,'
8580           ;;
8581         esac
8582         ;;
8583       esac
8584       ;;
8585
8586     newsos6)
8587       lt_prog_compiler_pic='-KPIC'
8588       lt_prog_compiler_static='-Bstatic'
8589       ;;
8590
8591     *nto* | *qnx*)
8592       # QNX uses GNU C++, but need to define -shared option too, otherwise
8593       # it will coredump.
8594       lt_prog_compiler_pic='-fPIC -shared'
8595       ;;
8596
8597     osf3* | osf4* | osf5*)
8598       lt_prog_compiler_wl='-Wl,'
8599       # All OSF/1 code is PIC.
8600       lt_prog_compiler_static='-non_shared'
8601       ;;
8602
8603     rdos*)
8604       lt_prog_compiler_static='-non_shared'
8605       ;;
8606
8607     solaris*)
8608       lt_prog_compiler_pic='-KPIC'
8609       lt_prog_compiler_static='-Bstatic'
8610       case $cc_basename in
8611       f77* | f90* | f95*)
8612         lt_prog_compiler_wl='-Qoption ld ';;
8613       *)
8614         lt_prog_compiler_wl='-Wl,';;
8615       esac
8616       ;;
8617
8618     sunos4*)
8619       lt_prog_compiler_wl='-Qoption ld '
8620       lt_prog_compiler_pic='-PIC'
8621       lt_prog_compiler_static='-Bstatic'
8622       ;;
8623
8624     sysv4 | sysv4.2uw2* | sysv4.3*)
8625       lt_prog_compiler_wl='-Wl,'
8626       lt_prog_compiler_pic='-KPIC'
8627       lt_prog_compiler_static='-Bstatic'
8628       ;;
8629
8630     sysv4*MP*)
8631       if test -d /usr/nec ;then
8632         lt_prog_compiler_pic='-Kconform_pic'
8633         lt_prog_compiler_static='-Bstatic'
8634       fi
8635       ;;
8636
8637     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638       lt_prog_compiler_wl='-Wl,'
8639       lt_prog_compiler_pic='-KPIC'
8640       lt_prog_compiler_static='-Bstatic'
8641       ;;
8642
8643     unicos*)
8644       lt_prog_compiler_wl='-Wl,'
8645       lt_prog_compiler_can_build_shared=no
8646       ;;
8647
8648     uts4*)
8649       lt_prog_compiler_pic='-pic'
8650       lt_prog_compiler_static='-Bstatic'
8651       ;;
8652
8653     *)
8654       lt_prog_compiler_can_build_shared=no
8655       ;;
8656     esac
8657   fi
8658
8659 case $host_os in
8660   # For platforms which do not support PIC, -DPIC is meaningless:
8661   *djgpp*)
8662     lt_prog_compiler_pic=
8663     ;;
8664   *)
8665     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8666     ;;
8667 esac
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8669 $as_echo "$lt_prog_compiler_pic" >&6; }
8670
8671
8672
8673
8674
8675
8676 #
8677 # Check to make sure the PIC flag actually works.
8678 #
8679 if test -n "$lt_prog_compiler_pic"; then
8680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8681 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8682 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8683   $as_echo_n "(cached) " >&6
8684 else
8685   lt_cv_prog_compiler_pic_works=no
8686    ac_outfile=conftest.$ac_objext
8687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8689    # Insert the option either (1) after the last *FLAGS variable, or
8690    # (2) before a word containing "conftest.", or (3) at the end.
8691    # Note that $ac_compile itself does not contain backslashes and begins
8692    # with a dollar sign (not a hyphen), so the echo should work correctly.
8693    # The option is referenced via a variable to avoid confusing sed.
8694    lt_compile=`echo "$ac_compile" | $SED \
8695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697    -e 's:$: $lt_compiler_flag:'`
8698    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8699    (eval "$lt_compile" 2>conftest.err)
8700    ac_status=$?
8701    cat conftest.err >&5
8702    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703    if (exit $ac_status) && test -s "$ac_outfile"; then
8704      # The compiler can only warn and ignore the option if not recognized
8705      # So say no if there are warnings other than the usual output.
8706      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8707      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8708      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8709        lt_cv_prog_compiler_pic_works=yes
8710      fi
8711    fi
8712    $RM conftest*
8713
8714 fi
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8716 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8717
8718 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8719     case $lt_prog_compiler_pic in
8720      "" | " "*) ;;
8721      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8722      esac
8723 else
8724     lt_prog_compiler_pic=
8725      lt_prog_compiler_can_build_shared=no
8726 fi
8727
8728 fi
8729
8730
8731
8732
8733
8734
8735 #
8736 # Check to make sure the static flag actually works.
8737 #
8738 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8741 if ${lt_cv_prog_compiler_static_works+:} false; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   lt_cv_prog_compiler_static_works=no
8745    save_LDFLAGS="$LDFLAGS"
8746    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8747    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8749      # The linker can only warn and ignore the option if not recognized
8750      # So say no if there are warnings
8751      if test -s conftest.err; then
8752        # Append any errors to the config.log.
8753        cat conftest.err 1>&5
8754        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756        if diff conftest.exp conftest.er2 >/dev/null; then
8757          lt_cv_prog_compiler_static_works=yes
8758        fi
8759      else
8760        lt_cv_prog_compiler_static_works=yes
8761      fi
8762    fi
8763    $RM -r conftest*
8764    LDFLAGS="$save_LDFLAGS"
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8771     :
8772 else
8773     lt_prog_compiler_static=
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8784 if ${lt_cv_prog_compiler_c_o+:} false; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   lt_cv_prog_compiler_c_o=no
8788    $RM -r conftest 2>/dev/null
8789    mkdir conftest
8790    cd conftest
8791    mkdir out
8792    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8793
8794    lt_compiler_flag="-o out/conftest2.$ac_objext"
8795    # Insert the option either (1) after the last *FLAGS variable, or
8796    # (2) before a word containing "conftest.", or (3) at the end.
8797    # Note that $ac_compile itself does not contain backslashes and begins
8798    # with a dollar sign (not a hyphen), so the echo should work correctly.
8799    lt_compile=`echo "$ac_compile" | $SED \
8800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802    -e 's:$: $lt_compiler_flag:'`
8803    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8804    (eval "$lt_compile" 2>out/conftest.err)
8805    ac_status=$?
8806    cat out/conftest.err >&5
8807    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8809    then
8810      # The compiler can only warn and ignore the option if not recognized
8811      # So say no if there are warnings
8812      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8813      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815        lt_cv_prog_compiler_c_o=yes
8816      fi
8817    fi
8818    chmod u+w . 2>&5
8819    $RM conftest*
8820    # SGI C++ compiler will create directory out/ii_files/ for
8821    # template instantiation
8822    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8823    $RM out/* && rmdir out
8824    cd ..
8825    $RM -r conftest
8826    $RM conftest*
8827
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8831
8832
8833
8834
8835
8836
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8839 if ${lt_cv_prog_compiler_c_o+:} false; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   lt_cv_prog_compiler_c_o=no
8843    $RM -r conftest 2>/dev/null
8844    mkdir conftest
8845    cd conftest
8846    mkdir out
8847    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849    lt_compiler_flag="-o out/conftest2.$ac_objext"
8850    # Insert the option either (1) after the last *FLAGS variable, or
8851    # (2) before a word containing "conftest.", or (3) at the end.
8852    # Note that $ac_compile itself does not contain backslashes and begins
8853    # with a dollar sign (not a hyphen), so the echo should work correctly.
8854    lt_compile=`echo "$ac_compile" | $SED \
8855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857    -e 's:$: $lt_compiler_flag:'`
8858    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859    (eval "$lt_compile" 2>out/conftest.err)
8860    ac_status=$?
8861    cat out/conftest.err >&5
8862    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864    then
8865      # The compiler can only warn and ignore the option if not recognized
8866      # So say no if there are warnings
8867      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8868      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870        lt_cv_prog_compiler_c_o=yes
8871      fi
8872    fi
8873    chmod u+w . 2>&5
8874    $RM conftest*
8875    # SGI C++ compiler will create directory out/ii_files/ for
8876    # template instantiation
8877    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878    $RM out/* && rmdir out
8879    cd ..
8880    $RM -r conftest
8881    $RM conftest*
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888
8889
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892   # do not overwrite the value of need_locks provided by the user
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8894 $as_echo_n "checking if we can lock with hard links... " >&6; }
8895   hard_links=yes
8896   $RM conftest*
8897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898   touch conftest.a
8899   ln conftest.a conftest.b 2>&5 || hard_links=no
8900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8902 $as_echo "$hard_links" >&6; }
8903   if test "$hard_links" = no; then
8904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8906     need_locks=warn
8907   fi
8908 else
8909   need_locks=no
8910 fi
8911
8912
8913
8914
8915
8916
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8919
8920   runpath_var=
8921   allow_undefined_flag=
8922   always_export_symbols=no
8923   archive_cmds=
8924   archive_expsym_cmds=
8925   compiler_needs_object=no
8926   enable_shared_with_static_runtimes=no
8927   export_dynamic_flag_spec=
8928   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8929   hardcode_automatic=no
8930   hardcode_direct=no
8931   hardcode_direct_absolute=no
8932   hardcode_libdir_flag_spec=
8933   hardcode_libdir_flag_spec_ld=
8934   hardcode_libdir_separator=
8935   hardcode_minus_L=no
8936   hardcode_shlibpath_var=unsupported
8937   inherit_rpath=no
8938   link_all_deplibs=unknown
8939   module_cmds=
8940   module_expsym_cmds=
8941   old_archive_from_new_cmds=
8942   old_archive_from_expsyms_cmds=
8943   thread_safe_flag_spec=
8944   whole_archive_flag_spec=
8945   # include_expsyms should be a list of space-separated symbols to be *always*
8946   # included in the symbol list
8947   include_expsyms=
8948   # exclude_expsyms can be an extended regexp of symbols to exclude
8949   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8950   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8951   # as well as any symbol that contains `d'.
8952   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8953   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8954   # platforms (ab)use it in PIC code, but their linkers get confused if
8955   # the symbol is explicitly referenced.  Since portable code cannot
8956   # rely on this symbol name, it's probably fine to never include it in
8957   # preloaded symbol tables.
8958   # Exclude shared library initialization/finalization symbols.
8959   extract_expsyms_cmds=
8960
8961   case $host_os in
8962   cygwin* | mingw* | pw32* | cegcc*)
8963     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964     # When not using gcc, we currently assume that we are using
8965     # Microsoft Visual C++.
8966     if test "$GCC" != yes; then
8967       with_gnu_ld=no
8968     fi
8969     ;;
8970   interix*)
8971     # we just hope/assume this is gcc and not c89 (= MSVC++)
8972     with_gnu_ld=yes
8973     ;;
8974   openbsd*)
8975     with_gnu_ld=no
8976     ;;
8977   esac
8978
8979   ld_shlibs=yes
8980
8981   # On some targets, GNU ld is compatible enough with the native linker
8982   # that we're better off using the native interface for both.
8983   lt_use_gnu_ld_interface=no
8984   if test "$with_gnu_ld" = yes; then
8985     case $host_os in
8986       aix*)
8987         # The AIX port of GNU ld has always aspired to compatibility
8988         # with the native linker.  However, as the warning in the GNU ld
8989         # block says, versions before 2.19.5* couldn't really create working
8990         # shared libraries, regardless of the interface used.
8991         case `$LD -v 2>&1` in
8992           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8993           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8994           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8995           *)
8996             lt_use_gnu_ld_interface=yes
8997             ;;
8998         esac
8999         ;;
9000       *)
9001         lt_use_gnu_ld_interface=yes
9002         ;;
9003     esac
9004   fi
9005
9006   if test "$lt_use_gnu_ld_interface" = yes; then
9007     # If archive_cmds runs LD, not CC, wlarc should be empty
9008     wlarc='${wl}'
9009
9010     # Set some defaults for GNU ld with shared library support. These
9011     # are reset later if shared libraries are not supported. Putting them
9012     # here allows them to be overridden if necessary.
9013     runpath_var=LD_RUN_PATH
9014     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015     export_dynamic_flag_spec='${wl}--export-dynamic'
9016     # ancient GNU ld didn't support --whole-archive et. al.
9017     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9018       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9019     else
9020       whole_archive_flag_spec=
9021     fi
9022     supports_anon_versioning=no
9023     case `$LD -v 2>&1` in
9024       *GNU\ gold*) supports_anon_versioning=yes ;;
9025       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9026       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9027       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9028       *\ 2.11.*) ;; # other 2.11 versions
9029       *) supports_anon_versioning=yes ;;
9030     esac
9031
9032     # See if GNU ld supports shared libraries.
9033     case $host_os in
9034     aix[3-9]*)
9035       # On AIX/PPC, the GNU linker is very broken
9036       if test "$host_cpu" != ia64; then
9037         ld_shlibs=no
9038         cat <<_LT_EOF 1>&2
9039
9040 *** Warning: the GNU linker, at least up to release 2.19, is reported
9041 *** to be unable to reliably create shared libraries on AIX.
9042 *** Therefore, libtool is disabling shared libraries support.  If you
9043 *** really care for shared libraries, you may want to install binutils
9044 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9045 *** You will then need to restart the configuration process.
9046
9047 _LT_EOF
9048       fi
9049       ;;
9050
9051     amigaos*)
9052       case $host_cpu in
9053       powerpc)
9054             # see comment about AmigaOS4 .so support
9055             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056             archive_expsym_cmds=''
9057         ;;
9058       m68k)
9059             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)'
9060             hardcode_libdir_flag_spec='-L$libdir'
9061             hardcode_minus_L=yes
9062         ;;
9063       esac
9064       ;;
9065
9066     beos*)
9067       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068         allow_undefined_flag=unsupported
9069         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9070         # support --undefined.  This deserves some investigation.  FIXME
9071         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9072       else
9073         ld_shlibs=no
9074       fi
9075       ;;
9076
9077     cygwin* | mingw* | pw32* | cegcc*)
9078       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9079       # as there is no search path for DLLs.
9080       hardcode_libdir_flag_spec='-L$libdir'
9081       export_dynamic_flag_spec='${wl}--export-all-symbols'
9082       allow_undefined_flag=unsupported
9083       always_export_symbols=no
9084       enable_shared_with_static_runtimes=yes
9085       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9086
9087       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9088         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9089         # If the export-symbols file already is a .def file (1st line
9090         # is EXPORTS), use it as is; otherwise, prepend...
9091         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9092           cp $export_symbols $output_objdir/$soname.def;
9093         else
9094           echo EXPORTS > $output_objdir/$soname.def;
9095           cat $export_symbols >> $output_objdir/$soname.def;
9096         fi~
9097         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9098       else
9099         ld_shlibs=no
9100       fi
9101       ;;
9102
9103     haiku*)
9104       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105       link_all_deplibs=yes
9106       ;;
9107
9108     interix[3-9]*)
9109       hardcode_direct=no
9110       hardcode_shlibpath_var=no
9111       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9112       export_dynamic_flag_spec='${wl}-E'
9113       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9114       # Instead, shared libraries are loaded at an image base (0x10000000 by
9115       # default) and relocated if they conflict, which is a slow very memory
9116       # consuming and fragmenting process.  To avoid this, we pick a random,
9117       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9118       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9119       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9120       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'
9121       ;;
9122
9123     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9124       tmp_diet=no
9125       if test "$host_os" = linux-dietlibc; then
9126         case $cc_basename in
9127           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9128         esac
9129       fi
9130       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9131          && test "$tmp_diet" = no
9132       then
9133         tmp_addflag=' $pic_flag'
9134         tmp_sharedflag='-shared'
9135         case $cc_basename,$host_cpu in
9136         pgcc*)                          # Portland Group C compiler
9137           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'
9138           tmp_addflag=' $pic_flag'
9139           ;;
9140         pgf77* | pgf90* | pgf95* | pgfortran*)
9141                                         # Portland Group f77 and f90 compilers
9142           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'
9143           tmp_addflag=' $pic_flag -Mnomain' ;;
9144         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9145           tmp_addflag=' -i_dynamic' ;;
9146         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9147           tmp_addflag=' -i_dynamic -nofor_main' ;;
9148         ifc* | ifort*)                  # Intel Fortran compiler
9149           tmp_addflag=' -nofor_main' ;;
9150         lf95*)                          # Lahey Fortran 8.1
9151           whole_archive_flag_spec=
9152           tmp_sharedflag='--shared' ;;
9153         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9154           tmp_sharedflag='-qmkshrobj'
9155           tmp_addflag= ;;
9156         nvcc*)  # Cuda Compiler Driver 2.2
9157           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'
9158           compiler_needs_object=yes
9159           ;;
9160         esac
9161         case `$CC -V 2>&1 | sed 5q` in
9162         *Sun\ C*)                       # Sun C 5.9
9163           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'
9164           compiler_needs_object=yes
9165           tmp_sharedflag='-G' ;;
9166         *Sun\ F*)                       # Sun Fortran 8.3
9167           tmp_sharedflag='-G' ;;
9168         esac
9169         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170
9171         if test "x$supports_anon_versioning" = xyes; then
9172           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9173             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9174             echo "local: *; };" >> $output_objdir/$libname.ver~
9175             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9176         fi
9177
9178         case $cc_basename in
9179         xlf* | bgf* | bgxlf* | mpixlf*)
9180           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9181           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9182           hardcode_libdir_flag_spec=
9183           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9184           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9185           if test "x$supports_anon_versioning" = xyes; then
9186             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9187               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9188               echo "local: *; };" >> $output_objdir/$libname.ver~
9189               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9190           fi
9191           ;;
9192         esac
9193       else
9194         ld_shlibs=no
9195       fi
9196       ;;
9197
9198     netbsd*)
9199       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9200         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9201         wlarc=
9202       else
9203         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9205       fi
9206       ;;
9207
9208     solaris*)
9209       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9210         ld_shlibs=no
9211         cat <<_LT_EOF 1>&2
9212
9213 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9214 *** create shared libraries on Solaris systems.  Therefore, libtool
9215 *** is disabling shared libraries support.  We urge you to upgrade GNU
9216 *** binutils to release 2.9.1 or newer.  Another option is to modify
9217 *** your PATH or compiler configuration so that the native linker is
9218 *** used, and then restart.
9219
9220 _LT_EOF
9221       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9222         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9224       else
9225         ld_shlibs=no
9226       fi
9227       ;;
9228
9229     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9230       case `$LD -v 2>&1` in
9231         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9232         ld_shlibs=no
9233         cat <<_LT_EOF 1>&2
9234
9235 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9236 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9237 *** is disabling shared libraries support.  We urge you to upgrade GNU
9238 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9239 *** your PATH or compiler configuration so that the native linker is
9240 *** used, and then restart.
9241
9242 _LT_EOF
9243         ;;
9244         *)
9245           # For security reasons, it is highly recommended that you always
9246           # use absolute paths for naming shared libraries, and exclude the
9247           # DT_RUNPATH tag from executables and libraries.  But doing so
9248           # requires that you compile everything twice, which is a pain.
9249           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9250             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253           else
9254             ld_shlibs=no
9255           fi
9256         ;;
9257       esac
9258       ;;
9259
9260     sunos4*)
9261       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262       wlarc=
9263       hardcode_direct=yes
9264       hardcode_shlibpath_var=no
9265       ;;
9266
9267     *)
9268       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9269         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9271       else
9272         ld_shlibs=no
9273       fi
9274       ;;
9275     esac
9276
9277     if test "$ld_shlibs" = no; then
9278       runpath_var=
9279       hardcode_libdir_flag_spec=
9280       export_dynamic_flag_spec=
9281       whole_archive_flag_spec=
9282     fi
9283   else
9284     # PORTME fill in a description of your system's linker (not GNU ld)
9285     case $host_os in
9286     aix3*)
9287       allow_undefined_flag=unsupported
9288       always_export_symbols=yes
9289       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'
9290       # Note: this linker hardcodes the directories in LIBPATH if there
9291       # are no directories specified by -L.
9292       hardcode_minus_L=yes
9293       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9294         # Neither direct hardcoding nor static linking is supported with a
9295         # broken collect2.
9296         hardcode_direct=unsupported
9297       fi
9298       ;;
9299
9300     aix[4-9]*)
9301       if test "$host_cpu" = ia64; then
9302         # On IA64, the linker does run time linking by default, so we don't
9303         # have to do anything special.
9304         aix_use_runtimelinking=no
9305         exp_sym_flag='-Bexport'
9306         no_entry_flag=""
9307       else
9308         # If we're using GNU nm, then we don't want the "-C" option.
9309         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9310         # Also, AIX nm treats weak defined symbols like other global
9311         # defined symbols, whereas GNU nm marks them as "W".
9312         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9313           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'
9314         else
9315           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'
9316         fi
9317         aix_use_runtimelinking=no
9318
9319         # Test if we are trying to use run time linking or normal
9320         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9321         # need to do runtime linking.
9322         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9323           for ld_flag in $LDFLAGS; do
9324           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9325             aix_use_runtimelinking=yes
9326             break
9327           fi
9328           done
9329           ;;
9330         esac
9331
9332         exp_sym_flag='-bexport'
9333         no_entry_flag='-bnoentry'
9334       fi
9335
9336       # When large executables or shared objects are built, AIX ld can
9337       # have problems creating the table of contents.  If linking a library
9338       # or program results in "error TOC overflow" add -mminimal-toc to
9339       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9340       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9341
9342       archive_cmds=''
9343       hardcode_direct=yes
9344       hardcode_direct_absolute=yes
9345       hardcode_libdir_separator=':'
9346       link_all_deplibs=yes
9347       file_list_spec='${wl}-f,'
9348
9349       if test "$GCC" = yes; then
9350         case $host_os in aix4.[012]|aix4.[012].*)
9351         # We only want to do this on AIX 4.2 and lower, the check
9352         # below for broken collect2 doesn't work under 4.3+
9353           collect2name=`${CC} -print-prog-name=collect2`
9354           if test -f "$collect2name" &&
9355            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9356           then
9357           # We have reworked collect2
9358           :
9359           else
9360           # We have old collect2
9361           hardcode_direct=unsupported
9362           # It fails to find uninstalled libraries when the uninstalled
9363           # path is not listed in the libpath.  Setting hardcode_minus_L
9364           # to unsupported forces relinking
9365           hardcode_minus_L=yes
9366           hardcode_libdir_flag_spec='-L$libdir'
9367           hardcode_libdir_separator=
9368           fi
9369           ;;
9370         esac
9371         shared_flag='-shared'
9372         if test "$aix_use_runtimelinking" = yes; then
9373           shared_flag="$shared_flag "'${wl}-G'
9374         fi
9375       else
9376         # not using gcc
9377         if test "$host_cpu" = ia64; then
9378         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9379         # chokes on -Wl,-G. The following line is correct:
9380           shared_flag='-G'
9381         else
9382           if test "$aix_use_runtimelinking" = yes; then
9383             shared_flag='${wl}-G'
9384           else
9385             shared_flag='${wl}-bM:SRE'
9386           fi
9387         fi
9388       fi
9389
9390       export_dynamic_flag_spec='${wl}-bexpall'
9391       # It seems that -bexpall does not export symbols beginning with
9392       # underscore (_), so it is better to generate a list of symbols to export.
9393       always_export_symbols=yes
9394       if test "$aix_use_runtimelinking" = yes; then
9395         # Warning - without using the other runtime loading flags (-brtl),
9396         # -berok will link without error, but may produce a broken library.
9397         allow_undefined_flag='-berok'
9398         # Determine the default libpath from the value encoded in an
9399         # empty executable.
9400         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h.  */
9402
9403 int
9404 main ()
9405 {
9406
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412
9413 lt_aix_libpath_sed='
9414     /Import File Strings/,/^$/ {
9415         /^0/ {
9416             s/^0  *\(.*\)$/\1/
9417             p
9418         }
9419     }'
9420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 # Check for a 64-bit object if we didn't find anything.
9422 if test -z "$aix_libpath"; then
9423   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424 fi
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext \
9427     conftest$ac_exeext conftest.$ac_ext
9428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429
9430         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9431         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"
9432       else
9433         if test "$host_cpu" = ia64; then
9434           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9435           allow_undefined_flag="-z nodefs"
9436           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"
9437         else
9438          # Determine the default libpath from the value encoded in an
9439          # empty executable.
9440          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h.  */
9442
9443 int
9444 main ()
9445 {
9446
9447   ;
9448   return 0;
9449 }
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"; then :
9452
9453 lt_aix_libpath_sed='
9454     /Import File Strings/,/^$/ {
9455         /^0/ {
9456             s/^0  *\(.*\)$/\1/
9457             p
9458         }
9459     }'
9460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 # Check for a 64-bit object if we didn't find anything.
9462 if test -z "$aix_libpath"; then
9463   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 fi
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext \
9467     conftest$ac_exeext conftest.$ac_ext
9468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9469
9470          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9471           # Warning - without using the other run time loading flags,
9472           # -berok will link without error, but may produce a broken library.
9473           no_undefined_flag=' ${wl}-bernotok'
9474           allow_undefined_flag=' ${wl}-berok'
9475           if test "$with_gnu_ld" = yes; then
9476             # We only use this code for GNU lds that support --whole-archive.
9477             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9478           else
9479             # Exported symbols can be pulled into shared objects from archives
9480             whole_archive_flag_spec='$convenience'
9481           fi
9482           archive_cmds_need_lc=yes
9483           # This is similar to how AIX traditionally builds its shared libraries.
9484           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'
9485         fi
9486       fi
9487       ;;
9488
9489     amigaos*)
9490       case $host_cpu in
9491       powerpc)
9492             # see comment about AmigaOS4 .so support
9493             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494             archive_expsym_cmds=''
9495         ;;
9496       m68k)
9497             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)'
9498             hardcode_libdir_flag_spec='-L$libdir'
9499             hardcode_minus_L=yes
9500         ;;
9501       esac
9502       ;;
9503
9504     bsdi[45]*)
9505       export_dynamic_flag_spec=-rdynamic
9506       ;;
9507
9508     cygwin* | mingw* | pw32* | cegcc*)
9509       # When not using gcc, we currently assume that we are using
9510       # Microsoft Visual C++.
9511       # hardcode_libdir_flag_spec is actually meaningless, as there is
9512       # no search path for DLLs.
9513       hardcode_libdir_flag_spec=' '
9514       allow_undefined_flag=unsupported
9515       # Tell ltmain to make .lib files, not .a files.
9516       libext=lib
9517       # Tell ltmain to make .dll files, not .so files.
9518       shrext_cmds=".dll"
9519       # FIXME: Setting linknames here is a bad hack.
9520       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9521       # The linker will automatically build a .lib file if we build a DLL.
9522       old_archive_from_new_cmds='true'
9523       # FIXME: Should let the user specify the lib program.
9524       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9525       fix_srcfile_path='`cygpath -w "$srcfile"`'
9526       enable_shared_with_static_runtimes=yes
9527       ;;
9528
9529     darwin* | rhapsody*)
9530
9531
9532   archive_cmds_need_lc=no
9533   hardcode_direct=no
9534   hardcode_automatic=yes
9535   hardcode_shlibpath_var=unsupported
9536   if test "$lt_cv_ld_force_load" = "yes"; then
9537     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\"`'
9538   else
9539     whole_archive_flag_spec=''
9540   fi
9541   link_all_deplibs=yes
9542   allow_undefined_flag="$_lt_dar_allow_undefined"
9543   case $cc_basename in
9544      ifort*) _lt_dar_can_shared=yes ;;
9545      *) _lt_dar_can_shared=$GCC ;;
9546   esac
9547   if test "$_lt_dar_can_shared" = "yes"; then
9548     output_verbose_link_cmd=func_echo_all
9549     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9550     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9551     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}"
9552     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}"
9553
9554   else
9555   ld_shlibs=no
9556   fi
9557
9558       ;;
9559
9560     dgux*)
9561       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562       hardcode_libdir_flag_spec='-L$libdir'
9563       hardcode_shlibpath_var=no
9564       ;;
9565
9566     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9567     # support.  Future versions do this automatically, but an explicit c++rt0.o
9568     # does not break anything, and helps significantly (at the cost of a little
9569     # extra space).
9570     freebsd2.2*)
9571       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9572       hardcode_libdir_flag_spec='-R$libdir'
9573       hardcode_direct=yes
9574       hardcode_shlibpath_var=no
9575       ;;
9576
9577     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9578     freebsd2.*)
9579       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580       hardcode_direct=yes
9581       hardcode_minus_L=yes
9582       hardcode_shlibpath_var=no
9583       ;;
9584
9585     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9586     freebsd* | dragonfly*)
9587       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9588       hardcode_libdir_flag_spec='-R$libdir'
9589       hardcode_direct=yes
9590       hardcode_shlibpath_var=no
9591       ;;
9592
9593     hpux9*)
9594       if test "$GCC" = yes; then
9595         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'
9596       else
9597         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'
9598       fi
9599       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9600       hardcode_libdir_separator=:
9601       hardcode_direct=yes
9602
9603       # hardcode_minus_L: Not really in the search PATH,
9604       # but as the default location of the library.
9605       hardcode_minus_L=yes
9606       export_dynamic_flag_spec='${wl}-E'
9607       ;;
9608
9609     hpux10*)
9610       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9611         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9612       else
9613         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9614       fi
9615       if test "$with_gnu_ld" = no; then
9616         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9617         hardcode_libdir_flag_spec_ld='+b $libdir'
9618         hardcode_libdir_separator=:
9619         hardcode_direct=yes
9620         hardcode_direct_absolute=yes
9621         export_dynamic_flag_spec='${wl}-E'
9622         # hardcode_minus_L: Not really in the search PATH,
9623         # but as the default location of the library.
9624         hardcode_minus_L=yes
9625       fi
9626       ;;
9627
9628     hpux11*)
9629       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9630         case $host_cpu in
9631         hppa*64*)
9632           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633           ;;
9634         ia64*)
9635           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9636           ;;
9637         *)
9638           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9639           ;;
9640         esac
9641       else
9642         case $host_cpu in
9643         hppa*64*)
9644           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645           ;;
9646         ia64*)
9647           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9648           ;;
9649         *)
9650
9651           # Older versions of the 11.00 compiler do not understand -b yet
9652           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9653           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9654 $as_echo_n "checking if $CC understands -b... " >&6; }
9655 if ${lt_cv_prog_compiler__b+:} false; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   lt_cv_prog_compiler__b=no
9659    save_LDFLAGS="$LDFLAGS"
9660    LDFLAGS="$LDFLAGS -b"
9661    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9662    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9663      # The linker can only warn and ignore the option if not recognized
9664      # So say no if there are warnings
9665      if test -s conftest.err; then
9666        # Append any errors to the config.log.
9667        cat conftest.err 1>&5
9668        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9669        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9670        if diff conftest.exp conftest.er2 >/dev/null; then
9671          lt_cv_prog_compiler__b=yes
9672        fi
9673      else
9674        lt_cv_prog_compiler__b=yes
9675      fi
9676    fi
9677    $RM -r conftest*
9678    LDFLAGS="$save_LDFLAGS"
9679
9680 fi
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9682 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9683
9684 if test x"$lt_cv_prog_compiler__b" = xyes; then
9685     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9686 else
9687     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9688 fi
9689
9690           ;;
9691         esac
9692       fi
9693       if test "$with_gnu_ld" = no; then
9694         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9695         hardcode_libdir_separator=:
9696
9697         case $host_cpu in
9698         hppa*64*|ia64*)
9699           hardcode_direct=no
9700           hardcode_shlibpath_var=no
9701           ;;
9702         *)
9703           hardcode_direct=yes
9704           hardcode_direct_absolute=yes
9705           export_dynamic_flag_spec='${wl}-E'
9706
9707           # hardcode_minus_L: Not really in the search PATH,
9708           # but as the default location of the library.
9709           hardcode_minus_L=yes
9710           ;;
9711         esac
9712       fi
9713       ;;
9714
9715     irix5* | irix6* | nonstopux*)
9716       if test "$GCC" = yes; then
9717         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'
9718         # Try to use the -exported_symbol ld option, if it does not
9719         # work, assume that -exports_file does not work either and
9720         # implicitly export all symbols.
9721         save_LDFLAGS="$LDFLAGS"
9722         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9723         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h.  */
9725 int foo(void) {}
9726 _ACEOF
9727 if ac_fn_c_try_link "$LINENO"; then :
9728   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'
9729
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext \
9732     conftest$ac_exeext conftest.$ac_ext
9733         LDFLAGS="$save_LDFLAGS"
9734       else
9735         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'
9736         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'
9737       fi
9738       archive_cmds_need_lc='no'
9739       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740       hardcode_libdir_separator=:
9741       inherit_rpath=yes
9742       link_all_deplibs=yes
9743       ;;
9744
9745     netbsd*)
9746       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9747         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9748       else
9749         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9750       fi
9751       hardcode_libdir_flag_spec='-R$libdir'
9752       hardcode_direct=yes
9753       hardcode_shlibpath_var=no
9754       ;;
9755
9756     newsos6)
9757       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9758       hardcode_direct=yes
9759       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760       hardcode_libdir_separator=:
9761       hardcode_shlibpath_var=no
9762       ;;
9763
9764     *nto* | *qnx*)
9765       ;;
9766
9767     openbsd*)
9768       if test -f /usr/libexec/ld.so; then
9769         hardcode_direct=yes
9770         hardcode_shlibpath_var=no
9771         hardcode_direct_absolute=yes
9772         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9773           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9774           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9775           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9776           export_dynamic_flag_spec='${wl}-E'
9777         else
9778           case $host_os in
9779            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9780              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9781              hardcode_libdir_flag_spec='-R$libdir'
9782              ;;
9783            *)
9784              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9785              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9786              ;;
9787           esac
9788         fi
9789       else
9790         ld_shlibs=no
9791       fi
9792       ;;
9793
9794     os2*)
9795       hardcode_libdir_flag_spec='-L$libdir'
9796       hardcode_minus_L=yes
9797       allow_undefined_flag=unsupported
9798       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'
9799       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9800       ;;
9801
9802     osf3*)
9803       if test "$GCC" = yes; then
9804         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9805         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'
9806       else
9807         allow_undefined_flag=' -expect_unresolved \*'
9808         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'
9809       fi
9810       archive_cmds_need_lc='no'
9811       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812       hardcode_libdir_separator=:
9813       ;;
9814
9815     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9816       if test "$GCC" = yes; then
9817         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9818         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'
9819         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820       else
9821         allow_undefined_flag=' -expect_unresolved \*'
9822         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'
9823         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~
9824         $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'
9825
9826         # Both c and cxx compiler support -rpath directly
9827         hardcode_libdir_flag_spec='-rpath $libdir'
9828       fi
9829       archive_cmds_need_lc='no'
9830       hardcode_libdir_separator=:
9831       ;;
9832
9833     solaris*)
9834       no_undefined_flag=' -z defs'
9835       if test "$GCC" = yes; then
9836         wlarc='${wl}'
9837         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9839           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9840       else
9841         case `$CC -V 2>&1` in
9842         *"Compilers 5.0"*)
9843           wlarc=''
9844           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9846           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9847           ;;
9848         *)
9849           wlarc='${wl}'
9850           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9851           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9852           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9853           ;;
9854         esac
9855       fi
9856       hardcode_libdir_flag_spec='-R$libdir'
9857       hardcode_shlibpath_var=no
9858       case $host_os in
9859       solaris2.[0-5] | solaris2.[0-5].*) ;;
9860       *)
9861         # The compiler driver will combine and reorder linker options,
9862         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9863         # but is careful enough not to reorder.
9864         # Supported since Solaris 2.6 (maybe 2.5.1?)
9865         if test "$GCC" = yes; then
9866           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9867         else
9868           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9869         fi
9870         ;;
9871       esac
9872       link_all_deplibs=yes
9873       ;;
9874
9875     sunos4*)
9876       if test "x$host_vendor" = xsequent; then
9877         # Use $CC to link under sequent, because it throws in some extra .o
9878         # files that make .init and .fini sections work.
9879         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9880       else
9881         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9882       fi
9883       hardcode_libdir_flag_spec='-L$libdir'
9884       hardcode_direct=yes
9885       hardcode_minus_L=yes
9886       hardcode_shlibpath_var=no
9887       ;;
9888
9889     sysv4)
9890       case $host_vendor in
9891         sni)
9892           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893           hardcode_direct=yes # is this really true???
9894         ;;
9895         siemens)
9896           ## LD is ld it makes a PLAMLIB
9897           ## CC just makes a GrossModule.
9898           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9899           reload_cmds='$CC -r -o $output$reload_objs'
9900           hardcode_direct=no
9901         ;;
9902         motorola)
9903           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9905         ;;
9906       esac
9907       runpath_var='LD_RUN_PATH'
9908       hardcode_shlibpath_var=no
9909       ;;
9910
9911     sysv4.3*)
9912       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913       hardcode_shlibpath_var=no
9914       export_dynamic_flag_spec='-Bexport'
9915       ;;
9916
9917     sysv4*MP*)
9918       if test -d /usr/nec; then
9919         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920         hardcode_shlibpath_var=no
9921         runpath_var=LD_RUN_PATH
9922         hardcode_runpath_var=yes
9923         ld_shlibs=yes
9924       fi
9925       ;;
9926
9927     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9928       no_undefined_flag='${wl}-z,text'
9929       archive_cmds_need_lc=no
9930       hardcode_shlibpath_var=no
9931       runpath_var='LD_RUN_PATH'
9932
9933       if test "$GCC" = yes; then
9934         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936       else
9937         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939       fi
9940       ;;
9941
9942     sysv5* | sco3.2v5* | sco5v6*)
9943       # Note: We can NOT use -z defs as we might desire, because we do not
9944       # link with -lc, and that would cause any symbols used from libc to
9945       # always be unresolved, which means just about no library would
9946       # ever link correctly.  If we're not using GNU ld we use -z text
9947       # though, which does catch some bad symbols but isn't as heavy-handed
9948       # as -z defs.
9949       no_undefined_flag='${wl}-z,text'
9950       allow_undefined_flag='${wl}-z,nodefs'
9951       archive_cmds_need_lc=no
9952       hardcode_shlibpath_var=no
9953       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9954       hardcode_libdir_separator=':'
9955       link_all_deplibs=yes
9956       export_dynamic_flag_spec='${wl}-Bexport'
9957       runpath_var='LD_RUN_PATH'
9958
9959       if test "$GCC" = yes; then
9960         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9961         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962       else
9963         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9964         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965       fi
9966       ;;
9967
9968     uts4*)
9969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970       hardcode_libdir_flag_spec='-L$libdir'
9971       hardcode_shlibpath_var=no
9972       ;;
9973
9974     *)
9975       ld_shlibs=no
9976       ;;
9977     esac
9978
9979     if test x$host_vendor = xsni; then
9980       case $host in
9981       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9982         export_dynamic_flag_spec='${wl}-Blargedynsym'
9983         ;;
9984       esac
9985     fi
9986   fi
9987
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9989 $as_echo "$ld_shlibs" >&6; }
9990 test "$ld_shlibs" = no && can_build_shared=no
9991
9992 with_gnu_ld=$with_gnu_ld
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008 #
10009 # Do we need to explicitly link libc?
10010 #
10011 case "x$archive_cmds_need_lc" in
10012 x|xyes)
10013   # Assume -lc should be added
10014   archive_cmds_need_lc=yes
10015
10016   if test "$enable_shared" = yes && test "$GCC" = yes; then
10017     case $archive_cmds in
10018     *'~'*)
10019       # FIXME: we may have to deal with multi-command sequences.
10020       ;;
10021     '$CC '*)
10022       # Test whether the compiler implicitly links with -lc since on some
10023       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10024       # to ld, don't add -lc before -lgcc.
10025       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10026 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10027 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   $RM conftest*
10031         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032
10033         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10034   (eval $ac_compile) 2>&5
10035   ac_status=$?
10036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10037   test $ac_status = 0; } 2>conftest.err; then
10038           soname=conftest
10039           lib=conftest
10040           libobjs=conftest.$ac_objext
10041           deplibs=
10042           wl=$lt_prog_compiler_wl
10043           pic_flag=$lt_prog_compiler_pic
10044           compiler_flags=-v
10045           linker_flags=-v
10046           verstring=
10047           output_objdir=.
10048           libname=conftest
10049           lt_save_allow_undefined_flag=$allow_undefined_flag
10050           allow_undefined_flag=
10051           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10052   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10053   ac_status=$?
10054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10055   test $ac_status = 0; }
10056           then
10057             lt_cv_archive_cmds_need_lc=no
10058           else
10059             lt_cv_archive_cmds_need_lc=yes
10060           fi
10061           allow_undefined_flag=$lt_save_allow_undefined_flag
10062         else
10063           cat conftest.err 1>&5
10064         fi
10065         $RM conftest*
10066
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10069 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10070       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10071       ;;
10072     esac
10073   fi
10074   ;;
10075 esac
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10234 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10235
10236 if test "$GCC" = yes; then
10237   case $host_os in
10238     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10239     *) lt_awk_arg="/^libraries:/" ;;
10240   esac
10241   case $host_os in
10242     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10243     *) lt_sed_strip_eq="s,=/,/,g" ;;
10244   esac
10245   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10246   case $lt_search_path_spec in
10247   *\;*)
10248     # if the path contains ";" then we assume it to be the separator
10249     # otherwise default to the standard path separator (i.e. ":") - it is
10250     # assumed that no part of a normal pathname contains ";" but that should
10251     # okay in the real world where ";" in dirpaths is itself problematic.
10252     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10253     ;;
10254   *)
10255     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10256     ;;
10257   esac
10258   # Ok, now we have the path, separated by spaces, we can step through it
10259   # and add multilib dir if necessary.
10260   lt_tmp_lt_search_path_spec=
10261   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10262   for lt_sys_path in $lt_search_path_spec; do
10263     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10264       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10265     else
10266       test -d "$lt_sys_path" && \
10267         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10268     fi
10269   done
10270   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10271 BEGIN {RS=" "; FS="/|\n";} {
10272   lt_foo="";
10273   lt_count=0;
10274   for (lt_i = NF; lt_i > 0; lt_i--) {
10275     if ($lt_i != "" && $lt_i != ".") {
10276       if ($lt_i == "..") {
10277         lt_count++;
10278       } else {
10279         if (lt_count == 0) {
10280           lt_foo="/" $lt_i lt_foo;
10281         } else {
10282           lt_count--;
10283         }
10284       }
10285     }
10286   }
10287   if (lt_foo != "") { lt_freq[lt_foo]++; }
10288   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10289 }'`
10290   # AWK program above erroneously prepends '/' to C:/dos/paths
10291   # for these hosts.
10292   case $host_os in
10293     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10294       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10295   esac
10296   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10297 else
10298   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10299 fi
10300 library_names_spec=
10301 libname_spec='lib$name'
10302 soname_spec=
10303 shrext_cmds=".so"
10304 postinstall_cmds=
10305 postuninstall_cmds=
10306 finish_cmds=
10307 finish_eval=
10308 shlibpath_var=
10309 shlibpath_overrides_runpath=unknown
10310 version_type=none
10311 dynamic_linker="$host_os ld.so"
10312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10313 need_lib_prefix=unknown
10314 hardcode_into_libs=no
10315
10316 # when you set need_version to no, make sure it does not cause -set_version
10317 # flags to be left without arguments
10318 need_version=unknown
10319
10320 case $host_os in
10321 aix3*)
10322   version_type=linux
10323   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10324   shlibpath_var=LIBPATH
10325
10326   # AIX 3 has no versioning support, so we append a major version to the name.
10327   soname_spec='${libname}${release}${shared_ext}$major'
10328   ;;
10329
10330 aix[4-9]*)
10331   version_type=linux
10332   need_lib_prefix=no
10333   need_version=no
10334   hardcode_into_libs=yes
10335   if test "$host_cpu" = ia64; then
10336     # AIX 5 supports IA64
10337     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10338     shlibpath_var=LD_LIBRARY_PATH
10339   else
10340     # With GCC up to 2.95.x, collect2 would create an import file
10341     # for dependence libraries.  The import file would start with
10342     # the line `#! .'.  This would cause the generated library to
10343     # depend on `.', always an invalid library.  This was fixed in
10344     # development snapshots of GCC prior to 3.0.
10345     case $host_os in
10346       aix4 | aix4.[01] | aix4.[01].*)
10347       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10348            echo ' yes '
10349            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10350         :
10351       else
10352         can_build_shared=no
10353       fi
10354       ;;
10355     esac
10356     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10357     # soname into executable. Probably we can add versioning support to
10358     # collect2, so additional links can be useful in future.
10359     if test "$aix_use_runtimelinking" = yes; then
10360       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10361       # instead of lib<name>.a to let people know that these are not
10362       # typical AIX shared libraries.
10363       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364     else
10365       # We preserve .a as extension for shared libraries through AIX4.2
10366       # and later when we are not doing run time linking.
10367       library_names_spec='${libname}${release}.a $libname.a'
10368       soname_spec='${libname}${release}${shared_ext}$major'
10369     fi
10370     shlibpath_var=LIBPATH
10371   fi
10372   ;;
10373
10374 amigaos*)
10375   case $host_cpu in
10376   powerpc)
10377     # Since July 2007 AmigaOS4 officially supports .so libraries.
10378     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380     ;;
10381   m68k)
10382     library_names_spec='$libname.ixlibrary $libname.a'
10383     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10384     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'
10385     ;;
10386   esac
10387   ;;
10388
10389 beos*)
10390   library_names_spec='${libname}${shared_ext}'
10391   dynamic_linker="$host_os ld.so"
10392   shlibpath_var=LIBRARY_PATH
10393   ;;
10394
10395 bsdi[45]*)
10396   version_type=linux
10397   need_version=no
10398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399   soname_spec='${libname}${release}${shared_ext}$major'
10400   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10401   shlibpath_var=LD_LIBRARY_PATH
10402   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10403   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10404   # the default ld.so.conf also contains /usr/contrib/lib and
10405   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10406   # libtool to hard-code these into programs
10407   ;;
10408
10409 cygwin* | mingw* | pw32* | cegcc*)
10410   version_type=windows
10411   shrext_cmds=".dll"
10412   need_version=no
10413   need_lib_prefix=no
10414
10415   case $GCC,$host_os in
10416   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10417     library_names_spec='$libname.dll.a'
10418     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10419     postinstall_cmds='base_file=`basename \${file}`~
10420       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10421       dldir=$destdir/`dirname \$dlpath`~
10422       test -d \$dldir || mkdir -p \$dldir~
10423       $install_prog $dir/$dlname \$dldir/$dlname~
10424       chmod a+x \$dldir/$dlname~
10425       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10426         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10427       fi'
10428     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10429       dlpath=$dir/\$dldll~
10430        $RM \$dlpath'
10431     shlibpath_overrides_runpath=yes
10432
10433     case $host_os in
10434     cygwin*)
10435       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10436       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10437
10438       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10439       ;;
10440     mingw* | cegcc*)
10441       # MinGW DLLs use traditional 'lib' prefix
10442       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10443       ;;
10444     pw32*)
10445       # pw32 DLLs use 'pw' prefix rather than 'lib'
10446       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10447       ;;
10448     esac
10449     ;;
10450
10451   *)
10452     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10453     ;;
10454   esac
10455   dynamic_linker='Win32 ld.exe'
10456   # FIXME: first we should search . and the directory the executable is in
10457   shlibpath_var=PATH
10458   ;;
10459
10460 darwin* | rhapsody*)
10461   dynamic_linker="$host_os dyld"
10462   version_type=darwin
10463   need_lib_prefix=no
10464   need_version=no
10465   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10466   soname_spec='${libname}${release}${major}$shared_ext'
10467   shlibpath_overrides_runpath=yes
10468   shlibpath_var=DYLD_LIBRARY_PATH
10469   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10470
10471   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10473   ;;
10474
10475 dgux*)
10476   version_type=linux
10477   need_lib_prefix=no
10478   need_version=no
10479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10480   soname_spec='${libname}${release}${shared_ext}$major'
10481   shlibpath_var=LD_LIBRARY_PATH
10482   ;;
10483
10484 freebsd* | dragonfly*)
10485   # DragonFly does not have aout.  When/if they implement a new
10486   # versioning mechanism, adjust this.
10487   if test -x /usr/bin/objformat; then
10488     objformat=`/usr/bin/objformat`
10489   else
10490     case $host_os in
10491     freebsd[23].*) objformat=aout ;;
10492     *) objformat=elf ;;
10493     esac
10494   fi
10495   version_type=freebsd-$objformat
10496   case $version_type in
10497     freebsd-elf*)
10498       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10499       need_version=no
10500       need_lib_prefix=no
10501       ;;
10502     freebsd-*)
10503       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10504       need_version=yes
10505       ;;
10506   esac
10507   shlibpath_var=LD_LIBRARY_PATH
10508   case $host_os in
10509   freebsd2.*)
10510     shlibpath_overrides_runpath=yes
10511     ;;
10512   freebsd3.[01]* | freebsdelf3.[01]*)
10513     shlibpath_overrides_runpath=yes
10514     hardcode_into_libs=yes
10515     ;;
10516   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10517   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10518     shlibpath_overrides_runpath=no
10519     hardcode_into_libs=yes
10520     ;;
10521   *) # from 4.6 on, and DragonFly
10522     shlibpath_overrides_runpath=yes
10523     hardcode_into_libs=yes
10524     ;;
10525   esac
10526   ;;
10527
10528 gnu*)
10529   version_type=linux
10530   need_lib_prefix=no
10531   need_version=no
10532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10533   soname_spec='${libname}${release}${shared_ext}$major'
10534   shlibpath_var=LD_LIBRARY_PATH
10535   hardcode_into_libs=yes
10536   ;;
10537
10538 haiku*)
10539   version_type=linux
10540   need_lib_prefix=no
10541   need_version=no
10542   dynamic_linker="$host_os runtime_loader"
10543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10544   soname_spec='${libname}${release}${shared_ext}$major'
10545   shlibpath_var=LIBRARY_PATH
10546   shlibpath_overrides_runpath=yes
10547   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10548   hardcode_into_libs=yes
10549   ;;
10550
10551 hpux9* | hpux10* | hpux11*)
10552   # Give a soname corresponding to the major version so that dld.sl refuses to
10553   # link against other versions.
10554   version_type=sunos
10555   need_lib_prefix=no
10556   need_version=no
10557   case $host_cpu in
10558   ia64*)
10559     shrext_cmds='.so'
10560     hardcode_into_libs=yes
10561     dynamic_linker="$host_os dld.so"
10562     shlibpath_var=LD_LIBRARY_PATH
10563     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565     soname_spec='${libname}${release}${shared_ext}$major'
10566     if test "X$HPUX_IA64_MODE" = X32; then
10567       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10568     else
10569       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10570     fi
10571     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10572     ;;
10573   hppa*64*)
10574     shrext_cmds='.sl'
10575     hardcode_into_libs=yes
10576     dynamic_linker="$host_os dld.sl"
10577     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10578     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580     soname_spec='${libname}${release}${shared_ext}$major'
10581     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10582     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10583     ;;
10584   *)
10585     shrext_cmds='.sl'
10586     dynamic_linker="$host_os dld.sl"
10587     shlibpath_var=SHLIB_PATH
10588     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590     soname_spec='${libname}${release}${shared_ext}$major'
10591     ;;
10592   esac
10593   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10594   postinstall_cmds='chmod 555 $lib'
10595   # or fails outright, so override atomically:
10596   install_override_mode=555
10597   ;;
10598
10599 interix[3-9]*)
10600   version_type=linux
10601   need_lib_prefix=no
10602   need_version=no
10603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604   soname_spec='${libname}${release}${shared_ext}$major'
10605   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10606   shlibpath_var=LD_LIBRARY_PATH
10607   shlibpath_overrides_runpath=no
10608   hardcode_into_libs=yes
10609   ;;
10610
10611 irix5* | irix6* | nonstopux*)
10612   case $host_os in
10613     nonstopux*) version_type=nonstopux ;;
10614     *)
10615         if test "$lt_cv_prog_gnu_ld" = yes; then
10616                 version_type=linux
10617         else
10618                 version_type=irix
10619         fi ;;
10620   esac
10621   need_lib_prefix=no
10622   need_version=no
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10625   case $host_os in
10626   irix5* | nonstopux*)
10627     libsuff= shlibsuff=
10628     ;;
10629   *)
10630     case $LD in # libtool.m4 will add one of these switches to LD
10631     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10632       libsuff= shlibsuff= libmagic=32-bit;;
10633     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10634       libsuff=32 shlibsuff=N32 libmagic=N32;;
10635     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10636       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10637     *) libsuff= shlibsuff= libmagic=never-match;;
10638     esac
10639     ;;
10640   esac
10641   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10642   shlibpath_overrides_runpath=no
10643   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10644   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10645   hardcode_into_libs=yes
10646   ;;
10647
10648 # No shared lib support for Linux oldld, aout, or coff.
10649 linux*oldld* | linux*aout* | linux*coff*)
10650   dynamic_linker=no
10651   ;;
10652
10653 # This must be Linux ELF.
10654 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10655   version_type=linux
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10661   shlibpath_var=LD_LIBRARY_PATH
10662   shlibpath_overrides_runpath=no
10663
10664   # Some binutils ld are patched to set DT_RUNPATH
10665   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   lt_cv_shlibpath_overrides_runpath=no
10669     save_LDFLAGS=$LDFLAGS
10670     save_libdir=$libdir
10671     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10672          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h.  */
10675
10676 int
10677 main ()
10678 {
10679
10680   ;
10681   return 0;
10682 }
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10686   lt_cv_shlibpath_overrides_runpath=yes
10687 fi
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext \
10690     conftest$ac_exeext conftest.$ac_ext
10691     LDFLAGS=$save_LDFLAGS
10692     libdir=$save_libdir
10693
10694 fi
10695
10696   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10697
10698   # This implies no fast_install, which is unacceptable.
10699   # Some rework will be needed to allow for fast_install
10700   # before this can be enabled.
10701   hardcode_into_libs=yes
10702
10703   # Append ld.so.conf contents to the search path
10704   if test -f /etc/ld.so.conf; then
10705     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' ' '`
10706     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10707   fi
10708
10709   # We used to test for /lib/ld.so.1 and disable shared libraries on
10710   # powerpc, because MkLinux only supported shared libraries with the
10711   # GNU dynamic linker.  Since this was broken with cross compilers,
10712   # most powerpc-linux boxes support dynamic linking these days and
10713   # people can always --disable-shared, the test was removed, and we
10714   # assume the GNU/Linux dynamic linker is in use.
10715   dynamic_linker='GNU/Linux ld.so'
10716   ;;
10717
10718 netbsd*)
10719   version_type=sunos
10720   need_lib_prefix=no
10721   need_version=no
10722   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10724     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10725     dynamic_linker='NetBSD (a.out) ld.so'
10726   else
10727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10728     soname_spec='${libname}${release}${shared_ext}$major'
10729     dynamic_linker='NetBSD ld.elf_so'
10730   fi
10731   shlibpath_var=LD_LIBRARY_PATH
10732   shlibpath_overrides_runpath=yes
10733   hardcode_into_libs=yes
10734   ;;
10735
10736 newsos6)
10737   version_type=linux
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739   shlibpath_var=LD_LIBRARY_PATH
10740   shlibpath_overrides_runpath=yes
10741   ;;
10742
10743 *nto* | *qnx*)
10744   version_type=qnx
10745   need_lib_prefix=no
10746   need_version=no
10747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748   soname_spec='${libname}${release}${shared_ext}$major'
10749   shlibpath_var=LD_LIBRARY_PATH
10750   shlibpath_overrides_runpath=no
10751   hardcode_into_libs=yes
10752   dynamic_linker='ldqnx.so'
10753   ;;
10754
10755 openbsd*)
10756   version_type=sunos
10757   sys_lib_dlsearch_path_spec="/usr/lib"
10758   need_lib_prefix=no
10759   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10760   case $host_os in
10761     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10762     *)                          need_version=no  ;;
10763   esac
10764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10766   shlibpath_var=LD_LIBRARY_PATH
10767   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10768     case $host_os in
10769       openbsd2.[89] | openbsd2.[89].*)
10770         shlibpath_overrides_runpath=no
10771         ;;
10772       *)
10773         shlibpath_overrides_runpath=yes
10774         ;;
10775       esac
10776   else
10777     shlibpath_overrides_runpath=yes
10778   fi
10779   ;;
10780
10781 os2*)
10782   libname_spec='$name'
10783   shrext_cmds=".dll"
10784   need_lib_prefix=no
10785   library_names_spec='$libname${shared_ext} $libname.a'
10786   dynamic_linker='OS/2 ld.exe'
10787   shlibpath_var=LIBPATH
10788   ;;
10789
10790 osf3* | osf4* | osf5*)
10791   version_type=osf
10792   need_lib_prefix=no
10793   need_version=no
10794   soname_spec='${libname}${release}${shared_ext}$major'
10795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796   shlibpath_var=LD_LIBRARY_PATH
10797   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10798   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10799   ;;
10800
10801 rdos*)
10802   dynamic_linker=no
10803   ;;
10804
10805 solaris*)
10806   version_type=linux
10807   need_lib_prefix=no
10808   need_version=no
10809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810   soname_spec='${libname}${release}${shared_ext}$major'
10811   shlibpath_var=LD_LIBRARY_PATH
10812   shlibpath_overrides_runpath=yes
10813   hardcode_into_libs=yes
10814   # ldd complains unless libraries are executable
10815   postinstall_cmds='chmod +x $lib'
10816   ;;
10817
10818 sunos4*)
10819   version_type=sunos
10820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10821   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10822   shlibpath_var=LD_LIBRARY_PATH
10823   shlibpath_overrides_runpath=yes
10824   if test "$with_gnu_ld" = yes; then
10825     need_lib_prefix=no
10826   fi
10827   need_version=yes
10828   ;;
10829
10830 sysv4 | sysv4.3*)
10831   version_type=linux
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   shlibpath_var=LD_LIBRARY_PATH
10835   case $host_vendor in
10836     sni)
10837       shlibpath_overrides_runpath=no
10838       need_lib_prefix=no
10839       runpath_var=LD_RUN_PATH
10840       ;;
10841     siemens)
10842       need_lib_prefix=no
10843       ;;
10844     motorola)
10845       need_lib_prefix=no
10846       need_version=no
10847       shlibpath_overrides_runpath=no
10848       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10849       ;;
10850   esac
10851   ;;
10852
10853 sysv4*MP*)
10854   if test -d /usr/nec ;then
10855     version_type=linux
10856     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10857     soname_spec='$libname${shared_ext}.$major'
10858     shlibpath_var=LD_LIBRARY_PATH
10859   fi
10860   ;;
10861
10862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10863   version_type=freebsd-elf
10864   need_lib_prefix=no
10865   need_version=no
10866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10867   soname_spec='${libname}${release}${shared_ext}$major'
10868   shlibpath_var=LD_LIBRARY_PATH
10869   shlibpath_overrides_runpath=yes
10870   hardcode_into_libs=yes
10871   if test "$with_gnu_ld" = yes; then
10872     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10873   else
10874     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10875     case $host_os in
10876       sco3.2v5*)
10877         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10878         ;;
10879     esac
10880   fi
10881   sys_lib_dlsearch_path_spec='/usr/lib'
10882   ;;
10883
10884 tpf*)
10885   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10886   version_type=linux
10887   need_lib_prefix=no
10888   need_version=no
10889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890   shlibpath_var=LD_LIBRARY_PATH
10891   shlibpath_overrides_runpath=no
10892   hardcode_into_libs=yes
10893   ;;
10894
10895 uts4*)
10896   version_type=linux
10897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898   soname_spec='${libname}${release}${shared_ext}$major'
10899   shlibpath_var=LD_LIBRARY_PATH
10900   ;;
10901
10902 *)
10903   dynamic_linker=no
10904   ;;
10905 esac
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10907 $as_echo "$dynamic_linker" >&6; }
10908 test "$dynamic_linker" = no && can_build_shared=no
10909
10910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10911 if test "$GCC" = yes; then
10912   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10913 fi
10914
10915 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10916   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10917 fi
10918 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10919   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10920 fi
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11014 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11015 hardcode_action=
11016 if test -n "$hardcode_libdir_flag_spec" ||
11017    test -n "$runpath_var" ||
11018    test "X$hardcode_automatic" = "Xyes" ; then
11019
11020   # We can hardcode non-existent directories.
11021   if test "$hardcode_direct" != no &&
11022      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11023      # have to relink, otherwise we might link with an installed library
11024      # when we should be linking with a yet-to-be-installed one
11025      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11026      test "$hardcode_minus_L" != no; then
11027     # Linking always hardcodes the temporary library directory.
11028     hardcode_action=relink
11029   else
11030     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11031     hardcode_action=immediate
11032   fi
11033 else
11034   # We cannot hardcode anything, or else we can only hardcode existing
11035   # directories.
11036   hardcode_action=unsupported
11037 fi
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11039 $as_echo "$hardcode_action" >&6; }
11040
11041 if test "$hardcode_action" = relink ||
11042    test "$inherit_rpath" = yes; then
11043   # Fast installation is not supported
11044   enable_fast_install=no
11045 elif test "$shlibpath_overrides_runpath" = yes ||
11046      test "$enable_shared" = no; then
11047   # Fast installation is not necessary
11048   enable_fast_install=needless
11049 fi
11050
11051
11052
11053
11054
11055
11056   if test "x$enable_dlopen" != xyes; then
11057   enable_dlopen=unknown
11058   enable_dlopen_self=unknown
11059   enable_dlopen_self_static=unknown
11060 else
11061   lt_cv_dlopen=no
11062   lt_cv_dlopen_libs=
11063
11064   case $host_os in
11065   beos*)
11066     lt_cv_dlopen="load_add_on"
11067     lt_cv_dlopen_libs=
11068     lt_cv_dlopen_self=yes
11069     ;;
11070
11071   mingw* | pw32* | cegcc*)
11072     lt_cv_dlopen="LoadLibrary"
11073     lt_cv_dlopen_libs=
11074     ;;
11075
11076   cygwin*)
11077     lt_cv_dlopen="dlopen"
11078     lt_cv_dlopen_libs=
11079     ;;
11080
11081   darwin*)
11082   # if libdl is installed we need to link against it
11083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11084 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11085 if ${ac_cv_lib_dl_dlopen+:} false; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088   ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-ldl  $LIBS"
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h.  */
11092
11093 /* Override any GCC internal prototype to avoid an error.
11094    Use char because int might match the return type of a GCC
11095    builtin and then its argument prototype would still apply.  */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 char dlopen ();
11100 int
11101 main ()
11102 {
11103 return dlopen ();
11104   ;
11105   return 0;
11106 }
11107 _ACEOF
11108 if ac_fn_c_try_link "$LINENO"; then :
11109   ac_cv_lib_dl_dlopen=yes
11110 else
11111   ac_cv_lib_dl_dlopen=no
11112 fi
11113 rm -f core conftest.err conftest.$ac_objext \
11114     conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11118 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11119 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11120   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11121 else
11122
11123     lt_cv_dlopen="dyld"
11124     lt_cv_dlopen_libs=
11125     lt_cv_dlopen_self=yes
11126
11127 fi
11128
11129     ;;
11130
11131   *)
11132     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11133 if test "x$ac_cv_func_shl_load" = xyes; then :
11134   lt_cv_dlopen="shl_load"
11135 else
11136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11137 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11138 if ${ac_cv_lib_dld_shl_load+:} false; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141   ac_check_lib_save_LIBS=$LIBS
11142 LIBS="-ldld  $LIBS"
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h.  */
11145
11146 /* Override any GCC internal prototype to avoid an error.
11147    Use char because int might match the return type of a GCC
11148    builtin and then its argument prototype would still apply.  */
11149 #ifdef __cplusplus
11150 extern "C"
11151 #endif
11152 char shl_load ();
11153 int
11154 main ()
11155 {
11156 return shl_load ();
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_c_try_link "$LINENO"; then :
11162   ac_cv_lib_dld_shl_load=yes
11163 else
11164   ac_cv_lib_dld_shl_load=no
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext \
11167     conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11169 fi
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11171 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11172 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11173   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11174 else
11175   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11176 if test "x$ac_cv_func_dlopen" = xyes; then :
11177   lt_cv_dlopen="dlopen"
11178 else
11179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11181 if ${ac_cv_lib_dl_dlopen+:} false; then :
11182   $as_echo_n "(cached) " >&6
11183 else
11184   ac_check_lib_save_LIBS=$LIBS
11185 LIBS="-ldl  $LIBS"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h.  */
11188
11189 /* Override any GCC internal prototype to avoid an error.
11190    Use char because int might match the return type of a GCC
11191    builtin and then its argument prototype would still apply.  */
11192 #ifdef __cplusplus
11193 extern "C"
11194 #endif
11195 char dlopen ();
11196 int
11197 main ()
11198 {
11199 return dlopen ();
11200   ;
11201   return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_c_try_link "$LINENO"; then :
11205   ac_cv_lib_dl_dlopen=yes
11206 else
11207   ac_cv_lib_dl_dlopen=no
11208 fi
11209 rm -f core conftest.err conftest.$ac_objext \
11210     conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11214 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11215 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11216   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11217 else
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11219 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11220 if ${ac_cv_lib_svld_dlopen+:} false; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-lsvld  $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h.  */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229    Use char because int might match the return type of a GCC
11230    builtin and then its argument prototype would still apply.  */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char dlopen ();
11235 int
11236 main ()
11237 {
11238 return dlopen ();
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244   ac_cv_lib_svld_dlopen=yes
11245 else
11246   ac_cv_lib_svld_dlopen=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249     conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11253 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11254 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11255   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11256 else
11257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11258 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11259 if ${ac_cv_lib_dld_dld_link+:} false; then :
11260   $as_echo_n "(cached) " >&6
11261 else
11262   ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-ldld  $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h.  */
11266
11267 /* Override any GCC internal prototype to avoid an error.
11268    Use char because int might match the return type of a GCC
11269    builtin and then its argument prototype would still apply.  */
11270 #ifdef __cplusplus
11271 extern "C"
11272 #endif
11273 char dld_link ();
11274 int
11275 main ()
11276 {
11277 return dld_link ();
11278   ;
11279   return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283   ac_cv_lib_dld_dld_link=yes
11284 else
11285   ac_cv_lib_dld_dld_link=no
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288     conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11292 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11293 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11294   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11295 fi
11296
11297
11298 fi
11299
11300
11301 fi
11302
11303
11304 fi
11305
11306
11307 fi
11308
11309
11310 fi
11311
11312     ;;
11313   esac
11314
11315   if test "x$lt_cv_dlopen" != xno; then
11316     enable_dlopen=yes
11317   else
11318     enable_dlopen=no
11319   fi
11320
11321   case $lt_cv_dlopen in
11322   dlopen)
11323     save_CPPFLAGS="$CPPFLAGS"
11324     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11325
11326     save_LDFLAGS="$LDFLAGS"
11327     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11328
11329     save_LIBS="$LIBS"
11330     LIBS="$lt_cv_dlopen_libs $LIBS"
11331
11332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11333 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11334 if ${lt_cv_dlopen_self+:} false; then :
11335   $as_echo_n "(cached) " >&6
11336 else
11337           if test "$cross_compiling" = yes; then :
11338   lt_cv_dlopen_self=cross
11339 else
11340   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11341   lt_status=$lt_dlunknown
11342   cat > conftest.$ac_ext <<_LT_EOF
11343 #line 11343 "configure"
11344 #include "confdefs.h"
11345
11346 #if HAVE_DLFCN_H
11347 #include <dlfcn.h>
11348 #endif
11349
11350 #include <stdio.h>
11351
11352 #ifdef RTLD_GLOBAL
11353 #  define LT_DLGLOBAL           RTLD_GLOBAL
11354 #else
11355 #  ifdef DL_GLOBAL
11356 #    define LT_DLGLOBAL         DL_GLOBAL
11357 #  else
11358 #    define LT_DLGLOBAL         0
11359 #  endif
11360 #endif
11361
11362 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11363    find out it does not work in some platform. */
11364 #ifndef LT_DLLAZY_OR_NOW
11365 #  ifdef RTLD_LAZY
11366 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11367 #  else
11368 #    ifdef DL_LAZY
11369 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11370 #    else
11371 #      ifdef RTLD_NOW
11372 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11373 #      else
11374 #        ifdef DL_NOW
11375 #          define LT_DLLAZY_OR_NOW      DL_NOW
11376 #        else
11377 #          define LT_DLLAZY_OR_NOW      0
11378 #        endif
11379 #      endif
11380 #    endif
11381 #  endif
11382 #endif
11383
11384 /* When -fvisbility=hidden is used, assume the code has been annotated
11385    correspondingly for the symbols needed.  */
11386 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11387 void fnord () __attribute__((visibility("default")));
11388 #endif
11389
11390 void fnord () { int i=42; }
11391 int main ()
11392 {
11393   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11394   int status = $lt_dlunknown;
11395
11396   if (self)
11397     {
11398       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11399       else
11400         {
11401           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11402           else puts (dlerror ());
11403         }
11404       /* dlclose (self); */
11405     }
11406   else
11407     puts (dlerror ());
11408
11409   return status;
11410 }
11411 _LT_EOF
11412   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11413   (eval $ac_link) 2>&5
11414   ac_status=$?
11415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11416   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11417     (./conftest; exit; ) >&5 2>/dev/null
11418     lt_status=$?
11419     case x$lt_status in
11420       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11421       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11422       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11423     esac
11424   else :
11425     # compilation failed
11426     lt_cv_dlopen_self=no
11427   fi
11428 fi
11429 rm -fr conftest*
11430
11431
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11434 $as_echo "$lt_cv_dlopen_self" >&6; }
11435
11436     if test "x$lt_cv_dlopen_self" = xyes; then
11437       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11438       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11439 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11440 if ${lt_cv_dlopen_self_static+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443           if test "$cross_compiling" = yes; then :
11444   lt_cv_dlopen_self_static=cross
11445 else
11446   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11447   lt_status=$lt_dlunknown
11448   cat > conftest.$ac_ext <<_LT_EOF
11449 #line 11449 "configure"
11450 #include "confdefs.h"
11451
11452 #if HAVE_DLFCN_H
11453 #include <dlfcn.h>
11454 #endif
11455
11456 #include <stdio.h>
11457
11458 #ifdef RTLD_GLOBAL
11459 #  define LT_DLGLOBAL           RTLD_GLOBAL
11460 #else
11461 #  ifdef DL_GLOBAL
11462 #    define LT_DLGLOBAL         DL_GLOBAL
11463 #  else
11464 #    define LT_DLGLOBAL         0
11465 #  endif
11466 #endif
11467
11468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11469    find out it does not work in some platform. */
11470 #ifndef LT_DLLAZY_OR_NOW
11471 #  ifdef RTLD_LAZY
11472 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11473 #  else
11474 #    ifdef DL_LAZY
11475 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11476 #    else
11477 #      ifdef RTLD_NOW
11478 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11479 #      else
11480 #        ifdef DL_NOW
11481 #          define LT_DLLAZY_OR_NOW      DL_NOW
11482 #        else
11483 #          define LT_DLLAZY_OR_NOW      0
11484 #        endif
11485 #      endif
11486 #    endif
11487 #  endif
11488 #endif
11489
11490 /* When -fvisbility=hidden is used, assume the code has been annotated
11491    correspondingly for the symbols needed.  */
11492 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11493 void fnord () __attribute__((visibility("default")));
11494 #endif
11495
11496 void fnord () { int i=42; }
11497 int main ()
11498 {
11499   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11500   int status = $lt_dlunknown;
11501
11502   if (self)
11503     {
11504       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11505       else
11506         {
11507           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11508           else puts (dlerror ());
11509         }
11510       /* dlclose (self); */
11511     }
11512   else
11513     puts (dlerror ());
11514
11515   return status;
11516 }
11517 _LT_EOF
11518   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11519   (eval $ac_link) 2>&5
11520   ac_status=$?
11521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11522   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11523     (./conftest; exit; ) >&5 2>/dev/null
11524     lt_status=$?
11525     case x$lt_status in
11526       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11527       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11528       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11529     esac
11530   else :
11531     # compilation failed
11532     lt_cv_dlopen_self_static=no
11533   fi
11534 fi
11535 rm -fr conftest*
11536
11537
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11540 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11541     fi
11542
11543     CPPFLAGS="$save_CPPFLAGS"
11544     LDFLAGS="$save_LDFLAGS"
11545     LIBS="$save_LIBS"
11546     ;;
11547   esac
11548
11549   case $lt_cv_dlopen_self in
11550   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11551   *) enable_dlopen_self=unknown ;;
11552   esac
11553
11554   case $lt_cv_dlopen_self_static in
11555   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11556   *) enable_dlopen_self_static=unknown ;;
11557   esac
11558 fi
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576 striplib=
11577 old_striplib=
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11579 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11580 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11581   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11582   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11584 $as_echo "yes" >&6; }
11585 else
11586 # FIXME - insert some real tests, host_os isn't really good enough
11587   case $host_os in
11588   darwin*)
11589     if test -n "$STRIP" ; then
11590       striplib="$STRIP -x"
11591       old_striplib="$STRIP -S"
11592       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593 $as_echo "yes" >&6; }
11594     else
11595       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11597     fi
11598     ;;
11599   *)
11600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602     ;;
11603   esac
11604 fi
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617   # Report which library types will actually be built
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11619 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11621 $as_echo "$can_build_shared" >&6; }
11622
11623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11624 $as_echo_n "checking whether to build shared libraries... " >&6; }
11625   test "$can_build_shared" = "no" && enable_shared=no
11626
11627   # On AIX, shared libraries and static libraries use the same namespace, and
11628   # are all built from PIC.
11629   case $host_os in
11630   aix3*)
11631     test "$enable_shared" = yes && enable_static=no
11632     if test -n "$RANLIB"; then
11633       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11634       postinstall_cmds='$RANLIB $lib'
11635     fi
11636     ;;
11637
11638   aix[4-9]*)
11639     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11640       test "$enable_shared" = yes && enable_static=no
11641     fi
11642     ;;
11643   esac
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11645 $as_echo "$enable_shared" >&6; }
11646
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11648 $as_echo_n "checking whether to build static libraries... " >&6; }
11649   # Make sure either enable_shared or enable_static is yes.
11650   test "$enable_shared" = yes || enable_static=yes
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11652 $as_echo "$enable_static" >&6; }
11653
11654
11655
11656
11657 fi
11658 ac_ext=c
11659 ac_cpp='$CPP $CPPFLAGS'
11660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11663
11664 CC="$lt_save_CC"
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678         ac_config_commands="$ac_config_commands libtool"
11679
11680
11681
11682
11683 # Only expand once:
11684
11685
11686
11687 # The tests for host and target for $enable_largefile require
11688 # canonical names.
11689
11690
11691
11692 # As the $enable_largefile decision depends on --enable-plugins we must set it
11693 # even in directories otherwise not depending on the $plugins option.
11694
11695
11696   maybe_plugins=no
11697   for ac_header in dlfcn.h
11698 do :
11699   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11700 "
11701 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11702   cat >>confdefs.h <<_ACEOF
11703 #define HAVE_DLFCN_H 1
11704 _ACEOF
11705  maybe_plugins=yes
11706 fi
11707
11708 done
11709
11710   for ac_header in windows.h
11711 do :
11712   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11713 "
11714 if test "x$ac_cv_header_windows_h" = xyes; then :
11715   cat >>confdefs.h <<_ACEOF
11716 #define HAVE_WINDOWS_H 1
11717 _ACEOF
11718  maybe_plugins=yes
11719 fi
11720
11721 done
11722
11723
11724   # Check whether --enable-plugins was given.
11725 if test "${enable_plugins+set}" = set; then :
11726   enableval=$enable_plugins; case "${enableval}" in
11727       no) plugins=no ;;
11728       *) plugins=yes
11729          if test "$maybe_plugins" != "yes" ; then
11730            as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11731          fi ;;
11732      esac
11733 else
11734   plugins=$maybe_plugins
11735
11736 fi
11737
11738   if test "$plugins" = "yes"; then
11739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11740 $as_echo_n "checking for library containing dlsym... " >&6; }
11741 if ${ac_cv_search_dlsym+:} false; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   ac_func_search_save_LIBS=$LIBS
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h.  */
11747
11748 /* Override any GCC internal prototype to avoid an error.
11749    Use char because int might match the return type of a GCC
11750    builtin and then its argument prototype would still apply.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 char dlsym ();
11755 int
11756 main ()
11757 {
11758 return dlsym ();
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 for ac_lib in '' dl; do
11764   if test -z "$ac_lib"; then
11765     ac_res="none required"
11766   else
11767     ac_res=-l$ac_lib
11768     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11769   fi
11770   if ac_fn_c_try_link "$LINENO"; then :
11771   ac_cv_search_dlsym=$ac_res
11772 fi
11773 rm -f core conftest.err conftest.$ac_objext \
11774     conftest$ac_exeext
11775   if ${ac_cv_search_dlsym+:} false; then :
11776   break
11777 fi
11778 done
11779 if ${ac_cv_search_dlsym+:} false; then :
11780
11781 else
11782   ac_cv_search_dlsym=no
11783 fi
11784 rm conftest.$ac_ext
11785 LIBS=$ac_func_search_save_LIBS
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11788 $as_echo "$ac_cv_search_dlsym" >&6; }
11789 ac_res=$ac_cv_search_dlsym
11790 if test "$ac_res" != no; then :
11791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11792
11793 fi
11794
11795   fi
11796
11797
11798 case "${host}" in
11799   sparc-*-solaris*|i[3-7]86-*-solaris*)
11800     # On native 32bit sparc and ia32 solaris, large-file and procfs support
11801     # are mutually exclusive; and without procfs support, the bfd/ elf module
11802     # cannot provide certain routines such as elfcore_write_prpsinfo
11803     # or elfcore_write_prstatus.  So unless the user explicitly requested
11804     # large-file support through the --enable-largefile switch, disable
11805     # large-file support in favor of procfs support.
11806     test "${target}" = "${host}" -a "x$plugins" = xno \
11807       && : ${enable_largefile="no"}
11808     ;;
11809 esac
11810
11811 # Check whether --enable-largefile was given.
11812 if test "${enable_largefile+set}" = set; then :
11813   enableval=$enable_largefile;
11814 fi
11815
11816 if test "$enable_largefile" != no; then
11817
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11819 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11820 if ${ac_cv_sys_largefile_CC+:} false; then :
11821   $as_echo_n "(cached) " >&6
11822 else
11823   ac_cv_sys_largefile_CC=no
11824      if test "$GCC" != yes; then
11825        ac_save_CC=$CC
11826        while :; do
11827          # IRIX 6.2 and later do not support large files by default,
11828          # so use the C compiler's -n32 option if that helps.
11829          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h.  */
11831 #include <sys/types.h>
11832  /* Check that off_t can represent 2**63 - 1 correctly.
11833     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11834     since some C++ compilers masquerading as C compilers
11835     incorrectly reject 9223372036854775807.  */
11836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11837   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11838                        && LARGE_OFF_T % 2147483647 == 1)
11839                       ? 1 : -1];
11840 int
11841 main ()
11842 {
11843
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848          if ac_fn_c_try_compile "$LINENO"; then :
11849   break
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext
11852          CC="$CC -n32"
11853          if ac_fn_c_try_compile "$LINENO"; then :
11854   ac_cv_sys_largefile_CC=' -n32'; break
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext
11857          break
11858        done
11859        CC=$ac_save_CC
11860        rm -f conftest.$ac_ext
11861     fi
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11864 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11865   if test "$ac_cv_sys_largefile_CC" != no; then
11866     CC=$CC$ac_cv_sys_largefile_CC
11867   fi
11868
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11870 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11871 if ${ac_cv_sys_file_offset_bits+:} false; then :
11872   $as_echo_n "(cached) " >&6
11873 else
11874   while :; do
11875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h.  */
11877 #include <sys/types.h>
11878  /* Check that off_t can represent 2**63 - 1 correctly.
11879     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11880     since some C++ compilers masquerading as C compilers
11881     incorrectly reject 9223372036854775807.  */
11882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11883   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11884                        && LARGE_OFF_T % 2147483647 == 1)
11885                       ? 1 : -1];
11886 int
11887 main ()
11888 {
11889
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_c_try_compile "$LINENO"; then :
11895   ac_cv_sys_file_offset_bits=no; break
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h.  */
11900 #define _FILE_OFFSET_BITS 64
11901 #include <sys/types.h>
11902  /* Check that off_t can represent 2**63 - 1 correctly.
11903     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11904     since some C++ compilers masquerading as C compilers
11905     incorrectly reject 9223372036854775807.  */
11906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11907   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11908                        && LARGE_OFF_T % 2147483647 == 1)
11909                       ? 1 : -1];
11910 int
11911 main ()
11912 {
11913
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 if ac_fn_c_try_compile "$LINENO"; then :
11919   ac_cv_sys_file_offset_bits=64; break
11920 fi
11921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922   ac_cv_sys_file_offset_bits=unknown
11923   break
11924 done
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11927 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11928 case $ac_cv_sys_file_offset_bits in #(
11929   no | unknown) ;;
11930   *)
11931 cat >>confdefs.h <<_ACEOF
11932 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11933 _ACEOF
11934 ;;
11935 esac
11936 rm -rf conftest*
11937   if test $ac_cv_sys_file_offset_bits = unknown; then
11938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11939 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11940 if ${ac_cv_sys_large_files+:} false; then :
11941   $as_echo_n "(cached) " >&6
11942 else
11943   while :; do
11944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h.  */
11946 #include <sys/types.h>
11947  /* Check that off_t can represent 2**63 - 1 correctly.
11948     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11949     since some C++ compilers masquerading as C compilers
11950     incorrectly reject 9223372036854775807.  */
11951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11952   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11953                        && LARGE_OFF_T % 2147483647 == 1)
11954                       ? 1 : -1];
11955 int
11956 main ()
11957 {
11958
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 if ac_fn_c_try_compile "$LINENO"; then :
11964   ac_cv_sys_large_files=no; break
11965 fi
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969 #define _LARGE_FILES 1
11970 #include <sys/types.h>
11971  /* Check that off_t can represent 2**63 - 1 correctly.
11972     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11973     since some C++ compilers masquerading as C compilers
11974     incorrectly reject 9223372036854775807.  */
11975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11976   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11977                        && LARGE_OFF_T % 2147483647 == 1)
11978                       ? 1 : -1];
11979 int
11980 main ()
11981 {
11982
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 if ac_fn_c_try_compile "$LINENO"; then :
11988   ac_cv_sys_large_files=1; break
11989 fi
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991   ac_cv_sys_large_files=unknown
11992   break
11993 done
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11996 $as_echo "$ac_cv_sys_large_files" >&6; }
11997 case $ac_cv_sys_large_files in #(
11998   no | unknown) ;;
11999   *)
12000 cat >>confdefs.h <<_ACEOF
12001 #define _LARGE_FILES $ac_cv_sys_large_files
12002 _ACEOF
12003 ;;
12004 esac
12005 rm -rf conftest*
12006   fi
12007
12008
12009 fi
12010
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12013 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
12014 if ${gcc_cv_prog_cmp_skip+:} false; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017    echo abfoo >t1
12018   echo cdfoo >t2
12019   gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
12020   if cmp t1 t2 2 2 > /dev/null 2>&1; then
12021     if cmp t1 t2 1 1 > /dev/null 2>&1; then
12022       :
12023     else
12024       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12025     fi
12026   fi
12027   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12028     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12029       :
12030     else
12031       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12032     fi
12033   fi
12034   rm t1 t2
12035
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12038 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12039 do_compare="$gcc_cv_prog_cmp_skip"
12040
12041
12042
12043 # Check whether --enable-targets was given.
12044 if test "${enable_targets+set}" = set; then :
12045   enableval=$enable_targets; case "${enableval}" in
12046   yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12047             ;;
12048   no)       enable_targets= ;;
12049   *)        enable_targets=$enableval ;;
12050 esac
12051 fi
12052
12053 ac_checking=
12054 . ${srcdir}/../bfd/development.sh
12055 test "$development" = true && ac_checking=yes
12056 # Check whether --enable-checking was given.
12057 if test "${enable_checking+set}" = set; then :
12058   enableval=$enable_checking; case "${enableval}" in
12059   no|none)  ac_checking= ;;
12060   *)        ac_checking=yes ;;
12061 esac
12062 fi
12063 if test x$ac_checking != x ; then
12064
12065 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
12066
12067 fi
12068
12069 # PR gas/19109
12070 # Decide the default method for compressing debug sections.
12071 ac_default_compressed_debug_sections=unset
12072 # Provide a configure time option to override our default.
12073 # Check whether --enable-compressed_debug_sections was given.
12074 if test "${enable_compressed_debug_sections+set}" = set; then :
12075   enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
12076   ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
12077   ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
12078   *)   ac_default_compressed_debug_sections=unset ;;
12079 esac
12080 fi
12081
12082 # PR gas/19520
12083 # Decide if x86 assembler should generate relax relocations.
12084 ac_default_x86_relax_relocations=unset
12085 # Provide a configure time option to override our default.
12086 # Check whether --enable-x86_relax_relocations was given.
12087 if test "${enable_x86_relax_relocations+set}" = set; then :
12088   enableval=$enable_x86_relax_relocations; case "${enableval}" in
12089   no)  ac_default_x86_relax_relocations=0 ;;
12090 esac
12091 fi
12092
12093 # Decide if ELF assembler should generate common symbols with the
12094 # STT_COMMON type.
12095 ac_default_elf_stt_common=unset
12096 # Provide a configure time option to override our default.
12097 # Check whether --enable-elf_stt_common was given.
12098 if test "${enable_elf_stt_common+set}" = set; then :
12099   enableval=$enable_elf_stt_common; case "${enableval}" in
12100   yes)  ac_default_elf_stt_common=1 ;;
12101 esac
12102 fi
12103
12104
12105 # Decide if the ELF assembler should default to generating
12106 # GNU Build notes if none are provided by the input.
12107 ac_default_generate_build_notes=0
12108 # Provide a configuration option to override the default.
12109 # Check whether --enable-generate_build_notes was given.
12110 if test "${enable_generate_build_notes+set}" = set; then :
12111   enableval=$enable_generate_build_notes; case "${enableval}" in
12112   yes)  ac_default_generate_build_notes=1 ;;
12113   no)   ac_default_generate_build_notes=0 ;;
12114 esac
12115 fi
12116
12117
12118 # Decide if the x86 ELF assembler should default to generating GNU x86
12119 # used ISA and feature properties.
12120 ac_default_generate_x86_used_note=unset
12121 # Provide a configuration option to override the default.
12122 # Check whether --enable-x86-used-note was given.
12123 if test "${enable_x86_used_note+set}" = set; then :
12124   enableval=$enable_x86_used_note; case "${enableval}" in
12125   yes)  ac_default_generate_x86_used_note=1 ;;
12126   no)   ac_default_generate_x86_used_note=0 ;;
12127 esac
12128 fi
12129
12130 # Decide if the RISC-V ELF assembler should default to generating attribute.
12131 ac_default_generate_riscv_attr=unset
12132 # Provide a configuration option to override the default.
12133 # Check whether --enable-default-riscv-attribute was given.
12134 if test "${enable_default_riscv_attribute+set}" = set; then :
12135   enableval=$enable_default_riscv_attribute; case "${enableval}" in
12136   yes)  ac_default_generate_riscv_attr=1 ;;
12137   no)   ac_default_generate_riscv_attr=0 ;;
12138 esac
12139 fi
12140
12141 using_cgen=no
12142
12143
12144 # Set the 'development' global.
12145 . $srcdir/../bfd/development.sh
12146
12147 # Set acp_cpp_for_build variable
12148 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12149
12150 # Default set of GCC warnings to enable.
12151 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12152 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12153
12154 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h.  */
12157 __GNUC__
12158 _ACEOF
12159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12160   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12161
12162 else
12163   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12164 fi
12165 rm -f conftest*
12166
12167
12168 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h.  */
12171 __GNUC__
12172 _ACEOF
12173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12175
12176 else
12177   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12178 fi
12179 rm -f conftest*
12180
12181
12182 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12183 WARN_WRITE_STRINGS=""
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h.  */
12186 __GNUC__
12187 _ACEOF
12188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12190
12191 else
12192   WARN_WRITE_STRINGS="-Wwrite-strings"
12193 fi
12194 rm -f conftest*
12195
12196
12197 # Verify CC_FOR_BUILD to be compatible with warning flags
12198
12199 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h.  */
12202 __GNUC__
12203 _ACEOF
12204 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12205   $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12206
12207 else
12208   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12209 fi
12210 rm -f conftest*
12211
12212
12213 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216 __GNUC__
12217 _ACEOF
12218 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12219   $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12220
12221 else
12222   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12223 fi
12224 rm -f conftest*
12225
12226
12227 # Check whether --enable-werror was given.
12228 if test "${enable_werror+set}" = set; then :
12229   enableval=$enable_werror; case "${enableval}" in
12230      yes | y) ERROR_ON_WARNING="yes" ;;
12231      no | n)  ERROR_ON_WARNING="no" ;;
12232      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12233    esac
12234 fi
12235
12236
12237 # Disable -Wformat by default when using gcc on mingw
12238 case "${host}" in
12239   *-*-mingw32*)
12240     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12241       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12242       GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12243     fi
12244     ;;
12245   *) ;;
12246 esac
12247
12248 # Enable -Werror by default when using gcc.  Turn it off for releases.
12249 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12250     ERROR_ON_WARNING=yes
12251 fi
12252
12253 NO_WERROR=
12254 if test "${ERROR_ON_WARNING}" = yes ; then
12255     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12256     GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12257     NO_WERROR="-Wno-error"
12258 fi
12259
12260 if test "${GCC}" = yes ; then
12261   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12262   WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12263 fi
12264
12265 # Check whether --enable-build-warnings was given.
12266 if test "${enable_build_warnings+set}" = set; then :
12267   enableval=$enable_build_warnings; case "${enableval}" in
12268   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12269         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12270   no)   if test "${GCC}" = yes ; then
12271           WARN_CFLAGS="-w"
12272       WARN_CFLAGS_FOR_BUILD="-w"
12273         fi;;
12274   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12275         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12276         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12277   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12278         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12279         WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12280   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12281         WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12282 esac
12283 fi
12284
12285
12286 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12287   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12288 fi
12289
12290
12291
12292
12293
12294
12295
12296 # Generate a header file
12297 ac_config_headers="$ac_config_headers config.h:config.in"
12298
12299
12300
12301 # Check whether --with-cpu was given.
12302 if test "${with_cpu+set}" = set; then :
12303   withval=$with_cpu;
12304 cat >>confdefs.h <<_ACEOF
12305 #define TARGET_WITH_CPU "${with_cpu}"
12306 _ACEOF
12307
12308 fi
12309
12310
12311 # PR 14072
12312
12313
12314 # If we are on a DOS filesystem, we must use gdb.ini rather than
12315 # .gdbinit.
12316 case "${host}" in
12317   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
12318     GDBINIT="gdb.ini"
12319     ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
12320
12321     ;;
12322   *)
12323     GDBINIT=".gdbinit"
12324     ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
12325
12326     ;;
12327 esac
12328
12329
12330 #We need this for the host.
12331  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12332 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12333 if ${ac_cv_c_bigendian+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   ac_cv_c_bigendian=unknown
12337     # See if we're dealing with a universal compiler.
12338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340 #ifndef __APPLE_CC__
12341                not a universal capable compiler
12342              #endif
12343              typedef int dummy;
12344
12345 _ACEOF
12346 if ac_fn_c_try_compile "$LINENO"; then :
12347
12348         # Check for potential -arch flags.  It is not universal unless
12349         # there are at least two -arch flags with different values.
12350         ac_arch=
12351         ac_prev=
12352         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12353          if test -n "$ac_prev"; then
12354            case $ac_word in
12355              i?86 | x86_64 | ppc | ppc64)
12356                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12357                  ac_arch=$ac_word
12358                else
12359                  ac_cv_c_bigendian=universal
12360                  break
12361                fi
12362                ;;
12363            esac
12364            ac_prev=
12365          elif test "x$ac_word" = "x-arch"; then
12366            ac_prev=arch
12367          fi
12368        done
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371     if test $ac_cv_c_bigendian = unknown; then
12372       # See if sys/param.h defines the BYTE_ORDER macro.
12373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h.  */
12375 #include <sys/types.h>
12376              #include <sys/param.h>
12377
12378 int
12379 main ()
12380 {
12381 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12382                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12383                      && LITTLE_ENDIAN)
12384               bogus endian macros
12385              #endif
12386
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 if ac_fn_c_try_compile "$LINENO"; then :
12392   # It does; now see whether it defined to BIG_ENDIAN or not.
12393          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h.  */
12395 #include <sys/types.h>
12396                 #include <sys/param.h>
12397
12398 int
12399 main ()
12400 {
12401 #if BYTE_ORDER != BIG_ENDIAN
12402                  not big endian
12403                 #endif
12404
12405   ;
12406   return 0;
12407 }
12408 _ACEOF
12409 if ac_fn_c_try_compile "$LINENO"; then :
12410   ac_cv_c_bigendian=yes
12411 else
12412   ac_cv_c_bigendian=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417     fi
12418     if test $ac_cv_c_bigendian = unknown; then
12419       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12420       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h.  */
12422 #include <limits.h>
12423
12424 int
12425 main ()
12426 {
12427 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12428               bogus endian macros
12429              #endif
12430
12431   ;
12432   return 0;
12433 }
12434 _ACEOF
12435 if ac_fn_c_try_compile "$LINENO"; then :
12436   # It does; now see whether it defined to _BIG_ENDIAN or not.
12437          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h.  */
12439 #include <limits.h>
12440
12441 int
12442 main ()
12443 {
12444 #ifndef _BIG_ENDIAN
12445                  not big endian
12446                 #endif
12447
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_compile "$LINENO"; then :
12453   ac_cv_c_bigendian=yes
12454 else
12455   ac_cv_c_bigendian=no
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460     fi
12461     if test $ac_cv_c_bigendian = unknown; then
12462       # Compile a test program.
12463       if test "$cross_compiling" = yes; then :
12464   # Try to guess by grepping values from an object file.
12465          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467 short int ascii_mm[] =
12468                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12469                 short int ascii_ii[] =
12470                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12471                 int use_ascii (int i) {
12472                   return ascii_mm[i] + ascii_ii[i];
12473                 }
12474                 short int ebcdic_ii[] =
12475                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12476                 short int ebcdic_mm[] =
12477                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12478                 int use_ebcdic (int i) {
12479                   return ebcdic_mm[i] + ebcdic_ii[i];
12480                 }
12481                 extern int foo;
12482
12483 int
12484 main ()
12485 {
12486 return use_ascii (foo) == use_ebcdic (foo);
12487   ;
12488   return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_c_try_compile "$LINENO"; then :
12492   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12493               ac_cv_c_bigendian=yes
12494             fi
12495             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12496               if test "$ac_cv_c_bigendian" = unknown; then
12497                 ac_cv_c_bigendian=no
12498               else
12499                 # finding both strings is unlikely to happen, but who knows?
12500                 ac_cv_c_bigendian=unknown
12501               fi
12502             fi
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 else
12506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h.  */
12508 $ac_includes_default
12509 int
12510 main ()
12511 {
12512
12513              /* Are we little or big endian?  From Harbison&Steele.  */
12514              union
12515              {
12516                long int l;
12517                char c[sizeof (long int)];
12518              } u;
12519              u.l = 1;
12520              return u.c[sizeof (long int) - 1] == 1;
12521
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_c_try_run "$LINENO"; then :
12527   ac_cv_c_bigendian=no
12528 else
12529   ac_cv_c_bigendian=yes
12530 fi
12531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12532   conftest.$ac_objext conftest.beam conftest.$ac_ext
12533 fi
12534
12535     fi
12536 fi
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12538 $as_echo "$ac_cv_c_bigendian" >&6; }
12539  case $ac_cv_c_bigendian in #(
12540    yes)
12541      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12542 ;; #(
12543    no)
12544       ;; #(
12545    universal)
12546
12547 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12548
12549      ;; #(
12550    *)
12551      as_fn_error $? "unknown endianness
12552  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12553  esac
12554
12555
12556 te_file=generic
12557
12558 # Makefile target for installing gas in $(tooldir)/bin.
12559 install_tooldir=install-exec-tooldir
12560
12561 canon_targets=""
12562 all_targets=no
12563 if test -n "$enable_targets" ; then
12564   for t in `echo $enable_targets | sed 's/,/ /g'`; do
12565     if test $t = "all"; then
12566       all_targets=yes
12567       continue
12568     fi
12569     result=`$ac_config_sub $t 2>/dev/null`
12570     if test -n "$result" ; then
12571       canon_targets="$canon_targets $result"
12572 #    else
12573 #      # Permit "all", etc.  We don't support it yet though.
12574 #      canon_targets="$canon_targets $t"
12575     fi
12576   done
12577   _gas_uniq_list="$canon_targets"
12578 _gas_uniq_newlist=""
12579 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12580   case $_gas_uniq_i in
12581   _gas_uniq_dummy) ;;
12582   *) case " $_gas_uniq_newlist " in
12583        *" $_gas_uniq_i "*) ;;
12584        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12585      esac ;;
12586   esac
12587 done
12588 canon_targets=$_gas_uniq_newlist
12589
12590 fi
12591
12592 emulations=""
12593
12594 for this_target in $target $canon_targets ; do
12595
12596     targ=${this_target}
12597     . ${srcdir}/configure.tgt
12598
12599     case ${target_cpu} in
12600       crisv32)
12601
12602 cat >>confdefs.h <<_ACEOF
12603 #define DEFAULT_CRIS_ARCH $arch
12604 _ACEOF
12605
12606         ;;
12607     esac
12608
12609     if test ${this_target} = $target ; then
12610       target_cpu_type=${cpu_type}
12611     elif test ${target_cpu_type} != ${cpu_type} ; then
12612       continue
12613     fi
12614
12615     generic_target=${cpu_type}-${target_vendor}-${target_os}
12616     case ${generic_target} in
12617       i386-*-msdosdjgpp* \
12618       | i386-*-go32* \
12619       | i386-go32-rtems*)
12620
12621 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12622
12623         ;;
12624
12625       i386-*-solaris2 \
12626       | x86_64-*-solaris2 \
12627       | i386-*-solaris2.[0-9] \
12628       | i386-*-solaris2.1[01] \
12629       | x86_64-*-solaris2.1[01])
12630         if test ${this_target} = $target \
12631            && test ${ac_default_x86_relax_relocations} = unset; then
12632           ac_default_x86_relax_relocations=0
12633         fi
12634         ;;
12635
12636       microblaze*)
12637         ;;
12638
12639       ppc-*-aix[5-9].*)
12640
12641 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12642
12643         ;;
12644       ppc-*-solaris*)
12645         if test ${this_target} = $target; then
12646
12647 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12648
12649         fi
12650         if test x${endian} = xbig; then
12651           as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
12652         fi
12653         ;;
12654     esac
12655
12656     if test ${this_target} = $target ; then
12657       endian_def=
12658       if test x${endian} = xbig; then
12659         endian_def=1
12660       elif test x${endian} = xlittle; then
12661         endian_def=0
12662       fi
12663       if test x${endian_def} != x; then
12664
12665 cat >>confdefs.h <<_ACEOF
12666 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12667 _ACEOF
12668
12669       fi
12670     fi
12671
12672 # Other random stuff.
12673
12674     case ${cpu_type} in
12675       mips)
12676         # Set mips_cpu to the name of the default CPU.
12677         case ${target_cpu} in
12678           mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12679             mips_cpu=from-abi
12680             ;;
12681           mipsisa32 | mipsisa32el)
12682             mips_cpu=mips32
12683             ;;
12684           mipsisa32r2 | mipsisa32r2el)
12685             mips_cpu=mips32r2
12686             ;;
12687           mipsisa32r3 | mipsisa32r3el)
12688             mips_cpu=mips32r3
12689             ;;
12690           mipsisa32r5 | mipsisa32r5el)
12691             mips_cpu=mips32r5
12692             ;;
12693           mipsisa32r6 | mipsisa32r6el)
12694             mips_cpu=mips32r6
12695             ;;
12696           mipsisa64 | mipsisa64el)
12697             mips_cpu=mips64
12698             ;;
12699           mipsisa64r2 | mipsisa64r2el)
12700             mips_cpu=mips64r2
12701             ;;
12702           mipsisa64r3 | mipsisa64r3el)
12703             mips_cpu=mips64r3
12704             ;;
12705           mipsisa64r5 | mipsisa64r5el)
12706             mips_cpu=mips64r5
12707             ;;
12708           mipsisa64r6 | mipsisa64r6el)
12709             mips_cpu=mips64r6
12710             ;;
12711           mipstx39 | mipstx39el)
12712             mips_cpu=r3900
12713             ;;
12714           mips64vr | mips64vrel)
12715             mips_cpu=vr4100
12716             ;;
12717           mipsisa32r2* | mipsisa64r2*)
12718             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12719             ;;
12720           mipsisa32r6* | mipsisa64r6*)
12721             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12722             ;;
12723           mips64* | mipsisa64* | mipsisa32*)
12724             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12725             ;;
12726           mips*)
12727             mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12728             ;;
12729           *)
12730             as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12731             ;;
12732         esac
12733         # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12734         # binaries.  It's a GNU extension that some OSes don't understand.
12735         case ${target} in
12736           *-*-irix*)
12737             use_e_mips_abi_o32=0
12738             ;;
12739           *)
12740             use_e_mips_abi_o32=1
12741             ;;
12742         esac
12743         # Decide whether to generate 32-bit or 64-bit code by default.
12744         # Used to resolve -march=from-abi when an embedded ABI is selected.
12745         case ${target} in
12746           mips64*-*-* | mipsisa64*-*-*)
12747             mips_default_64bit=1
12748             ;;
12749           *)
12750             mips_default_64bit=0
12751             ;;
12752         esac
12753         # Decide which ABI to target by default.
12754         case ${target} in
12755           mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12756           | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
12757             mips_default_abi=N32_ABI
12758             ;;
12759           mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12760             mips_default_abi=O32_ABI
12761             ;;
12762           mips64*-openbsd*)
12763             mips_default_abi=N64_ABI
12764             ;;
12765           *)
12766             mips_default_abi=NO_ABI
12767             ;;
12768         esac
12769
12770 cat >>confdefs.h <<_ACEOF
12771 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12772 _ACEOF
12773
12774
12775 cat >>confdefs.h <<_ACEOF
12776 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12777 _ACEOF
12778
12779
12780 cat >>confdefs.h <<_ACEOF
12781 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12782 _ACEOF
12783
12784
12785 cat >>confdefs.h <<_ACEOF
12786 #define MIPS_DEFAULT_ABI $mips_default_abi
12787 _ACEOF
12788
12789         ;;
12790     esac
12791
12792     # Do we need the opcodes library?
12793     case ${cpu_type} in
12794       vax | tic30)
12795         ;;
12796
12797       *)
12798         need_opcodes=yes
12799
12800         case "${enable_shared}" in
12801         yes) shared_opcodes=true ;;
12802         *opcodes*) shared_opcodes=true ;;
12803         *) shared_opcodes=false ;;
12804         esac
12805         ;;
12806     esac
12807
12808     # Any other special object files needed ?
12809     case ${cpu_type} in
12810
12811       bfin)
12812         for f in bfin-parse.o bfin-lex-wrapper.o; do
12813           case " $extra_objects " in
12814             *" $f "*) ;;
12815             *) extra_objects="$extra_objects $f" ;;
12816           esac
12817         done
12818         ;;
12819
12820       epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12821         using_cgen=yes
12822         ;;
12823
12824       m32c)
12825         using_cgen=yes
12826         ;;
12827       frv)
12828         using_cgen=yes
12829         ;;
12830       m68k)
12831         f=m68k-parse.o
12832         case " $extra_objects " in
12833           *" $f "*) ;;
12834           *) extra_objects="$extra_objects $f" ;;
12835         esac
12836         ;;
12837
12838       mep)
12839         using_cgen=yes
12840         ;;
12841
12842       mips)
12843         for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12844           case " $extra_objects " in
12845             *" $f "*) ;;
12846             *) extra_objects="$extra_objects $f" ;;
12847           esac
12848         done
12849         ;;
12850
12851       mt)
12852         using_cgen=yes
12853         ;;
12854
12855       nds32)
12856         # setup NDS32_LINUX_TOOLCHAIN definition
12857         if test "linux" = $em; then
12858
12859 $as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12860
12861         else
12862
12863 $as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12864
12865         fi
12866
12867         # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12868         # based on arch_name.
12869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12870 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12871         if test "x${with_arch}" != x; then
12872           case ${with_arch} in
12873             v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12874
12875 cat >>confdefs.h <<_ACEOF
12876 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12877 _ACEOF
12878
12879               ;;
12880             *)
12881               as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
12882               ;;
12883           esac
12884         fi
12885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12886 $as_echo "$with_arch" >&6; }
12887
12888         # Decide features one by one.
12889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12890 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12891         if test "x${enable_dx_regs}" = xyes; then
12892
12893 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12894
12895         else
12896
12897 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12898
12899         fi
12900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12901 $as_echo "$enable_dx_regs" >&6; }
12902
12903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12904 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12905         if test "x${enable_perf_ext}" = xno; then
12906
12907 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12908
12909         else
12910
12911 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12912
12913         fi
12914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12915 $as_echo "$enable_perf_ext" >&6; }
12916
12917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12918 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12919         if test "x${enable_perf_ext2}" = xno; then
12920
12921 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12922
12923         else
12924
12925 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12926
12927         fi
12928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12929 $as_echo "$enable_perf_ext2" >&6; }
12930
12931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12932 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12933         if test "x${enable_string_ext}" = xno; then
12934
12935 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12936
12937         else
12938
12939 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12940
12941         fi
12942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12943 $as_echo "$enable_string_ext" >&6; }
12944
12945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12946 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12947         if test "x${enable_audio_ext}" = xno; then
12948
12949 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12950
12951         else
12952
12953 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12954
12955         fi
12956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12957 $as_echo "$enable_audio_ext" >&6; }
12958
12959         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12960 $as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12961         if test "x${enable_dsp_ext}" = xno; then
12962
12963 $as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12964
12965         else
12966
12967 $as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12968
12969         fi
12970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12971 $as_echo "$enable_dsp_ext" >&6; }
12972
12973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12974 $as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12975         if test "x${enable_zol_ext}" = xno; then
12976
12977 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12978
12979         else
12980
12981 $as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12982
12983         fi
12984         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12985 $as_echo "$enable_zol_ext" >&6; }
12986         ;;
12987
12988       aarch64 | i386 | riscv | s390 | sparc)
12989         if test $this_target = $target ; then
12990
12991 cat >>confdefs.h <<_ACEOF
12992 #define DEFAULT_ARCH "${arch}"
12993 _ACEOF
12994
12995         fi
12996         ;;
12997
12998       rl78)
12999         f=rl78-parse.o
13000         case " $extra_objects " in
13001           *" $f "*) ;;
13002           *) extra_objects="$extra_objects $f" ;;
13003         esac
13004         ;;
13005
13006       rx)
13007         f=rx-parse.o
13008         case " $extra_objects " in
13009           *" $f "*) ;;
13010           *) extra_objects="$extra_objects $f" ;;
13011         esac
13012         ;;
13013
13014       xstormy16)
13015         using_cgen=yes
13016         ;;
13017
13018       xc16x)
13019         using_cgen=yes
13020         ;;
13021
13022       xtensa)
13023         f=config/xtensa-relax.o
13024         case " $extra_objects " in
13025           *" $f "*) ;;
13026           *) extra_objects="$extra_objects $f" ;;
13027         esac
13028         ;;
13029
13030       *)
13031         ;;
13032     esac
13033
13034     if test $using_cgen = yes ; then
13035         f=cgen.o
13036         case " $extra_objects " in
13037           *" $f "*) ;;
13038           *) extra_objects="$extra_objects $f" ;;
13039         esac
13040     fi
13041
13042 # See if we really can support this configuration with the emulation code.
13043
13044     if test $this_target = $target ; then
13045       obj_format=$fmt
13046       te_file=$em
13047     fi
13048
13049     case ${te_file} in
13050       vms)
13051         f=config/te-vms.o
13052         case " $extra_objects " in
13053           *" $f "*) ;;
13054           *) extra_objects="$extra_objects $f" ;;
13055         esac ;;
13056     esac
13057
13058 # From target name and format, produce a list of supported emulations.
13059
13060     case ${generic_target}-${fmt} in
13061       mips-*-*-*)       case "$endian" in
13062                         big)    emulation="mipsbelf mipslelf mipself" ;;
13063                         *)      emulation="mipslelf mipsbelf mipself" ;;
13064                         esac ;;
13065       # i386-pc-pe-coff != i386-pc-coff.
13066       i386-*-pe-coff)   ;;
13067       # Uncommenting the next line will turn on support for i386 AOUT
13068       # for the default linux configuration
13069       # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
13070       #
13071       i386-*-aout)      emulation="i386aout" ;;
13072       i386-*-coff)      emulation="i386coff" ;;
13073       i386-*-elf)       emulation="i386elf" ;;
13074
13075       # Always all formats.  The first stated emulation becomes the default.
13076       cris-*-*aout*)    emulation="crisaout criself" ;;
13077       cris-*-*)         emulation="criself crisaout" ;;
13078     esac
13079
13080     emulations="$emulations $emulation"
13081
13082 done
13083
13084 if test ${ac_default_x86_relax_relocations} = unset; then
13085   ac_default_x86_relax_relocations=1
13086 fi
13087
13088 cat >>confdefs.h <<_ACEOF
13089 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
13090 _ACEOF
13091
13092
13093 if test ${ac_default_elf_stt_common} = unset; then
13094   ac_default_elf_stt_common=0
13095 fi
13096
13097 cat >>confdefs.h <<_ACEOF
13098 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
13099 _ACEOF
13100
13101
13102
13103 cat >>confdefs.h <<_ACEOF
13104 #define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
13105 _ACEOF
13106
13107
13108 if test ${ac_default_generate_x86_used_note} = unset; then
13109   ac_default_generate_x86_used_note=0
13110 fi
13111
13112 cat >>confdefs.h <<_ACEOF
13113 #define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
13114 _ACEOF
13115
13116
13117 if test ${ac_default_generate_riscv_attr} = unset; then
13118     case ${target_os} in
13119       elf)
13120         ac_default_generate_riscv_attr=1
13121         ;;
13122       *)
13123         ac_default_generate_riscv_attr=0
13124         ;;
13125   esac
13126 fi
13127
13128
13129 cat >>confdefs.h <<_ACEOF
13130 #define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
13131 _ACEOF
13132
13133
13134 if test x$ac_default_compressed_debug_sections = xyes ; then
13135
13136 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
13137
13138 fi
13139
13140 # Turn on all targets if possible
13141 if test ${all_targets} = "yes"; then
13142   case ${target_cpu_type} in
13143   i386)
13144     case ${obj_format} in
13145     aout)
13146       emulations="$emulations i386coff i386elf"
13147       ;;
13148     coff)
13149       emulations="$emulations i386aout i386elf"
13150     ;;
13151     elf)
13152       emulations="$emulations i386aout i386coff"
13153       ;;
13154     esac
13155   ;;
13156   x86_64)
13157     case ${obj_format} in
13158     aout)
13159       emulations="$emulations i386coff i386elf"
13160       ;;
13161     coff)
13162       emulations="$emulations i386aout i386elf"
13163     ;;
13164     elf)
13165       emulations="$emulations i386aout i386coff"
13166       ;;
13167     esac
13168   ;;
13169   esac
13170 fi
13171
13172 # PE code has way too many macros tweaking behaviour
13173 case ${te_file} in
13174   pe*) emulations="" ;;
13175 esac
13176
13177 # Assign floating point type.  Most processors with FP support
13178 # IEEE FP.  On those that don't support FP at all, usually IEEE
13179 # is emulated.
13180 case ${target_cpu} in
13181   vax | pdp11 ) atof=vax ;;
13182   *)            atof=ieee ;;
13183 esac
13184
13185 case "${obj_format}" in
13186   "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
13187 esac
13188
13189 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
13190 cgen_cpu_prefix=""
13191 if test $using_cgen = yes ; then
13192   case ${target_cpu} in
13193     or1knd)
13194        cgen_cpu_prefix=or1k ;;
13195     *) cgen_cpu_prefix=${target_cpu} ;;
13196   esac
13197
13198
13199 $as_echo "#define USING_CGEN 1" >>confdefs.h
13200
13201 fi
13202
13203
13204 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13205   as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13206 fi
13207
13208 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13209   as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13210 fi
13211
13212 # Some COFF configurations want these random other flags set.
13213 case ${obj_format} in
13214   coff)
13215     case ${target_cpu_type} in
13216       i386)
13217 $as_echo "#define I386COFF 1" >>confdefs.h
13218  ;;
13219       x86_64)
13220 $as_echo "#define I386COFF 1" >>confdefs.h
13221  ;;
13222     esac
13223     ;;
13224 esac
13225
13226 # Getting this done right is going to be a bitch.  Each configuration specified
13227 # with --enable-targets=... should be checked for environment, format, cpu
13228 # setting.
13229 #
13230 # For each configuration, the necessary object file support code must be linked
13231 # in.  This might be only one, it might be up to four.  The necessary emulation
13232 # code needs to be provided, too.
13233 #
13234 # And then there's "--enable-targets=all"....
13235 #
13236 # For now, just always do it for MIPS ELF configurations.  Sigh.
13237
13238 formats="${obj_format}"
13239 emfiles=""
13240 EMULATIONS=""
13241 _gas_uniq_list="$emulations"
13242 _gas_uniq_newlist=""
13243 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13244   case $_gas_uniq_i in
13245   _gas_uniq_dummy) ;;
13246   *) case " $_gas_uniq_newlist " in
13247        *" $_gas_uniq_i "*) ;;
13248        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13249      esac ;;
13250   esac
13251 done
13252 emulations=$_gas_uniq_newlist
13253
13254 for em in . $emulations ; do
13255   case $em in
13256     .)  continue ;;
13257     mipsbelf | mipslelf | mipself)
13258         fmt=elf   file=mipself ;;
13259     *coff)
13260         fmt=coff  file=$em ;;
13261     *aout)
13262         fmt=aout file=$em ;;
13263     *elf)
13264         fmt=elf file=$em ;;
13265   esac
13266   formats="$formats $fmt"
13267   emfiles="$emfiles config/e-$file.o"
13268   EMULATIONS="$EMULATIONS &$em,"
13269 done
13270 _gas_uniq_list="$formats"
13271 _gas_uniq_newlist=""
13272 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13273   case $_gas_uniq_i in
13274   _gas_uniq_dummy) ;;
13275   *) case " $_gas_uniq_newlist " in
13276        *" $_gas_uniq_i "*) ;;
13277        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13278      esac ;;
13279   esac
13280 done
13281 formats=$_gas_uniq_newlist
13282
13283 _gas_uniq_list="$emfiles"
13284 _gas_uniq_newlist=""
13285 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13286   case $_gas_uniq_i in
13287   _gas_uniq_dummy) ;;
13288   *) case " $_gas_uniq_newlist " in
13289        *" $_gas_uniq_i "*) ;;
13290        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13291      esac ;;
13292   esac
13293 done
13294 emfiles=$_gas_uniq_newlist
13295
13296 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
13297   for fmt in $formats ; do
13298     case $fmt in
13299       aout)
13300 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
13301    ;;
13302       coff)
13303 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
13304     ;;
13305       ecoff)
13306 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
13307    ;;
13308       elf)
13309 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
13310      ;;
13311       generic)
13312 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
13313  ;;
13314       som)
13315 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
13316      ;;
13317     esac
13318     extra_objects="$extra_objects config/obj-$fmt.o"
13319   done
13320   obj_format=multi
13321 fi
13322 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
13323   DEFAULT_EMULATION=`set . $emulations ; echo $2`
13324   # e-mipself has more than one emulation per file, e-i386* has just one at the
13325   # moment.  If only one emulation is specified, then don't define
13326   # USE_EMULATIONS or include any of the e-files as they will only be bloat.
13327   case "${obj_format}${emfiles}" in
13328     multi* | *mipself*)
13329       extra_objects="$extra_objects $emfiles"
13330
13331 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
13332  ;;
13333   esac
13334 fi
13335
13336
13337 cat >>confdefs.h <<_ACEOF
13338 #define EMULATIONS $EMULATIONS
13339 _ACEOF
13340
13341
13342 cat >>confdefs.h <<_ACEOF
13343 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13344 _ACEOF
13345
13346
13347 reject_dev_configs=yes
13348
13349 case ${reject_dev_configs}-${dev} in
13350   yes-yes) # Oops.
13351     as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
13352     ;;
13353 esac
13354
13355
13356
13357
13358
13359
13360
13361 # do we need the opcodes library?
13362 case "${need_opcodes}" in
13363 yes)
13364   OPCODES_LIB=../opcodes/libopcodes.la
13365   ;;
13366 esac
13367
13368
13369
13370
13371 cat >>confdefs.h <<_ACEOF
13372 #define TARGET_ALIAS "${target_alias}"
13373 _ACEOF
13374
13375
13376 cat >>confdefs.h <<_ACEOF
13377 #define TARGET_CANONICAL "${target}"
13378 _ACEOF
13379
13380
13381 cat >>confdefs.h <<_ACEOF
13382 #define TARGET_CPU "${target_cpu}"
13383 _ACEOF
13384
13385
13386 cat >>confdefs.h <<_ACEOF
13387 #define TARGET_VENDOR "${target_vendor}"
13388 _ACEOF
13389
13390
13391 cat >>confdefs.h <<_ACEOF
13392 #define TARGET_OS "${target_os}"
13393 _ACEOF
13394
13395
13396 for ac_prog in 'bison -y' byacc
13397 do
13398   # Extract the first word of "$ac_prog", so it can be a program name with args.
13399 set dummy $ac_prog; ac_word=$2
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401 $as_echo_n "checking for $ac_word... " >&6; }
13402 if ${ac_cv_prog_YACC+:} false; then :
13403   $as_echo_n "(cached) " >&6
13404 else
13405   if test -n "$YACC"; then
13406   ac_cv_prog_YACC="$YACC" # Let the user override the test.
13407 else
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13410 do
13411   IFS=$as_save_IFS
13412   test -z "$as_dir" && as_dir=.
13413     for ac_exec_ext in '' $ac_executable_extensions; do
13414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415     ac_cv_prog_YACC="$ac_prog"
13416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417     break 2
13418   fi
13419 done
13420   done
13421 IFS=$as_save_IFS
13422
13423 fi
13424 fi
13425 YACC=$ac_cv_prog_YACC
13426 if test -n "$YACC"; then
13427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13428 $as_echo "$YACC" >&6; }
13429 else
13430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13432 fi
13433
13434
13435   test -n "$YACC" && break
13436 done
13437 test -n "$YACC" || YACC="yacc"
13438
13439 for ac_prog in flex lex
13440 do
13441   # Extract the first word of "$ac_prog", so it can be a program name with args.
13442 set dummy $ac_prog; ac_word=$2
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13444 $as_echo_n "checking for $ac_word... " >&6; }
13445 if ${ac_cv_prog_LEX+:} false; then :
13446   $as_echo_n "(cached) " >&6
13447 else
13448   if test -n "$LEX"; then
13449   ac_cv_prog_LEX="$LEX" # Let the user override the test.
13450 else
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13453 do
13454   IFS=$as_save_IFS
13455   test -z "$as_dir" && as_dir=.
13456     for ac_exec_ext in '' $ac_executable_extensions; do
13457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13458     ac_cv_prog_LEX="$ac_prog"
13459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13460     break 2
13461   fi
13462 done
13463   done
13464 IFS=$as_save_IFS
13465
13466 fi
13467 fi
13468 LEX=$ac_cv_prog_LEX
13469 if test -n "$LEX"; then
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13471 $as_echo "$LEX" >&6; }
13472 else
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474 $as_echo "no" >&6; }
13475 fi
13476
13477
13478   test -n "$LEX" && break
13479 done
13480 test -n "$LEX" || LEX=":"
13481
13482 case "$LEX" in
13483   :|*"missing "*) ;;
13484   *) cat >conftest.l <<_ACEOF
13485 %%
13486 a { ECHO; }
13487 b { REJECT; }
13488 c { yymore (); }
13489 d { yyless (1); }
13490 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
13491     yyless ((input () != 0)); }
13492 f { unput (yytext[0]); }
13493 . { BEGIN INITIAL; }
13494 %%
13495 #ifdef YYTEXT_POINTER
13496 extern char *yytext;
13497 #endif
13498 int
13499 main (void)
13500 {
13501   return ! yylex () + ! yywrap ();
13502 }
13503 _ACEOF
13504 { { ac_try="$LEX conftest.l"
13505 case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13510 $as_echo "$ac_try_echo"; } >&5
13511   (eval "$LEX conftest.l") 2>&5
13512   ac_status=$?
13513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13514   test $ac_status = 0; }
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13516 $as_echo_n "checking lex output file root... " >&6; }
13517 if ${ac_cv_prog_lex_root+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520
13521 if test -f lex.yy.c; then
13522   ac_cv_prog_lex_root=lex.yy
13523 elif test -f lexyy.c; then
13524   ac_cv_prog_lex_root=lexyy
13525 else
13526   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13527 fi
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13530 $as_echo "$ac_cv_prog_lex_root" >&6; }
13531 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13532
13533 if test -z "${LEXLIB+set}"; then
13534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13535 $as_echo_n "checking lex library... " >&6; }
13536 if ${ac_cv_lib_lex+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539
13540     ac_save_LIBS=$LIBS
13541     ac_cv_lib_lex='none needed'
13542     for ac_lib in '' -lfl -ll; do
13543       LIBS="$ac_lib $ac_save_LIBS"
13544       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h.  */
13546 `cat $LEX_OUTPUT_ROOT.c`
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549   ac_cv_lib_lex=$ac_lib
13550 fi
13551 rm -f core conftest.err conftest.$ac_objext \
13552     conftest$ac_exeext conftest.$ac_ext
13553       test "$ac_cv_lib_lex" != 'none needed' && break
13554     done
13555     LIBS=$ac_save_LIBS
13556
13557 fi
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13559 $as_echo "$ac_cv_lib_lex" >&6; }
13560   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13561 fi
13562
13563
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13565 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13566 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13567   $as_echo_n "(cached) " >&6
13568 else
13569   # POSIX says lex can declare yytext either as a pointer or an array; the
13570 # default is implementation-dependent.  Figure out which it is, since
13571 # not all implementations provide the %pointer and %array declarations.
13572 ac_cv_prog_lex_yytext_pointer=no
13573 ac_save_LIBS=$LIBS
13574 LIBS="$LEXLIB $ac_save_LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h.  */
13577
13578   #define YYTEXT_POINTER 1
13579 `cat $LEX_OUTPUT_ROOT.c`
13580 _ACEOF
13581 if ac_fn_c_try_link "$LINENO"; then :
13582   ac_cv_prog_lex_yytext_pointer=yes
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext \
13585     conftest$ac_exeext conftest.$ac_ext
13586 LIBS=$ac_save_LIBS
13587
13588 fi
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13590 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13591 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13592
13593 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13594
13595 fi
13596 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13597  ;;
13598 esac
13599 if test "$LEX" = :; then
13600   LEX=${am_missing_run}flex
13601 fi
13602
13603 ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
13604 # If we haven't got the data from the intl directory,
13605 # assume NLS is disabled.
13606 USE_NLS=no
13607 LIBINTL=
13608 LIBINTL_DEP=
13609 INCINTL=
13610 XGETTEXT=
13611 GMSGFMT=
13612 POSUB=
13613
13614 if test -f  ../intl/config.intl; then
13615   .  ../intl/config.intl
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13618 $as_echo_n "checking whether NLS is requested... " >&6; }
13619 if test x"$USE_NLS" != xyes; then
13620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622 else
13623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13624 $as_echo "yes" >&6; }
13625
13626 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13627
13628
13629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13630 $as_echo_n "checking for catalogs to be installed... " >&6; }
13631   # Look for .po and .gmo files in the source directory.
13632   CATALOGS=
13633   XLINGUAS=
13634   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13635     # If there aren't any .gmo files the shell will give us the
13636     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13637     # weeded out.
13638     case "$cat" in *\**)
13639       continue;;
13640     esac
13641     # The quadruple backslash is collapsed to a double backslash
13642     # by the backticks, then collapsed again by the double quotes,
13643     # leaving us with one backslash in the sed expression (right
13644     # before the dot that mustn't act as a wildcard).
13645     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13646     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13647     # The user is allowed to set LINGUAS to a list of languages to
13648     # install catalogs for.  If it's empty that means "all of them."
13649     if test "x$LINGUAS" = x; then
13650       CATALOGS="$CATALOGS $cat"
13651       XLINGUAS="$XLINGUAS $lang"
13652     else
13653       case "$LINGUAS" in *$lang*)
13654         CATALOGS="$CATALOGS $cat"
13655         XLINGUAS="$XLINGUAS $lang"
13656         ;;
13657       esac
13658     fi
13659   done
13660   LINGUAS="$XLINGUAS"
13661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13662 $as_echo "$LINGUAS" >&6; }
13663
13664
13665     DATADIRNAME=share
13666
13667   INSTOBJEXT=.mo
13668
13669   GENCAT=gencat
13670
13671   CATOBJEXT=.gmo
13672
13673 fi
13674
13675         MKINSTALLDIRS=
13676   if test -n "$ac_aux_dir"; then
13677     case "$ac_aux_dir" in
13678       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13679       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13680     esac
13681   fi
13682   if test -z "$MKINSTALLDIRS"; then
13683     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13684   fi
13685
13686
13687
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13689 $as_echo_n "checking whether NLS is requested... " >&6; }
13690     # Check whether --enable-nls was given.
13691 if test "${enable_nls+set}" = set; then :
13692   enableval=$enable_nls; USE_NLS=$enableval
13693 else
13694   USE_NLS=yes
13695 fi
13696
13697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13698 $as_echo "$USE_NLS" >&6; }
13699
13700
13701
13702
13703
13704
13705 # Prepare PATH_SEPARATOR.
13706 # The user is always right.
13707 if test "${PATH_SEPARATOR+set}" != set; then
13708   echo "#! /bin/sh" >conf$$.sh
13709   echo  "exit 0"   >>conf$$.sh
13710   chmod +x conf$$.sh
13711   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13712     PATH_SEPARATOR=';'
13713   else
13714     PATH_SEPARATOR=:
13715   fi
13716   rm -f conf$$.sh
13717 fi
13718
13719 # Find out how to test for executable files. Don't use a zero-byte file,
13720 # as systems may use methods other than mode bits to determine executability.
13721 cat >conf$$.file <<_ASEOF
13722 #! /bin/sh
13723 exit 0
13724 _ASEOF
13725 chmod +x conf$$.file
13726 if test -x conf$$.file >/dev/null 2>&1; then
13727   ac_executable_p="test -x"
13728 else
13729   ac_executable_p="test -f"
13730 fi
13731 rm -f conf$$.file
13732
13733 # Extract the first word of "msgfmt", so it can be a program name with args.
13734 set dummy msgfmt; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if ${ac_cv_path_MSGFMT+:} false; then :
13738   $as_echo_n "(cached) " >&6
13739 else
13740   case "$MSGFMT" in
13741   [\\/]* | ?:[\\/]*)
13742     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13743     ;;
13744   *)
13745     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13746     for ac_dir in $PATH; do
13747       IFS="$ac_save_IFS"
13748       test -z "$ac_dir" && ac_dir=.
13749       for ac_exec_ext in '' $ac_executable_extensions; do
13750         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13751           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13752      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13753             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13754             break 2
13755           fi
13756         fi
13757       done
13758     done
13759     IFS="$ac_save_IFS"
13760   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13761     ;;
13762 esac
13763 fi
13764 MSGFMT="$ac_cv_path_MSGFMT"
13765 if test "$MSGFMT" != ":"; then
13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13767 $as_echo "$MSGFMT" >&6; }
13768 else
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13771 fi
13772
13773   # Extract the first word of "gmsgfmt", so it can be a program name with args.
13774 set dummy gmsgfmt; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 $as_echo_n "checking for $ac_word... " >&6; }
13777 if ${ac_cv_path_GMSGFMT+:} false; then :
13778   $as_echo_n "(cached) " >&6
13779 else
13780   case $GMSGFMT in
13781   [\\/]* | ?:[\\/]*)
13782   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13783   ;;
13784   *)
13785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786 for as_dir in $PATH
13787 do
13788   IFS=$as_save_IFS
13789   test -z "$as_dir" && as_dir=.
13790     for ac_exec_ext in '' $ac_executable_extensions; do
13791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13792     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13794     break 2
13795   fi
13796 done
13797   done
13798 IFS=$as_save_IFS
13799
13800   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13801   ;;
13802 esac
13803 fi
13804 GMSGFMT=$ac_cv_path_GMSGFMT
13805 if test -n "$GMSGFMT"; then
13806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13807 $as_echo "$GMSGFMT" >&6; }
13808 else
13809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 $as_echo "no" >&6; }
13811 fi
13812
13813
13814
13815
13816 # Prepare PATH_SEPARATOR.
13817 # The user is always right.
13818 if test "${PATH_SEPARATOR+set}" != set; then
13819   echo "#! /bin/sh" >conf$$.sh
13820   echo  "exit 0"   >>conf$$.sh
13821   chmod +x conf$$.sh
13822   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13823     PATH_SEPARATOR=';'
13824   else
13825     PATH_SEPARATOR=:
13826   fi
13827   rm -f conf$$.sh
13828 fi
13829
13830 # Find out how to test for executable files. Don't use a zero-byte file,
13831 # as systems may use methods other than mode bits to determine executability.
13832 cat >conf$$.file <<_ASEOF
13833 #! /bin/sh
13834 exit 0
13835 _ASEOF
13836 chmod +x conf$$.file
13837 if test -x conf$$.file >/dev/null 2>&1; then
13838   ac_executable_p="test -x"
13839 else
13840   ac_executable_p="test -f"
13841 fi
13842 rm -f conf$$.file
13843
13844 # Extract the first word of "xgettext", so it can be a program name with args.
13845 set dummy xgettext; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_path_XGETTEXT+:} false; then :
13849   $as_echo_n "(cached) " >&6
13850 else
13851   case "$XGETTEXT" in
13852   [\\/]* | ?:[\\/]*)
13853     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13854     ;;
13855   *)
13856     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13857     for ac_dir in $PATH; do
13858       IFS="$ac_save_IFS"
13859       test -z "$ac_dir" && ac_dir=.
13860       for ac_exec_ext in '' $ac_executable_extensions; do
13861         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13862           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13863      (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
13864             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13865             break 2
13866           fi
13867         fi
13868       done
13869     done
13870     IFS="$ac_save_IFS"
13871   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13872     ;;
13873 esac
13874 fi
13875 XGETTEXT="$ac_cv_path_XGETTEXT"
13876 if test "$XGETTEXT" != ":"; then
13877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13878 $as_echo "$XGETTEXT" >&6; }
13879 else
13880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13882 fi
13883
13884     rm -f messages.po
13885
13886
13887 # Prepare PATH_SEPARATOR.
13888 # The user is always right.
13889 if test "${PATH_SEPARATOR+set}" != set; then
13890   echo "#! /bin/sh" >conf$$.sh
13891   echo  "exit 0"   >>conf$$.sh
13892   chmod +x conf$$.sh
13893   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13894     PATH_SEPARATOR=';'
13895   else
13896     PATH_SEPARATOR=:
13897   fi
13898   rm -f conf$$.sh
13899 fi
13900
13901 # Find out how to test for executable files. Don't use a zero-byte file,
13902 # as systems may use methods other than mode bits to determine executability.
13903 cat >conf$$.file <<_ASEOF
13904 #! /bin/sh
13905 exit 0
13906 _ASEOF
13907 chmod +x conf$$.file
13908 if test -x conf$$.file >/dev/null 2>&1; then
13909   ac_executable_p="test -x"
13910 else
13911   ac_executable_p="test -f"
13912 fi
13913 rm -f conf$$.file
13914
13915 # Extract the first word of "msgmerge", so it can be a program name with args.
13916 set dummy msgmerge; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if ${ac_cv_path_MSGMERGE+:} false; then :
13920   $as_echo_n "(cached) " >&6
13921 else
13922   case "$MSGMERGE" in
13923   [\\/]* | ?:[\\/]*)
13924     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13925     ;;
13926   *)
13927     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13928     for ac_dir in $PATH; do
13929       IFS="$ac_save_IFS"
13930       test -z "$ac_dir" && ac_dir=.
13931       for ac_exec_ext in '' $ac_executable_extensions; do
13932         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13933           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13934             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13935             break 2
13936           fi
13937         fi
13938       done
13939     done
13940     IFS="$ac_save_IFS"
13941   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13942     ;;
13943 esac
13944 fi
13945 MSGMERGE="$ac_cv_path_MSGMERGE"
13946 if test "$MSGMERGE" != ":"; then
13947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13948 $as_echo "$MSGMERGE" >&6; }
13949 else
13950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951 $as_echo "no" >&6; }
13952 fi
13953
13954
13955       if test "$GMSGFMT" != ":"; then
13956             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13957        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13958       : ;
13959     else
13960       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13962 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13963       GMSGFMT=":"
13964     fi
13965   fi
13966
13967       if test "$XGETTEXT" != ":"; then
13968             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13969        (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
13970       : ;
13971     else
13972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13973 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13974       XGETTEXT=":"
13975     fi
13976         rm -f messages.po
13977   fi
13978
13979   ac_config_commands="$ac_config_commands default-1"
13980
13981
13982
13983
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13985 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13986     # Check whether --enable-maintainer-mode was given.
13987 if test "${enable_maintainer_mode+set}" = set; then :
13988   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13989 else
13990   USE_MAINTAINER_MODE=no
13991 fi
13992
13993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13994 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13995    if test $USE_MAINTAINER_MODE = yes; then
13996   MAINTAINER_MODE_TRUE=
13997   MAINTAINER_MODE_FALSE='#'
13998 else
13999   MAINTAINER_MODE_TRUE='#'
14000   MAINTAINER_MODE_FALSE=
14001 fi
14002
14003   MAINT=$MAINTAINER_MODE_TRUE
14004
14005
14006  if false; then
14007   GENINSRC_NEVER_TRUE=
14008   GENINSRC_NEVER_FALSE='#'
14009 else
14010   GENINSRC_NEVER_TRUE='#'
14011   GENINSRC_NEVER_FALSE=
14012 fi
14013
14014
14015
14016 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
14017 do :
14018   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14019 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14021   cat >>confdefs.h <<_ACEOF
14022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14023 _ACEOF
14024
14025 fi
14026
14027 done
14028
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14030 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14031 if ${gcc_cv_header_string+:} false; then :
14032   $as_echo_n "(cached) " >&6
14033 else
14034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h.  */
14036 #include <string.h>
14037 #include <strings.h>
14038 int
14039 main ()
14040 {
14041
14042   ;
14043   return 0;
14044 }
14045 _ACEOF
14046 if ac_fn_c_try_compile "$LINENO"; then :
14047   gcc_cv_header_string=yes
14048 else
14049   gcc_cv_header_string=no
14050 fi
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14054 $as_echo "$gcc_cv_header_string" >&6; }
14055 if test $gcc_cv_header_string = yes; then
14056
14057 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14058
14059 fi
14060
14061
14062 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
14063 # people who are not cross-compiling but are compiling cross-assemblers.
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
14065 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
14066 if test "${host}" = "${target}"; then
14067   cross_gas=no
14068 else
14069   cross_gas=yes
14070
14071 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
14072
14073 fi
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
14075 $as_echo "$cross_gas" >&6; }
14076
14077 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14078 if test "x$ac_cv_type_size_t" = xyes; then :
14079
14080 else
14081
14082 cat >>confdefs.h <<_ACEOF
14083 #define size_t unsigned int
14084 _ACEOF
14085
14086 fi
14087
14088 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14089 # for constant arguments.  Useless!
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14091 $as_echo_n "checking for working alloca.h... " >&6; }
14092 if ${ac_cv_working_alloca_h+:} false; then :
14093   $as_echo_n "(cached) " >&6
14094 else
14095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h.  */
14097 #include <alloca.h>
14098 int
14099 main ()
14100 {
14101 char *p = (char *) alloca (2 * sizeof (int));
14102                           if (p) return 0;
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 if ac_fn_c_try_link "$LINENO"; then :
14108   ac_cv_working_alloca_h=yes
14109 else
14110   ac_cv_working_alloca_h=no
14111 fi
14112 rm -f core conftest.err conftest.$ac_objext \
14113     conftest$ac_exeext conftest.$ac_ext
14114 fi
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14116 $as_echo "$ac_cv_working_alloca_h" >&6; }
14117 if test $ac_cv_working_alloca_h = yes; then
14118
14119 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14120
14121 fi
14122
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14124 $as_echo_n "checking for alloca... " >&6; }
14125 if ${ac_cv_func_alloca_works+:} false; then :
14126   $as_echo_n "(cached) " >&6
14127 else
14128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h.  */
14130 #ifdef __GNUC__
14131 # define alloca __builtin_alloca
14132 #else
14133 # ifdef _MSC_VER
14134 #  include <malloc.h>
14135 #  define alloca _alloca
14136 # else
14137 #  ifdef HAVE_ALLOCA_H
14138 #   include <alloca.h>
14139 #  else
14140 #   ifdef _AIX
14141  #pragma alloca
14142 #   else
14143 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14144 void *alloca (size_t);
14145 #    endif
14146 #   endif
14147 #  endif
14148 # endif
14149 #endif
14150
14151 int
14152 main ()
14153 {
14154 char *p = (char *) alloca (1);
14155                                     if (p) return 0;
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161   ac_cv_func_alloca_works=yes
14162 else
14163   ac_cv_func_alloca_works=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166     conftest$ac_exeext conftest.$ac_ext
14167 fi
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14169 $as_echo "$ac_cv_func_alloca_works" >&6; }
14170
14171 if test $ac_cv_func_alloca_works = yes; then
14172
14173 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14174
14175 else
14176   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14177 # that cause trouble.  Some versions do not even contain alloca or
14178 # contain a buggy version.  If you still want to use their alloca,
14179 # use ar to extract alloca.o from them instead of compiling alloca.c.
14180
14181 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14182
14183 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14184
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14187 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14188 if ${ac_cv_os_cray+:} false; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h.  */
14193 #if defined CRAY && ! defined CRAY2
14194 webecray
14195 #else
14196 wenotbecray
14197 #endif
14198
14199 _ACEOF
14200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14201   $EGREP "webecray" >/dev/null 2>&1; then :
14202   ac_cv_os_cray=yes
14203 else
14204   ac_cv_os_cray=no
14205 fi
14206 rm -f conftest*
14207
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14210 $as_echo "$ac_cv_os_cray" >&6; }
14211 if test $ac_cv_os_cray = yes; then
14212   for ac_func in _getb67 GETB67 getb67; do
14213     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define CRAY_STACKSEG_END $ac_func
14219 _ACEOF
14220
14221     break
14222 fi
14223
14224   done
14225 fi
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14228 $as_echo_n "checking stack direction for C alloca... " >&6; }
14229 if ${ac_cv_c_stack_direction+:} false; then :
14230   $as_echo_n "(cached) " >&6
14231 else
14232   if test "$cross_compiling" = yes; then :
14233   ac_cv_c_stack_direction=0
14234 else
14235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h.  */
14237 $ac_includes_default
14238 int
14239 find_stack_direction (int *addr, int depth)
14240 {
14241   int dir, dummy = 0;
14242   if (! addr)
14243     addr = &dummy;
14244   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14245   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14246   return dir + dummy;
14247 }
14248
14249 int
14250 main (int argc, char **argv)
14251 {
14252   return find_stack_direction (0, argc + !argv + 20) < 0;
14253 }
14254 _ACEOF
14255 if ac_fn_c_try_run "$LINENO"; then :
14256   ac_cv_c_stack_direction=1
14257 else
14258   ac_cv_c_stack_direction=-1
14259 fi
14260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14261   conftest.$ac_objext conftest.beam conftest.$ac_ext
14262 fi
14263
14264 fi
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14266 $as_echo "$ac_cv_c_stack_direction" >&6; }
14267 cat >>confdefs.h <<_ACEOF
14268 #define STACK_DIRECTION $ac_cv_c_stack_direction
14269 _ACEOF
14270
14271
14272 fi
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14275 $as_echo_n "checking for inline... " >&6; }
14276 if ${ac_cv_c_inline+:} false; then :
14277   $as_echo_n "(cached) " >&6
14278 else
14279   ac_cv_c_inline=no
14280 for ac_kw in inline __inline__ __inline; do
14281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h.  */
14283 #ifndef __cplusplus
14284 typedef int foo_t;
14285 static $ac_kw foo_t static_foo () {return 0; }
14286 $ac_kw foo_t foo () {return 0; }
14287 #endif
14288
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291   ac_cv_c_inline=$ac_kw
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294   test "$ac_cv_c_inline" != no && break
14295 done
14296
14297 fi
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14299 $as_echo "$ac_cv_c_inline" >&6; }
14300
14301 case $ac_cv_c_inline in
14302   inline | yes) ;;
14303   *)
14304     case $ac_cv_c_inline in
14305       no) ac_val=;;
14306       *) ac_val=$ac_cv_c_inline;;
14307     esac
14308     cat >>confdefs.h <<_ACEOF
14309 #ifndef __cplusplus
14310 #define inline $ac_val
14311 #endif
14312 _ACEOF
14313     ;;
14314 esac
14315
14316
14317 # VMS doesn't have unlink.
14318 for ac_func in unlink remove
14319 do :
14320   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14322 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14323   cat >>confdefs.h <<_ACEOF
14324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325 _ACEOF
14326  break
14327 fi
14328 done
14329
14330 for ac_func in sbrk setlocale
14331 do :
14332   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14335   cat >>confdefs.h <<_ACEOF
14336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14337 _ACEOF
14338
14339 fi
14340 done
14341
14342 for ac_func in strsignal
14343 do :
14344   ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
14345 if test "x$ac_cv_func_strsignal" = xyes; then :
14346   cat >>confdefs.h <<_ACEOF
14347 #define HAVE_STRSIGNAL 1
14348 _ACEOF
14349
14350 fi
14351 done
14352
14353
14354
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14356 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14357 if ${am_cv_val_LC_MESSAGES+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h.  */
14362 #include <locale.h>
14363 int
14364 main ()
14365 {
14366 return LC_MESSAGES
14367   ;
14368   return 0;
14369 }
14370 _ACEOF
14371 if ac_fn_c_try_link "$LINENO"; then :
14372   am_cv_val_LC_MESSAGES=yes
14373 else
14374   am_cv_val_LC_MESSAGES=no
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext \
14377     conftest$ac_exeext conftest.$ac_ext
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14380 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14381   if test $am_cv_val_LC_MESSAGES = yes; then
14382
14383 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14384
14385   fi
14386
14387
14388 # do we need the math library?
14389 case "${need_libm}" in
14390 yes)
14391   LIBM=
14392 case $host in
14393 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14394   # These system don't have libm, or don't need it
14395   ;;
14396 *-ncr-sysv4.3*)
14397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14398 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14399 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
14400   $as_echo_n "(cached) " >&6
14401 else
14402   ac_check_lib_save_LIBS=$LIBS
14403 LIBS="-lmw  $LIBS"
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406
14407 /* Override any GCC internal prototype to avoid an error.
14408    Use char because int might match the return type of a GCC
14409    builtin and then its argument prototype would still apply.  */
14410 #ifdef __cplusplus
14411 extern "C"
14412 #endif
14413 char _mwvalidcheckl ();
14414 int
14415 main ()
14416 {
14417 return _mwvalidcheckl ();
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_link "$LINENO"; then :
14423   ac_cv_lib_mw__mwvalidcheckl=yes
14424 else
14425   ac_cv_lib_mw__mwvalidcheckl=no
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext \
14428     conftest$ac_exeext conftest.$ac_ext
14429 LIBS=$ac_check_lib_save_LIBS
14430 fi
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14432 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14433 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
14434   LIBM="-lmw"
14435 fi
14436
14437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14438 $as_echo_n "checking for cos in -lm... " >&6; }
14439 if ${ac_cv_lib_m_cos+:} false; then :
14440   $as_echo_n "(cached) " >&6
14441 else
14442   ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-lm  $LIBS"
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h.  */
14446
14447 /* Override any GCC internal prototype to avoid an error.
14448    Use char because int might match the return type of a GCC
14449    builtin and then its argument prototype would still apply.  */
14450 #ifdef __cplusplus
14451 extern "C"
14452 #endif
14453 char cos ();
14454 int
14455 main ()
14456 {
14457 return cos ();
14458   ;
14459   return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"; then :
14463   ac_cv_lib_m_cos=yes
14464 else
14465   ac_cv_lib_m_cos=no
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext \
14468     conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_check_lib_save_LIBS
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14472 $as_echo "$ac_cv_lib_m_cos" >&6; }
14473 if test "x$ac_cv_lib_m_cos" = xyes; then :
14474   LIBM="$LIBM -lm"
14475 fi
14476
14477   ;;
14478 *)
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14480 $as_echo_n "checking for cos in -lm... " >&6; }
14481 if ${ac_cv_lib_m_cos+:} false; then :
14482   $as_echo_n "(cached) " >&6
14483 else
14484   ac_check_lib_save_LIBS=$LIBS
14485 LIBS="-lm  $LIBS"
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h.  */
14488
14489 /* Override any GCC internal prototype to avoid an error.
14490    Use char because int might match the return type of a GCC
14491    builtin and then its argument prototype would still apply.  */
14492 #ifdef __cplusplus
14493 extern "C"
14494 #endif
14495 char cos ();
14496 int
14497 main ()
14498 {
14499 return cos ();
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 if ac_fn_c_try_link "$LINENO"; then :
14505   ac_cv_lib_m_cos=yes
14506 else
14507   ac_cv_lib_m_cos=no
14508 fi
14509 rm -f core conftest.err conftest.$ac_objext \
14510     conftest$ac_exeext conftest.$ac_ext
14511 LIBS=$ac_check_lib_save_LIBS
14512 fi
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14514 $as_echo "$ac_cv_lib_m_cos" >&6; }
14515 if test "x$ac_cv_lib_m_cos" = xyes; then :
14516   LIBM="-lm"
14517 fi
14518
14519   ;;
14520 esac
14521
14522
14523
14524   ;;
14525 esac
14526
14527 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
14528 # enough, but on some of those systems, the assert macro relies on requoting
14529 # working properly!
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
14531 $as_echo_n "checking for working assert macro... " >&6; }
14532 if ${gas_cv_assert_ok+:} false; then :
14533   $as_echo_n "(cached) " >&6
14534 else
14535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h.  */
14537 #include <assert.h>
14538 #include <stdio.h>
14539 int
14540 main ()
14541 {
14542
14543 /* check for requoting problems */
14544 static int a, b, c, d;
14545 static char *s;
14546 assert (!strcmp(s, "foo bar baz quux"));
14547 /* check for newline handling */
14548 assert (a == b
14549         || c == d);
14550
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 if ac_fn_c_try_link "$LINENO"; then :
14556   gas_cv_assert_ok=yes
14557 else
14558   gas_cv_assert_ok=no
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext \
14561     conftest$ac_exeext conftest.$ac_ext
14562 fi
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14564 $as_echo "$gas_cv_assert_ok" >&6; }
14565 test $gas_cv_assert_ok = yes ||
14566 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
14567
14568
14569
14570 # On some systems, the system header files may not declare malloc, realloc,
14571 # and free.  There are places where gas needs these functions to have been
14572 # declared -- such as when taking their addresses.
14573 gas_test_headers="
14574 #ifdef HAVE_MEMORY_H
14575 #include <memory.h>
14576 #endif
14577 #ifdef HAVE_STRING_H
14578 #include <string.h>
14579 #else
14580 #ifdef HAVE_STRINGS_H
14581 #include <strings.h>
14582 #endif
14583 #endif
14584 #ifdef HAVE_STDLIB_H
14585 #include <stdlib.h>
14586 #endif
14587 #ifdef HAVE_UNISTD_H
14588 #include <unistd.h>
14589 #endif
14590 "
14591
14592 # Does errno.h declare errno, or do we have to add a separate declaration
14593 # for it?
14594
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14596 $as_echo_n "checking whether declaration is required for errno... " >&6; }
14597 if ${gas_cv_decl_needed_errno+:} false; then :
14598   $as_echo_n "(cached) " >&6
14599 else
14600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h.  */
14602
14603 #ifdef HAVE_ERRNO_H
14604 #include <errno.h>
14605 #endif
14606
14607 int
14608 main ()
14609 {
14610
14611 typedef int f;
14612 f x;
14613 x = (f) errno;
14614
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620   gas_cv_decl_needed_errno=no
14621 else
14622   gas_cv_decl_needed_errno=yes
14623 fi
14624 rm -f core conftest.err conftest.$ac_objext \
14625     conftest$ac_exeext conftest.$ac_ext
14626 fi
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14628 $as_echo "$gas_cv_decl_needed_errno" >&6; }
14629 if test $gas_cv_decl_needed_errno = yes; then
14630
14631 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
14632
14633 fi
14634
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14637 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14638 if ${gas_cv_decl_getopt_unistd_h+:} false; then :
14639   $as_echo_n "(cached) " >&6
14640 else
14641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h.  */
14643 #include <unistd.h>
14644 int
14645 main ()
14646 {
14647 extern int getopt (int, char *const*, const char *);
14648   ;
14649   return 0;
14650 }
14651 _ACEOF
14652 if ac_fn_c_try_compile "$LINENO"; then :
14653   gas_cv_decl_getopt_unistd_h=yes
14654 else
14655   gas_cv_decl_getopt_unistd_h=no
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14658 fi
14659
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14661 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14662 if test $gas_cv_decl_getopt_unistd_h = yes; then
14663
14664 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14665
14666 fi
14667
14668
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14670 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14671 if ${gas_cv_decl_needed_environ+:} false; then :
14672   $as_echo_n "(cached) " >&6
14673 else
14674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h.  */
14676 $gas_test_headers
14677 int
14678 main ()
14679 {
14680
14681 typedef char **f;
14682 f x;
14683 x = (f) environ;
14684
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 if ac_fn_c_try_link "$LINENO"; then :
14690   gas_cv_decl_needed_environ=no
14691 else
14692   gas_cv_decl_needed_environ=yes
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext \
14695     conftest$ac_exeext conftest.$ac_ext
14696 fi
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14698 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14699 if test $gas_cv_decl_needed_environ = yes; then
14700
14701 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14702
14703 fi
14704
14705
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14707 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14708 if ${gas_cv_decl_needed_ffs+:} false; then :
14709   $as_echo_n "(cached) " >&6
14710 else
14711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h.  */
14713 $gas_test_headers
14714 int
14715 main ()
14716 {
14717
14718 typedef int (*f)(int);
14719 f x;
14720 x = (f) ffs;
14721
14722   ;
14723   return 0;
14724 }
14725 _ACEOF
14726 if ac_fn_c_try_link "$LINENO"; then :
14727   gas_cv_decl_needed_ffs=no
14728 else
14729   gas_cv_decl_needed_ffs=yes
14730 fi
14731 rm -f core conftest.err conftest.$ac_objext \
14732     conftest$ac_exeext conftest.$ac_ext
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14735 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14736 if test $gas_cv_decl_needed_ffs = yes; then
14737
14738 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14739
14740 fi
14741
14742
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14744 $as_echo_n "checking whether declaration is required for free... " >&6; }
14745 if ${gas_cv_decl_needed_free+:} false; then :
14746   $as_echo_n "(cached) " >&6
14747 else
14748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h.  */
14750 $gas_test_headers
14751 int
14752 main ()
14753 {
14754
14755 typedef void (*f)();
14756 f x;
14757 x = (f) free;
14758
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 if ac_fn_c_try_link "$LINENO"; then :
14764   gas_cv_decl_needed_free=no
14765 else
14766   gas_cv_decl_needed_free=yes
14767 fi
14768 rm -f core conftest.err conftest.$ac_objext \
14769     conftest$ac_exeext conftest.$ac_ext
14770 fi
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14772 $as_echo "$gas_cv_decl_needed_free" >&6; }
14773 if test $gas_cv_decl_needed_free = yes; then
14774
14775 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14776
14777 fi
14778
14779
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14781 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14782 if ${gas_cv_decl_needed_malloc+:} false; then :
14783   $as_echo_n "(cached) " >&6
14784 else
14785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h.  */
14787 $gas_test_headers
14788 int
14789 main ()
14790 {
14791
14792 typedef char *(*f)();
14793 f x;
14794 x = (f) malloc;
14795
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 if ac_fn_c_try_link "$LINENO"; then :
14801   gas_cv_decl_needed_malloc=no
14802 else
14803   gas_cv_decl_needed_malloc=yes
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext \
14806     conftest$ac_exeext conftest.$ac_ext
14807 fi
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14809 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14810 if test $gas_cv_decl_needed_malloc = yes; then
14811
14812 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14813
14814 fi
14815
14816
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14818 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14819 if ${gas_cv_decl_needed_sbrk+:} false; then :
14820   $as_echo_n "(cached) " >&6
14821 else
14822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h.  */
14824 $gas_test_headers
14825 int
14826 main ()
14827 {
14828
14829 typedef char *(*f)();
14830 f x;
14831 x = (f) sbrk;
14832
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838   gas_cv_decl_needed_sbrk=no
14839 else
14840   gas_cv_decl_needed_sbrk=yes
14841 fi
14842 rm -f core conftest.err conftest.$ac_objext \
14843     conftest$ac_exeext conftest.$ac_ext
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14846 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14847 if test $gas_cv_decl_needed_sbrk = yes; then
14848
14849 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14850
14851 fi
14852
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14855 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14856 if ${gas_cv_decl_needed_strstr+:} false; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h.  */
14861 $gas_test_headers
14862 int
14863 main ()
14864 {
14865
14866 typedef char *(*f)();
14867 f x;
14868 x = (f) strstr;
14869
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 if ac_fn_c_try_link "$LINENO"; then :
14875   gas_cv_decl_needed_strstr=no
14876 else
14877   gas_cv_decl_needed_strstr=yes
14878 fi
14879 rm -f core conftest.err conftest.$ac_objext \
14880     conftest$ac_exeext conftest.$ac_ext
14881 fi
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14883 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14884 if test $gas_cv_decl_needed_strstr = yes; then
14885
14886 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14887
14888 fi
14889
14890
14891 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14892 if test "x$ac_cv_have_decl_free" = xyes; then :
14893   ac_have_decl=1
14894 else
14895   ac_have_decl=0
14896 fi
14897
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_DECL_FREE $ac_have_decl
14900 _ACEOF
14901 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14902 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14903   ac_have_decl=1
14904 else
14905   ac_have_decl=0
14906 fi
14907
14908 cat >>confdefs.h <<_ACEOF
14909 #define HAVE_DECL_GETENV $ac_have_decl
14910 _ACEOF
14911 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14912 if test "x$ac_cv_have_decl_malloc" = xyes; then :
14913   ac_have_decl=1
14914 else
14915   ac_have_decl=0
14916 fi
14917
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_DECL_MALLOC $ac_have_decl
14920 _ACEOF
14921 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14922 if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
14923   ac_have_decl=1
14924 else
14925   ac_have_decl=0
14926 fi
14927
14928 cat >>confdefs.h <<_ACEOF
14929 #define HAVE_DECL_MEMPCPY $ac_have_decl
14930 _ACEOF
14931 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14932 if test "x$ac_cv_have_decl_realloc" = xyes; then :
14933   ac_have_decl=1
14934 else
14935   ac_have_decl=0
14936 fi
14937
14938 cat >>confdefs.h <<_ACEOF
14939 #define HAVE_DECL_REALLOC $ac_have_decl
14940 _ACEOF
14941 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14942 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14943   ac_have_decl=1
14944 else
14945   ac_have_decl=0
14946 fi
14947
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_DECL_STPCPY $ac_have_decl
14950 _ACEOF
14951 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14952 if test "x$ac_cv_have_decl_strstr" = xyes; then :
14953   ac_have_decl=1
14954 else
14955   ac_have_decl=0
14956 fi
14957
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_DECL_STRSTR $ac_have_decl
14960 _ACEOF
14961 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14962 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
14963   ac_have_decl=1
14964 else
14965   ac_have_decl=0
14966 fi
14967
14968 cat >>confdefs.h <<_ACEOF
14969 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14970 _ACEOF
14971 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14972 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14973   ac_have_decl=1
14974 else
14975   ac_have_decl=0
14976 fi
14977
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_DECL_ASPRINTF $ac_have_decl
14980 _ACEOF
14981
14982
14983
14984 case "${host}" in
14985 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14986
14987 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14988  ;;
14989 esac
14990
14991 # Link in zlib if we can.  This allows us to write compressed debug sections.
14992
14993   # Use the system's zlib library.
14994   zlibdir="-L\$(top_builddir)/../zlib"
14995   zlibinc="-I\$(top_srcdir)/../zlib"
14996
14997 # Check whether --with-system-zlib was given.
14998 if test "${with_system_zlib+set}" = set; then :
14999   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15000     zlibdir=
15001     zlibinc=
15002   fi
15003
15004 fi
15005
15006
15007
15008
15009
15010 # Support for VMS timestamps via cross compile
15011
15012 if test "$ac_cv_header_time_h" = yes; then
15013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
15014 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
15015  if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
15016   $as_echo_n "(cached) " >&6
15017 else
15018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h.  */
15020
15021 #define _BSD_SOURCE 1
15022 #include <time.h>
15023 int
15024 main ()
15025 {
15026 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 if ac_fn_c_try_compile "$LINENO"; then :
15032   gas_cv_have_time_type_member_tm_gmtoff=yes
15033 else
15034   gas_cv_have_time_type_member_tm_gmtoff=no
15035
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 fi
15039
15040  if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
15041
15042 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15043
15044  fi
15045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
15046 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
15047
15048 fi
15049
15050 if test "$ac_cv_header_sys_stat_h" = yes; then
15051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
15052 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
15053  if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
15054   $as_echo_n "(cached) " >&6
15055 else
15056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h.  */
15058
15059 #define _BSD_SOURCE 1
15060 #include <sys/stat.h>
15061 int
15062 main ()
15063 {
15064 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
15065   ;
15066   return 0;
15067 }
15068 _ACEOF
15069 if ac_fn_c_try_compile "$LINENO"; then :
15070   gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
15071 else
15072   gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
15073
15074 fi
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 fi
15077
15078  if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
15079
15080 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
15081
15082  fi
15083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
15084 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
15085
15086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
15087 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
15088  if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
15089   $as_echo_n "(cached) " >&6
15090 else
15091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h.  */
15093
15094 #define _BSD_SOURCE 1
15095 #include <sys/stat.h>
15096 int
15097 main ()
15098 {
15099 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 if ac_fn_c_try_compile "$LINENO"; then :
15105   gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
15106 else
15107   gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
15108
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 fi
15112
15113  if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
15114
15115 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
15116
15117  fi
15118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
15119 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
15120
15121 fi
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15132
15133 ac_config_commands="$ac_config_commands default"
15134
15135
15136 cat >confcache <<\_ACEOF
15137 # This file is a shell script that caches the results of configure
15138 # tests run on this system so they can be shared between configure
15139 # scripts and configure runs, see configure's option --config-cache.
15140 # It is not useful on other systems.  If it contains results you don't
15141 # want to keep, you may remove or edit it.
15142 #
15143 # config.status only pays attention to the cache file if you give it
15144 # the --recheck option to rerun configure.
15145 #
15146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15148 # following values.
15149
15150 _ACEOF
15151
15152 # The following way of writing the cache mishandles newlines in values,
15153 # but we know of no workaround that is simple, portable, and efficient.
15154 # So, we kill variables containing newlines.
15155 # Ultrix sh set writes to stderr and can't be redirected directly,
15156 # and sets the high bit in the cache file unless we assign to the vars.
15157 (
15158   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15159     eval ac_val=\$$ac_var
15160     case $ac_val in #(
15161     *${as_nl}*)
15162       case $ac_var in #(
15163       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15165       esac
15166       case $ac_var in #(
15167       _ | IFS | as_nl) ;; #(
15168       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15169       *) { eval $ac_var=; unset $ac_var;} ;;
15170       esac ;;
15171     esac
15172   done
15173
15174   (set) 2>&1 |
15175     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15176     *${as_nl}ac_space=\ *)
15177       # `set' does not quote correctly, so add quotes: double-quote
15178       # substitution turns \\\\ into \\, and sed turns \\ into \.
15179       sed -n \
15180         "s/'/'\\\\''/g;
15181           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15182       ;; #(
15183     *)
15184       # `set' quotes correctly as required by POSIX, so do not add quotes.
15185       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15186       ;;
15187     esac |
15188     sort
15189 ) |
15190   sed '
15191      /^ac_cv_env_/b end
15192      t clear
15193      :clear
15194      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15195      t end
15196      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15197      :end' >>confcache
15198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15199   if test -w "$cache_file"; then
15200     if test "x$cache_file" != "x/dev/null"; then
15201       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15202 $as_echo "$as_me: updating cache $cache_file" >&6;}
15203       if test ! -f "$cache_file" || test -h "$cache_file"; then
15204         cat confcache >"$cache_file"
15205       else
15206         case $cache_file in #(
15207         */* | ?:*)
15208           mv -f confcache "$cache_file"$$ &&
15209           mv -f "$cache_file"$$ "$cache_file" ;; #(
15210         *)
15211           mv -f confcache "$cache_file" ;;
15212         esac
15213       fi
15214     fi
15215   else
15216     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15217 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15218   fi
15219 fi
15220 rm -f confcache
15221
15222 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15223 # Let make expand exec_prefix.
15224 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15225
15226 DEFS=-DHAVE_CONFIG_H
15227
15228 ac_libobjs=
15229 ac_ltlibobjs=
15230 U=
15231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15232   # 1. Remove the extension, and $U if already installed.
15233   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15234   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15235   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15236   #    will be set to the directory where LIBOBJS objects are built.
15237   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15238   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15239 done
15240 LIBOBJS=$ac_libobjs
15241
15242 LTLIBOBJS=$ac_ltlibobjs
15243
15244
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15246 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15247    if test -n "$am_sleep_pid"; then
15248      # Hide warnings about reused PIDs.
15249      wait $am_sleep_pid 2>/dev/null
15250    fi
15251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15252 $as_echo "done" >&6; }
15253 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15254   as_fn_error $? "conditional \"AMDEP\" was never defined.
15255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15256 fi
15257 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15258   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15260 fi
15261  if test -n "$EXEEXT"; then
15262   am__EXEEXT_TRUE=
15263   am__EXEEXT_FALSE='#'
15264 else
15265   am__EXEEXT_TRUE='#'
15266   am__EXEEXT_FALSE=
15267 fi
15268
15269
15270 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15271   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15273 fi
15274 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15275   as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15277 fi
15278
15279 : "${CONFIG_STATUS=./config.status}"
15280 ac_write_fail=0
15281 ac_clean_files_save=$ac_clean_files
15282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15284 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15285 as_write_fail=0
15286 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15287 #! $SHELL
15288 # Generated by $as_me.
15289 # Run this file to recreate the current configuration.
15290 # Compiler output produced by configure, useful for debugging
15291 # configure, is in config.log if it exists.
15292
15293 debug=false
15294 ac_cs_recheck=false
15295 ac_cs_silent=false
15296
15297 SHELL=\${CONFIG_SHELL-$SHELL}
15298 export SHELL
15299 _ASEOF
15300 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15301 ## -------------------- ##
15302 ## M4sh Initialization. ##
15303 ## -------------------- ##
15304
15305 # Be more Bourne compatible
15306 DUALCASE=1; export DUALCASE # for MKS sh
15307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15308   emulate sh
15309   NULLCMD=:
15310   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15311   # is contrary to our usage.  Disable this feature.
15312   alias -g '${1+"$@"}'='"$@"'
15313   setopt NO_GLOB_SUBST
15314 else
15315   case `(set -o) 2>/dev/null` in #(
15316   *posix*) :
15317     set -o posix ;; #(
15318   *) :
15319      ;;
15320 esac
15321 fi
15322
15323
15324 as_nl='
15325 '
15326 export as_nl
15327 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15328 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15331 # Prefer a ksh shell builtin over an external printf program on Solaris,
15332 # but without wasting forks for bash or zsh.
15333 if test -z "$BASH_VERSION$ZSH_VERSION" \
15334     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15335   as_echo='print -r --'
15336   as_echo_n='print -rn --'
15337 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15338   as_echo='printf %s\n'
15339   as_echo_n='printf %s'
15340 else
15341   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15342     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15343     as_echo_n='/usr/ucb/echo -n'
15344   else
15345     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15346     as_echo_n_body='eval
15347       arg=$1;
15348       case $arg in #(
15349       *"$as_nl"*)
15350         expr "X$arg" : "X\\(.*\\)$as_nl";
15351         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15352       esac;
15353       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15354     '
15355     export as_echo_n_body
15356     as_echo_n='sh -c $as_echo_n_body as_echo'
15357   fi
15358   export as_echo_body
15359   as_echo='sh -c $as_echo_body as_echo'
15360 fi
15361
15362 # The user is always right.
15363 if test "${PATH_SEPARATOR+set}" != set; then
15364   PATH_SEPARATOR=:
15365   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15366     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15367       PATH_SEPARATOR=';'
15368   }
15369 fi
15370
15371
15372 # IFS
15373 # We need space, tab and new line, in precisely that order.  Quoting is
15374 # there to prevent editors from complaining about space-tab.
15375 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15376 # splitting by setting IFS to empty value.)
15377 IFS=" ""        $as_nl"
15378
15379 # Find who we are.  Look in the path if we contain no directory separator.
15380 as_myself=
15381 case $0 in #((
15382   *[\\/]* ) as_myself=$0 ;;
15383   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15384 for as_dir in $PATH
15385 do
15386   IFS=$as_save_IFS
15387   test -z "$as_dir" && as_dir=.
15388     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15389   done
15390 IFS=$as_save_IFS
15391
15392      ;;
15393 esac
15394 # We did not find ourselves, most probably we were run as `sh COMMAND'
15395 # in which case we are not to be found in the path.
15396 if test "x$as_myself" = x; then
15397   as_myself=$0
15398 fi
15399 if test ! -f "$as_myself"; then
15400   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15401   exit 1
15402 fi
15403
15404 # Unset variables that we do not need and which cause bugs (e.g. in
15405 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15406 # suppresses any "Segmentation fault" message there.  '((' could
15407 # trigger a bug in pdksh 5.2.14.
15408 for as_var in BASH_ENV ENV MAIL MAILPATH
15409 do eval test x\${$as_var+set} = xset \
15410   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15411 done
15412 PS1='$ '
15413 PS2='> '
15414 PS4='+ '
15415
15416 # NLS nuisances.
15417 LC_ALL=C
15418 export LC_ALL
15419 LANGUAGE=C
15420 export LANGUAGE
15421
15422 # CDPATH.
15423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15424
15425
15426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15427 # ----------------------------------------
15428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15430 # script with STATUS, using 1 if that was 0.
15431 as_fn_error ()
15432 {
15433   as_status=$1; test $as_status -eq 0 && as_status=1
15434   if test "$4"; then
15435     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15436     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15437   fi
15438   $as_echo "$as_me: error: $2" >&2
15439   as_fn_exit $as_status
15440 } # as_fn_error
15441
15442
15443 # as_fn_set_status STATUS
15444 # -----------------------
15445 # Set $? to STATUS, without forking.
15446 as_fn_set_status ()
15447 {
15448   return $1
15449 } # as_fn_set_status
15450
15451 # as_fn_exit STATUS
15452 # -----------------
15453 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15454 as_fn_exit ()
15455 {
15456   set +e
15457   as_fn_set_status $1
15458   exit $1
15459 } # as_fn_exit
15460
15461 # as_fn_unset VAR
15462 # ---------------
15463 # Portably unset VAR.
15464 as_fn_unset ()
15465 {
15466   { eval $1=; unset $1;}
15467 }
15468 as_unset=as_fn_unset
15469 # as_fn_append VAR VALUE
15470 # ----------------------
15471 # Append the text in VALUE to the end of the definition contained in VAR. Take
15472 # advantage of any shell optimizations that allow amortized linear growth over
15473 # repeated appends, instead of the typical quadratic growth present in naive
15474 # implementations.
15475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15476   eval 'as_fn_append ()
15477   {
15478     eval $1+=\$2
15479   }'
15480 else
15481   as_fn_append ()
15482   {
15483     eval $1=\$$1\$2
15484   }
15485 fi # as_fn_append
15486
15487 # as_fn_arith ARG...
15488 # ------------------
15489 # Perform arithmetic evaluation on the ARGs, and store the result in the
15490 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15491 # must be portable across $(()) and expr.
15492 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15493   eval 'as_fn_arith ()
15494   {
15495     as_val=$(( $* ))
15496   }'
15497 else
15498   as_fn_arith ()
15499   {
15500     as_val=`expr "$@" || test $? -eq 1`
15501   }
15502 fi # as_fn_arith
15503
15504
15505 if expr a : '\(a\)' >/dev/null 2>&1 &&
15506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15507   as_expr=expr
15508 else
15509   as_expr=false
15510 fi
15511
15512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15513   as_basename=basename
15514 else
15515   as_basename=false
15516 fi
15517
15518 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15519   as_dirname=dirname
15520 else
15521   as_dirname=false
15522 fi
15523
15524 as_me=`$as_basename -- "$0" ||
15525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15526          X"$0" : 'X\(//\)$' \| \
15527          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15528 $as_echo X/"$0" |
15529     sed '/^.*\/\([^/][^/]*\)\/*$/{
15530             s//\1/
15531             q
15532           }
15533           /^X\/\(\/\/\)$/{
15534             s//\1/
15535             q
15536           }
15537           /^X\/\(\/\).*/{
15538             s//\1/
15539             q
15540           }
15541           s/.*/./; q'`
15542
15543 # Avoid depending upon Character Ranges.
15544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15547 as_cr_digits='0123456789'
15548 as_cr_alnum=$as_cr_Letters$as_cr_digits
15549
15550 ECHO_C= ECHO_N= ECHO_T=
15551 case `echo -n x` in #(((((
15552 -n*)
15553   case `echo 'xy\c'` in
15554   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15555   xy)  ECHO_C='\c';;
15556   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15557        ECHO_T=' ';;
15558   esac;;
15559 *)
15560   ECHO_N='-n';;
15561 esac
15562
15563 rm -f conf$$ conf$$.exe conf$$.file
15564 if test -d conf$$.dir; then
15565   rm -f conf$$.dir/conf$$.file
15566 else
15567   rm -f conf$$.dir
15568   mkdir conf$$.dir 2>/dev/null
15569 fi
15570 if (echo >conf$$.file) 2>/dev/null; then
15571   if ln -s conf$$.file conf$$ 2>/dev/null; then
15572     as_ln_s='ln -s'
15573     # ... but there are two gotchas:
15574     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15575     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15576     # In both cases, we have to default to `cp -pR'.
15577     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15578       as_ln_s='cp -pR'
15579   elif ln conf$$.file conf$$ 2>/dev/null; then
15580     as_ln_s=ln
15581   else
15582     as_ln_s='cp -pR'
15583   fi
15584 else
15585   as_ln_s='cp -pR'
15586 fi
15587 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15588 rmdir conf$$.dir 2>/dev/null
15589
15590
15591 # as_fn_mkdir_p
15592 # -------------
15593 # Create "$as_dir" as a directory, including parents if necessary.
15594 as_fn_mkdir_p ()
15595 {
15596
15597   case $as_dir in #(
15598   -*) as_dir=./$as_dir;;
15599   esac
15600   test -d "$as_dir" || eval $as_mkdir_p || {
15601     as_dirs=
15602     while :; do
15603       case $as_dir in #(
15604       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15605       *) as_qdir=$as_dir;;
15606       esac
15607       as_dirs="'$as_qdir' $as_dirs"
15608       as_dir=`$as_dirname -- "$as_dir" ||
15609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15610          X"$as_dir" : 'X\(//\)[^/]' \| \
15611          X"$as_dir" : 'X\(//\)$' \| \
15612          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15613 $as_echo X"$as_dir" |
15614     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15615             s//\1/
15616             q
15617           }
15618           /^X\(\/\/\)[^/].*/{
15619             s//\1/
15620             q
15621           }
15622           /^X\(\/\/\)$/{
15623             s//\1/
15624             q
15625           }
15626           /^X\(\/\).*/{
15627             s//\1/
15628             q
15629           }
15630           s/.*/./; q'`
15631       test -d "$as_dir" && break
15632     done
15633     test -z "$as_dirs" || eval "mkdir $as_dirs"
15634   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15635
15636
15637 } # as_fn_mkdir_p
15638 if mkdir -p . 2>/dev/null; then
15639   as_mkdir_p='mkdir -p "$as_dir"'
15640 else
15641   test -d ./-p && rmdir ./-p
15642   as_mkdir_p=false
15643 fi
15644
15645
15646 # as_fn_executable_p FILE
15647 # -----------------------
15648 # Test if FILE is an executable regular file.
15649 as_fn_executable_p ()
15650 {
15651   test -f "$1" && test -x "$1"
15652 } # as_fn_executable_p
15653 as_test_x='test -x'
15654 as_executable_p=as_fn_executable_p
15655
15656 # Sed expression to map a string onto a valid CPP name.
15657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15658
15659 # Sed expression to map a string onto a valid variable name.
15660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15661
15662
15663 exec 6>&1
15664 ## ----------------------------------- ##
15665 ## Main body of $CONFIG_STATUS script. ##
15666 ## ----------------------------------- ##
15667 _ASEOF
15668 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15669
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 # Save the log message, to keep $0 and so on meaningful, and to
15672 # report actual input values of CONFIG_FILES etc. instead of their
15673 # values after options handling.
15674 ac_log="
15675 This file was extended by gas $as_me 2.32, which was
15676 generated by GNU Autoconf 2.69.  Invocation command line was
15677
15678   CONFIG_FILES    = $CONFIG_FILES
15679   CONFIG_HEADERS  = $CONFIG_HEADERS
15680   CONFIG_LINKS    = $CONFIG_LINKS
15681   CONFIG_COMMANDS = $CONFIG_COMMANDS
15682   $ $0 $@
15683
15684 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15685 "
15686
15687 _ACEOF
15688
15689 case $ac_config_files in *"
15690 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15691 esac
15692
15693 case $ac_config_headers in *"
15694 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15695 esac
15696
15697
15698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15699 # Files that config.status was made for.
15700 config_files="$ac_config_files"
15701 config_headers="$ac_config_headers"
15702 config_commands="$ac_config_commands"
15703
15704 _ACEOF
15705
15706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15707 ac_cs_usage="\
15708 \`$as_me' instantiates files and other configuration actions
15709 from templates according to the current configuration.  Unless the files
15710 and actions are specified as TAGs, all are instantiated by default.
15711
15712 Usage: $0 [OPTION]... [TAG]...
15713
15714   -h, --help       print this help, then exit
15715   -V, --version    print version number and configuration settings, then exit
15716       --config     print configuration, then exit
15717   -q, --quiet, --silent
15718                    do not print progress messages
15719   -d, --debug      don't remove temporary files
15720       --recheck    update $as_me by reconfiguring in the same conditions
15721       --file=FILE[:TEMPLATE]
15722                    instantiate the configuration file FILE
15723       --header=FILE[:TEMPLATE]
15724                    instantiate the configuration header FILE
15725
15726 Configuration files:
15727 $config_files
15728
15729 Configuration headers:
15730 $config_headers
15731
15732 Configuration commands:
15733 $config_commands
15734
15735 Report bugs to the package provider."
15736
15737 _ACEOF
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15740 ac_cs_version="\\
15741 gas config.status 2.32
15742 configured by $0, generated by GNU Autoconf 2.69,
15743   with options \\"\$ac_cs_config\\"
15744
15745 Copyright (C) 2012 Free Software Foundation, Inc.
15746 This config.status script is free software; the Free Software Foundation
15747 gives unlimited permission to copy, distribute and modify it."
15748
15749 ac_pwd='$ac_pwd'
15750 srcdir='$srcdir'
15751 INSTALL='$INSTALL'
15752 MKDIR_P='$MKDIR_P'
15753 AWK='$AWK'
15754 test -n "\$AWK" || AWK=awk
15755 _ACEOF
15756
15757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15758 # The default lists apply if the user does not specify any file.
15759 ac_need_defaults=:
15760 while test $# != 0
15761 do
15762   case $1 in
15763   --*=?*)
15764     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15765     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15766     ac_shift=:
15767     ;;
15768   --*=)
15769     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15770     ac_optarg=
15771     ac_shift=:
15772     ;;
15773   *)
15774     ac_option=$1
15775     ac_optarg=$2
15776     ac_shift=shift
15777     ;;
15778   esac
15779
15780   case $ac_option in
15781   # Handling of the options.
15782   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15783     ac_cs_recheck=: ;;
15784   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15785     $as_echo "$ac_cs_version"; exit ;;
15786   --config | --confi | --conf | --con | --co | --c )
15787     $as_echo "$ac_cs_config"; exit ;;
15788   --debug | --debu | --deb | --de | --d | -d )
15789     debug=: ;;
15790   --file | --fil | --fi | --f )
15791     $ac_shift
15792     case $ac_optarg in
15793     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15794     '') as_fn_error $? "missing file argument" ;;
15795     esac
15796     as_fn_append CONFIG_FILES " '$ac_optarg'"
15797     ac_need_defaults=false;;
15798   --header | --heade | --head | --hea )
15799     $ac_shift
15800     case $ac_optarg in
15801     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15802     esac
15803     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15804     ac_need_defaults=false;;
15805   --he | --h)
15806     # Conflict between --help and --header
15807     as_fn_error $? "ambiguous option: \`$1'
15808 Try \`$0 --help' for more information.";;
15809   --help | --hel | -h )
15810     $as_echo "$ac_cs_usage"; exit ;;
15811   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15812   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15813     ac_cs_silent=: ;;
15814
15815   # This is an error.
15816   -*) as_fn_error $? "unrecognized option: \`$1'
15817 Try \`$0 --help' for more information." ;;
15818
15819   *) as_fn_append ac_config_targets " $1"
15820      ac_need_defaults=false ;;
15821
15822   esac
15823   shift
15824 done
15825
15826 ac_configure_extra_args=
15827
15828 if $ac_cs_silent; then
15829   exec 6>/dev/null
15830   ac_configure_extra_args="$ac_configure_extra_args --silent"
15831 fi
15832
15833 _ACEOF
15834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15835 if \$ac_cs_recheck; then
15836   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15837   shift
15838   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15839   CONFIG_SHELL='$SHELL'
15840   export CONFIG_SHELL
15841   exec "\$@"
15842 fi
15843
15844 _ACEOF
15845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15846 exec 5>>config.log
15847 {
15848   echo
15849   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15850 ## Running $as_me. ##
15851 _ASBOX
15852   $as_echo "$ac_log"
15853 } >&5
15854
15855 _ACEOF
15856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15857 #
15858 # INIT-COMMANDS
15859 #
15860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15861
15862
15863 # The HP-UX ksh and POSIX shell print the target directory to stdout
15864 # if CDPATH is set.
15865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15866
15867 sed_quote_subst='$sed_quote_subst'
15868 double_quote_subst='$double_quote_subst'
15869 delay_variable_subst='$delay_variable_subst'
15870 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15871 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15872 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15873 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15874 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15875 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15876 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15877 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15878 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15879 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15880 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15881 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15882 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15883 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15884 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15885 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15886 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15887 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15888 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15889 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15890 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15891 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15892 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15893 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15894 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15895 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15896 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15897 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15898 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15899 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15900 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15901 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15902 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15903 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15904 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15905 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15906 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15907 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15908 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15909 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15910 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15911 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15912 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15913 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15914 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15915 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15916 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15917 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15918 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"`'
15919 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15920 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15921 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15922 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15923 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15924 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15925 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15926 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15927 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15928 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15929 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15930 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15931 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15932 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15933 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15934 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15935 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15936 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15937 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15938 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15939 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15940 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15941 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15942 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15943 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15944 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15945 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15946 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15947 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15948 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15949 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15950 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15951 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15952 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15953 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15954 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15955 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15956 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15957 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15958 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15959 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15960 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15961 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15962 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15963 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15964 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15965 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15966 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15967 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15968 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15969 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15970 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15971 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15972 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15973 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15974 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15975 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15976 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15977 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15978 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15979 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15980 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15981 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15982 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15983 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15984 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15985 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15986 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15987 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15988 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15989 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15990
15991 LTCC='$LTCC'
15992 LTCFLAGS='$LTCFLAGS'
15993 compiler='$compiler_DEFAULT'
15994
15995 # A function that is used when there is no print builtin or printf.
15996 func_fallback_echo ()
15997 {
15998   eval 'cat <<_LTECHO_EOF
15999 \$1
16000 _LTECHO_EOF'
16001 }
16002
16003 # Quote evaled strings.
16004 for var in SHELL \
16005 ECHO \
16006 SED \
16007 GREP \
16008 EGREP \
16009 FGREP \
16010 LD \
16011 NM \
16012 LN_S \
16013 lt_SP2NL \
16014 lt_NL2SP \
16015 reload_flag \
16016 OBJDUMP \
16017 deplibs_check_method \
16018 file_magic_cmd \
16019 AR \
16020 AR_FLAGS \
16021 STRIP \
16022 RANLIB \
16023 CC \
16024 CFLAGS \
16025 compiler \
16026 lt_cv_sys_global_symbol_pipe \
16027 lt_cv_sys_global_symbol_to_cdecl \
16028 lt_cv_sys_global_symbol_to_c_name_address \
16029 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16030 lt_prog_compiler_no_builtin_flag \
16031 lt_prog_compiler_wl \
16032 lt_prog_compiler_pic \
16033 lt_prog_compiler_static \
16034 lt_cv_prog_compiler_c_o \
16035 need_locks \
16036 DSYMUTIL \
16037 NMEDIT \
16038 LIPO \
16039 OTOOL \
16040 OTOOL64 \
16041 shrext_cmds \
16042 export_dynamic_flag_spec \
16043 whole_archive_flag_spec \
16044 compiler_needs_object \
16045 with_gnu_ld \
16046 allow_undefined_flag \
16047 no_undefined_flag \
16048 hardcode_libdir_flag_spec \
16049 hardcode_libdir_flag_spec_ld \
16050 hardcode_libdir_separator \
16051 fix_srcfile_path \
16052 exclude_expsyms \
16053 include_expsyms \
16054 file_list_spec \
16055 variables_saved_for_relink \
16056 libname_spec \
16057 library_names_spec \
16058 soname_spec \
16059 install_override_mode \
16060 finish_eval \
16061 old_striplib \
16062 striplib; do
16063     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16064     *[\\\\\\\`\\"\\\$]*)
16065       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16066       ;;
16067     *)
16068       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16069       ;;
16070     esac
16071 done
16072
16073 # Double-quote double-evaled strings.
16074 for var in reload_cmds \
16075 old_postinstall_cmds \
16076 old_postuninstall_cmds \
16077 old_archive_cmds \
16078 extract_expsyms_cmds \
16079 old_archive_from_new_cmds \
16080 old_archive_from_expsyms_cmds \
16081 archive_cmds \
16082 archive_expsym_cmds \
16083 module_cmds \
16084 module_expsym_cmds \
16085 export_symbols_cmds \
16086 prelink_cmds \
16087 postinstall_cmds \
16088 postuninstall_cmds \
16089 finish_cmds \
16090 sys_lib_search_path_spec \
16091 sys_lib_dlsearch_path_spec; do
16092     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16093     *[\\\\\\\`\\"\\\$]*)
16094       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16095       ;;
16096     *)
16097       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16098       ;;
16099     esac
16100 done
16101
16102 ac_aux_dir='$ac_aux_dir'
16103 xsi_shell='$xsi_shell'
16104 lt_shell_append='$lt_shell_append'
16105
16106 # See if we are running on zsh, and set the options which allow our
16107 # commands through without removal of \ escapes INIT.
16108 if test -n "\${ZSH_VERSION+set}" ; then
16109    setopt NO_GLOB_SUBST
16110 fi
16111
16112
16113     PACKAGE='$PACKAGE'
16114     VERSION='$VERSION'
16115     TIMESTAMP='$TIMESTAMP'
16116     RM='$RM'
16117     ofile='$ofile'
16118
16119
16120
16121 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16122     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16123     # from automake.
16124     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16125     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16126     LINGUAS="${LINGUAS-%UNSET%}"
16127
16128 target_cpu_type=${target_cpu_type}
16129  cgen_cpu_prefix=${cgen_cpu_prefix}
16130  obj_format=${obj_format}
16131  te_file=${te_file}
16132
16133 _ACEOF
16134
16135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16136
16137 # Handling of arguments.
16138 for ac_config_target in $ac_config_targets
16139 do
16140   case $ac_config_target in
16141     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16142     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16143     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16144     "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
16145     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16146     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16147     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16148     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16149     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16150     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16151
16152   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16153   esac
16154 done
16155
16156
16157 # If the user did not use the arguments to specify the items to instantiate,
16158 # then the envvar interface is used.  Set only those that are not.
16159 # We use the long form for the default assignment because of an extremely
16160 # bizarre bug on SunOS 4.1.3.
16161 if $ac_need_defaults; then
16162   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16163   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16164   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16165 fi
16166
16167 # Have a temporary directory for convenience.  Make it in the build tree
16168 # simply because there is no reason against having it here, and in addition,
16169 # creating and moving files from /tmp can sometimes cause problems.
16170 # Hook for its removal unless debugging.
16171 # Note that there is a small window in which the directory will not be cleaned:
16172 # after its creation but before its name has been assigned to `$tmp'.
16173 $debug ||
16174 {
16175   tmp= ac_tmp=
16176   trap 'exit_status=$?
16177   : "${ac_tmp:=$tmp}"
16178   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16179 ' 0
16180   trap 'as_fn_exit 1' 1 2 13 15
16181 }
16182 # Create a (secure) tmp directory for tmp files.
16183
16184 {
16185   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16186   test -d "$tmp"
16187 }  ||
16188 {
16189   tmp=./conf$$-$RANDOM
16190   (umask 077 && mkdir "$tmp")
16191 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16192 ac_tmp=$tmp
16193
16194 # Set up the scripts for CONFIG_FILES section.
16195 # No need to generate them if there are no CONFIG_FILES.
16196 # This happens for instance with `./config.status config.h'.
16197 if test -n "$CONFIG_FILES"; then
16198
16199
16200 ac_cr=`echo X | tr X '\015'`
16201 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16202 # But we know of no other shell where ac_cr would be empty at this
16203 # point, so we can use a bashism as a fallback.
16204 if test "x$ac_cr" = x; then
16205   eval ac_cr=\$\'\\r\'
16206 fi
16207 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16208 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16209   ac_cs_awk_cr='\\r'
16210 else
16211   ac_cs_awk_cr=$ac_cr
16212 fi
16213
16214 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16215 _ACEOF
16216
16217
16218 {
16219   echo "cat >conf$$subs.awk <<_ACEOF" &&
16220   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16221   echo "_ACEOF"
16222 } >conf$$subs.sh ||
16223   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16224 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16225 ac_delim='%!_!# '
16226 for ac_last_try in false false false false false :; do
16227   . ./conf$$subs.sh ||
16228     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16229
16230   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16231   if test $ac_delim_n = $ac_delim_num; then
16232     break
16233   elif $ac_last_try; then
16234     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16235   else
16236     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16237   fi
16238 done
16239 rm -f conf$$subs.sh
16240
16241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16242 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16243 _ACEOF
16244 sed -n '
16245 h
16246 s/^/S["/; s/!.*/"]=/
16247 p
16248 g
16249 s/^[^!]*!//
16250 :repl
16251 t repl
16252 s/'"$ac_delim"'$//
16253 t delim
16254 :nl
16255 h
16256 s/\(.\{148\}\)..*/\1/
16257 t more1
16258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16259 p
16260 n
16261 b repl
16262 :more1
16263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16264 p
16265 g
16266 s/.\{148\}//
16267 t nl
16268 :delim
16269 h
16270 s/\(.\{148\}\)..*/\1/
16271 t more2
16272 s/["\\]/\\&/g; s/^/"/; s/$/"/
16273 p
16274 b
16275 :more2
16276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16277 p
16278 g
16279 s/.\{148\}//
16280 t delim
16281 ' <conf$$subs.awk | sed '
16282 /^[^""]/{
16283   N
16284   s/\n//
16285 }
16286 ' >>$CONFIG_STATUS || ac_write_fail=1
16287 rm -f conf$$subs.awk
16288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16289 _ACAWK
16290 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16291   for (key in S) S_is_set[key] = 1
16292   FS = "\a"
16293
16294 }
16295 {
16296   line = $ 0
16297   nfields = split(line, field, "@")
16298   substed = 0
16299   len = length(field[1])
16300   for (i = 2; i < nfields; i++) {
16301     key = field[i]
16302     keylen = length(key)
16303     if (S_is_set[key]) {
16304       value = S[key]
16305       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16306       len += length(value) + length(field[++i])
16307       substed = 1
16308     } else
16309       len += 1 + keylen
16310   }
16311
16312   print line
16313 }
16314
16315 _ACAWK
16316 _ACEOF
16317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16319   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16320 else
16321   cat
16322 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16323   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16324 _ACEOF
16325
16326 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16327 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16328 # trailing colons and then remove the whole line if VPATH becomes empty
16329 # (actually we leave an empty line to preserve line numbers).
16330 if test "x$srcdir" = x.; then
16331   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16332 h
16333 s///
16334 s/^/:/
16335 s/[      ]*$/:/
16336 s/:\$(srcdir):/:/g
16337 s/:\${srcdir}:/:/g
16338 s/:@srcdir@:/:/g
16339 s/^:*//
16340 s/:*$//
16341 x
16342 s/\(=[   ]*\).*/\1/
16343 G
16344 s/\n//
16345 s/^[^=]*=[       ]*$//
16346 }'
16347 fi
16348
16349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16350 fi # test -n "$CONFIG_FILES"
16351
16352 # Set up the scripts for CONFIG_HEADERS section.
16353 # No need to generate them if there are no CONFIG_HEADERS.
16354 # This happens for instance with `./config.status Makefile'.
16355 if test -n "$CONFIG_HEADERS"; then
16356 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16357 BEGIN {
16358 _ACEOF
16359
16360 # Transform confdefs.h into an awk script `defines.awk', embedded as
16361 # here-document in config.status, that substitutes the proper values into
16362 # config.h.in to produce config.h.
16363
16364 # Create a delimiter string that does not exist in confdefs.h, to ease
16365 # handling of long lines.
16366 ac_delim='%!_!# '
16367 for ac_last_try in false false :; do
16368   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16369   if test -z "$ac_tt"; then
16370     break
16371   elif $ac_last_try; then
16372     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16373   else
16374     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16375   fi
16376 done
16377
16378 # For the awk script, D is an array of macro values keyed by name,
16379 # likewise P contains macro parameters if any.  Preserve backslash
16380 # newline sequences.
16381
16382 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16383 sed -n '
16384 s/.\{148\}/&'"$ac_delim"'/g
16385 t rset
16386 :rset
16387 s/^[     ]*#[    ]*define[       ][      ]*/ /
16388 t def
16389 d
16390 :def
16391 s/\\$//
16392 t bsnl
16393 s/["\\]/\\&/g
16394 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16395 D["\1"]=" \3"/p
16396 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16397 d
16398 :bsnl
16399 s/["\\]/\\&/g
16400 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16401 D["\1"]=" \3\\\\\\n"\\/p
16402 t cont
16403 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16404 t cont
16405 d
16406 :cont
16407 n
16408 s/.\{148\}/&'"$ac_delim"'/g
16409 t clear
16410 :clear
16411 s/\\$//
16412 t bsnlc
16413 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16414 d
16415 :bsnlc
16416 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16417 b cont
16418 ' <confdefs.h | sed '
16419 s/'"$ac_delim"'/"\\\
16420 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16421
16422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16423   for (key in D) D_is_set[key] = 1
16424   FS = "\a"
16425 }
16426 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16427   line = \$ 0
16428   split(line, arg, " ")
16429   if (arg[1] == "#") {
16430     defundef = arg[2]
16431     mac1 = arg[3]
16432   } else {
16433     defundef = substr(arg[1], 2)
16434     mac1 = arg[2]
16435   }
16436   split(mac1, mac2, "(") #)
16437   macro = mac2[1]
16438   prefix = substr(line, 1, index(line, defundef) - 1)
16439   if (D_is_set[macro]) {
16440     # Preserve the white space surrounding the "#".
16441     print prefix "define", macro P[macro] D[macro]
16442     next
16443   } else {
16444     # Replace #undef with comments.  This is necessary, for example,
16445     # in the case of _POSIX_SOURCE, which is predefined and required
16446     # on some systems where configure will not decide to define it.
16447     if (defundef == "undef") {
16448       print "/*", prefix defundef, macro, "*/"
16449       next
16450     }
16451   }
16452 }
16453 { print }
16454 _ACAWK
16455 _ACEOF
16456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16457   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16458 fi # test -n "$CONFIG_HEADERS"
16459
16460
16461 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16462 shift
16463 for ac_tag
16464 do
16465   case $ac_tag in
16466   :[FHLC]) ac_mode=$ac_tag; continue;;
16467   esac
16468   case $ac_mode$ac_tag in
16469   :[FHL]*:*);;
16470   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16471   :[FH]-) ac_tag=-:-;;
16472   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16473   esac
16474   ac_save_IFS=$IFS
16475   IFS=:
16476   set x $ac_tag
16477   IFS=$ac_save_IFS
16478   shift
16479   ac_file=$1
16480   shift
16481
16482   case $ac_mode in
16483   :L) ac_source=$1;;
16484   :[FH])
16485     ac_file_inputs=
16486     for ac_f
16487     do
16488       case $ac_f in
16489       -) ac_f="$ac_tmp/stdin";;
16490       *) # Look for the file first in the build tree, then in the source tree
16491          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16492          # because $ac_f cannot contain `:'.
16493          test -f "$ac_f" ||
16494            case $ac_f in
16495            [\\/$]*) false;;
16496            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16497            esac ||
16498            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16499       esac
16500       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16501       as_fn_append ac_file_inputs " '$ac_f'"
16502     done
16503
16504     # Let's still pretend it is `configure' which instantiates (i.e., don't
16505     # use $as_me), people would be surprised to read:
16506     #    /* config.h.  Generated by config.status.  */
16507     configure_input='Generated from '`
16508           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16509         `' by configure.'
16510     if test x"$ac_file" != x-; then
16511       configure_input="$ac_file.  $configure_input"
16512       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16513 $as_echo "$as_me: creating $ac_file" >&6;}
16514     fi
16515     # Neutralize special characters interpreted by sed in replacement strings.
16516     case $configure_input in #(
16517     *\&* | *\|* | *\\* )
16518        ac_sed_conf_input=`$as_echo "$configure_input" |
16519        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16520     *) ac_sed_conf_input=$configure_input;;
16521     esac
16522
16523     case $ac_tag in
16524     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16525       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16526     esac
16527     ;;
16528   esac
16529
16530   ac_dir=`$as_dirname -- "$ac_file" ||
16531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16532          X"$ac_file" : 'X\(//\)[^/]' \| \
16533          X"$ac_file" : 'X\(//\)$' \| \
16534          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16535 $as_echo X"$ac_file" |
16536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16537             s//\1/
16538             q
16539           }
16540           /^X\(\/\/\)[^/].*/{
16541             s//\1/
16542             q
16543           }
16544           /^X\(\/\/\)$/{
16545             s//\1/
16546             q
16547           }
16548           /^X\(\/\).*/{
16549             s//\1/
16550             q
16551           }
16552           s/.*/./; q'`
16553   as_dir="$ac_dir"; as_fn_mkdir_p
16554   ac_builddir=.
16555
16556 case "$ac_dir" in
16557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16558 *)
16559   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16560   # A ".." for each directory in $ac_dir_suffix.
16561   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16562   case $ac_top_builddir_sub in
16563   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16564   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16565   esac ;;
16566 esac
16567 ac_abs_top_builddir=$ac_pwd
16568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16569 # for backward compatibility:
16570 ac_top_builddir=$ac_top_build_prefix
16571
16572 case $srcdir in
16573   .)  # We are building in place.
16574     ac_srcdir=.
16575     ac_top_srcdir=$ac_top_builddir_sub
16576     ac_abs_top_srcdir=$ac_pwd ;;
16577   [\\/]* | ?:[\\/]* )  # Absolute name.
16578     ac_srcdir=$srcdir$ac_dir_suffix;
16579     ac_top_srcdir=$srcdir
16580     ac_abs_top_srcdir=$srcdir ;;
16581   *) # Relative name.
16582     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16583     ac_top_srcdir=$ac_top_build_prefix$srcdir
16584     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16585 esac
16586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16587
16588
16589   case $ac_mode in
16590   :F)
16591   #
16592   # CONFIG_FILE
16593   #
16594
16595   case $INSTALL in
16596   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16597   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16598   esac
16599   ac_MKDIR_P=$MKDIR_P
16600   case $MKDIR_P in
16601   [\\/$]* | ?:[\\/]* ) ;;
16602   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16603   esac
16604 _ACEOF
16605
16606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16607 # If the template does not know about datarootdir, expand it.
16608 # FIXME: This hack should be removed a few years after 2.60.
16609 ac_datarootdir_hack=; ac_datarootdir_seen=
16610 ac_sed_dataroot='
16611 /datarootdir/ {
16612   p
16613   q
16614 }
16615 /@datadir@/p
16616 /@docdir@/p
16617 /@infodir@/p
16618 /@localedir@/p
16619 /@mandir@/p'
16620 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16621 *datarootdir*) ac_datarootdir_seen=yes;;
16622 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16623   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16624 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16625 _ACEOF
16626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16627   ac_datarootdir_hack='
16628   s&@datadir@&$datadir&g
16629   s&@docdir@&$docdir&g
16630   s&@infodir@&$infodir&g
16631   s&@localedir@&$localedir&g
16632   s&@mandir@&$mandir&g
16633   s&\\\${datarootdir}&$datarootdir&g' ;;
16634 esac
16635 _ACEOF
16636
16637 # Neutralize VPATH when `$srcdir' = `.'.
16638 # Shell code in configure.ac might set extrasub.
16639 # FIXME: do we really want to maintain this feature?
16640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16641 ac_sed_extra="$ac_vpsub
16642 $extrasub
16643 _ACEOF
16644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16645 :t
16646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16647 s|@configure_input@|$ac_sed_conf_input|;t t
16648 s&@top_builddir@&$ac_top_builddir_sub&;t t
16649 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16650 s&@srcdir@&$ac_srcdir&;t t
16651 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16652 s&@top_srcdir@&$ac_top_srcdir&;t t
16653 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16654 s&@builddir@&$ac_builddir&;t t
16655 s&@abs_builddir@&$ac_abs_builddir&;t t
16656 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16657 s&@INSTALL@&$ac_INSTALL&;t t
16658 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16659 $ac_datarootdir_hack
16660 "
16661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16662   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16663
16664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16665   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16666   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16667       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16668   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16669 which seems to be undefined.  Please make sure it is defined" >&5
16670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16671 which seems to be undefined.  Please make sure it is defined" >&2;}
16672
16673   rm -f "$ac_tmp/stdin"
16674   case $ac_file in
16675   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16676   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16677   esac \
16678   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16679  ;;
16680   :H)
16681   #
16682   # CONFIG_HEADER
16683   #
16684   if test x"$ac_file" != x-; then
16685     {
16686       $as_echo "/* $configure_input  */" \
16687       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16688     } >"$ac_tmp/config.h" \
16689       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16690     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16691       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16693     else
16694       rm -f "$ac_file"
16695       mv "$ac_tmp/config.h" "$ac_file" \
16696         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16697     fi
16698   else
16699     $as_echo "/* $configure_input  */" \
16700       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16701       || as_fn_error $? "could not create -" "$LINENO" 5
16702   fi
16703 # Compute "$ac_file"'s index in $config_headers.
16704 _am_arg="$ac_file"
16705 _am_stamp_count=1
16706 for _am_header in $config_headers :; do
16707   case $_am_header in
16708     $_am_arg | $_am_arg:* )
16709       break ;;
16710     * )
16711       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16712   esac
16713 done
16714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16715 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16716          X"$_am_arg" : 'X\(//\)[^/]' \| \
16717          X"$_am_arg" : 'X\(//\)$' \| \
16718          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16719 $as_echo X"$_am_arg" |
16720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16721             s//\1/
16722             q
16723           }
16724           /^X\(\/\/\)[^/].*/{
16725             s//\1/
16726             q
16727           }
16728           /^X\(\/\/\)$/{
16729             s//\1/
16730             q
16731           }
16732           /^X\(\/\).*/{
16733             s//\1/
16734             q
16735           }
16736           s/.*/./; q'`/stamp-h$_am_stamp_count
16737  ;;
16738
16739   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16740 $as_echo "$as_me: executing $ac_file commands" >&6;}
16741  ;;
16742   esac
16743
16744
16745   case $ac_file$ac_mode in
16746     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16747   # Older Autoconf quotes --file arguments for eval, but not when files
16748   # are listed without --file.  Let's play safe and only enable the eval
16749   # if we detect the quoting.
16750   case $CONFIG_FILES in
16751   *\'*) eval set x "$CONFIG_FILES" ;;
16752   *)   set x $CONFIG_FILES ;;
16753   esac
16754   shift
16755   for mf
16756   do
16757     # Strip MF so we end up with the name of the file.
16758     mf=`echo "$mf" | sed -e 's/:.*$//'`
16759     # Check whether this is an Automake generated Makefile or not.
16760     # We used to match only the files named 'Makefile.in', but
16761     # some people rename them; so instead we look at the file content.
16762     # Grep'ing the first line is not enough: some people post-process
16763     # each Makefile.in and add a new line on top of each file to say so.
16764     # Grep'ing the whole file is not good either: AIX grep has a line
16765     # limit of 2048, but all sed's we know have understand at least 4000.
16766     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16767       dirpart=`$as_dirname -- "$mf" ||
16768 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16769          X"$mf" : 'X\(//\)[^/]' \| \
16770          X"$mf" : 'X\(//\)$' \| \
16771          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16772 $as_echo X"$mf" |
16773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16774             s//\1/
16775             q
16776           }
16777           /^X\(\/\/\)[^/].*/{
16778             s//\1/
16779             q
16780           }
16781           /^X\(\/\/\)$/{
16782             s//\1/
16783             q
16784           }
16785           /^X\(\/\).*/{
16786             s//\1/
16787             q
16788           }
16789           s/.*/./; q'`
16790     else
16791       continue
16792     fi
16793     # Extract the definition of DEPDIR, am__include, and am__quote
16794     # from the Makefile without running 'make'.
16795     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16796     test -z "$DEPDIR" && continue
16797     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16798     test -z "$am__include" && continue
16799     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16800     # Find all dependency output files, they are included files with
16801     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16802     # simplest approach to changing $(DEPDIR) to its actual value in the
16803     # expansion.
16804     for file in `sed -n "
16805       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16806          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16807       # Make sure the directory exists.
16808       test -f "$dirpart/$file" && continue
16809       fdir=`$as_dirname -- "$file" ||
16810 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16811          X"$file" : 'X\(//\)[^/]' \| \
16812          X"$file" : 'X\(//\)$' \| \
16813          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16814 $as_echo X"$file" |
16815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16816             s//\1/
16817             q
16818           }
16819           /^X\(\/\/\)[^/].*/{
16820             s//\1/
16821             q
16822           }
16823           /^X\(\/\/\)$/{
16824             s//\1/
16825             q
16826           }
16827           /^X\(\/\).*/{
16828             s//\1/
16829             q
16830           }
16831           s/.*/./; q'`
16832       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16833       # echo "creating $dirpart/$file"
16834       echo '# dummy' > "$dirpart/$file"
16835     done
16836   done
16837 }
16838  ;;
16839     "libtool":C)
16840
16841     # See if we are running on zsh, and set the options which allow our
16842     # commands through without removal of \ escapes.
16843     if test -n "${ZSH_VERSION+set}" ; then
16844       setopt NO_GLOB_SUBST
16845     fi
16846
16847     cfgfile="${ofile}T"
16848     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16849     $RM "$cfgfile"
16850
16851     cat <<_LT_EOF >> "$cfgfile"
16852 #! $SHELL
16853
16854 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16855 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16857 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16858 #
16859 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16860 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16861 #   Written by Gordon Matzigkeit, 1996
16862 #
16863 #   This file is part of GNU Libtool.
16864 #
16865 # GNU Libtool is free software; you can redistribute it and/or
16866 # modify it under the terms of the GNU General Public License as
16867 # published by the Free Software Foundation; either version 2 of
16868 # the License, or (at your option) any later version.
16869 #
16870 # As a special exception to the GNU General Public License,
16871 # if you distribute this file as part of a program or library that
16872 # is built using GNU Libtool, you may include this file under the
16873 # same distribution terms that you use for the rest of that program.
16874 #
16875 # GNU Libtool is distributed in the hope that it will be useful,
16876 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16877 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16878 # GNU General Public License for more details.
16879 #
16880 # You should have received a copy of the GNU General Public License
16881 # along with GNU Libtool; see the file COPYING.  If not, a copy
16882 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16883 # obtained by writing to the Free Software Foundation, Inc.,
16884 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16885
16886
16887 # The names of the tagged configurations supported by this script.
16888 available_tags=""
16889
16890 # ### BEGIN LIBTOOL CONFIG
16891
16892 # Which release of libtool.m4 was used?
16893 macro_version=$macro_version
16894 macro_revision=$macro_revision
16895
16896 # Whether or not to build shared libraries.
16897 build_libtool_libs=$enable_shared
16898
16899 # Whether or not to build static libraries.
16900 build_old_libs=$enable_static
16901
16902 # What type of objects to build.
16903 pic_mode=$pic_mode
16904
16905 # Whether or not to optimize for fast installation.
16906 fast_install=$enable_fast_install
16907
16908 # Shell to use when invoking shell scripts.
16909 SHELL=$lt_SHELL
16910
16911 # An echo program that protects backslashes.
16912 ECHO=$lt_ECHO
16913
16914 # The host system.
16915 host_alias=$host_alias
16916 host=$host
16917 host_os=$host_os
16918
16919 # The build system.
16920 build_alias=$build_alias
16921 build=$build
16922 build_os=$build_os
16923
16924 # A sed program that does not truncate output.
16925 SED=$lt_SED
16926
16927 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16928 Xsed="\$SED -e 1s/^X//"
16929
16930 # A grep program that handles long lines.
16931 GREP=$lt_GREP
16932
16933 # An ERE matcher.
16934 EGREP=$lt_EGREP
16935
16936 # A literal string matcher.
16937 FGREP=$lt_FGREP
16938
16939 # A BSD- or MS-compatible name lister.
16940 NM=$lt_NM
16941
16942 # Whether we need soft or hard links.
16943 LN_S=$lt_LN_S
16944
16945 # What is the maximum length of a command?
16946 max_cmd_len=$max_cmd_len
16947
16948 # Object file suffix (normally "o").
16949 objext=$ac_objext
16950
16951 # Executable file suffix (normally "").
16952 exeext=$exeext
16953
16954 # whether the shell understands "unset".
16955 lt_unset=$lt_unset
16956
16957 # turn spaces into newlines.
16958 SP2NL=$lt_lt_SP2NL
16959
16960 # turn newlines into spaces.
16961 NL2SP=$lt_lt_NL2SP
16962
16963 # An object symbol dumper.
16964 OBJDUMP=$lt_OBJDUMP
16965
16966 # Method to check whether dependent libraries are shared objects.
16967 deplibs_check_method=$lt_deplibs_check_method
16968
16969 # Command to use when deplibs_check_method == "file_magic".
16970 file_magic_cmd=$lt_file_magic_cmd
16971
16972 # The archiver.
16973 AR=$lt_AR
16974 AR_FLAGS=$lt_AR_FLAGS
16975
16976 # A symbol stripping program.
16977 STRIP=$lt_STRIP
16978
16979 # Commands used to install an old-style archive.
16980 RANLIB=$lt_RANLIB
16981 old_postinstall_cmds=$lt_old_postinstall_cmds
16982 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16983
16984 # Whether to use a lock for old archive extraction.
16985 lock_old_archive_extraction=$lock_old_archive_extraction
16986
16987 # A C compiler.
16988 LTCC=$lt_CC
16989
16990 # LTCC compiler flags.
16991 LTCFLAGS=$lt_CFLAGS
16992
16993 # Take the output of nm and produce a listing of raw symbols and C names.
16994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16995
16996 # Transform the output of nm in a proper C declaration.
16997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16998
16999 # Transform the output of nm in a C name address pair.
17000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17001
17002 # Transform the output of nm in a C name address pair when lib prefix is needed.
17003 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17004
17005 # The name of the directory that contains temporary libtool files.
17006 objdir=$objdir
17007
17008 # Used to examine libraries when file_magic_cmd begins with "file".
17009 MAGIC_CMD=$MAGIC_CMD
17010
17011 # Must we lock files when doing compilation?
17012 need_locks=$lt_need_locks
17013
17014 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17015 DSYMUTIL=$lt_DSYMUTIL
17016
17017 # Tool to change global to local symbols on Mac OS X.
17018 NMEDIT=$lt_NMEDIT
17019
17020 # Tool to manipulate fat objects and archives on Mac OS X.
17021 LIPO=$lt_LIPO
17022
17023 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17024 OTOOL=$lt_OTOOL
17025
17026 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17027 OTOOL64=$lt_OTOOL64
17028
17029 # Old archive suffix (normally "a").
17030 libext=$libext
17031
17032 # Shared library suffix (normally ".so").
17033 shrext_cmds=$lt_shrext_cmds
17034
17035 # The commands to extract the exported symbol list from a shared archive.
17036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17037
17038 # Variables whose values should be saved in libtool wrapper scripts and
17039 # restored at link time.
17040 variables_saved_for_relink=$lt_variables_saved_for_relink
17041
17042 # Do we need the "lib" prefix for modules?
17043 need_lib_prefix=$need_lib_prefix
17044
17045 # Do we need a version for libraries?
17046 need_version=$need_version
17047
17048 # Library versioning type.
17049 version_type=$version_type
17050
17051 # Shared library runtime path variable.
17052 runpath_var=$runpath_var
17053
17054 # Shared library path variable.
17055 shlibpath_var=$shlibpath_var
17056
17057 # Is shlibpath searched before the hard-coded library search path?
17058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17059
17060 # Format of library name prefix.
17061 libname_spec=$lt_libname_spec
17062
17063 # List of archive names.  First name is the real one, the rest are links.
17064 # The last name is the one that the linker finds with -lNAME
17065 library_names_spec=$lt_library_names_spec
17066
17067 # The coded name of the library, if different from the real name.
17068 soname_spec=$lt_soname_spec
17069
17070 # Permission mode override for installation of shared libraries.
17071 install_override_mode=$lt_install_override_mode
17072
17073 # Command to use after installation of a shared archive.
17074 postinstall_cmds=$lt_postinstall_cmds
17075
17076 # Command to use after uninstallation of a shared archive.
17077 postuninstall_cmds=$lt_postuninstall_cmds
17078
17079 # Commands used to finish a libtool library installation in a directory.
17080 finish_cmds=$lt_finish_cmds
17081
17082 # As "finish_cmds", except a single script fragment to be evaled but
17083 # not shown.
17084 finish_eval=$lt_finish_eval
17085
17086 # Whether we should hardcode library paths into libraries.
17087 hardcode_into_libs=$hardcode_into_libs
17088
17089 # Compile-time system search path for libraries.
17090 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17091
17092 # Run-time system search path for libraries.
17093 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17094
17095 # Whether dlopen is supported.
17096 dlopen_support=$enable_dlopen
17097
17098 # Whether dlopen of programs is supported.
17099 dlopen_self=$enable_dlopen_self
17100
17101 # Whether dlopen of statically linked programs is supported.
17102 dlopen_self_static=$enable_dlopen_self_static
17103
17104 # Commands to strip libraries.
17105 old_striplib=$lt_old_striplib
17106 striplib=$lt_striplib
17107
17108
17109 # The linker used to build libraries.
17110 LD=$lt_LD
17111
17112 # How to create reloadable object files.
17113 reload_flag=$lt_reload_flag
17114 reload_cmds=$lt_reload_cmds
17115
17116 # Commands used to build an old-style archive.
17117 old_archive_cmds=$lt_old_archive_cmds
17118
17119 # A language specific compiler.
17120 CC=$lt_compiler
17121
17122 # Is the compiler the GNU compiler?
17123 with_gcc=$GCC
17124
17125 # Compiler flag to turn off builtin functions.
17126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17127
17128 # How to pass a linker flag through the compiler.
17129 wl=$lt_lt_prog_compiler_wl
17130
17131 # Additional compiler flags for building library objects.
17132 pic_flag=$lt_lt_prog_compiler_pic
17133
17134 # Compiler flag to prevent dynamic linking.
17135 link_static_flag=$lt_lt_prog_compiler_static
17136
17137 # Does compiler simultaneously support -c and -o options?
17138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17139
17140 # Whether or not to add -lc for building shared libraries.
17141 build_libtool_need_lc=$archive_cmds_need_lc
17142
17143 # Whether or not to disallow shared libs when runtime libs are static.
17144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17145
17146 # Compiler flag to allow reflexive dlopens.
17147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17148
17149 # Compiler flag to generate shared objects directly from archives.
17150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17151
17152 # Whether the compiler copes with passing no objects directly.
17153 compiler_needs_object=$lt_compiler_needs_object
17154
17155 # Create an old-style archive from a shared archive.
17156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17157
17158 # Create a temporary old-style archive to link instead of a shared archive.
17159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17160
17161 # Commands used to build a shared archive.
17162 archive_cmds=$lt_archive_cmds
17163 archive_expsym_cmds=$lt_archive_expsym_cmds
17164
17165 # Commands used to build a loadable module if different from building
17166 # a shared archive.
17167 module_cmds=$lt_module_cmds
17168 module_expsym_cmds=$lt_module_expsym_cmds
17169
17170 # Whether we are building with GNU ld or not.
17171 with_gnu_ld=$lt_with_gnu_ld
17172
17173 # Flag that allows shared libraries with undefined symbols to be built.
17174 allow_undefined_flag=$lt_allow_undefined_flag
17175
17176 # Flag that enforces no undefined symbols.
17177 no_undefined_flag=$lt_no_undefined_flag
17178
17179 # Flag to hardcode \$libdir into a binary during linking.
17180 # This must work even if \$libdir does not exist
17181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17182
17183 # If ld is used when linking, flag to hardcode \$libdir into a binary
17184 # during linking.  This must work even if \$libdir does not exist.
17185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17186
17187 # Whether we need a single "-rpath" flag with a separated argument.
17188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17189
17190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17191 # DIR into the resulting binary.
17192 hardcode_direct=$hardcode_direct
17193
17194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17195 # DIR into the resulting binary and the resulting library dependency is
17196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17197 # library is relocated.
17198 hardcode_direct_absolute=$hardcode_direct_absolute
17199
17200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17201 # into the resulting binary.
17202 hardcode_minus_L=$hardcode_minus_L
17203
17204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17205 # into the resulting binary.
17206 hardcode_shlibpath_var=$hardcode_shlibpath_var
17207
17208 # Set to "yes" if building a shared library automatically hardcodes DIR
17209 # into the library and all subsequent libraries and executables linked
17210 # against it.
17211 hardcode_automatic=$hardcode_automatic
17212
17213 # Set to yes if linker adds runtime paths of dependent libraries
17214 # to runtime path list.
17215 inherit_rpath=$inherit_rpath
17216
17217 # Whether libtool must link a program against all its dependency libraries.
17218 link_all_deplibs=$link_all_deplibs
17219
17220 # Fix the shell variable \$srcfile for the compiler.
17221 fix_srcfile_path=$lt_fix_srcfile_path
17222
17223 # Set to "yes" if exported symbols are required.
17224 always_export_symbols=$always_export_symbols
17225
17226 # The commands to list exported symbols.
17227 export_symbols_cmds=$lt_export_symbols_cmds
17228
17229 # Symbols that should not be listed in the preloaded symbols.
17230 exclude_expsyms=$lt_exclude_expsyms
17231
17232 # Symbols that must always be exported.
17233 include_expsyms=$lt_include_expsyms
17234
17235 # Commands necessary for linking programs (against libraries) with templates.
17236 prelink_cmds=$lt_prelink_cmds
17237
17238 # Specify filename containing input files.
17239 file_list_spec=$lt_file_list_spec
17240
17241 # How to hardcode a shared library path into an executable.
17242 hardcode_action=$hardcode_action
17243
17244 # ### END LIBTOOL CONFIG
17245
17246 _LT_EOF
17247
17248   case $host_os in
17249   aix3*)
17250     cat <<\_LT_EOF >> "$cfgfile"
17251 # AIX sometimes has problems with the GCC collect2 program.  For some
17252 # reason, if we set the COLLECT_NAMES environment variable, the problems
17253 # vanish in a puff of smoke.
17254 if test "X${COLLECT_NAMES+set}" != Xset; then
17255   COLLECT_NAMES=
17256   export COLLECT_NAMES
17257 fi
17258 _LT_EOF
17259     ;;
17260   esac
17261
17262
17263 ltmain="$ac_aux_dir/ltmain.sh"
17264
17265
17266   # We use sed instead of cat because bash on DJGPP gets confused if
17267   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17268   # text mode, it properly converts lines to CR/LF.  This bash problem
17269   # is reportedly fixed, but why not run on old versions too?
17270   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17271     || (rm -f "$cfgfile"; exit 1)
17272
17273   case $xsi_shell in
17274   yes)
17275     cat << \_LT_EOF >> "$cfgfile"
17276
17277 # func_dirname file append nondir_replacement
17278 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17279 # otherwise set result to NONDIR_REPLACEMENT.
17280 func_dirname ()
17281 {
17282   case ${1} in
17283     */*) func_dirname_result="${1%/*}${2}" ;;
17284     *  ) func_dirname_result="${3}" ;;
17285   esac
17286 }
17287
17288 # func_basename file
17289 func_basename ()
17290 {
17291   func_basename_result="${1##*/}"
17292 }
17293
17294 # func_dirname_and_basename file append nondir_replacement
17295 # perform func_basename and func_dirname in a single function
17296 # call:
17297 #   dirname:  Compute the dirname of FILE.  If nonempty,
17298 #             add APPEND to the result, otherwise set result
17299 #             to NONDIR_REPLACEMENT.
17300 #             value returned in "$func_dirname_result"
17301 #   basename: Compute filename of FILE.
17302 #             value retuned in "$func_basename_result"
17303 # Implementation must be kept synchronized with func_dirname
17304 # and func_basename. For efficiency, we do not delegate to
17305 # those functions but instead duplicate the functionality here.
17306 func_dirname_and_basename ()
17307 {
17308   case ${1} in
17309     */*) func_dirname_result="${1%/*}${2}" ;;
17310     *  ) func_dirname_result="${3}" ;;
17311   esac
17312   func_basename_result="${1##*/}"
17313 }
17314
17315 # func_stripname prefix suffix name
17316 # strip PREFIX and SUFFIX off of NAME.
17317 # PREFIX and SUFFIX must not contain globbing or regex special
17318 # characters, hashes, percent signs, but SUFFIX may contain a leading
17319 # dot (in which case that matches only a dot).
17320 func_stripname ()
17321 {
17322   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17323   # positional parameters, so assign one to ordinary parameter first.
17324   func_stripname_result=${3}
17325   func_stripname_result=${func_stripname_result#"${1}"}
17326   func_stripname_result=${func_stripname_result%"${2}"}
17327 }
17328
17329 # func_opt_split
17330 func_opt_split ()
17331 {
17332   func_opt_split_opt=${1%%=*}
17333   func_opt_split_arg=${1#*=}
17334 }
17335
17336 # func_lo2o object
17337 func_lo2o ()
17338 {
17339   case ${1} in
17340     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17341     *)    func_lo2o_result=${1} ;;
17342   esac
17343 }
17344
17345 # func_xform libobj-or-source
17346 func_xform ()
17347 {
17348   func_xform_result=${1%.*}.lo
17349 }
17350
17351 # func_arith arithmetic-term...
17352 func_arith ()
17353 {
17354   func_arith_result=$(( $* ))
17355 }
17356
17357 # func_len string
17358 # STRING may not start with a hyphen.
17359 func_len ()
17360 {
17361   func_len_result=${#1}
17362 }
17363
17364 _LT_EOF
17365     ;;
17366   *) # Bourne compatible functions.
17367     cat << \_LT_EOF >> "$cfgfile"
17368
17369 # func_dirname file append nondir_replacement
17370 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17371 # otherwise set result to NONDIR_REPLACEMENT.
17372 func_dirname ()
17373 {
17374   # Extract subdirectory from the argument.
17375   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17376   if test "X$func_dirname_result" = "X${1}"; then
17377     func_dirname_result="${3}"
17378   else
17379     func_dirname_result="$func_dirname_result${2}"
17380   fi
17381 }
17382
17383 # func_basename file
17384 func_basename ()
17385 {
17386   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17387 }
17388
17389
17390 # func_stripname prefix suffix name
17391 # strip PREFIX and SUFFIX off of NAME.
17392 # PREFIX and SUFFIX must not contain globbing or regex special
17393 # characters, hashes, percent signs, but SUFFIX may contain a leading
17394 # dot (in which case that matches only a dot).
17395 # func_strip_suffix prefix name
17396 func_stripname ()
17397 {
17398   case ${2} in
17399     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17400     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17401   esac
17402 }
17403
17404 # sed scripts:
17405 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17406 my_sed_long_arg='1s/^-[^=]*=//'
17407
17408 # func_opt_split
17409 func_opt_split ()
17410 {
17411   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17412   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17413 }
17414
17415 # func_lo2o object
17416 func_lo2o ()
17417 {
17418   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17419 }
17420
17421 # func_xform libobj-or-source
17422 func_xform ()
17423 {
17424   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17425 }
17426
17427 # func_arith arithmetic-term...
17428 func_arith ()
17429 {
17430   func_arith_result=`expr "$@"`
17431 }
17432
17433 # func_len string
17434 # STRING may not start with a hyphen.
17435 func_len ()
17436 {
17437   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17438 }
17439
17440 _LT_EOF
17441 esac
17442
17443 case $lt_shell_append in
17444   yes)
17445     cat << \_LT_EOF >> "$cfgfile"
17446
17447 # func_append var value
17448 # Append VALUE to the end of shell variable VAR.
17449 func_append ()
17450 {
17451   eval "$1+=\$2"
17452 }
17453 _LT_EOF
17454     ;;
17455   *)
17456     cat << \_LT_EOF >> "$cfgfile"
17457
17458 # func_append var value
17459 # Append VALUE to the end of shell variable VAR.
17460 func_append ()
17461 {
17462   eval "$1=\$$1\$2"
17463 }
17464
17465 _LT_EOF
17466     ;;
17467   esac
17468
17469
17470   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17471     || (rm -f "$cfgfile"; exit 1)
17472
17473   mv -f "$cfgfile" "$ofile" ||
17474     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17475   chmod +x "$ofile"
17476
17477  ;;
17478     "default-1":C)
17479     for ac_file in $CONFIG_FILES; do
17480       # Support "outfile[:infile[:infile...]]"
17481       case "$ac_file" in
17482         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17483       esac
17484       # PO directories have a Makefile.in generated from Makefile.in.in.
17485       case "$ac_file" in */Makefile.in)
17486         # Adjust a relative srcdir.
17487         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17488         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17489         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17490         # In autoconf-2.13 it is called $ac_given_srcdir.
17491         # In autoconf-2.50 it is called $srcdir.
17492         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17493         case "$ac_given_srcdir" in
17494           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17495           /*) top_srcdir="$ac_given_srcdir" ;;
17496           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17497         esac
17498         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17499           rm -f "$ac_dir/POTFILES"
17500           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17501           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17502           POMAKEFILEDEPS="POTFILES.in"
17503           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17504           # on $ac_dir but don't depend on user-specified configuration
17505           # parameters.
17506           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17507             # The LINGUAS file contains the set of available languages.
17508             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17509               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17510             fi
17511             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17512             # Hide the ALL_LINGUAS assigment from automake.
17513             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17514             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17515           else
17516             # The set of available languages was given in configure.ac.
17517             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17518           fi
17519           case "$ac_given_srcdir" in
17520             .) srcdirpre= ;;
17521             *) srcdirpre='$(srcdir)/' ;;
17522           esac
17523           POFILES=
17524           GMOFILES=
17525           UPDATEPOFILES=
17526           DUMMYPOFILES=
17527           for lang in $ALL_LINGUAS; do
17528             POFILES="$POFILES $srcdirpre$lang.po"
17529             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17530             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17531             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17532           done
17533           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17534           # environment variable.
17535           INST_LINGUAS=
17536           if test -n "$ALL_LINGUAS"; then
17537             for presentlang in $ALL_LINGUAS; do
17538               useit=no
17539               if test "%UNSET%" != "$LINGUAS"; then
17540                 desiredlanguages="$LINGUAS"
17541               else
17542                 desiredlanguages="$ALL_LINGUAS"
17543               fi
17544               for desiredlang in $desiredlanguages; do
17545                 # Use the presentlang catalog if desiredlang is
17546                 #   a. equal to presentlang, or
17547                 #   b. a variant of presentlang (because in this case,
17548                 #      presentlang can be used as a fallback for messages
17549                 #      which are not translated in the desiredlang catalog).
17550                 case "$desiredlang" in
17551                   "$presentlang"*) useit=yes;;
17552                 esac
17553               done
17554               if test $useit = yes; then
17555                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17556               fi
17557             done
17558           fi
17559           CATALOGS=
17560           if test -n "$INST_LINGUAS"; then
17561             for lang in $INST_LINGUAS; do
17562               CATALOGS="$CATALOGS $lang.gmo"
17563             done
17564           fi
17565           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17566           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"
17567           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17568             if test -f "$f"; then
17569               case "$f" in
17570                 *.orig | *.bak | *~) ;;
17571                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17572               esac
17573             fi
17574           done
17575         fi
17576         ;;
17577       esac
17578     done ;;
17579     "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
17580  echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17581  echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17582  echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17583  echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17584  if test "x$cgen_cpu_prefix" != x ; then
17585    echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
17586  fi ;;
17587
17588   esac
17589 done # for ac_tag
17590
17591
17592 as_fn_exit 0
17593 _ACEOF
17594 ac_clean_files=$ac_clean_files_save
17595
17596 test $ac_write_fail = 0 ||
17597   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17598
17599
17600 # configure is writing to config.log, and then calls config.status.
17601 # config.status does its own redirection, appending to config.log.
17602 # Unfortunately, on DOS this fails, as config.log is still kept open
17603 # by configure, so config.status won't be able to write to it; its
17604 # output is simply discarded.  So we exec the FD to /dev/null,
17605 # effectively closing config.log, so it can be properly (re)opened and
17606 # appended to by config.status.  When coming back to configure, we
17607 # need to make the FD available again.
17608 if test "$no_create" != yes; then
17609   ac_cs_success=:
17610   ac_config_status_args=
17611   test "$silent" = yes &&
17612     ac_config_status_args="$ac_config_status_args --quiet"
17613   exec 5>/dev/null
17614   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17615   exec 5>>config.log
17616   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17617   # would make configure fail if this is the last instruction.
17618   $ac_cs_success || as_fn_exit 1
17619 fi
17620 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17621   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17622 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17623 fi
17624