1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $ECHO works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<_LT_EOF
274$*
275_LT_EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284  if test "X${echo_test_string+set}" != Xset; then
285    # find a string as large as possible, as long as the shell can cope with it
286    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290      then
291        break
292      fi
293    done
294  fi
295
296  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298     test "X$echo_testing_string" = "X$echo_test_string"; then
299    :
300  else
301    # The Solaris, AIX, and Digital Unix default echo programs unquote
302    # backslashes.  This makes it impossible to quote backslashes using
303    #   echo "$something" | sed 's/\\/\\\\/g'
304    #
305    # So, first we look for a working echo in the user's PATH.
306
307    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308    for dir in $PATH /usr/ucb; do
309      IFS="$lt_save_ifs"
310      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313         test "X$echo_testing_string" = "X$echo_test_string"; then
314        ECHO="$dir/echo"
315        break
316      fi
317    done
318    IFS="$lt_save_ifs"
319
320    if test "X$ECHO" = Xecho; then
321      # We didn't find a better echo, so look for alternatives.
322      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324         test "X$echo_testing_string" = "X$echo_test_string"; then
325        # This shell has a builtin print -r that does the trick.
326        ECHO='print -r'
327      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328	   test "X$CONFIG_SHELL" != X/bin/ksh; then
329        # If we have ksh, try running configure again with it.
330        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331        export ORIGINAL_CONFIG_SHELL
332        CONFIG_SHELL=/bin/ksh
333        export CONFIG_SHELL
334        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335      else
336        # Try using printf.
337        ECHO='printf %s\n'
338        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340	   test "X$echo_testing_string" = "X$echo_test_string"; then
341	  # Cool, printf works
342	  :
343        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344	     test "X$echo_testing_string" = 'X\t' &&
345	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346	     test "X$echo_testing_string" = "X$echo_test_string"; then
347	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348	  export CONFIG_SHELL
349	  SHELL="$CONFIG_SHELL"
350	  export SHELL
351	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
352        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	     test "X$echo_testing_string" = 'X\t' &&
354	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	     test "X$echo_testing_string" = "X$echo_test_string"; then
356	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
357        else
358	  # maybe with a smaller string...
359	  prev=:
360
361	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363	    then
364	      break
365	    fi
366	    prev="$cmd"
367	  done
368
369	  if test "$prev" != 'sed 50q "$0"'; then
370	    echo_test_string=`eval $prev`
371	    export echo_test_string
372	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373	  else
374	    # Oops.  We lost completely, so just stick with echo.
375	    ECHO=echo
376	  fi
377        fi
378      fi
379    fi
380  fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete.  It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="as.h"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438#  include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443#  include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454#  include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462ac_subst_files=''
463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
502ac_prev=
503for ac_option
504do
505  # If the previous option needs an argument, assign it.
506  if test -n "$ac_prev"; then
507    eval "$ac_prev=\$ac_option"
508    ac_prev=
509    continue
510  fi
511
512  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514  # Accept the important Cygnus configure options, so we can diagnose typos.
515
516  case $ac_option in
517
518  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519    ac_prev=bindir ;;
520  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521    bindir=$ac_optarg ;;
522
523  -build | --build | --buil | --bui | --bu)
524    ac_prev=build_alias ;;
525  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526    build_alias=$ac_optarg ;;
527
528  -cache-file | --cache-file | --cache-fil | --cache-fi \
529  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530    ac_prev=cache_file ;;
531  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533    cache_file=$ac_optarg ;;
534
535  --config-cache | -C)
536    cache_file=config.cache ;;
537
538  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539    ac_prev=datadir ;;
540  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541  | --da=*)
542    datadir=$ac_optarg ;;
543
544  -disable-* | --disable-*)
545    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546    # Reject names that are not valid shell variable names.
547    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549   { (exit 1); exit 1; }; }
550    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551    eval "enable_$ac_feature=no" ;;
552
553  -enable-* | --enable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    case $ac_option in
561      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562      *) ac_optarg=yes ;;
563    esac
564    eval "enable_$ac_feature='$ac_optarg'" ;;
565
566  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568  | --exec | --exe | --ex)
569    ac_prev=exec_prefix ;;
570  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572  | --exec=* | --exe=* | --ex=*)
573    exec_prefix=$ac_optarg ;;
574
575  -gas | --gas | --ga | --g)
576    # Obsolete; use --with-gas.
577    with_gas=yes ;;
578
579  -help | --help | --hel | --he | -h)
580    ac_init_help=long ;;
581  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582    ac_init_help=recursive ;;
583  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584    ac_init_help=short ;;
585
586  -host | --host | --hos | --ho)
587    ac_prev=host_alias ;;
588  -host=* | --host=* | --hos=* | --ho=*)
589    host_alias=$ac_optarg ;;
590
591  -includedir | --includedir | --includedi | --included | --include \
592  | --includ | --inclu | --incl | --inc)
593    ac_prev=includedir ;;
594  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595  | --includ=* | --inclu=* | --incl=* | --inc=*)
596    includedir=$ac_optarg ;;
597
598  -infodir | --infodir | --infodi | --infod | --info | --inf)
599    ac_prev=infodir ;;
600  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601    infodir=$ac_optarg ;;
602
603  -libdir | --libdir | --libdi | --libd)
604    ac_prev=libdir ;;
605  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606    libdir=$ac_optarg ;;
607
608  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609  | --libexe | --libex | --libe)
610    ac_prev=libexecdir ;;
611  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612  | --libexe=* | --libex=* | --libe=*)
613    libexecdir=$ac_optarg ;;
614
615  -localstatedir | --localstatedir | --localstatedi | --localstated \
616  | --localstate | --localstat | --localsta | --localst \
617  | --locals | --local | --loca | --loc | --lo)
618    ac_prev=localstatedir ;;
619  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622    localstatedir=$ac_optarg ;;
623
624  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625    ac_prev=mandir ;;
626  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627    mandir=$ac_optarg ;;
628
629  -nfp | --nfp | --nf)
630    # Obsolete; use --without-fp.
631    with_fp=no ;;
632
633  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634  | --no-cr | --no-c | -n)
635    no_create=yes ;;
636
637  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639    no_recursion=yes ;;
640
641  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643  | --oldin | --oldi | --old | --ol | --o)
644    ac_prev=oldincludedir ;;
645  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648    oldincludedir=$ac_optarg ;;
649
650  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651    ac_prev=prefix ;;
652  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653    prefix=$ac_optarg ;;
654
655  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656  | --program-pre | --program-pr | --program-p)
657    ac_prev=program_prefix ;;
658  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660    program_prefix=$ac_optarg ;;
661
662  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663  | --program-suf | --program-su | --program-s)
664    ac_prev=program_suffix ;;
665  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667    program_suffix=$ac_optarg ;;
668
669  -program-transform-name | --program-transform-name \
670  | --program-transform-nam | --program-transform-na \
671  | --program-transform-n | --program-transform- \
672  | --program-transform | --program-transfor \
673  | --program-transfo | --program-transf \
674  | --program-trans | --program-tran \
675  | --progr-tra | --program-tr | --program-t)
676    ac_prev=program_transform_name ;;
677  -program-transform-name=* | --program-transform-name=* \
678  | --program-transform-nam=* | --program-transform-na=* \
679  | --program-transform-n=* | --program-transform-=* \
680  | --program-transform=* | --program-transfor=* \
681  | --program-transfo=* | --program-transf=* \
682  | --program-trans=* | --program-tran=* \
683  | --progr-tra=* | --program-tr=* | --program-t=*)
684    program_transform_name=$ac_optarg ;;
685
686  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687  | -silent | --silent | --silen | --sile | --sil)
688    silent=yes ;;
689
690  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691    ac_prev=sbindir ;;
692  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693  | --sbi=* | --sb=*)
694    sbindir=$ac_optarg ;;
695
696  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698  | --sharedst | --shareds | --shared | --share | --shar \
699  | --sha | --sh)
700    ac_prev=sharedstatedir ;;
701  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704  | --sha=* | --sh=*)
705    sharedstatedir=$ac_optarg ;;
706
707  -site | --site | --sit)
708    ac_prev=site ;;
709  -site=* | --site=* | --sit=*)
710    site=$ac_optarg ;;
711
712  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713    ac_prev=srcdir ;;
714  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715    srcdir=$ac_optarg ;;
716
717  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718  | --syscon | --sysco | --sysc | --sys | --sy)
719    ac_prev=sysconfdir ;;
720  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722    sysconfdir=$ac_optarg ;;
723
724  -target | --target | --targe | --targ | --tar | --ta | --t)
725    ac_prev=target_alias ;;
726  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727    target_alias=$ac_optarg ;;
728
729  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730    verbose=yes ;;
731
732  -version | --version | --versio | --versi | --vers | -V)
733    ac_init_version=: ;;
734
735  -with-* | --with-*)
736    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737    # Reject names that are not valid shell variable names.
738    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739      { echo "$as_me: error: invalid package name: $ac_package" >&2
740   { (exit 1); exit 1; }; }
741    ac_package=`echo $ac_package| sed 's/-/_/g'`
742    case $ac_option in
743      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744      *) ac_optarg=yes ;;
745    esac
746    eval "with_$ac_package='$ac_optarg'" ;;
747
748  -without-* | --without-*)
749    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750    # Reject names that are not valid shell variable names.
751    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752      { echo "$as_me: error: invalid package name: $ac_package" >&2
753   { (exit 1); exit 1; }; }
754    ac_package=`echo $ac_package | sed 's/-/_/g'`
755    eval "with_$ac_package=no" ;;
756
757  --x)
758    # Obsolete; use --with-x.
759    with_x=yes ;;
760
761  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762  | --x-incl | --x-inc | --x-in | --x-i)
763    ac_prev=x_includes ;;
764  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766    x_includes=$ac_optarg ;;
767
768  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770    ac_prev=x_libraries ;;
771  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773    x_libraries=$ac_optarg ;;
774
775  -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777   { (exit 1); exit 1; }; }
778    ;;
779
780  *=*)
781    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782    # Reject names that are not valid shell variable names.
783    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785   { (exit 1); exit 1; }; }
786    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787    eval "$ac_envvar='$ac_optarg'"
788    export $ac_envvar ;;
789
790  *)
791    # FIXME: should be removed in autoconf 3.0.
792    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796    ;;
797
798  esac
799done
800
801if test -n "$ac_prev"; then
802  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803  { echo "$as_me: error: missing argument to $ac_option" >&2
804   { (exit 1); exit 1; }; }
805fi
806
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810  eval ac_val=$`echo $ac_var`
811  case $ac_val in
812    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814   { (exit 1); exit 1; }; };;
815  esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820	      localstatedir libdir includedir oldincludedir infodir mandir
821do
822  eval ac_val=$`echo $ac_var`
823  case $ac_val in
824    [\\/$]* | ?:[\\/]* ) ;;
825    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826   { (exit 1); exit 1; }; };;
827  esac
828done
829
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839  if test "x$build_alias" = x; then
840    cross_compiling=maybe
841    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842    If a cross compiler is detected then cross compile mode will be used." >&2
843  elif test "x$build_alias" != "x$host_alias"; then
844    cross_compiling=yes
845  fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856  ac_srcdir_defaulted=yes
857  # Try the directory containing this script, then its parent.
858  ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860	 X"$0" : 'X\(//\)[^/]' \| \
861	 X"$0" : 'X\(//\)$' \| \
862	 X"$0" : 'X\(/\)' \| \
863	 .     : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867  	  /^X\(\/\/\)$/{ s//\1/; q; }
868  	  /^X\(\/\).*/{ s//\1/; q; }
869  	  s/.*/./; q'`
870  srcdir=$ac_confdir
871  if test ! -r $srcdir/$ac_unique_file; then
872    srcdir=..
873  fi
874else
875  ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878  if test "$ac_srcdir_defaulted" = yes; then
879    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880   { (exit 1); exit 1; }; }
881  else
882    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883   { (exit 1); exit 1; }; }
884  fi
885fi
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888   { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
922
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927  # Omit some internal or obsolete options to make the list less imposing.
928  # This message is too long to be a string in the A/UX 3.1 sh.
929  cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
940  -h, --help              display this help and exit
941      --help=short        display options specific to this package
942      --help=recursive    display the short help of all the included packages
943  -V, --version           display version information and exit
944  -q, --quiet, --silent   do not print \`checking...' messages
945      --cache-file=FILE   cache test results in FILE [disabled]
946  -C, --config-cache      alias for \`--cache-file=config.cache'
947  -n, --no-create         do not create output files
948      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952  cat <<_ACEOF
953Installation directories:
954  --prefix=PREFIX         install architecture-independent files in PREFIX
955			  [$ac_default_prefix]
956  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957			  [PREFIX]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine tuning of the installation directories:
967  --bindir=DIR           user executables [EPREFIX/bin]
968  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969  --libexecdir=DIR       program executables [EPREFIX/libexec]
970  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974  --libdir=DIR           object code libraries [EPREFIX/lib]
975  --includedir=DIR       C header files [PREFIX/include]
976  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977  --infodir=DIR          info documentation [PREFIX/info]
978  --mandir=DIR           man documentation [PREFIX/man]
979_ACEOF
980
981  cat <<\_ACEOF
982
983Program names:
984  --program-prefix=PREFIX            prepend PREFIX to installed program names
985  --program-suffix=SUFFIX            append SUFFIX to installed program names
986  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988System types:
989  --build=BUILD     configure for building on BUILD [guessed]
990  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991  --target=TARGET   configure for building compilers for TARGET [HOST]
992_ACEOF
993fi
994
995if test -n "$ac_init_help"; then
996
997  cat <<\_ACEOF
998
999Optional Features:
1000  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002  --disable-dependency-tracking  speeds up one-time build
1003  --enable-dependency-tracking   do not reject slow dependency extractors
1004  --enable-shared[=PKGS]
1005                          build shared libraries [default=yes]
1006  --enable-static[=PKGS]
1007                          build static libraries [default=yes]
1008  --enable-fast-install[=PKGS]
1009                          optimize for fast installation [default=yes]
1010  --disable-libtool-lock  avoid locking (might break parallel builds)
1011  --enable-targets        alternative target configurations besides the primary
1012  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1013  --enable-checking       enable run-time checks
1014  --enable-werror         treat compile warnings as errors
1015  --enable-build-warnings enable build-time compiler warnings
1016  --disable-nls           do not use Native Language Support
1017  --enable-maintainer-mode  enable make rules and dependencies not useful
1018			  (and sometimes confusing) to the casual installer
1019
1020Optional Packages:
1021  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1022  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1023  --with-pic              try to use only PIC/non-PIC objects [default=use
1024                          both]
1025  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1026
1027Some influential environment variables:
1028  CC          C compiler command
1029  CFLAGS      C compiler flags
1030  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1031              nonstandard directory <lib dir>
1032  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033              headers in a nonstandard directory <include dir>
1034  CPP         C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039_ACEOF
1040fi
1041
1042if test "$ac_init_help" = "recursive"; then
1043  # If there are subdirs, report their specific --help.
1044  ac_popdir=`pwd`
1045  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046    test -d $ac_dir || continue
1047    ac_builddir=.
1048
1049if test "$ac_dir" != .; then
1050  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051  # A "../" for each directory in $ac_dir_suffix.
1052  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053else
1054  ac_dir_suffix= ac_top_builddir=
1055fi
1056
1057case $srcdir in
1058  .)  # No --srcdir option.  We are building in place.
1059    ac_srcdir=.
1060    if test -z "$ac_top_builddir"; then
1061       ac_top_srcdir=.
1062    else
1063       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064    fi ;;
1065  [\\/]* | ?:[\\/]* )  # Absolute path.
1066    ac_srcdir=$srcdir$ac_dir_suffix;
1067    ac_top_srcdir=$srcdir ;;
1068  *) # Relative path.
1069    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071esac
1072
1073# Do not use `cd foo && pwd` to compute absolute paths, because
1074# the directories may not exist.
1075case `pwd` in
1076.) ac_abs_builddir="$ac_dir";;
1077*)
1078  case "$ac_dir" in
1079  .) ac_abs_builddir=`pwd`;;
1080  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1081  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082  esac;;
1083esac
1084case $ac_abs_builddir in
1085.) ac_abs_top_builddir=${ac_top_builddir}.;;
1086*)
1087  case ${ac_top_builddir}. in
1088  .) ac_abs_top_builddir=$ac_abs_builddir;;
1089  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1090  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091  esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_srcdir=$ac_srcdir;;
1095*)
1096  case $ac_srcdir in
1097  .) ac_abs_srcdir=$ac_abs_builddir;;
1098  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1099  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100  esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_top_srcdir=$ac_top_srcdir;;
1104*)
1105  case $ac_top_srcdir in
1106  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1107  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1108  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1109  esac;;
1110esac
1111
1112    cd $ac_dir
1113    # Check for guested configure; otherwise get Cygnus style configure.
1114    if test -f $ac_srcdir/configure.gnu; then
1115      echo
1116      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117    elif test -f $ac_srcdir/configure; then
1118      echo
1119      $SHELL $ac_srcdir/configure  --help=recursive
1120    elif test -f $ac_srcdir/configure.ac ||
1121	   test -f $ac_srcdir/configure.in; then
1122      echo
1123      $ac_configure --help
1124    else
1125      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126    fi
1127    cd $ac_popdir
1128  done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133  cat <<\_ACEOF
1134
1135Copyright (C) 2003 Free Software Foundation, Inc.
1136This configure script is free software; the Free Software Foundation
1137gives unlimited permission to copy, distribute and modify it.
1138_ACEOF
1139  exit 0
1140fi
1141exec 5>config.log
1142cat >&5 <<_ACEOF
1143This file contains any messages produced by compilers while
1144running configure, to aid debugging if configure makes a mistake.
1145
1146It was created by $as_me, which was
1147generated by GNU Autoconf 2.59.  Invocation command line was
1148
1149  $ $0 $@
1150
1151_ACEOF
1152{
1153cat <<_ASUNAME
1154## --------- ##
1155## Platform. ##
1156## --------- ##
1157
1158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1159uname -m = `(uname -m) 2>/dev/null || echo unknown`
1160uname -r = `(uname -r) 2>/dev/null || echo unknown`
1161uname -s = `(uname -s) 2>/dev/null || echo unknown`
1162uname -v = `(uname -v) 2>/dev/null || echo unknown`
1163
1164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1165/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1166
1167/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1168/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1170hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1171/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1172/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1173/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1174
1175_ASUNAME
1176
1177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1178for as_dir in $PATH
1179do
1180  IFS=$as_save_IFS
1181  test -z "$as_dir" && as_dir=.
1182  echo "PATH: $as_dir"
1183done
1184
1185} >&5
1186
1187cat >&5 <<_ACEOF
1188
1189
1190## ----------- ##
1191## Core tests. ##
1192## ----------- ##
1193
1194_ACEOF
1195
1196
1197# Keep a trace of the command line.
1198# Strip out --no-create and --no-recursion so they do not pile up.
1199# Strip out --silent because we don't want to record it for future runs.
1200# Also quote any args containing shell meta-characters.
1201# Make two passes to allow for proper duplicate-argument suppression.
1202ac_configure_args=
1203ac_configure_args0=
1204ac_configure_args1=
1205ac_sep=
1206ac_must_keep_next=false
1207for ac_pass in 1 2
1208do
1209  for ac_arg
1210  do
1211    case $ac_arg in
1212    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1213    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214    | -silent | --silent | --silen | --sile | --sil)
1215      continue ;;
1216    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1217      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1218    esac
1219    case $ac_pass in
1220    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1221    2)
1222      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1223      if test $ac_must_keep_next = true; then
1224	ac_must_keep_next=false # Got value, back to normal.
1225      else
1226	case $ac_arg in
1227	  *=* | --config-cache | -C | -disable-* | --disable-* \
1228	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1229	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1230	  | -with-* | --with-* | -without-* | --without-* | --x)
1231	    case "$ac_configure_args0 " in
1232	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233	    esac
1234	    ;;
1235	  -* ) ac_must_keep_next=true ;;
1236	esac
1237      fi
1238      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239      # Get rid of the leading space.
1240      ac_sep=" "
1241      ;;
1242    esac
1243  done
1244done
1245$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1246$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1247
1248# When interrupted or exit'd, cleanup temporary files, and complete
1249# config.log.  We remove comments because anyway the quotes in there
1250# would cause problems or look ugly.
1251# WARNING: Be sure not to use single quotes in there, as some shells,
1252# such as our DU 5.0 friend, will then `close' the trap.
1253trap 'exit_status=$?
1254  # Save into config.log some information that might help in debugging.
1255  {
1256    echo
1257
1258    cat <<\_ASBOX
1259## ---------------- ##
1260## Cache variables. ##
1261## ---------------- ##
1262_ASBOX
1263    echo
1264    # The following way of writing the cache mishandles newlines in values,
1265{
1266  (set) 2>&1 |
1267    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268    *ac_space=\ *)
1269      sed -n \
1270	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1271	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1272      ;;
1273    *)
1274      sed -n \
1275	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1276      ;;
1277    esac;
1278}
1279    echo
1280
1281    cat <<\_ASBOX
1282## ----------------- ##
1283## Output variables. ##
1284## ----------------- ##
1285_ASBOX
1286    echo
1287    for ac_var in $ac_subst_vars
1288    do
1289      eval ac_val=$`echo $ac_var`
1290      echo "$ac_var='"'"'$ac_val'"'"'"
1291    done | sort
1292    echo
1293
1294    if test -n "$ac_subst_files"; then
1295      cat <<\_ASBOX
1296## ------------- ##
1297## Output files. ##
1298## ------------- ##
1299_ASBOX
1300      echo
1301      for ac_var in $ac_subst_files
1302      do
1303	eval ac_val=$`echo $ac_var`
1304	echo "$ac_var='"'"'$ac_val'"'"'"
1305      done | sort
1306      echo
1307    fi
1308
1309    if test -s confdefs.h; then
1310      cat <<\_ASBOX
1311## ----------- ##
1312## confdefs.h. ##
1313## ----------- ##
1314_ASBOX
1315      echo
1316      sed "/^$/d" confdefs.h | sort
1317      echo
1318    fi
1319    test "$ac_signal" != 0 &&
1320      echo "$as_me: caught signal $ac_signal"
1321    echo "$as_me: exit $exit_status"
1322  } >&5
1323  rm -f core *.core &&
1324  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325    exit $exit_status
1326     ' 0
1327for ac_signal in 1 2 13 15; do
1328  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1329done
1330ac_signal=0
1331
1332# confdefs.h avoids OS command line length limits that DEFS can exceed.
1333rm -rf conftest* confdefs.h
1334# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1335echo >confdefs.h
1336
1337# Predefined preprocessor variables.
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_NAME "$PACKAGE_NAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_VERSION "$PACKAGE_VERSION"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_STRING "$PACKAGE_STRING"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1361_ACEOF
1362
1363
1364# Let the site file select an alternate cache file if it wants to.
1365# Prefer explicitly selected file to automatically selected ones.
1366if test -z "$CONFIG_SITE"; then
1367  if test "x$prefix" != xNONE; then
1368    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1369  else
1370    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371  fi
1372fi
1373for ac_site_file in $CONFIG_SITE; do
1374  if test -r "$ac_site_file"; then
1375    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1376echo "$as_me: loading site script $ac_site_file" >&6;}
1377    sed 's/^/| /' "$ac_site_file" >&5
1378    . "$ac_site_file"
1379  fi
1380done
1381
1382if test -r "$cache_file"; then
1383  # Some versions of bash will fail to source /dev/null (special
1384  # files actually), so we avoid doing that.
1385  if test -f "$cache_file"; then
1386    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1387echo "$as_me: loading cache $cache_file" >&6;}
1388    case $cache_file in
1389      [\\/]* | ?:[\\/]* ) . $cache_file;;
1390      *)                      . ./$cache_file;;
1391    esac
1392  fi
1393else
1394  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1395echo "$as_me: creating cache $cache_file" >&6;}
1396  >$cache_file
1397fi
1398
1399# Check that the precious variables saved in the cache have kept the same
1400# value.
1401ac_cache_corrupted=false
1402for ac_var in `(set) 2>&1 |
1403	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1404  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1405  eval ac_new_set=\$ac_env_${ac_var}_set
1406  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1407  eval ac_new_val="\$ac_env_${ac_var}_value"
1408  case $ac_old_set,$ac_new_set in
1409    set,)
1410      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1411echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1412      ac_cache_corrupted=: ;;
1413    ,set)
1414      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1416      ac_cache_corrupted=: ;;
1417    ,);;
1418    *)
1419      if test "x$ac_old_val" != "x$ac_new_val"; then
1420	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1421echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1422	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1423echo "$as_me:   former value:  $ac_old_val" >&2;}
1424	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1425echo "$as_me:   current value: $ac_new_val" >&2;}
1426	ac_cache_corrupted=:
1427      fi;;
1428  esac
1429  # Pass precious variables to config.status.
1430  if test "$ac_new_set" = set; then
1431    case $ac_new_val in
1432    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1433      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1434    *) ac_arg=$ac_var=$ac_new_val ;;
1435    esac
1436    case " $ac_configure_args " in
1437      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1438      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1439    esac
1440  fi
1441done
1442if $ac_cache_corrupted; then
1443  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1444echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1445  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1446echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1447   { (exit 1); exit 1; }; }
1448fi
1449
1450ac_ext=c
1451ac_cpp='$CPP $CPPFLAGS'
1452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1454ac_compiler_gnu=$ac_cv_c_compiler_gnu
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475ac_aux_dir=
1476for ac_dir in .. $srcdir/..; do
1477  if test -f $ac_dir/install-sh; then
1478    ac_aux_dir=$ac_dir
1479    ac_install_sh="$ac_aux_dir/install-sh -c"
1480    break
1481  elif test -f $ac_dir/install.sh; then
1482    ac_aux_dir=$ac_dir
1483    ac_install_sh="$ac_aux_dir/install.sh -c"
1484    break
1485  elif test -f $ac_dir/shtool; then
1486    ac_aux_dir=$ac_dir
1487    ac_install_sh="$ac_aux_dir/shtool install -c"
1488    break
1489  fi
1490done
1491if test -z "$ac_aux_dir"; then
1492  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1493echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1494   { (exit 1); exit 1; }; }
1495fi
1496ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1499
1500# Make sure we can run config.sub.
1501$ac_config_sub sun4 >/dev/null 2>&1 ||
1502  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504   { (exit 1); exit 1; }; }
1505
1506echo "$as_me:$LINENO: checking build system type" >&5
1507echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508if test "${ac_cv_build+set}" = set; then
1509  echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511  ac_cv_build_alias=$build_alias
1512test -z "$ac_cv_build_alias" &&
1513  ac_cv_build_alias=`$ac_config_guess`
1514test -z "$ac_cv_build_alias" &&
1515  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517   { (exit 1); exit 1; }; }
1518ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521   { (exit 1); exit 1; }; }
1522
1523fi
1524echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525echo "${ECHO_T}$ac_cv_build" >&6
1526build=$ac_cv_build
1527build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1530
1531
1532echo "$as_me:$LINENO: checking host system type" >&5
1533echo $ECHO_N "checking host system type... $ECHO_C" >&6
1534if test "${ac_cv_host+set}" = set; then
1535  echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537  ac_cv_host_alias=$host_alias
1538test -z "$ac_cv_host_alias" &&
1539  ac_cv_host_alias=$ac_cv_build_alias
1540ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1541  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1542echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1543   { (exit 1); exit 1; }; }
1544
1545fi
1546echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1547echo "${ECHO_T}$ac_cv_host" >&6
1548host=$ac_cv_host
1549host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552
1553
1554echo "$as_me:$LINENO: checking target system type" >&5
1555echo $ECHO_N "checking target system type... $ECHO_C" >&6
1556if test "${ac_cv_target+set}" = set; then
1557  echo $ECHO_N "(cached) $ECHO_C" >&6
1558else
1559  ac_cv_target_alias=$target_alias
1560test "x$ac_cv_target_alias" = "x" &&
1561  ac_cv_target_alias=$ac_cv_host_alias
1562ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1563  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1565   { (exit 1); exit 1; }; }
1566
1567fi
1568echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1569echo "${ECHO_T}$ac_cv_target" >&6
1570target=$ac_cv_target
1571target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576# The aliases save the names the user supplied, while $host etc.
1577# will get canonicalized.
1578test -n "$target_alias" &&
1579  test "$program_prefix$program_suffix$program_transform_name" = \
1580    NONENONEs,x,x, &&
1581  program_prefix=${target_alias}-
1582ac_ext=c
1583ac_cpp='$CPP $CPPFLAGS'
1584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1586ac_compiler_gnu=$ac_cv_c_compiler_gnu
1587if test -n "$ac_tool_prefix"; then
1588  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1589set dummy ${ac_tool_prefix}gcc; ac_word=$2
1590echo "$as_me:$LINENO: checking for $ac_word" >&5
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592if test "${ac_cv_prog_CC+set}" = set; then
1593  echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595  if test -n "$CC"; then
1596  ac_cv_prog_CC="$CC" # Let the user override the test.
1597else
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601  IFS=$as_save_IFS
1602  test -z "$as_dir" && as_dir=.
1603  for ac_exec_ext in '' $ac_executable_extensions; do
1604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607    break 2
1608  fi
1609done
1610done
1611
1612fi
1613fi
1614CC=$ac_cv_prog_CC
1615if test -n "$CC"; then
1616  echo "$as_me:$LINENO: result: $CC" >&5
1617echo "${ECHO_T}$CC" >&6
1618else
1619  echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623fi
1624if test -z "$ac_cv_prog_CC"; then
1625  ac_ct_CC=$CC
1626  # Extract the first word of "gcc", so it can be a program name with args.
1627set dummy gcc; ac_word=$2
1628echo "$as_me:$LINENO: checking for $ac_word" >&5
1629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1631  echo $ECHO_N "(cached) $ECHO_C" >&6
1632else
1633  if test -n "$ac_ct_CC"; then
1634  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1635else
1636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637for as_dir in $PATH
1638do
1639  IFS=$as_save_IFS
1640  test -z "$as_dir" && as_dir=.
1641  for ac_exec_ext in '' $ac_executable_extensions; do
1642  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643    ac_cv_prog_ac_ct_CC="gcc"
1644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645    break 2
1646  fi
1647done
1648done
1649
1650fi
1651fi
1652ac_ct_CC=$ac_cv_prog_ac_ct_CC
1653if test -n "$ac_ct_CC"; then
1654  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1655echo "${ECHO_T}$ac_ct_CC" >&6
1656else
1657  echo "$as_me:$LINENO: result: no" >&5
1658echo "${ECHO_T}no" >&6
1659fi
1660
1661  CC=$ac_ct_CC
1662else
1663  CC="$ac_cv_prog_CC"
1664fi
1665
1666if test -z "$CC"; then
1667  if test -n "$ac_tool_prefix"; then
1668  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1669set dummy ${ac_tool_prefix}cc; ac_word=$2
1670echo "$as_me:$LINENO: checking for $ac_word" >&5
1671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672if test "${ac_cv_prog_CC+set}" = set; then
1673  echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675  if test -n "$CC"; then
1676  ac_cv_prog_CC="$CC" # Let the user override the test.
1677else
1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679for as_dir in $PATH
1680do
1681  IFS=$as_save_IFS
1682  test -z "$as_dir" && as_dir=.
1683  for ac_exec_ext in '' $ac_executable_extensions; do
1684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685    ac_cv_prog_CC="${ac_tool_prefix}cc"
1686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687    break 2
1688  fi
1689done
1690done
1691
1692fi
1693fi
1694CC=$ac_cv_prog_CC
1695if test -n "$CC"; then
1696  echo "$as_me:$LINENO: result: $CC" >&5
1697echo "${ECHO_T}$CC" >&6
1698else
1699  echo "$as_me:$LINENO: result: no" >&5
1700echo "${ECHO_T}no" >&6
1701fi
1702
1703fi
1704if test -z "$ac_cv_prog_CC"; then
1705  ac_ct_CC=$CC
1706  # Extract the first word of "cc", so it can be a program name with args.
1707set dummy cc; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711  echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713  if test -n "$ac_ct_CC"; then
1714  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719  IFS=$as_save_IFS
1720  test -z "$as_dir" && as_dir=.
1721  for ac_exec_ext in '' $ac_executable_extensions; do
1722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723    ac_cv_prog_ac_ct_CC="cc"
1724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725    break 2
1726  fi
1727done
1728done
1729
1730fi
1731fi
1732ac_ct_CC=$ac_cv_prog_ac_ct_CC
1733if test -n "$ac_ct_CC"; then
1734  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1735echo "${ECHO_T}$ac_ct_CC" >&6
1736else
1737  echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741  CC=$ac_ct_CC
1742else
1743  CC="$ac_cv_prog_CC"
1744fi
1745
1746fi
1747if test -z "$CC"; then
1748  # Extract the first word of "cc", so it can be a program name with args.
1749set dummy cc; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_CC+set}" = set; then
1753  echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755  if test -n "$CC"; then
1756  ac_cv_prog_CC="$CC" # Let the user override the test.
1757else
1758  ac_prog_rejected=no
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762  IFS=$as_save_IFS
1763  test -z "$as_dir" && as_dir=.
1764  for ac_exec_ext in '' $ac_executable_extensions; do
1765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1767       ac_prog_rejected=yes
1768       continue
1769     fi
1770    ac_cv_prog_CC="cc"
1771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772    break 2
1773  fi
1774done
1775done
1776
1777if test $ac_prog_rejected = yes; then
1778  # We found a bogon in the path, so make sure we never use it.
1779  set dummy $ac_cv_prog_CC
1780  shift
1781  if test $# != 0; then
1782    # We chose a different compiler from the bogus one.
1783    # However, it has the same basename, so the bogon will be chosen
1784    # first if we set CC to just the basename; use the full file name.
1785    shift
1786    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1787  fi
1788fi
1789fi
1790fi
1791CC=$ac_cv_prog_CC
1792if test -n "$CC"; then
1793  echo "$as_me:$LINENO: result: $CC" >&5
1794echo "${ECHO_T}$CC" >&6
1795else
1796  echo "$as_me:$LINENO: result: no" >&5
1797echo "${ECHO_T}no" >&6
1798fi
1799
1800fi
1801if test -z "$CC"; then
1802  if test -n "$ac_tool_prefix"; then
1803  for ac_prog in cl
1804  do
1805    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_CC+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$CC"; then
1813  ac_cv_prog_CC="$CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829fi
1830fi
1831CC=$ac_cv_prog_CC
1832if test -n "$CC"; then
1833  echo "$as_me:$LINENO: result: $CC" >&5
1834echo "${ECHO_T}$CC" >&6
1835else
1836  echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840    test -n "$CC" && break
1841  done
1842fi
1843if test -z "$CC"; then
1844  ac_ct_CC=$CC
1845  for ac_prog in cl
1846do
1847  # Extract the first word of "$ac_prog", so it can be a program name with args.
1848set dummy $ac_prog; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1852  echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854  if test -n "$ac_ct_CC"; then
1855  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860  IFS=$as_save_IFS
1861  test -z "$as_dir" && as_dir=.
1862  for ac_exec_ext in '' $ac_executable_extensions; do
1863  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864    ac_cv_prog_ac_ct_CC="$ac_prog"
1865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866    break 2
1867  fi
1868done
1869done
1870
1871fi
1872fi
1873ac_ct_CC=$ac_cv_prog_ac_ct_CC
1874if test -n "$ac_ct_CC"; then
1875  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1876echo "${ECHO_T}$ac_ct_CC" >&6
1877else
1878  echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882  test -n "$ac_ct_CC" && break
1883done
1884
1885  CC=$ac_ct_CC
1886fi
1887
1888fi
1889
1890
1891test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1892See \`config.log' for more details." >&5
1893echo "$as_me: error: no acceptable C compiler found in \$PATH
1894See \`config.log' for more details." >&2;}
1895   { (exit 1); exit 1; }; }
1896
1897# Provide some information about the compiler.
1898echo "$as_me:$LINENO:" \
1899     "checking for C compiler version" >&5
1900ac_compiler=`set X $ac_compile; echo $2`
1901{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1902  (eval $ac_compiler --version </dev/null >&5) 2>&5
1903  ac_status=$?
1904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905  (exit $ac_status); }
1906{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1907  (eval $ac_compiler -v </dev/null >&5) 2>&5
1908  ac_status=$?
1909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910  (exit $ac_status); }
1911{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1912  (eval $ac_compiler -V </dev/null >&5) 2>&5
1913  ac_status=$?
1914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915  (exit $ac_status); }
1916
1917cat >conftest.$ac_ext <<_ACEOF
1918/* confdefs.h.  */
1919_ACEOF
1920cat confdefs.h >>conftest.$ac_ext
1921cat >>conftest.$ac_ext <<_ACEOF
1922/* end confdefs.h.  */
1923
1924int
1925main ()
1926{
1927
1928  ;
1929  return 0;
1930}
1931_ACEOF
1932ac_clean_files_save=$ac_clean_files
1933ac_clean_files="$ac_clean_files a.out a.exe b.out"
1934# Try to create an executable without -o first, disregard a.out.
1935# It will help us diagnose broken compilers, and finding out an intuition
1936# of exeext.
1937echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1938echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1939ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1940if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1941  (eval $ac_link_default) 2>&5
1942  ac_status=$?
1943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944  (exit $ac_status); }; then
1945  # Find the output, starting from the most likely.  This scheme is
1946# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1947# resort.
1948
1949# Be careful to initialize this variable, since it used to be cached.
1950# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1951ac_cv_exeext=
1952# b.out is created by i960 compilers.
1953for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1954do
1955  test -f "$ac_file" || continue
1956  case $ac_file in
1957    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1958	;;
1959    conftest.$ac_ext )
1960	# This is the source file.
1961	;;
1962    [ab].out )
1963	# We found the default executable, but exeext='' is most
1964	# certainly right.
1965	break;;
1966    *.* )
1967	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1968	# FIXME: I believe we export ac_cv_exeext for Libtool,
1969	# but it would be cool to find out if it's true.  Does anybody
1970	# maintain Libtool? --akim.
1971	export ac_cv_exeext
1972	break;;
1973    * )
1974	break;;
1975  esac
1976done
1977else
1978  echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: C compiler cannot create executables
1984See \`config.log' for more details." >&2;}
1985   { (exit 77); exit 77; }; }
1986fi
1987
1988ac_exeext=$ac_cv_exeext
1989echo "$as_me:$LINENO: result: $ac_file" >&5
1990echo "${ECHO_T}$ac_file" >&6
1991
1992# Check the compiler produces executables we can run.  If not, either
1993# the compiler is broken, or we cross compile.
1994echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1995echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1996# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1997# If not cross compiling, check that we can run a simple program.
1998if test "$cross_compiling" != yes; then
1999  if { ac_try='./$ac_file'
2000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001  (eval $ac_try) 2>&5
2002  ac_status=$?
2003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004  (exit $ac_status); }; }; then
2005    cross_compiling=no
2006  else
2007    if test "$cross_compiling" = maybe; then
2008	cross_compiling=yes
2009    else
2010	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2011If you meant to cross compile, use \`--host'.
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: cannot run C compiled programs.
2014If you meant to cross compile, use \`--host'.
2015See \`config.log' for more details." >&2;}
2016   { (exit 1); exit 1; }; }
2017    fi
2018  fi
2019fi
2020echo "$as_me:$LINENO: result: yes" >&5
2021echo "${ECHO_T}yes" >&6
2022
2023rm -f a.out a.exe conftest$ac_cv_exeext b.out
2024ac_clean_files=$ac_clean_files_save
2025# Check the compiler produces executables we can run.  If not, either
2026# the compiler is broken, or we cross compile.
2027echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2028echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2029echo "$as_me:$LINENO: result: $cross_compiling" >&5
2030echo "${ECHO_T}$cross_compiling" >&6
2031
2032echo "$as_me:$LINENO: checking for suffix of executables" >&5
2033echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2035  (eval $ac_link) 2>&5
2036  ac_status=$?
2037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038  (exit $ac_status); }; then
2039  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2040# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2041# work properly (i.e., refer to `conftest.exe'), while it won't with
2042# `rm'.
2043for ac_file in conftest.exe conftest conftest.*; do
2044  test -f "$ac_file" || continue
2045  case $ac_file in
2046    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2047    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048	  export ac_cv_exeext
2049	  break;;
2050    * ) break;;
2051  esac
2052done
2053else
2054  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2057See \`config.log' for more details." >&2;}
2058   { (exit 1); exit 1; }; }
2059fi
2060
2061rm -f conftest$ac_cv_exeext
2062echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2063echo "${ECHO_T}$ac_cv_exeext" >&6
2064
2065rm -f conftest.$ac_ext
2066EXEEXT=$ac_cv_exeext
2067ac_exeext=$EXEEXT
2068echo "$as_me:$LINENO: checking for suffix of object files" >&5
2069echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2070if test "${ac_cv_objext+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  cat >conftest.$ac_ext <<_ACEOF
2074/* confdefs.h.  */
2075_ACEOF
2076cat confdefs.h >>conftest.$ac_ext
2077cat >>conftest.$ac_ext <<_ACEOF
2078/* end confdefs.h.  */
2079
2080int
2081main ()
2082{
2083
2084  ;
2085  return 0;
2086}
2087_ACEOF
2088rm -f conftest.o conftest.obj
2089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090  (eval $ac_compile) 2>&5
2091  ac_status=$?
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); }; then
2094  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2095  case $ac_file in
2096    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2097    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2098       break;;
2099  esac
2100done
2101else
2102  echo "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2106See \`config.log' for more details." >&5
2107echo "$as_me: error: cannot compute suffix of object files: cannot compile
2108See \`config.log' for more details." >&2;}
2109   { (exit 1); exit 1; }; }
2110fi
2111
2112rm -f conftest.$ac_cv_objext conftest.$ac_ext
2113fi
2114echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2115echo "${ECHO_T}$ac_cv_objext" >&6
2116OBJEXT=$ac_cv_objext
2117ac_objext=$OBJEXT
2118echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2119echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2120if test "${ac_cv_c_compiler_gnu+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  cat >conftest.$ac_ext <<_ACEOF
2124/* confdefs.h.  */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h.  */
2129
2130int
2131main ()
2132{
2133#ifndef __GNUC__
2134       choke me
2135#endif
2136
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143  (eval $ac_compile) 2>conftest.er1
2144  ac_status=$?
2145  grep -v '^ *+' conftest.er1 >conftest.err
2146  rm -f conftest.er1
2147  cat conftest.err >&5
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); } &&
2150	 { ac_try='test -z "$ac_c_werror_flag"
2151			 || test ! -s conftest.err'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; } &&
2157	 { ac_try='test -s conftest.$ac_objext'
2158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159  (eval $ac_try) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }; }; then
2163  ac_compiler_gnu=yes
2164else
2165  echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168ac_compiler_gnu=no
2169fi
2170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171ac_cv_c_compiler_gnu=$ac_compiler_gnu
2172
2173fi
2174echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2175echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2176GCC=`test $ac_compiler_gnu = yes && echo yes`
2177ac_test_CFLAGS=${CFLAGS+set}
2178ac_save_CFLAGS=$CFLAGS
2179CFLAGS="-g"
2180echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2181echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2182if test "${ac_cv_prog_cc_g+set}" = set; then
2183  echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185  cat >conftest.$ac_ext <<_ACEOF
2186/* confdefs.h.  */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h.  */
2191
2192int
2193main ()
2194{
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209	 { ac_try='test -z "$ac_c_werror_flag"
2210			 || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216	 { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_cv_prog_cc_g=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_cv_prog_cc_g=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2233if test "$ac_test_CFLAGS" = set; then
2234  CFLAGS=$ac_save_CFLAGS
2235elif test $ac_cv_prog_cc_g = yes; then
2236  if test "$GCC" = yes; then
2237    CFLAGS="-g -O2"
2238  else
2239    CFLAGS="-g"
2240  fi
2241else
2242  if test "$GCC" = yes; then
2243    CFLAGS="-O2"
2244  else
2245    CFLAGS=
2246  fi
2247fi
2248echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2249echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2250if test "${ac_cv_prog_cc_stdc+set}" = set; then
2251  echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253  ac_cv_prog_cc_stdc=no
2254ac_save_CC=$CC
2255cat >conftest.$ac_ext <<_ACEOF
2256/* confdefs.h.  */
2257_ACEOF
2258cat confdefs.h >>conftest.$ac_ext
2259cat >>conftest.$ac_ext <<_ACEOF
2260/* end confdefs.h.  */
2261#include <stdarg.h>
2262#include <stdio.h>
2263#include <sys/types.h>
2264#include <sys/stat.h>
2265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2266struct buf { int x; };
2267FILE * (*rcsopen) (struct buf *, struct stat *, int);
2268static char *e (p, i)
2269     char **p;
2270     int i;
2271{
2272  return p[i];
2273}
2274static char *f (char * (*g) (char **, int), char **p, ...)
2275{
2276  char *s;
2277  va_list v;
2278  va_start (v,p);
2279  s = g (p, va_arg (v,int));
2280  va_end (v);
2281  return s;
2282}
2283
2284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2285   function prototypes and stuff, but not '\xHH' hex character constants.
2286   These don't provoke an error unfortunately, instead are silently treated
2287   as 'x'.  The following induces an error, until -std1 is added to get
2288   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2289   array size at least.  It's necessary to write '\x00'==0 to get something
2290   that's true only with -std1.  */
2291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2292
2293int test (int i, double x);
2294struct s1 {int (*f) (int a);};
2295struct s2 {int (*f) (double a);};
2296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2297int argc;
2298char **argv;
2299int
2300main ()
2301{
2302return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307# Don't try gcc -ansi; that turns off useful extensions and
2308# breaks some systems' header files.
2309# AIX			-qlanglvl=ansi
2310# Ultrix and OSF/1	-std1
2311# HP-UX 10.20 and later	-Ae
2312# HP-UX older versions	-Aa -D_HPUX_SOURCE
2313# SVR4			-Xc -D__EXTENSIONS__
2314for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2315do
2316  CC="$ac_save_CC $ac_arg"
2317  rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319  (eval $ac_compile) 2>conftest.er1
2320  ac_status=$?
2321  grep -v '^ *+' conftest.er1 >conftest.err
2322  rm -f conftest.er1
2323  cat conftest.err >&5
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); } &&
2326	 { ac_try='test -z "$ac_c_werror_flag"
2327			 || test ! -s conftest.err'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; } &&
2333	 { ac_try='test -s conftest.$ac_objext'
2334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335  (eval $ac_try) 2>&5
2336  ac_status=$?
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); }; }; then
2339  ac_cv_prog_cc_stdc=$ac_arg
2340break
2341else
2342  echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345fi
2346rm -f conftest.err conftest.$ac_objext
2347done
2348rm -f conftest.$ac_ext conftest.$ac_objext
2349CC=$ac_save_CC
2350
2351fi
2352
2353case "x$ac_cv_prog_cc_stdc" in
2354  x|xno)
2355    echo "$as_me:$LINENO: result: none needed" >&5
2356echo "${ECHO_T}none needed" >&6 ;;
2357  *)
2358    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2359echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2360    CC="$CC $ac_cv_prog_cc_stdc" ;;
2361esac
2362
2363# Some people use a C++ compiler to compile C.  Since we use `exit',
2364# in C++ we need to declare it.  In case someone uses the same compiler
2365# for both compiling C and C++ we need to have the C++ compiler decide
2366# the declaration of exit, since it's the most demanding environment.
2367cat >conftest.$ac_ext <<_ACEOF
2368#ifndef __cplusplus
2369  choke me
2370#endif
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374  (eval $ac_compile) 2>conftest.er1
2375  ac_status=$?
2376  grep -v '^ *+' conftest.er1 >conftest.err
2377  rm -f conftest.er1
2378  cat conftest.err >&5
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); } &&
2381	 { ac_try='test -z "$ac_c_werror_flag"
2382			 || test ! -s conftest.err'
2383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384  (eval $ac_try) 2>&5
2385  ac_status=$?
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); }; } &&
2388	 { ac_try='test -s conftest.$ac_objext'
2389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; }; then
2394  for ac_declaration in \
2395   '' \
2396   'extern "C" void std::exit (int) throw (); using std::exit;' \
2397   'extern "C" void std::exit (int); using std::exit;' \
2398   'extern "C" void exit (int) throw ();' \
2399   'extern "C" void exit (int);' \
2400   'void exit (int);'
2401do
2402  cat >conftest.$ac_ext <<_ACEOF
2403/* confdefs.h.  */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h.  */
2408$ac_declaration
2409#include <stdlib.h>
2410int
2411main ()
2412{
2413exit (42);
2414  ;
2415  return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext
2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420  (eval $ac_compile) 2>conftest.er1
2421  ac_status=$?
2422  grep -v '^ *+' conftest.er1 >conftest.err
2423  rm -f conftest.er1
2424  cat conftest.err >&5
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); } &&
2427	 { ac_try='test -z "$ac_c_werror_flag"
2428			 || test ! -s conftest.err'
2429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430  (eval $ac_try) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; } &&
2434	 { ac_try='test -s conftest.$ac_objext'
2435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436  (eval $ac_try) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; }; then
2440  :
2441else
2442  echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445continue
2446fi
2447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448  cat >conftest.$ac_ext <<_ACEOF
2449/* confdefs.h.  */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h.  */
2454$ac_declaration
2455int
2456main ()
2457{
2458exit (42);
2459  ;
2460  return 0;
2461}
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465  (eval $ac_compile) 2>conftest.er1
2466  ac_status=$?
2467  grep -v '^ *+' conftest.er1 >conftest.err
2468  rm -f conftest.er1
2469  cat conftest.err >&5
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); } &&
2472	 { ac_try='test -z "$ac_c_werror_flag"
2473			 || test ! -s conftest.err'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; } &&
2479	 { ac_try='test -s conftest.$ac_objext'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; }; then
2485  break
2486else
2487  echo "$as_me: failed program was:" >&5
2488sed 's/^/| /' conftest.$ac_ext >&5
2489
2490fi
2491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2492done
2493rm -f conftest*
2494if test -n "$ac_declaration"; then
2495  echo '#ifdef __cplusplus' >>confdefs.h
2496  echo $ac_declaration      >>confdefs.h
2497  echo '#endif'             >>confdefs.h
2498fi
2499
2500else
2501  echo "$as_me: failed program was:" >&5
2502sed 's/^/| /' conftest.$ac_ext >&5
2503
2504fi
2505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506ac_ext=c
2507ac_cpp='$CPP $CPPFLAGS'
2508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511
2512
2513echo "$as_me:$LINENO: checking for library containing strerror" >&5
2514echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2515if test "${ac_cv_search_strerror+set}" = set; then
2516  echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518  ac_func_search_save_LIBS=$LIBS
2519ac_cv_search_strerror=no
2520cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h.  */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h.  */
2526
2527/* Override any gcc2 internal prototype to avoid an error.  */
2528#ifdef __cplusplus
2529extern "C"
2530#endif
2531/* We use char because int might match the return type of a gcc2
2532   builtin and then its argument prototype would still apply.  */
2533char strerror ();
2534int
2535main ()
2536{
2537strerror ();
2538  ;
2539  return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext conftest$ac_exeext
2543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2544  (eval $ac_link) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } &&
2551	 { ac_try='test -z "$ac_c_werror_flag"
2552			 || test ! -s conftest.err'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; } &&
2558	 { ac_try='test -s conftest$ac_exeext'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; }; then
2564  ac_cv_search_strerror="none required"
2565else
2566  echo "$as_me: failed program was:" >&5
2567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569fi
2570rm -f conftest.err conftest.$ac_objext \
2571      conftest$ac_exeext conftest.$ac_ext
2572if test "$ac_cv_search_strerror" = no; then
2573  for ac_lib in cposix; do
2574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2575    cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h.  */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h.  */
2581
2582/* Override any gcc2 internal prototype to avoid an error.  */
2583#ifdef __cplusplus
2584extern "C"
2585#endif
2586/* We use char because int might match the return type of a gcc2
2587   builtin and then its argument prototype would still apply.  */
2588char strerror ();
2589int
2590main ()
2591{
2592strerror ();
2593  ;
2594  return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext conftest$ac_exeext
2598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599  (eval $ac_link) 2>conftest.er1
2600  ac_status=$?
2601  grep -v '^ *+' conftest.er1 >conftest.err
2602  rm -f conftest.er1
2603  cat conftest.err >&5
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); } &&
2606	 { ac_try='test -z "$ac_c_werror_flag"
2607			 || test ! -s conftest.err'
2608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609  (eval $ac_try) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }; } &&
2613	 { ac_try='test -s conftest$ac_exeext'
2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615  (eval $ac_try) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; }; then
2619  ac_cv_search_strerror="-l$ac_lib"
2620break
2621else
2622  echo "$as_me: failed program was:" >&5
2623sed 's/^/| /' conftest.$ac_ext >&5
2624
2625fi
2626rm -f conftest.err conftest.$ac_objext \
2627      conftest$ac_exeext conftest.$ac_ext
2628  done
2629fi
2630LIBS=$ac_func_search_save_LIBS
2631fi
2632echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2633echo "${ECHO_T}$ac_cv_search_strerror" >&6
2634if test "$ac_cv_search_strerror" != no; then
2635  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2636
2637fi
2638
2639
2640BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2641am__api_version="1.9"
2642# Find a good install program.  We prefer a C program (faster),
2643# so one script is as good as another.  But avoid the broken or
2644# incompatible versions:
2645# SysV /etc/install, /usr/sbin/install
2646# SunOS /usr/etc/install
2647# IRIX /sbin/install
2648# AIX /bin/install
2649# AmigaOS /C/install, which installs bootblocks on floppy discs
2650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2653# OS/2's system install, which has a completely different semantic
2654# ./install, which can be erroneously created by make from ./install.sh.
2655echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2657if test -z "$INSTALL"; then
2658if test "${ac_cv_path_install+set}" = set; then
2659  echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666  # Account for people who put trailing slashes in PATH elements.
2667case $as_dir/ in
2668  ./ | .// | /cC/* | \
2669  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2670  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2671  /usr/ucb/* ) ;;
2672  *)
2673    # OSF1 and SCO ODT 3.0 have their own names for install.
2674    # Don't use installbsd from OSF since it installs stuff as root
2675    # by default.
2676    for ac_prog in ginstall scoinst install; do
2677      for ac_exec_ext in '' $ac_executable_extensions; do
2678	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2679	  if test $ac_prog = install &&
2680	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681	    # AIX install.  It has an incompatible calling convention.
2682	    :
2683	  elif test $ac_prog = install &&
2684	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685	    # program-specific install script used by HP pwplus--don't use.
2686	    :
2687	  else
2688	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689	    break 3
2690	  fi
2691	fi
2692      done
2693    done
2694    ;;
2695esac
2696done
2697
2698
2699fi
2700  if test "${ac_cv_path_install+set}" = set; then
2701    INSTALL=$ac_cv_path_install
2702  else
2703    # As a last resort, use the slow shell script.  We don't cache a
2704    # path for INSTALL within a source directory, because that will
2705    # break other packages using the cache if that directory is
2706    # removed, or if the path is relative.
2707    INSTALL=$ac_install_sh
2708  fi
2709fi
2710echo "$as_me:$LINENO: result: $INSTALL" >&5
2711echo "${ECHO_T}$INSTALL" >&6
2712
2713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2714# It thinks the first close brace ends the variable substitution.
2715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2716
2717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2718
2719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2720
2721echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2722echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2723# Just in case
2724sleep 1
2725echo timestamp > conftest.file
2726# Do `set' in a subshell so we don't clobber the current shell's
2727# arguments.  Must try -L first in case configure is actually a
2728# symlink; some systems play weird games with the mod time of symlinks
2729# (eg FreeBSD returns the mod time of the symlink's containing
2730# directory).
2731if (
2732   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2733   if test "$*" = "X"; then
2734      # -L didn't work.
2735      set X `ls -t $srcdir/configure conftest.file`
2736   fi
2737   rm -f conftest.file
2738   if test "$*" != "X $srcdir/configure conftest.file" \
2739      && test "$*" != "X conftest.file $srcdir/configure"; then
2740
2741      # If neither matched, then we have a broken ls.  This can happen
2742      # if, for instance, CONFIG_SHELL is bash and it inherits a
2743      # broken ls alias from the environment.  This has actually
2744      # happened.  Such a system could not be considered "sane".
2745      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2746alias in your environment" >&5
2747echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2748alias in your environment" >&2;}
2749   { (exit 1); exit 1; }; }
2750   fi
2751
2752   test "$2" = conftest.file
2753   )
2754then
2755   # Ok.
2756   :
2757else
2758   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2759Check your system clock" >&5
2760echo "$as_me: error: newly created file is older than distributed files!
2761Check your system clock" >&2;}
2762   { (exit 1); exit 1; }; }
2763fi
2764echo "$as_me:$LINENO: result: yes" >&5
2765echo "${ECHO_T}yes" >&6
2766test "$program_prefix" != NONE &&
2767  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2768# Use a double $ so make ignores it.
2769test "$program_suffix" != NONE &&
2770  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2771# Double any \ or $.  echo might interpret backslashes.
2772# By default was `s,x,x', remove it if useless.
2773cat <<\_ACEOF >conftest.sed
2774s/[\\$]/&&/g;s/;s,x,x,$//
2775_ACEOF
2776program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2777rm conftest.sed
2778
2779# expand $ac_aux_dir to an absolute path
2780am_aux_dir=`cd $ac_aux_dir && pwd`
2781
2782test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2783# Use eval to expand $SHELL
2784if eval "$MISSING --run true"; then
2785  am_missing_run="$MISSING --run "
2786else
2787  am_missing_run=
2788  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2789echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2790fi
2791
2792if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2793  # We used to keeping the `.' as first argument, in order to
2794  # allow $(mkdir_p) to be used without argument.  As in
2795  #   $(mkdir_p) $(somedir)
2796  # where $(somedir) is conditionally defined.  However this is wrong
2797  # for two reasons:
2798  #  1. if the package is installed by a user who cannot write `.'
2799  #     make install will fail,
2800  #  2. the above comment should most certainly read
2801  #     $(mkdir_p) $(DESTDIR)$(somedir)
2802  #     so it does not work when $(somedir) is undefined and
2803  #     $(DESTDIR) is not.
2804  #  To support the latter case, we have to write
2805  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2806  #  so the `.' trick is pointless.
2807  mkdir_p='mkdir -p --'
2808else
2809  # On NextStep and OpenStep, the `mkdir' command does not
2810  # recognize any option.  It will interpret all options as
2811  # directories to create, and then abort because `.' already
2812  # exists.
2813  for d in ./-p ./--version;
2814  do
2815    test -d $d && rmdir $d
2816  done
2817  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2818  if test -f "$ac_aux_dir/mkinstalldirs"; then
2819    mkdir_p='$(mkinstalldirs)'
2820  else
2821    mkdir_p='$(install_sh) -d'
2822  fi
2823fi
2824
2825for ac_prog in gawk mawk nawk awk
2826do
2827  # Extract the first word of "$ac_prog", so it can be a program name with args.
2828set dummy $ac_prog; ac_word=$2
2829echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831if test "${ac_cv_prog_AWK+set}" = set; then
2832  echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834  if test -n "$AWK"; then
2835  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840  IFS=$as_save_IFS
2841  test -z "$as_dir" && as_dir=.
2842  for ac_exec_ext in '' $ac_executable_extensions; do
2843  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844    ac_cv_prog_AWK="$ac_prog"
2845    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846    break 2
2847  fi
2848done
2849done
2850
2851fi
2852fi
2853AWK=$ac_cv_prog_AWK
2854if test -n "$AWK"; then
2855  echo "$as_me:$LINENO: result: $AWK" >&5
2856echo "${ECHO_T}$AWK" >&6
2857else
2858  echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860fi
2861
2862  test -n "$AWK" && break
2863done
2864
2865echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2867set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2868if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2869  echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871  cat >conftest.make <<\_ACEOF
2872all:
2873	@echo 'ac_maketemp="$(MAKE)"'
2874_ACEOF
2875# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2877if test -n "$ac_maketemp"; then
2878  eval ac_cv_prog_make_${ac_make}_set=yes
2879else
2880  eval ac_cv_prog_make_${ac_make}_set=no
2881fi
2882rm -f conftest.make
2883fi
2884if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2885  echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887  SET_MAKE=
2888else
2889  echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891  SET_MAKE="MAKE=${MAKE-make}"
2892fi
2893
2894rm -rf .tst 2>/dev/null
2895mkdir .tst 2>/dev/null
2896if test -d .tst; then
2897  am__leading_dot=.
2898else
2899  am__leading_dot=_
2900fi
2901rmdir .tst 2>/dev/null
2902
2903DEPDIR="${am__leading_dot}deps"
2904
2905          ac_config_commands="$ac_config_commands depfiles"
2906
2907
2908am_make=${MAKE-make}
2909cat > confinc << 'END'
2910am__doit:
2911	@echo done
2912.PHONY: am__doit
2913END
2914# If we don't find an include directive, just comment out the code.
2915echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2916echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2917am__include="#"
2918am__quote=
2919_am_result=none
2920# First try GNU make style include.
2921echo "include confinc" > confmf
2922# We grep out `Entering directory' and `Leaving directory'
2923# messages which can occur if `w' ends up in MAKEFLAGS.
2924# In particular we don't look at `^make:' because GNU make might
2925# be invoked under some other name (usually "gmake"), in which
2926# case it prints its new name instead of `make'.
2927if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2928   am__include=include
2929   am__quote=
2930   _am_result=GNU
2931fi
2932# Now try BSD make style include.
2933if test "$am__include" = "#"; then
2934   echo '.include "confinc"' > confmf
2935   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2936      am__include=.include
2937      am__quote="\""
2938      _am_result=BSD
2939   fi
2940fi
2941
2942
2943echo "$as_me:$LINENO: result: $_am_result" >&5
2944echo "${ECHO_T}$_am_result" >&6
2945rm -f confinc confmf
2946
2947# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2948if test "${enable_dependency_tracking+set}" = set; then
2949  enableval="$enable_dependency_tracking"
2950
2951fi;
2952if test "x$enable_dependency_tracking" != xno; then
2953  am_depcomp="$ac_aux_dir/depcomp"
2954  AMDEPBACKSLASH='\'
2955fi
2956
2957
2958if test "x$enable_dependency_tracking" != xno; then
2959  AMDEP_TRUE=
2960  AMDEP_FALSE='#'
2961else
2962  AMDEP_TRUE='#'
2963  AMDEP_FALSE=
2964fi
2965
2966
2967
2968# test to see if srcdir already configured
2969if test "`cd $srcdir && pwd`" != "`pwd`" &&
2970   test -f $srcdir/config.status; then
2971  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2972echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2973   { (exit 1); exit 1; }; }
2974fi
2975
2976# test whether we have cygpath
2977if test -z "$CYGPATH_W"; then
2978  if (cygpath --version) >/dev/null 2>/dev/null; then
2979    CYGPATH_W='cygpath -w'
2980  else
2981    CYGPATH_W=echo
2982  fi
2983fi
2984
2985
2986# Define the identity of the package.
2987 PACKAGE=gas
2988 VERSION=${BFD_VERSION}
2989
2990
2991cat >>confdefs.h <<_ACEOF
2992#define PACKAGE "$PACKAGE"
2993_ACEOF
2994
2995
2996cat >>confdefs.h <<_ACEOF
2997#define VERSION "$VERSION"
2998_ACEOF
2999
3000# Some tools Automake needs.
3001
3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
3016install_sh=${install_sh-"$am_aux_dir/install-sh"}
3017
3018# Installed binaries are usually stripped using `strip' when the user
3019# run `make install-strip'.  However `strip' might not be the right
3020# tool to use in cross-compilation environments, therefore Automake
3021# will honor the `STRIP' environment variable to overrule this program.
3022if test "$cross_compiling" != no; then
3023  if test -n "$ac_tool_prefix"; then
3024  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3025set dummy ${ac_tool_prefix}strip; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_prog_STRIP+set}" = set; then
3029  echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031  if test -n "$STRIP"; then
3032  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3033else
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037  IFS=$as_save_IFS
3038  test -z "$as_dir" && as_dir=.
3039  for ac_exec_ext in '' $ac_executable_extensions; do
3040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043    break 2
3044  fi
3045done
3046done
3047
3048fi
3049fi
3050STRIP=$ac_cv_prog_STRIP
3051if test -n "$STRIP"; then
3052  echo "$as_me:$LINENO: result: $STRIP" >&5
3053echo "${ECHO_T}$STRIP" >&6
3054else
3055  echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
3057fi
3058
3059fi
3060if test -z "$ac_cv_prog_STRIP"; then
3061  ac_ct_STRIP=$STRIP
3062  # Extract the first word of "strip", so it can be a program name with args.
3063set dummy strip; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3067  echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069  if test -n "$ac_ct_STRIP"; then
3070  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077  for ac_exec_ext in '' $ac_executable_extensions; do
3078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079    ac_cv_prog_ac_ct_STRIP="strip"
3080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084done
3085
3086  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3087fi
3088fi
3089ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3090if test -n "$ac_ct_STRIP"; then
3091  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3092echo "${ECHO_T}$ac_ct_STRIP" >&6
3093else
3094  echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
3096fi
3097
3098  STRIP=$ac_ct_STRIP
3099else
3100  STRIP="$ac_cv_prog_STRIP"
3101fi
3102
3103fi
3104INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3105
3106# We need awk for the "check" target.  The system "awk" is bad on
3107# some platforms.
3108# Always define AMTAR for backward compatibility.
3109
3110AMTAR=${AMTAR-"${am_missing_run}tar"}
3111
3112am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3113
3114
3115
3116
3117depcc="$CC"   am_compiler_list=
3118
3119echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3120echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3121if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3125  # We make a subdir and do the tests there.  Otherwise we can end up
3126  # making bogus files that we don't know about and never remove.  For
3127  # instance it was reported that on HP-UX the gcc test will end up
3128  # making a dummy file named `D' -- because `-MD' means `put the output
3129  # in D'.
3130  mkdir conftest.dir
3131  # Copy depcomp to subdir because otherwise we won't find it if we're
3132  # using a relative directory.
3133  cp "$am_depcomp" conftest.dir
3134  cd conftest.dir
3135  # We will build objects and dependencies in a subdirectory because
3136  # it helps to detect inapplicable dependency modes.  For instance
3137  # both Tru64's cc and ICC support -MD to output dependencies as a
3138  # side effect of compilation, but ICC will put the dependencies in
3139  # the current directory while Tru64 will put them in the object
3140  # directory.
3141  mkdir sub
3142
3143  am_cv_CC_dependencies_compiler_type=none
3144  if test "$am_compiler_list" = ""; then
3145     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3146  fi
3147  for depmode in $am_compiler_list; do
3148    # Setup a source with many dependencies, because some compilers
3149    # like to wrap large dependency lists on column 80 (with \), and
3150    # we should not choose a depcomp mode which is confused by this.
3151    #
3152    # We need to recreate these files for each test, as the compiler may
3153    # overwrite some of them when testing with obscure command lines.
3154    # This happens at least with the AIX C compiler.
3155    : > sub/conftest.c
3156    for i in 1 2 3 4 5 6; do
3157      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3158      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159      # Solaris 8's {/usr,}/bin/sh.
3160      touch sub/conftst$i.h
3161    done
3162    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3163
3164    case $depmode in
3165    nosideeffect)
3166      # after this tag, mechanisms are not by side-effect, so they'll
3167      # only be used when explicitly requested
3168      if test "x$enable_dependency_tracking" = xyes; then
3169	continue
3170      else
3171	break
3172      fi
3173      ;;
3174    none) break ;;
3175    esac
3176    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3177    # mode.  It turns out that the SunPro C++ compiler does not properly
3178    # handle `-M -o', and we need to detect this.
3179    if depmode=$depmode \
3180       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3181       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3182       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3183         >/dev/null 2>conftest.err &&
3184       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3185       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3186       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3187      # icc doesn't choke on unknown options, it will just issue warnings
3188      # or remarks (even with -Werror).  So we grep stderr for any message
3189      # that says an option was ignored or not supported.
3190      # When given -MP, icc 7.0 and 7.1 complain thusly:
3191      #   icc: Command line warning: ignoring option '-M'; no argument required
3192      # The diagnosis changed in icc 8.0:
3193      #   icc: Command line remark: option '-MP' not supported
3194      if (grep 'ignoring option' conftest.err ||
3195          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3196        am_cv_CC_dependencies_compiler_type=$depmode
3197        break
3198      fi
3199    fi
3200  done
3201
3202  cd ..
3203  rm -rf conftest.dir
3204else
3205  am_cv_CC_dependencies_compiler_type=none
3206fi
3207
3208fi
3209echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3210echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3211CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3212
3213
3214
3215if
3216  test "x$enable_dependency_tracking" != xno \
3217  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3218  am__fastdepCC_TRUE=
3219  am__fastdepCC_FALSE='#'
3220else
3221  am__fastdepCC_TRUE='#'
3222  am__fastdepCC_FALSE=
3223fi
3224
3225
3226
3227
3228
3229
3230macro_version='2.1a'
3231macro_revision='1.2435'
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244ltmain="$ac_aux_dir/ltmain.sh"
3245
3246# Set options
3247
3248enable_dlopen=no
3249
3250
3251enable_win32_dll=no
3252
3253
3254# Check whether --enable-shared or --disable-shared was given.
3255if test "${enable_shared+set}" = set; then
3256  enableval="$enable_shared"
3257  p=${PACKAGE-default}
3258    case $enableval in
3259    yes) enable_shared=yes ;;
3260    no) enable_shared=no ;;
3261    *)
3262      enable_shared=no
3263      # Look at the argument we got.  We use all the common list separators.
3264      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3265      for pkg in $enableval; do
3266	IFS="$lt_save_ifs"
3267	if test "X$pkg" = "X$p"; then
3268	  enable_shared=yes
3269	fi
3270      done
3271      IFS="$lt_save_ifs"
3272      ;;
3273    esac
3274else
3275  enable_shared=yes
3276fi;
3277
3278
3279
3280
3281
3282
3283
3284
3285# Check whether --enable-static or --disable-static was given.
3286if test "${enable_static+set}" = set; then
3287  enableval="$enable_static"
3288  p=${PACKAGE-default}
3289    case $enableval in
3290    yes) enable_static=yes ;;
3291    no) enable_static=no ;;
3292    *)
3293     enable_static=no
3294      # Look at the argument we got.  We use all the common list separators.
3295      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3296      for pkg in $enableval; do
3297	IFS="$lt_save_ifs"
3298	if test "X$pkg" = "X$p"; then
3299	  enable_static=yes
3300	fi
3301      done
3302      IFS="$lt_save_ifs"
3303      ;;
3304    esac
3305else
3306  enable_static=yes
3307fi;
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317# Check whether --with-pic or --without-pic was given.
3318if test "${with_pic+set}" = set; then
3319  withval="$with_pic"
3320  pic_mode="$withval"
3321else
3322  pic_mode=default
3323fi;
3324
3325test -z "$pic_mode" && pic_mode=default
3326
3327
3328
3329
3330
3331
3332
3333# Check whether --enable-fast-install or --disable-fast-install was given.
3334if test "${enable_fast_install+set}" = set; then
3335  enableval="$enable_fast_install"
3336  p=${PACKAGE-default}
3337    case $enableval in
3338    yes) enable_fast_install=yes ;;
3339    no) enable_fast_install=no ;;
3340    *)
3341      enable_fast_install=no
3342      # Look at the argument we got.  We use all the common list separators.
3343      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3344      for pkg in $enableval; do
3345	IFS="$lt_save_ifs"
3346	if test "X$pkg" = "X$p"; then
3347	  enable_fast_install=yes
3348	fi
3349      done
3350      IFS="$lt_save_ifs"
3351      ;;
3352    esac
3353else
3354  enable_fast_install=yes
3355fi;
3356
3357
3358
3359
3360
3361
3362
3363
3364echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3365echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3366if test "${lt_cv_path_SED+set}" = set; then
3367  echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369  # Loop through the user's path and test for sed and gsed.
3370# Then use that list of sed's as ones to test for truncation.
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376  for lt_ac_prog in sed gsed; do
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3379        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3380      fi
3381    done
3382  done
3383done
3384IFS=$as_save_IFS
3385lt_ac_max=0
3386lt_ac_count=0
3387# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3388# along with /bin/sed that truncates output.
3389for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3390  test ! -f $lt_ac_sed && continue
3391  cat /dev/null > conftest.in
3392  lt_ac_count=0
3393  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3394  # Check for GNU sed and select it if it is found.
3395  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3396    lt_cv_path_SED=$lt_ac_sed
3397    break
3398  fi
3399  while true; do
3400    cat conftest.in conftest.in >conftest.tmp
3401    mv conftest.tmp conftest.in
3402    cp conftest.in conftest.nl
3403    echo >>conftest.nl
3404    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3405    cmp -s conftest.out conftest.nl || break
3406    # 10000 chars as input seems more than enough
3407    test $lt_ac_count -gt 10 && break
3408    lt_ac_count=`expr $lt_ac_count + 1`
3409    if test $lt_ac_count -gt $lt_ac_max; then
3410      lt_ac_max=$lt_ac_count
3411      lt_cv_path_SED=$lt_ac_sed
3412    fi
3413  done
3414done
3415
3416fi
3417
3418SED=$lt_cv_path_SED
3419
3420echo "$as_me:$LINENO: result: $SED" >&5
3421echo "${ECHO_T}$SED" >&6
3422
3423test -z "$SED" && SED=sed
3424Xsed="$SED -e 1s/^X//"
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436echo "$as_me:$LINENO: checking for egrep" >&5
3437echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3438if test "${ac_cv_prog_egrep+set}" = set; then
3439  echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3442    then ac_cv_prog_egrep='grep -E'
3443    else ac_cv_prog_egrep='egrep'
3444    fi
3445fi
3446echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3447echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3448 EGREP=$ac_cv_prog_egrep
3449
3450
3451echo "$as_me:$LINENO: checking for fgrep" >&5
3452echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3453if test "${ac_cv_prog_fgrep+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3457    then ac_cv_prog_fgrep='grep -F'
3458    else ac_cv_prog_fgrep='fgrep'
3459    fi
3460fi
3461echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3462echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3463 FGREP=$ac_cv_prog_fgrep
3464
3465
3466test -z "$GREP" && GREP=grep
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486# Check whether --with-gnu-ld or --without-gnu-ld was given.
3487if test "${with_gnu_ld+set}" = set; then
3488  withval="$with_gnu_ld"
3489  test "$withval" = no || with_gnu_ld=yes
3490else
3491  with_gnu_ld=no
3492fi;
3493ac_prog=ld
3494if test "$GCC" = yes; then
3495  # Check if gcc -print-prog-name=ld gives a path.
3496  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3497echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3498  case $host in
3499  *-*-mingw*)
3500    # gcc leaves a trailing carriage return which upsets mingw
3501    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3502  *)
3503    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3504  esac
3505  case $ac_prog in
3506    # Accept absolute paths.
3507    [\\/]* | ?:[\\/]*)
3508      re_direlt='/[^/][^/]*/\.\./'
3509      # Canonicalize the pathname of ld
3510      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3511      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3512	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3513      done
3514      test -z "$LD" && LD="$ac_prog"
3515      ;;
3516  "")
3517    # If it fails, then pretend we aren't using GCC.
3518    ac_prog=ld
3519    ;;
3520  *)
3521    # If it is relative, then search for the first ld in PATH.
3522    with_gnu_ld=unknown
3523    ;;
3524  esac
3525elif test "$with_gnu_ld" = yes; then
3526  echo "$as_me:$LINENO: checking for GNU ld" >&5
3527echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3528else
3529  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3530echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3531fi
3532if test "${lt_cv_path_LD+set}" = set; then
3533  echo $ECHO_N "(cached) $ECHO_C" >&6
3534else
3535  if test -z "$LD"; then
3536  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3537  for ac_dir in $PATH; do
3538    IFS="$lt_save_ifs"
3539    test -z "$ac_dir" && ac_dir=.
3540    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3541      lt_cv_path_LD="$ac_dir/$ac_prog"
3542      # Check to see if the program is GNU ld.  I'd rather use --version,
3543      # but apparently some variants of GNU ld only accept -v.
3544      # Break only if it was the GNU/non-GNU ld that we prefer.
3545      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3546      *GNU* | *'with BFD'*)
3547	test "$with_gnu_ld" != no && break
3548	;;
3549      *)
3550	test "$with_gnu_ld" != yes && break
3551	;;
3552      esac
3553    fi
3554  done
3555  IFS="$lt_save_ifs"
3556else
3557  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3558fi
3559fi
3560
3561LD="$lt_cv_path_LD"
3562if test -n "$LD"; then
3563  echo "$as_me:$LINENO: result: $LD" >&5
3564echo "${ECHO_T}$LD" >&6
3565else
3566  echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568fi
3569test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3570echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3571   { (exit 1); exit 1; }; }
3572echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3573echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3574if test "${lt_cv_prog_gnu_ld+set}" = set; then
3575  echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3578case `$LD -v 2>&1 </dev/null` in
3579*GNU* | *'with BFD'*)
3580  lt_cv_prog_gnu_ld=yes
3581  ;;
3582*)
3583  lt_cv_prog_gnu_ld=no
3584  ;;
3585esac
3586fi
3587echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3588echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3589with_gnu_ld=$lt_cv_prog_gnu_ld
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3601echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3602if test "${lt_cv_path_NM+set}" = set; then
3603  echo $ECHO_N "(cached) $ECHO_C" >&6
3604else
3605  if test -n "$NM"; then
3606  # Let the user override the test.
3607  lt_cv_path_NM="$NM"
3608else
3609  lt_nm_to_check="${ac_tool_prefix}nm"
3610  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3611    lt_nm_to_check="$lt_nm_to_check nm"
3612  fi
3613  for lt_tmp_nm in $lt_nm_to_check; do
3614    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3615    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3616      IFS="$lt_save_ifs"
3617      test -z "$ac_dir" && ac_dir=.
3618      tmp_nm="$ac_dir/$lt_tmp_nm"
3619      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3620	# Check to see if the nm accepts a BSD-compat flag.
3621	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3622	#   nm: unknown option "B" ignored
3623	# Tru64's nm complains that /dev/null is an invalid object file
3624	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3625	*/dev/null* | *'Invalid file or object type'*)
3626	  lt_cv_path_NM="$tmp_nm -B"
3627	  break
3628	  ;;
3629	*)
3630	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3631	  */dev/null*)
3632	    lt_cv_path_NM="$tmp_nm -p"
3633	    break
3634	    ;;
3635	  *)
3636	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3637	    continue # so that we can try to find one that supports BSD flags
3638	    ;;
3639	  esac
3640	  ;;
3641	esac
3642      fi
3643    done
3644    IFS="$lt_save_ifs"
3645  done
3646  : ${lt_cv_path_NM=no}
3647fi
3648fi
3649echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3650echo "${ECHO_T}$lt_cv_path_NM" >&6
3651if test "$lt_cv_path_NM" != "no"; then
3652  NM="$lt_cv_path_NM"
3653else
3654  # Didn't find any BSD compatible name lister, look for dumpbin.
3655  if test -n "$ac_tool_prefix"; then
3656  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3657  do
3658    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660echo "$as_me:$LINENO: checking for $ac_word" >&5
3661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3663  echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665  if test -n "$DUMPBIN"; then
3666  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  test -z "$as_dir" && as_dir=.
3673  for ac_exec_ext in '' $ac_executable_extensions; do
3674  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677    break 2
3678  fi
3679done
3680done
3681
3682fi
3683fi
3684DUMPBIN=$ac_cv_prog_DUMPBIN
3685if test -n "$DUMPBIN"; then
3686  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3687echo "${ECHO_T}$DUMPBIN" >&6
3688else
3689  echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691fi
3692
3693    test -n "$DUMPBIN" && break
3694  done
3695fi
3696if test -z "$DUMPBIN"; then
3697  ac_ct_DUMPBIN=$DUMPBIN
3698  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3699do
3700  # Extract the first word of "$ac_prog", so it can be a program name with args.
3701set dummy $ac_prog; ac_word=$2
3702echo "$as_me:$LINENO: checking for $ac_word" >&5
3703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3705  echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707  if test -n "$ac_ct_DUMPBIN"; then
3708  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713  IFS=$as_save_IFS
3714  test -z "$as_dir" && as_dir=.
3715  for ac_exec_ext in '' $ac_executable_extensions; do
3716  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3718    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719    break 2
3720  fi
3721done
3722done
3723
3724fi
3725fi
3726ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3727if test -n "$ac_ct_DUMPBIN"; then
3728  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3729echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3730else
3731  echo "$as_me:$LINENO: result: no" >&5
3732echo "${ECHO_T}no" >&6
3733fi
3734
3735  test -n "$ac_ct_DUMPBIN" && break
3736done
3737test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3738
3739  DUMPBIN=$ac_ct_DUMPBIN
3740fi
3741
3742
3743  if test "$DUMPBIN" != ":"; then
3744    NM="$DUMPBIN"
3745  fi
3746fi
3747test -z "$NM" && NM=nm
3748
3749
3750
3751
3752
3753
3754echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3755echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3756if test "${lt_cv_nm_interface+set}" = set; then
3757  echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759  lt_cv_nm_interface="BSD nm"
3760  echo "int some_variable = 0;" > conftest.$ac_ext
3761  (eval echo "\"\$as_me:3761: $ac_compile\"" >&5)
3762  (eval "$ac_compile" 2>conftest.err)
3763  cat conftest.err >&5
3764  (eval echo "\"\$as_me:3764: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3765  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3766  cat conftest.err >&5
3767  (eval echo "\"\$as_me:3767: output\"" >&5)
3768  cat conftest.out >&5
3769  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3770    lt_cv_nm_interface="MS dumpbin"
3771  fi
3772  rm -f conftest*
3773fi
3774echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3775echo "${ECHO_T}$lt_cv_nm_interface" >&6
3776
3777echo "$as_me:$LINENO: checking whether ln -s works" >&5
3778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3779LN_S=$as_ln_s
3780if test "$LN_S" = "ln -s"; then
3781  echo "$as_me:$LINENO: result: yes" >&5
3782echo "${ECHO_T}yes" >&6
3783else
3784  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3785echo "${ECHO_T}no, using $LN_S" >&6
3786fi
3787
3788# find the maximum length of command line arguments
3789echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3790echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3791if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3792  echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794    i=0
3795  teststring="ABCD"
3796
3797  case $build_os in
3798  msdosdjgpp*)
3799    # On DJGPP, this test can blow up pretty badly due to problems in libc
3800    # (any single argument exceeding 2000 bytes causes a buffer overrun
3801    # during glob expansion).  Even if it were fixed, the result of this
3802    # check would be larger than it should be.
3803    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3804    ;;
3805
3806  gnu*)
3807    # Under GNU Hurd, this test is not required because there is
3808    # no limit to the length of command line arguments.
3809    # Libtool will interpret -1 as no limit whatsoever
3810    lt_cv_sys_max_cmd_len=-1;
3811    ;;
3812
3813  cygwin* | mingw*)
3814    # On Win9x/ME, this test blows up -- it succeeds, but takes
3815    # about 5 minutes as the teststring grows exponentially.
3816    # Worse, since 9x/ME are not pre-emptively multitasking,
3817    # you end up with a "frozen" computer, even though with patience
3818    # the test eventually succeeds (with a max line length of 256k).
3819    # Instead, let's just punt: use the minimum linelength reported by
3820    # all of the supported platforms: 8192 (on NT/2K/XP).
3821    lt_cv_sys_max_cmd_len=8192;
3822    ;;
3823
3824  amigaos*)
3825    # On AmigaOS with pdksh, this test takes hours, literally.
3826    # So we just punt and use a minimum line length of 8192.
3827    lt_cv_sys_max_cmd_len=8192;
3828    ;;
3829
3830  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3831    # This has been around since 386BSD, at least.  Likely further.
3832    if test -x /sbin/sysctl; then
3833      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3834    elif test -x /usr/sbin/sysctl; then
3835      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3836    else
3837      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3838    fi
3839    # And add a safety zone
3840    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3841    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3842    ;;
3843
3844  interix*)
3845    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3846    lt_cv_sys_max_cmd_len=196608
3847    ;;
3848
3849  osf*)
3850    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3851    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3852    # nice to cause kernel panics so lets avoid the loop below.
3853    # First set a reasonable default.
3854    lt_cv_sys_max_cmd_len=16384
3855    #
3856    if test -x /sbin/sysconfig; then
3857      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3858        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3859      esac
3860    fi
3861    ;;
3862  sco3.2v5*)
3863    lt_cv_sys_max_cmd_len=102400
3864    ;;
3865  sysv5* | sco5v6* | sysv4.2uw2*)
3866    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3867    if test -n "$kargmax"; then
3868      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3869    else
3870      lt_cv_sys_max_cmd_len=32768
3871    fi
3872    ;;
3873  *)
3874    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3875    if test -n $lt_cv_sys_max_cmd_len; then
3876      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3877      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3878    else
3879      # Make teststring a little bigger before we do anything with it.
3880      # a 1K string should be a reasonable start.
3881      for i in 1 2 3 4 5 6 7 8 ; do
3882        teststring=$teststring$teststring
3883      done
3884      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3885      # If test is not a shell built-in, we'll probably end up computing a
3886      # maximum length that is only half of the actual maximum length, but
3887      # we can't tell.
3888      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3889	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3890	      test $i != 17 # 1/2 MB should be enough
3891      do
3892        i=`expr $i + 1`
3893        teststring=$teststring$teststring
3894      done
3895      # Only check the string length outside the loop.
3896      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3897      teststring=
3898      # Add a significant safety factor because C++ compilers can tack on
3899      # massive amounts of additional arguments before passing them to the
3900      # linker.  It appears as though 1/2 is a usable value.
3901      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3902    fi
3903    ;;
3904  esac
3905
3906fi
3907
3908if test -n $lt_cv_sys_max_cmd_len ; then
3909  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3910echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3911else
3912  echo "$as_me:$LINENO: result: none" >&5
3913echo "${ECHO_T}none" >&6
3914fi
3915max_cmd_len=$lt_cv_sys_max_cmd_len
3916
3917
3918
3919
3920
3921
3922
3923: ${CP="cp -f"}
3924: ${MV="mv -f"}
3925: ${RM="rm -f"}
3926
3927echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3928echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3929# Try some XSI features
3930xsi_shell=no
3931( _lt_dummy="a/b/c"
3932  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3933      = c,a/b,, ) >/dev/null 2>&1 \
3934  && xsi_shell=yes
3935echo "$as_me:$LINENO: result: $xsi_shell" >&5
3936echo "${ECHO_T}$xsi_shell" >&6
3937
3938
3939echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3940echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3941lt_shell_append=no
3942( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3943    >/dev/null 2>&1 \
3944  && lt_shell_append=yes
3945echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3946echo "${ECHO_T}$lt_shell_append" >&6
3947
3948
3949if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3950  lt_unset=unset
3951else
3952  lt_unset=false
3953fi
3954
3955
3956
3957
3958
3959# test EBCDIC or ASCII
3960case `echo X|tr X '\101'` in
3961 A) # ASCII based system
3962    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3963  lt_SP2NL='tr \040 \012'
3964  lt_NL2SP='tr \015\012 \040\040'
3965  ;;
3966 *) # EBCDIC based system
3967  lt_SP2NL='tr \100 \n'
3968  lt_NL2SP='tr \r\n \100\100'
3969  ;;
3970esac
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3981echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3982if test "${lt_cv_ld_reload_flag+set}" = set; then
3983  echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985  lt_cv_ld_reload_flag='-r'
3986fi
3987echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3988echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3989reload_flag=$lt_cv_ld_reload_flag
3990case $reload_flag in
3991"" | " "*) ;;
3992*) reload_flag=" $reload_flag" ;;
3993esac
3994reload_cmds='$LD$reload_flag -o $output$reload_objs'
3995case $host_os in
3996  darwin*)
3997    if test "$GCC" = yes; then
3998      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3999    else
4000      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4001    fi
4002    ;;
4003esac
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4015echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4016if test "${lt_cv_deplibs_check_method+set}" = set; then
4017  echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019  lt_cv_file_magic_cmd='$MAGIC_CMD'
4020lt_cv_file_magic_test_file=
4021lt_cv_deplibs_check_method='unknown'
4022# Need to set the preceding variable on all platforms that support
4023# interlibrary dependencies.
4024# 'none' -- dependencies not supported.
4025# `unknown' -- same as none, but documents that we really don't know.
4026# 'pass_all' -- all dependencies passed with no checks.
4027# 'test_compile' -- check by making test program.
4028# 'file_magic [[regex]]' -- check by looking for files in library path
4029# which responds to the $file_magic_cmd with a given extended regex.
4030# If you have `file' or equivalent on your system and you're not sure
4031# whether `pass_all' will *always* work, you probably want this one.
4032
4033case $host_os in
4034aix4* | aix5*)
4035  lt_cv_deplibs_check_method=pass_all
4036  ;;
4037
4038beos*)
4039  lt_cv_deplibs_check_method=pass_all
4040  ;;
4041
4042bsdi[45]*)
4043  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4044  lt_cv_file_magic_cmd='/usr/bin/file -L'
4045  lt_cv_file_magic_test_file=/shlib/libc.so
4046  ;;
4047
4048cygwin*)
4049  # func_win32_libid is a shell function defined in ltmain.sh
4050  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4051  lt_cv_file_magic_cmd='func_win32_libid'
4052  ;;
4053
4054mingw* | pw32*)
4055  # Base MSYS/MinGW do not provide the 'file' command needed by
4056  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4057  # unless we find 'file', for example because we are cross-compiling.
4058  if ( file / ) >/dev/null 2>&1; then
4059    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4060    lt_cv_file_magic_cmd='func_win32_libid'
4061  else
4062    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4063    lt_cv_file_magic_cmd='$OBJDUMP -f'
4064  fi
4065  ;;
4066
4067darwin* | rhapsody*)
4068  lt_cv_deplibs_check_method=pass_all
4069  ;;
4070
4071freebsd* | dragonfly*)
4072  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4073    case $host_cpu in
4074    i*86 )
4075      # Not sure whether the presence of OpenBSD here was a mistake.
4076      # Let's accept both of them until this is cleared up.
4077      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4078      lt_cv_file_magic_cmd=/usr/bin/file
4079      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4080      ;;
4081    esac
4082  else
4083    lt_cv_deplibs_check_method=pass_all
4084  fi
4085  ;;
4086
4087gnu*)
4088  lt_cv_deplibs_check_method=pass_all
4089  ;;
4090
4091hpux10.20* | hpux11*)
4092  lt_cv_file_magic_cmd=/usr/bin/file
4093  case $host_cpu in
4094  ia64*)
4095    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4096    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4097    ;;
4098  hppa*64*)
4099    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4100    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4101    ;;
4102  *)
4103    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4104    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4105    ;;
4106  esac
4107  ;;
4108
4109interix[3-9]*)
4110  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4111  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4112  ;;
4113
4114irix5* | irix6* | nonstopux*)
4115  case $LD in
4116  *-32|*"-32 ") libmagic=32-bit;;
4117  *-n32|*"-n32 ") libmagic=N32;;
4118  *-64|*"-64 ") libmagic=64-bit;;
4119  *) libmagic=never-match;;
4120  esac
4121  lt_cv_deplibs_check_method=pass_all
4122  ;;
4123
4124# This must be Linux ELF.
4125linux* | k*bsd*-gnu)
4126  lt_cv_deplibs_check_method=pass_all
4127  ;;
4128
4129netbsd*)
4130  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4131    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4132  else
4133    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4134  fi
4135  ;;
4136
4137newos6*)
4138  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4139  lt_cv_file_magic_cmd=/usr/bin/file
4140  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4141  ;;
4142
4143*nto* | *qnx*)
4144  lt_cv_deplibs_check_method=pass_all
4145  ;;
4146
4147openbsd*)
4148  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4149    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4150  else
4151    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4152  fi
4153  ;;
4154
4155osf3* | osf4* | osf5*)
4156  lt_cv_deplibs_check_method=pass_all
4157  ;;
4158
4159rdos*)
4160  lt_cv_deplibs_check_method=pass_all
4161  ;;
4162
4163solaris*)
4164  lt_cv_deplibs_check_method=pass_all
4165  ;;
4166
4167sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4168  lt_cv_deplibs_check_method=pass_all
4169  ;;
4170
4171sysv4 | sysv4.3*)
4172  case $host_vendor in
4173  motorola)
4174    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]'
4175    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4176    ;;
4177  ncr)
4178    lt_cv_deplibs_check_method=pass_all
4179    ;;
4180  sequent)
4181    lt_cv_file_magic_cmd='/bin/file'
4182    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4183    ;;
4184  sni)
4185    lt_cv_file_magic_cmd='/bin/file'
4186    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4187    lt_cv_file_magic_test_file=/lib/libc.so
4188    ;;
4189  siemens)
4190    lt_cv_deplibs_check_method=pass_all
4191    ;;
4192  pc)
4193    lt_cv_deplibs_check_method=pass_all
4194    ;;
4195  esac
4196  ;;
4197
4198tpf*)
4199  lt_cv_deplibs_check_method=pass_all
4200  ;;
4201esac
4202
4203fi
4204echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4205echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4206file_magic_cmd=$lt_cv_file_magic_cmd
4207deplibs_check_method=$lt_cv_deplibs_check_method
4208test -z "$deplibs_check_method" && deplibs_check_method=unknown
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221if test -n "$ac_tool_prefix"; then
4222  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4223set dummy ${ac_tool_prefix}ar; ac_word=$2
4224echo "$as_me:$LINENO: checking for $ac_word" >&5
4225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226if test "${ac_cv_prog_AR+set}" = set; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  if test -n "$AR"; then
4230  ac_cv_prog_AR="$AR" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235  IFS=$as_save_IFS
4236  test -z "$as_dir" && as_dir=.
4237  for ac_exec_ext in '' $ac_executable_extensions; do
4238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239    ac_cv_prog_AR="${ac_tool_prefix}ar"
4240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241    break 2
4242  fi
4243done
4244done
4245
4246fi
4247fi
4248AR=$ac_cv_prog_AR
4249if test -n "$AR"; then
4250  echo "$as_me:$LINENO: result: $AR" >&5
4251echo "${ECHO_T}$AR" >&6
4252else
4253  echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
4255fi
4256
4257fi
4258if test -z "$ac_cv_prog_AR"; then
4259  ac_ct_AR=$AR
4260  # Extract the first word of "ar", so it can be a program name with args.
4261set dummy ar; ac_word=$2
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  if test -n "$ac_ct_AR"; then
4268  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273  IFS=$as_save_IFS
4274  test -z "$as_dir" && as_dir=.
4275  for ac_exec_ext in '' $ac_executable_extensions; do
4276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277    ac_cv_prog_ac_ct_AR="ar"
4278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279    break 2
4280  fi
4281done
4282done
4283
4284  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4285fi
4286fi
4287ac_ct_AR=$ac_cv_prog_ac_ct_AR
4288if test -n "$ac_ct_AR"; then
4289  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4290echo "${ECHO_T}$ac_ct_AR" >&6
4291else
4292  echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294fi
4295
4296  AR=$ac_ct_AR
4297else
4298  AR="$ac_cv_prog_AR"
4299fi
4300
4301test -z "$AR" && AR=ar
4302test -z "$AR_FLAGS" && AR_FLAGS=cru
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314if test -n "$ac_tool_prefix"; then
4315  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4316set dummy ${ac_tool_prefix}strip; ac_word=$2
4317echo "$as_me:$LINENO: checking for $ac_word" >&5
4318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319if test "${ac_cv_prog_STRIP+set}" = set; then
4320  echo $ECHO_N "(cached) $ECHO_C" >&6
4321else
4322  if test -n "$STRIP"; then
4323  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328  IFS=$as_save_IFS
4329  test -z "$as_dir" && as_dir=.
4330  for ac_exec_ext in '' $ac_executable_extensions; do
4331  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334    break 2
4335  fi
4336done
4337done
4338
4339fi
4340fi
4341STRIP=$ac_cv_prog_STRIP
4342if test -n "$STRIP"; then
4343  echo "$as_me:$LINENO: result: $STRIP" >&5
4344echo "${ECHO_T}$STRIP" >&6
4345else
4346  echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
4348fi
4349
4350fi
4351if test -z "$ac_cv_prog_STRIP"; then
4352  ac_ct_STRIP=$STRIP
4353  # Extract the first word of "strip", so it can be a program name with args.
4354set dummy strip; ac_word=$2
4355echo "$as_me:$LINENO: checking for $ac_word" >&5
4356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358  echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360  if test -n "$ac_ct_STRIP"; then
4361  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368  for ac_exec_ext in '' $ac_executable_extensions; do
4369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370    ac_cv_prog_ac_ct_STRIP="strip"
4371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372    break 2
4373  fi
4374done
4375done
4376
4377  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4378fi
4379fi
4380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381if test -n "$ac_ct_STRIP"; then
4382  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383echo "${ECHO_T}$ac_ct_STRIP" >&6
4384else
4385  echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
4387fi
4388
4389  STRIP=$ac_ct_STRIP
4390else
4391  STRIP="$ac_cv_prog_STRIP"
4392fi
4393
4394test -z "$STRIP" && STRIP=:
4395
4396
4397
4398
4399
4400
4401if test -n "$ac_tool_prefix"; then
4402  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4403set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4404echo "$as_me:$LINENO: checking for $ac_word" >&5
4405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4406if test "${ac_cv_prog_RANLIB+set}" = set; then
4407  echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409  if test -n "$RANLIB"; then
4410  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415  IFS=$as_save_IFS
4416  test -z "$as_dir" && as_dir=.
4417  for ac_exec_ext in '' $ac_executable_extensions; do
4418  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421    break 2
4422  fi
4423done
4424done
4425
4426fi
4427fi
4428RANLIB=$ac_cv_prog_RANLIB
4429if test -n "$RANLIB"; then
4430  echo "$as_me:$LINENO: result: $RANLIB" >&5
4431echo "${ECHO_T}$RANLIB" >&6
4432else
4433  echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6
4435fi
4436
4437fi
4438if test -z "$ac_cv_prog_RANLIB"; then
4439  ac_ct_RANLIB=$RANLIB
4440  # Extract the first word of "ranlib", so it can be a program name with args.
4441set dummy ranlib; ac_word=$2
4442echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  if test -n "$ac_ct_RANLIB"; then
4448  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455  for ac_exec_ext in '' $ac_executable_extensions; do
4456  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457    ac_cv_prog_ac_ct_RANLIB="ranlib"
4458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462done
4463
4464  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4465fi
4466fi
4467ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4468if test -n "$ac_ct_RANLIB"; then
4469  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4470echo "${ECHO_T}$ac_ct_RANLIB" >&6
4471else
4472  echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
4474fi
4475
4476  RANLIB=$ac_ct_RANLIB
4477else
4478  RANLIB="$ac_cv_prog_RANLIB"
4479fi
4480
4481test -z "$RANLIB" && RANLIB=:
4482
4483
4484
4485
4486
4487
4488# Determine commands to create old-style static archives.
4489old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4490old_postinstall_cmds='chmod 644 $oldlib'
4491old_postuninstall_cmds=
4492
4493if test -n "$RANLIB"; then
4494  case $host_os in
4495  openbsd*)
4496    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4497    ;;
4498  *)
4499    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4500    ;;
4501  esac
4502  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4503fi
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538# If no C compiler was specified, use CC.
4539LTCC=${LTCC-"$CC"}
4540
4541# If no C compiler flags were specified, use CFLAGS.
4542LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4543
4544# Allow CC to be a program name with arguments.
4545compiler=$CC
4546
4547
4548# Check for command to grab the raw symbol name followed by C symbol from nm.
4549echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4550echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4551if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554
4555# These are sane defaults that work on at least a few old systems.
4556# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4557
4558# Character class describing NM global symbol codes.
4559symcode='[BCDEGRST]'
4560
4561# Regexp to match symbols that can be accessed directly from C.
4562sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4563
4564# Define system-specific variables.
4565case $host_os in
4566aix*)
4567  symcode='[BCDT]'
4568  ;;
4569cygwin* | mingw* | pw32*)
4570  symcode='[ABCDGISTW]'
4571  ;;
4572hpux*)
4573  if test "$host_cpu" = ia64; then
4574    symcode='[ABCDEGRST]'
4575  fi
4576  ;;
4577irix* | nonstopux*)
4578  symcode='[BCDEGRST]'
4579  ;;
4580osf*)
4581  symcode='[BCDEGQRST]'
4582  ;;
4583solaris*)
4584  symcode='[BDRT]'
4585  ;;
4586sco3.2v5*)
4587  symcode='[DT]'
4588  ;;
4589sysv4.2uw2*)
4590  symcode='[DT]'
4591  ;;
4592sysv5* | sco5v6* | unixware* | OpenUNIX*)
4593  symcode='[ABDT]'
4594  ;;
4595sysv4)
4596  symcode='[DFNSTU]'
4597  ;;
4598esac
4599
4600# If we're using GNU nm, then use its standard symbol codes.
4601case `$NM -V 2>&1` in
4602*GNU* | *'with BFD'*)
4603  symcode='[ABCDGIRSTW]' ;;
4604esac
4605
4606# Transform an extracted symbol line into a proper C declaration.
4607# Some systems (esp. on ia64) link data and code symbols differently,
4608# so use this general approach.
4609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4610
4611# Transform an extracted symbol line into symbol name and symbol address
4612lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4613
4614# Handle CRLF in mingw tool chain
4615opt_cr=
4616case $build_os in
4617mingw*)
4618  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4619  ;;
4620esac
4621
4622# Try without a prefix underscore, then with it.
4623for ac_symprfx in "" "_"; do
4624
4625  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4626  symxfrm="\\1 $ac_symprfx\\2 \\2"
4627
4628  # Write the raw and C identifiers.
4629  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4630    # Fake it for dumpbin and say T for any non-static function
4631    # and D for any global variable.
4632    # Also find C++ and __fastcall symbols from MSVC++,
4633    # which start with @ or ?.
4634    lt_cv_sys_global_symbol_pipe="$AWK '"\
4635"     {last_section=section; section=\$ 3};"\
4636"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4637"     \$ 0!~/External *\|/{next};"\
4638"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4639"     {if(hide[section]) next};"\
4640"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4641"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4642"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4643"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4644"     ' prfx=^$ac_symprfx"
4645  else
4646    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4647  fi
4648
4649  # Check to see that the pipe works correctly.
4650  pipe_works=no
4651
4652  rm -f conftest*
4653  cat > conftest.$ac_ext <<_LT_EOF
4654#ifdef __cplusplus
4655extern "C" {
4656#endif
4657char nm_test_var;
4658void nm_test_func(void);
4659void nm_test_func(void){}
4660#ifdef __cplusplus
4661}
4662#endif
4663int main(){nm_test_var='a';nm_test_func();return(0);}
4664_LT_EOF
4665
4666  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667  (eval $ac_compile) 2>&5
4668  ac_status=$?
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); }; then
4671    # Now try to grab the symbols.
4672    nlist=conftest.nm
4673    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4674  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); } && test -s "$nlist"; then
4678      # Try sorting and uniquifying the output.
4679      if sort "$nlist" | uniq > "$nlist"T; then
4680	mv -f "$nlist"T "$nlist"
4681      else
4682	rm -f "$nlist"T
4683      fi
4684
4685      # Make sure that we snagged all the symbols we need.
4686      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4687	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4688	  cat <<_LT_EOF > conftest.$ac_ext
4689#ifdef __cplusplus
4690extern "C" {
4691#endif
4692
4693_LT_EOF
4694	  # Now generate the symbol file.
4695	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4696
4697	  cat <<_LT_EOF >> conftest.$ac_ext
4698
4699/* The mapping between symbol names and symbols.  */
4700const struct {
4701  const char *name;
4702  void       *address;
4703}
4704lt__PROGRAM__LTX_preloaded_symbols[] =
4705{
4706  { "@PROGRAM@", (void *) 0 },
4707_LT_EOF
4708	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4709	  cat <<\_LT_EOF >> conftest.$ac_ext
4710  {0, (void *) 0}
4711};
4712
4713/* This works around a problem in FreeBSD linker */
4714#ifdef FREEBSD_WORKAROUND
4715static const void *lt_preloaded_setup() {
4716  return lt__PROGRAM__LTX_preloaded_symbols;
4717}
4718#endif
4719
4720#ifdef __cplusplus
4721}
4722#endif
4723_LT_EOF
4724	  # Now try linking the two files.
4725	  mv conftest.$ac_objext conftstm.$ac_objext
4726	  lt_save_LIBS="$LIBS"
4727	  lt_save_CFLAGS="$CFLAGS"
4728	  LIBS="conftstm.$ac_objext"
4729	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4730	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4731  (eval $ac_link) 2>&5
4732  ac_status=$?
4733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4735	    pipe_works=yes
4736	  fi
4737	  LIBS="$lt_save_LIBS"
4738	  CFLAGS="$lt_save_CFLAGS"
4739	else
4740	  echo "cannot find nm_test_func in $nlist" >&5
4741	fi
4742      else
4743	echo "cannot find nm_test_var in $nlist" >&5
4744      fi
4745    else
4746      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4747    fi
4748  else
4749    echo "$progname: failed program was:" >&5
4750    cat conftest.$ac_ext >&5
4751  fi
4752  rm -f conftest* conftst*
4753
4754  # Do not use the global_symbol_pipe unless it works.
4755  if test "$pipe_works" = yes; then
4756    break
4757  else
4758    lt_cv_sys_global_symbol_pipe=
4759  fi
4760done
4761
4762fi
4763
4764if test -z "$lt_cv_sys_global_symbol_pipe"; then
4765  lt_cv_sys_global_symbol_to_cdecl=
4766fi
4767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4768  echo "$as_me:$LINENO: result: failed" >&5
4769echo "${ECHO_T}failed" >&6
4770else
4771  echo "$as_me:$LINENO: result: ok" >&5
4772echo "${ECHO_T}ok" >&6
4773fi
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4792if test "${enable_libtool_lock+set}" = set; then
4793  enableval="$enable_libtool_lock"
4794
4795fi;
4796test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4797
4798# Some flags need to be propagated to the compiler or linker for good
4799# libtool support.
4800case $host in
4801ia64-*-hpux*)
4802  # Find out which ABI we are using.
4803  echo 'int i;' > conftest.$ac_ext
4804  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805  (eval $ac_compile) 2>&5
4806  ac_status=$?
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); }; then
4809    case `/usr/bin/file conftest.$ac_objext` in
4810      *ELF-32*)
4811	HPUX_IA64_MODE="32"
4812	;;
4813      *ELF-64*)
4814	HPUX_IA64_MODE="64"
4815	;;
4816    esac
4817  fi
4818  rm -rf conftest*
4819  ;;
4820*-*-irix6*)
4821  # Find out which ABI we are using.
4822  echo '#line 4822 "configure"' > conftest.$ac_ext
4823  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824  (eval $ac_compile) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); }; then
4828    if test "$lt_cv_prog_gnu_ld" = yes; then
4829      case `/usr/bin/file conftest.$ac_objext` in
4830	*32-bit*)
4831	  LD="${LD-ld} -melf32bsmip"
4832	  ;;
4833	*N32*)
4834	  LD="${LD-ld} -melf32bmipn32"
4835	  ;;
4836	*64-bit*)
4837	  LD="${LD-ld} -melf64bmip"
4838	;;
4839      esac
4840    else
4841      case `/usr/bin/file conftest.$ac_objext` in
4842	*32-bit*)
4843	  LD="${LD-ld} -32"
4844	  ;;
4845	*N32*)
4846	  LD="${LD-ld} -n32"
4847	  ;;
4848	*64-bit*)
4849	  LD="${LD-ld} -64"
4850	  ;;
4851      esac
4852    fi
4853  fi
4854  rm -rf conftest*
4855  ;;
4856
4857x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4858s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4859  # Find out which ABI we are using.
4860  echo 'int i;' > conftest.$ac_ext
4861  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862  (eval $ac_compile) 2>&5
4863  ac_status=$?
4864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); }; then
4866    case `/usr/bin/file conftest.o` in
4867      *32-bit*)
4868	case $host in
4869	  x86_64-*kfreebsd*-gnu)
4870	    LD="${LD-ld} -m elf_i386_fbsd"
4871	    ;;
4872	  x86_64-*linux*)
4873	    LD="${LD-ld} -m elf_i386"
4874	    ;;
4875	  ppc64-*linux*|powerpc64-*linux*)
4876	    LD="${LD-ld} -m elf32ppclinux"
4877	    ;;
4878	  s390x-*linux*)
4879	    LD="${LD-ld} -m elf_s390"
4880	    ;;
4881	  sparc64-*linux*)
4882	    LD="${LD-ld} -m elf32_sparc"
4883	    ;;
4884	esac
4885	;;
4886      *64-bit*)
4887	case $host in
4888	  x86_64-*kfreebsd*-gnu)
4889	    LD="${LD-ld} -m elf_x86_64_fbsd"
4890	    ;;
4891	  x86_64-*linux*)
4892	    LD="${LD-ld} -m elf_x86_64"
4893	    ;;
4894	  ppc*-*linux*|powerpc*-*linux*)
4895	    LD="${LD-ld} -m elf64ppc"
4896	    ;;
4897	  s390*-*linux*|s390*-*tpf*)
4898	    LD="${LD-ld} -m elf64_s390"
4899	    ;;
4900	  sparc*-*linux*)
4901	    LD="${LD-ld} -m elf64_sparc"
4902	    ;;
4903	esac
4904	;;
4905    esac
4906  fi
4907  rm -rf conftest*
4908  ;;
4909
4910*-*-sco3.2v5*)
4911  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4912  SAVE_CFLAGS="$CFLAGS"
4913  CFLAGS="$CFLAGS -belf"
4914  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4915echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4916if test "${lt_cv_cc_needs_belf+set}" = set; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919  ac_ext=c
4920ac_cpp='$CPP $CPPFLAGS'
4921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925     cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931
4932int
4933main ()
4934{
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940rm -f conftest.$ac_objext conftest$ac_exeext
4941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4942  (eval $ac_link) 2>conftest.er1
4943  ac_status=$?
4944  grep -v '^ *+' conftest.er1 >conftest.err
4945  rm -f conftest.er1
4946  cat conftest.err >&5
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); } &&
4949	 { ac_try='test -z "$ac_c_werror_flag"
4950			 || test ! -s conftest.err'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; } &&
4956	 { ac_try='test -s conftest$ac_exeext'
4957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958  (eval $ac_try) 2>&5
4959  ac_status=$?
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); }; }; then
4962  lt_cv_cc_needs_belf=yes
4963else
4964  echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967lt_cv_cc_needs_belf=no
4968fi
4969rm -f conftest.err conftest.$ac_objext \
4970      conftest$ac_exeext conftest.$ac_ext
4971     ac_ext=c
4972ac_cpp='$CPP $CPPFLAGS'
4973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977fi
4978echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4979echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4980  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4981    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4982    CFLAGS="$SAVE_CFLAGS"
4983  fi
4984  ;;
4985sparc*-*solaris*)
4986  # Find out which ABI we are using.
4987  echo 'int i;' > conftest.$ac_ext
4988  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989  (eval $ac_compile) 2>&5
4990  ac_status=$?
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); }; then
4993    case `/usr/bin/file conftest.o` in
4994    *64-bit*)
4995      case $lt_cv_prog_gnu_ld in
4996      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4997      *)    LD="${LD-ld} -64" ;;
4998      esac
4999      ;;
5000    esac
5001  fi
5002  rm -rf conftest*
5003  ;;
5004esac
5005
5006need_locks="$enable_libtool_lock"
5007
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5015# On Suns, sometimes $CPP names a directory.
5016if test -n "$CPP" && test -d "$CPP"; then
5017  CPP=
5018fi
5019if test -z "$CPP"; then
5020  if test "${ac_cv_prog_CPP+set}" = set; then
5021  echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023      # Double quotes because CPP needs to be expanded
5024    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5025    do
5026      ac_preproc_ok=false
5027for ac_c_preproc_warn_flag in '' yes
5028do
5029  # Use a header file that comes with gcc, so configuring glibc
5030  # with a fresh cross-compiler works.
5031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032  # <limits.h> exists even on freestanding compilers.
5033  # On the NeXT, cc -E runs the code through the compiler's parser,
5034  # not just through cpp. "Syntax error" is here to catch this case.
5035  cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h.  */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h.  */
5041#ifdef __STDC__
5042# include <limits.h>
5043#else
5044# include <assert.h>
5045#endif
5046		     Syntax error
5047_ACEOF
5048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050  ac_status=$?
5051  grep -v '^ *+' conftest.er1 >conftest.err
5052  rm -f conftest.er1
5053  cat conftest.err >&5
5054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); } >/dev/null; then
5056  if test -s conftest.err; then
5057    ac_cpp_err=$ac_c_preproc_warn_flag
5058    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5059  else
5060    ac_cpp_err=
5061  fi
5062else
5063  ac_cpp_err=yes
5064fi
5065if test -z "$ac_cpp_err"; then
5066  :
5067else
5068  echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071  # Broken: fails on valid input.
5072continue
5073fi
5074rm -f conftest.err conftest.$ac_ext
5075
5076  # OK, works on sane cases.  Now check whether non-existent headers
5077  # can be detected and how.
5078  cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h.  */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h.  */
5084#include <ac_nonexistent.h>
5085_ACEOF
5086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5088  ac_status=$?
5089  grep -v '^ *+' conftest.er1 >conftest.err
5090  rm -f conftest.er1
5091  cat conftest.err >&5
5092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093  (exit $ac_status); } >/dev/null; then
5094  if test -s conftest.err; then
5095    ac_cpp_err=$ac_c_preproc_warn_flag
5096    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5097  else
5098    ac_cpp_err=
5099  fi
5100else
5101  ac_cpp_err=yes
5102fi
5103if test -z "$ac_cpp_err"; then
5104  # Broken: success on invalid input.
5105continue
5106else
5107  echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110  # Passes both tests.
5111ac_preproc_ok=:
5112break
5113fi
5114rm -f conftest.err conftest.$ac_ext
5115
5116done
5117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5118rm -f conftest.err conftest.$ac_ext
5119if $ac_preproc_ok; then
5120  break
5121fi
5122
5123    done
5124    ac_cv_prog_CPP=$CPP
5125
5126fi
5127  CPP=$ac_cv_prog_CPP
5128else
5129  ac_cv_prog_CPP=$CPP
5130fi
5131echo "$as_me:$LINENO: result: $CPP" >&5
5132echo "${ECHO_T}$CPP" >&6
5133ac_preproc_ok=false
5134for ac_c_preproc_warn_flag in '' yes
5135do
5136  # Use a header file that comes with gcc, so configuring glibc
5137  # with a fresh cross-compiler works.
5138  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139  # <limits.h> exists even on freestanding compilers.
5140  # On the NeXT, cc -E runs the code through the compiler's parser,
5141  # not just through cpp. "Syntax error" is here to catch this case.
5142  cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h.  */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h.  */
5148#ifdef __STDC__
5149# include <limits.h>
5150#else
5151# include <assert.h>
5152#endif
5153		     Syntax error
5154_ACEOF
5155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5156  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5157  ac_status=$?
5158  grep -v '^ *+' conftest.er1 >conftest.err
5159  rm -f conftest.er1
5160  cat conftest.err >&5
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); } >/dev/null; then
5163  if test -s conftest.err; then
5164    ac_cpp_err=$ac_c_preproc_warn_flag
5165    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166  else
5167    ac_cpp_err=
5168  fi
5169else
5170  ac_cpp_err=yes
5171fi
5172if test -z "$ac_cpp_err"; then
5173  :
5174else
5175  echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
5178  # Broken: fails on valid input.
5179continue
5180fi
5181rm -f conftest.err conftest.$ac_ext
5182
5183  # OK, works on sane cases.  Now check whether non-existent headers
5184  # can be detected and how.
5185  cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h.  */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h.  */
5191#include <ac_nonexistent.h>
5192_ACEOF
5193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5194  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5195  ac_status=$?
5196  grep -v '^ *+' conftest.er1 >conftest.err
5197  rm -f conftest.er1
5198  cat conftest.err >&5
5199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200  (exit $ac_status); } >/dev/null; then
5201  if test -s conftest.err; then
5202    ac_cpp_err=$ac_c_preproc_warn_flag
5203    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5204  else
5205    ac_cpp_err=
5206  fi
5207else
5208  ac_cpp_err=yes
5209fi
5210if test -z "$ac_cpp_err"; then
5211  # Broken: success on invalid input.
5212continue
5213else
5214  echo "$as_me: failed program was:" >&5
5215sed 's/^/| /' conftest.$ac_ext >&5
5216
5217  # Passes both tests.
5218ac_preproc_ok=:
5219break
5220fi
5221rm -f conftest.err conftest.$ac_ext
5222
5223done
5224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5225rm -f conftest.err conftest.$ac_ext
5226if $ac_preproc_ok; then
5227  :
5228else
5229  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5230See \`config.log' for more details." >&5
5231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5232See \`config.log' for more details." >&2;}
5233   { (exit 1); exit 1; }; }
5234fi
5235
5236ac_ext=c
5237ac_cpp='$CPP $CPPFLAGS'
5238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241
5242
5243echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5244echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5245if test "${ac_cv_header_stdc+set}" = set; then
5246  echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248  cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h.  */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h.  */
5254#include <stdlib.h>
5255#include <stdarg.h>
5256#include <string.h>
5257#include <float.h>
5258
5259int
5260main ()
5261{
5262
5263  ;
5264  return 0;
5265}
5266_ACEOF
5267rm -f conftest.$ac_objext
5268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269  (eval $ac_compile) 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } &&
5276	 { ac_try='test -z "$ac_c_werror_flag"
5277			 || test ! -s conftest.err'
5278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279  (eval $ac_try) 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }; } &&
5283	 { ac_try='test -s conftest.$ac_objext'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; }; then
5289  ac_cv_header_stdc=yes
5290else
5291  echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294ac_cv_header_stdc=no
5295fi
5296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297
5298if test $ac_cv_header_stdc = yes; then
5299  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300  cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h.  */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h.  */
5306#include <string.h>
5307
5308_ACEOF
5309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310  $EGREP "memchr" >/dev/null 2>&1; then
5311  :
5312else
5313  ac_cv_header_stdc=no
5314fi
5315rm -f conftest*
5316
5317fi
5318
5319if test $ac_cv_header_stdc = yes; then
5320  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5321  cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h.  */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h.  */
5327#include <stdlib.h>
5328
5329_ACEOF
5330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331  $EGREP "free" >/dev/null 2>&1; then
5332  :
5333else
5334  ac_cv_header_stdc=no
5335fi
5336rm -f conftest*
5337
5338fi
5339
5340if test $ac_cv_header_stdc = yes; then
5341  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342  if test "$cross_compiling" = yes; then
5343  :
5344else
5345  cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h.  */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h.  */
5351#include <ctype.h>
5352#if ((' ' & 0x0FF) == 0x020)
5353# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5354# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5355#else
5356# define ISLOWER(c) \
5357		   (('a' <= (c) && (c) <= 'i') \
5358		     || ('j' <= (c) && (c) <= 'r') \
5359		     || ('s' <= (c) && (c) <= 'z'))
5360# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5361#endif
5362
5363#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5364int
5365main ()
5366{
5367  int i;
5368  for (i = 0; i < 256; i++)
5369    if (XOR (islower (i), ISLOWER (i))
5370	|| toupper (i) != TOUPPER (i))
5371      exit(2);
5372  exit (0);
5373}
5374_ACEOF
5375rm -f conftest$ac_exeext
5376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377  (eval $ac_link) 2>&5
5378  ac_status=$?
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382  (eval $ac_try) 2>&5
5383  ac_status=$?
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); }; }; then
5386  :
5387else
5388  echo "$as_me: program exited with status $ac_status" >&5
5389echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392( exit $ac_status )
5393ac_cv_header_stdc=no
5394fi
5395rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5396fi
5397fi
5398fi
5399echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5400echo "${ECHO_T}$ac_cv_header_stdc" >&6
5401if test $ac_cv_header_stdc = yes; then
5402
5403cat >>confdefs.h <<\_ACEOF
5404#define STDC_HEADERS 1
5405_ACEOF
5406
5407fi
5408
5409# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5420		  inttypes.h stdint.h unistd.h
5421do
5422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423echo "$as_me:$LINENO: checking for $ac_header" >&5
5424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h.  */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h.  */
5434$ac_includes_default
5435
5436#include <$ac_header>
5437_ACEOF
5438rm -f conftest.$ac_objext
5439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440  (eval $ac_compile) 2>conftest.er1
5441  ac_status=$?
5442  grep -v '^ *+' conftest.er1 >conftest.err
5443  rm -f conftest.er1
5444  cat conftest.err >&5
5445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); } &&
5447	 { ac_try='test -z "$ac_c_werror_flag"
5448			 || test ! -s conftest.err'
5449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450  (eval $ac_try) 2>&5
5451  ac_status=$?
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); }; } &&
5454	 { ac_try='test -s conftest.$ac_objext'
5455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456  (eval $ac_try) 2>&5
5457  ac_status=$?
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); }; }; then
5460  eval "$as_ac_Header=yes"
5461else
5462  echo "$as_me: failed program was:" >&5
5463sed 's/^/| /' conftest.$ac_ext >&5
5464
5465eval "$as_ac_Header=no"
5466fi
5467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468fi
5469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5471if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472  cat >>confdefs.h <<_ACEOF
5473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474_ACEOF
5475
5476fi
5477
5478done
5479
5480
5481
5482for ac_header in dlfcn.h
5483do
5484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485echo "$as_me:$LINENO: checking for $ac_header" >&5
5486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5487if eval "test \"\${$as_ac_Header+set}\" = set"; then
5488  echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490  cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496$ac_includes_default
5497
5498#include <$ac_header>
5499_ACEOF
5500rm -f conftest.$ac_objext
5501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502  (eval $ac_compile) 2>conftest.er1
5503  ac_status=$?
5504  grep -v '^ *+' conftest.er1 >conftest.err
5505  rm -f conftest.er1
5506  cat conftest.err >&5
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); } &&
5509	 { ac_try='test -z "$ac_c_werror_flag"
5510			 || test ! -s conftest.err'
5511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512  (eval $ac_try) 2>&5
5513  ac_status=$?
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); }; } &&
5516	 { ac_try='test -s conftest.$ac_objext'
5517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518  (eval $ac_try) 2>&5
5519  ac_status=$?
5520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521  (exit $ac_status); }; }; then
5522  eval "$as_ac_Header=yes"
5523else
5524  echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527eval "$as_ac_Header=no"
5528fi
5529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530fi
5531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534  cat >>confdefs.h <<_ACEOF
5535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536_ACEOF
5537
5538fi
5539
5540done
5541
5542
5543
5544# This can be used to rebuild libtool when needed
5545LIBTOOL_DEPS="$ltmain"
5546
5547# Always use our own libtool.
5548LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574test -z "$LN_S" && LN_S="ln -s"
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589if test -n "${ZSH_VERSION+set}" ; then
5590   setopt NO_GLOB_SUBST
5591fi
5592
5593echo "$as_me:$LINENO: checking for objdir" >&5
5594echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5595if test "${lt_cv_objdir+set}" = set; then
5596  echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598  rm -f .libs 2>/dev/null
5599mkdir .libs 2>/dev/null
5600if test -d .libs; then
5601  lt_cv_objdir=.libs
5602else
5603  # MS-DOS does not allow filenames that begin with a dot.
5604  lt_cv_objdir=_libs
5605fi
5606rmdir .libs 2>/dev/null
5607fi
5608echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5609echo "${ECHO_T}$lt_cv_objdir" >&6
5610objdir=$lt_cv_objdir
5611
5612
5613
5614
5615
5616cat >>confdefs.h <<_ACEOF
5617#define LT_OBJDIR "$lt_cv_objdir/"
5618_ACEOF
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636case $host_os in
5637aix3*)
5638  # AIX sometimes has problems with the GCC collect2 program.  For some
5639  # reason, if we set the COLLECT_NAMES environment variable, the problems
5640  # vanish in a puff of smoke.
5641  if test "X${COLLECT_NAMES+set}" != Xset; then
5642    COLLECT_NAMES=
5643    export COLLECT_NAMES
5644  fi
5645  ;;
5646esac
5647
5648# Sed substitution that helps us do robust quoting.  It backslashifies
5649# metacharacters that are still active within double-quoted strings.
5650sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5651
5652# Same as above, but do not quote variable references.
5653double_quote_subst='s/\(["`\\]\)/\\\1/g'
5654
5655# Sed substitution to delay expansion of an escaped shell variable in a
5656# double_quote_subst'ed string.
5657delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5658
5659# Sed substitution to delay expansion of an escaped single quote.
5660delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5661
5662# Sed substitution to avoid accidental globbing in evaled expressions
5663no_glob_subst='s/\*/\\\*/g'
5664
5665# Global variables:
5666ofile=libtool
5667can_build_shared=yes
5668
5669# All known linkers require a `.a' archive for static linking (except MSVC,
5670# which needs '.lib').
5671libext=a
5672
5673with_gnu_ld="$lt_cv_prog_gnu_ld"
5674
5675old_CC="$CC"
5676old_CFLAGS="$CFLAGS"
5677
5678# Set sane defaults for various variables
5679test -z "$CC" && CC=cc
5680test -z "$LTCC" && LTCC=$CC
5681test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5682test -z "$LD" && LD=ld
5683test -z "$ac_objext" && ac_objext=o
5684
5685for cc_temp in $compiler""; do
5686  case $cc_temp in
5687    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5688    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5689    \-*) ;;
5690    *) break;;
5691  esac
5692done
5693cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5694
5695
5696# Only perform the check for file, if the check method requires it
5697test -z "$MAGIC_CMD" && MAGIC_CMD=file
5698case $deplibs_check_method in
5699file_magic*)
5700  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5701    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5702echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5703if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706  case $MAGIC_CMD in
5707[\\/*] |  ?:[\\/]*)
5708  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5709  ;;
5710*)
5711  lt_save_MAGIC_CMD="$MAGIC_CMD"
5712  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5714  for ac_dir in $ac_dummy; do
5715    IFS="$lt_save_ifs"
5716    test -z "$ac_dir" && ac_dir=.
5717    if test -f $ac_dir/${ac_tool_prefix}file; then
5718      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5719      if test -n "$file_magic_test_file"; then
5720	case $deplibs_check_method in
5721	"file_magic "*)
5722	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5723	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5724	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5725	    $EGREP "$file_magic_regex" > /dev/null; then
5726	    :
5727	  else
5728	    cat <<_LT_EOF 1>&2
5729
5730*** Warning: the command libtool uses to detect shared libraries,
5731*** $file_magic_cmd, produces output that libtool cannot recognize.
5732*** The result is that libtool may fail to recognize shared libraries
5733*** as such.  This will affect the creation of libtool libraries that
5734*** depend on shared libraries, but programs linked with such libtool
5735*** libraries will work regardless of this problem.  Nevertheless, you
5736*** may want to report the problem to your system manager and/or to
5737*** bug-libtool@gnu.org
5738
5739_LT_EOF
5740	  fi ;;
5741	esac
5742      fi
5743      break
5744    fi
5745  done
5746  IFS="$lt_save_ifs"
5747  MAGIC_CMD="$lt_save_MAGIC_CMD"
5748  ;;
5749esac
5750fi
5751
5752MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5753if test -n "$MAGIC_CMD"; then
5754  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5755echo "${ECHO_T}$MAGIC_CMD" >&6
5756else
5757  echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759fi
5760
5761
5762
5763
5764
5765if test -z "$lt_cv_path_MAGIC_CMD"; then
5766  if test -n "$ac_tool_prefix"; then
5767    echo "$as_me:$LINENO: checking for file" >&5
5768echo $ECHO_N "checking for file... $ECHO_C" >&6
5769if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  case $MAGIC_CMD in
5773[\\/*] |  ?:[\\/]*)
5774  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5775  ;;
5776*)
5777  lt_save_MAGIC_CMD="$MAGIC_CMD"
5778  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5780  for ac_dir in $ac_dummy; do
5781    IFS="$lt_save_ifs"
5782    test -z "$ac_dir" && ac_dir=.
5783    if test -f $ac_dir/file; then
5784      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5785      if test -n "$file_magic_test_file"; then
5786	case $deplibs_check_method in
5787	"file_magic "*)
5788	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5789	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5790	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5791	    $EGREP "$file_magic_regex" > /dev/null; then
5792	    :
5793	  else
5794	    cat <<_LT_EOF 1>&2
5795
5796*** Warning: the command libtool uses to detect shared libraries,
5797*** $file_magic_cmd, produces output that libtool cannot recognize.
5798*** The result is that libtool may fail to recognize shared libraries
5799*** as such.  This will affect the creation of libtool libraries that
5800*** depend on shared libraries, but programs linked with such libtool
5801*** libraries will work regardless of this problem.  Nevertheless, you
5802*** may want to report the problem to your system manager and/or to
5803*** bug-libtool@gnu.org
5804
5805_LT_EOF
5806	  fi ;;
5807	esac
5808      fi
5809      break
5810    fi
5811  done
5812  IFS="$lt_save_ifs"
5813  MAGIC_CMD="$lt_save_MAGIC_CMD"
5814  ;;
5815esac
5816fi
5817
5818MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5819if test -n "$MAGIC_CMD"; then
5820  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5821echo "${ECHO_T}$MAGIC_CMD" >&6
5822else
5823  echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825fi
5826
5827
5828  else
5829    MAGIC_CMD=:
5830  fi
5831fi
5832
5833  fi
5834  ;;
5835esac
5836
5837# Use C for the default configuration in the libtool script
5838
5839lt_save_CC="$CC"
5840ac_ext=c
5841ac_cpp='$CPP $CPPFLAGS'
5842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845
5846
5847# Source file extension for C test sources.
5848ac_ext=c
5849
5850# Object file extension for compiled C test sources.
5851objext=o
5852objext=$objext
5853
5854# Code to be used in simple compile tests
5855lt_simple_compile_test_code="int some_variable = 0;"
5856
5857# Code to be used in simple link tests
5858lt_simple_link_test_code='int main(){return(0);}'
5859
5860
5861
5862
5863
5864
5865
5866# If no C compiler was specified, use CC.
5867LTCC=${LTCC-"$CC"}
5868
5869# If no C compiler flags were specified, use CFLAGS.
5870LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5871
5872# Allow CC to be a program name with arguments.
5873compiler=$CC
5874
5875# Save the default compiler, since it gets overwritten when the other
5876# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5877compiler_DEFAULT=$CC
5878
5879# save warnings/boilerplate of simple test code
5880ac_outfile=conftest.$ac_objext
5881echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5882eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5883_lt_compiler_boilerplate=`cat conftest.err`
5884$RM conftest*
5885
5886ac_outfile=conftest.$ac_objext
5887echo "$lt_simple_link_test_code" >conftest.$ac_ext
5888eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5889_lt_linker_boilerplate=`cat conftest.err`
5890$RM conftest*
5891
5892
5893## CAVEAT EMPTOR:
5894## There is no encapsulation within the following macros, do not change
5895## the running order or otherwise move them around unless you know exactly
5896## what you are doing...
5897if test -n "$compiler"; then
5898
5899lt_prog_compiler_no_builtin_flag=
5900
5901if test "$GCC" = yes; then
5902  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5903
5904  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5905echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5906if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5907  echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909  lt_cv_prog_compiler_rtti_exceptions=no
5910   ac_outfile=conftest.$ac_objext
5911   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5912   lt_compiler_flag="-fno-rtti -fno-exceptions"
5913   # Insert the option either (1) after the last *FLAGS variable, or
5914   # (2) before a word containing "conftest.", or (3) at the end.
5915   # Note that $ac_compile itself does not contain backslashes and begins
5916   # with a dollar sign (not a hyphen), so the echo should work correctly.
5917   # The option is referenced via a variable to avoid confusing sed.
5918   lt_compile=`echo "$ac_compile" | $SED \
5919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5921   -e 's:$: $lt_compiler_flag:'`
5922   (eval echo "\"\$as_me:5922: $lt_compile\"" >&5)
5923   (eval "$lt_compile" 2>conftest.err)
5924   ac_status=$?
5925   cat conftest.err >&5
5926   echo "$as_me:5926: \$? = $ac_status" >&5
5927   if (exit $ac_status) && test -s "$ac_outfile"; then
5928     # The compiler can only warn and ignore the option if not recognized
5929     # So say no if there are warnings other than the usual output.
5930     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5931     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5932     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5933       lt_cv_prog_compiler_rtti_exceptions=yes
5934     fi
5935   fi
5936   $RM conftest*
5937
5938fi
5939echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5940echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5941
5942if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5943    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5944else
5945    :
5946fi
5947
5948fi
5949
5950
5951
5952
5953
5954
5955  lt_prog_compiler_wl=
5956lt_prog_compiler_pic=
5957lt_prog_compiler_static=
5958
5959echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5960echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5961
5962  if test "$GCC" = yes; then
5963    lt_prog_compiler_wl='-Wl,'
5964    lt_prog_compiler_static='-static'
5965
5966    case $host_os in
5967      aix*)
5968      # All AIX code is PIC.
5969      if test "$host_cpu" = ia64; then
5970	# AIX 5 now supports IA64 processor
5971	lt_prog_compiler_static='-Bstatic'
5972      fi
5973      ;;
5974
5975    amigaos*)
5976      if test "$host_cpu" = m68k; then
5977        # FIXME: we need at least 68020 code to build shared libraries, but
5978        # adding the `-m68020' flag to GCC prevents building anything better,
5979        # like `-m68040'.
5980        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5981      fi
5982      ;;
5983
5984    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5985      # PIC is the default for these OSes.
5986      ;;
5987
5988    mingw* | cygwin* | pw32* | os2*)
5989      # This hack is so that the source file can tell whether it is being
5990      # built for inclusion in a dll (and should export symbols for example).
5991      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5992      # (--disable-auto-import) libraries
5993      lt_prog_compiler_pic='-DDLL_EXPORT'
5994      ;;
5995
5996    darwin* | rhapsody*)
5997      # PIC is the default on this platform
5998      # Common symbols not allowed in MH_DYLIB files
5999      lt_prog_compiler_pic='-fno-common'
6000      ;;
6001
6002    hpux*)
6003      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6004      # not for PA HP-UX.
6005      case $host_cpu in
6006      hppa*64*|ia64*)
6007	# +Z the default
6008	;;
6009      *)
6010	lt_prog_compiler_pic='-fPIC'
6011	;;
6012      esac
6013      ;;
6014
6015    interix[3-9]*)
6016      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6017      # Instead, we relocate shared libraries at runtime.
6018      ;;
6019
6020    msdosdjgpp*)
6021      # Just because we use GCC doesn't mean we suddenly get shared libraries
6022      # on systems that don't support them.
6023      lt_prog_compiler_can_build_shared=no
6024      enable_shared=no
6025      ;;
6026
6027    *nto* | *qnx*)
6028      # QNX uses GNU C++, but need to define -shared option too, otherwise
6029      # it will coredump.
6030      lt_prog_compiler_pic='-fPIC -shared'
6031      ;;
6032
6033    sysv4*MP*)
6034      if test -d /usr/nec; then
6035	lt_prog_compiler_pic=-Kconform_pic
6036      fi
6037      ;;
6038
6039    *)
6040      lt_prog_compiler_pic='-fPIC'
6041      ;;
6042    esac
6043  else
6044    # PORTME Check for flag to pass linker flags through the system compiler.
6045    case $host_os in
6046    aix*)
6047      lt_prog_compiler_wl='-Wl,'
6048      if test "$host_cpu" = ia64; then
6049	# AIX 5 now supports IA64 processor
6050	lt_prog_compiler_static='-Bstatic'
6051      else
6052	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6053      fi
6054      ;;
6055    darwin*)
6056      # PIC is the default on this platform
6057      # Common symbols not allowed in MH_DYLIB files
6058      case $cc_basename in
6059      xlc*)
6060        lt_prog_compiler_pic='-qnocommon'
6061        lt_prog_compiler_wl='-Wl,'
6062        ;;
6063      esac
6064      ;;
6065
6066    mingw* | cygwin* | pw32* | os2*)
6067      # This hack is so that the source file can tell whether it is being
6068      # built for inclusion in a dll (and should export symbols for example).
6069      lt_prog_compiler_pic='-DDLL_EXPORT'
6070      ;;
6071
6072    hpux9* | hpux10* | hpux11*)
6073      lt_prog_compiler_wl='-Wl,'
6074      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6075      # not for PA HP-UX.
6076      case $host_cpu in
6077      hppa*64*|ia64*)
6078	# +Z the default
6079	;;
6080      *)
6081	lt_prog_compiler_pic='+Z'
6082	;;
6083      esac
6084      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6085      lt_prog_compiler_static='${wl}-a ${wl}archive'
6086      ;;
6087
6088    irix5* | irix6* | nonstopux*)
6089      lt_prog_compiler_wl='-Wl,'
6090      # PIC (with -KPIC) is the default.
6091      lt_prog_compiler_static='-non_shared'
6092      ;;
6093
6094    linux* | k*bsd*-gnu)
6095      case $cc_basename in
6096      icc* | ecc*)
6097	lt_prog_compiler_wl='-Wl,'
6098	lt_prog_compiler_pic='-KPIC'
6099	lt_prog_compiler_static='-static'
6100        ;;
6101      pgcc* | pgf77* | pgf90* | pgf95*)
6102        # Portland Group compilers (*not* the Pentium gcc compiler,
6103	# which looks to be a dead project)
6104	lt_prog_compiler_wl='-Wl,'
6105	lt_prog_compiler_pic='-fpic'
6106	lt_prog_compiler_static='-Bstatic'
6107        ;;
6108      ccc*)
6109        lt_prog_compiler_wl='-Wl,'
6110        # All Alpha code is PIC.
6111        lt_prog_compiler_static='-non_shared'
6112        ;;
6113      *)
6114	case `