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="ar.c"
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 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 HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR 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
1012  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1013  --enable-werror         treat compile warnings as errors
1014  --enable-build-warnings enable build-time compiler warnings
1015  --disable-nls           do not use Native Language Support
1016  --enable-maintainer-mode  enable make rules and dependencies not useful
1017			  (and sometimes confusing) to the casual installer
1018  --disable-rpath         do not hardcode runtime library paths
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  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1027  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1028  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1029
1030Some influential environment variables:
1031  CC          C compiler command
1032  CFLAGS      C compiler flags
1033  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1034              nonstandard directory <lib dir>
1035  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1036              headers in a nonstandard directory <include dir>
1037  CPP         C preprocessor
1038
1039Use these variables to override the choices made by `configure' or to help
1040it to find libraries and programs with nonstandard names/locations.
1041
1042_ACEOF
1043fi
1044
1045if test "$ac_init_help" = "recursive"; then
1046  # If there are subdirs, report their specific --help.
1047  ac_popdir=`pwd`
1048  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049    test -d $ac_dir || continue
1050    ac_builddir=.
1051
1052if test "$ac_dir" != .; then
1053  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054  # A "../" for each directory in $ac_dir_suffix.
1055  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056else
1057  ac_dir_suffix= ac_top_builddir=
1058fi
1059
1060case $srcdir in
1061  .)  # No --srcdir option.  We are building in place.
1062    ac_srcdir=.
1063    if test -z "$ac_top_builddir"; then
1064       ac_top_srcdir=.
1065    else
1066       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067    fi ;;
1068  [\\/]* | ?:[\\/]* )  # Absolute path.
1069    ac_srcdir=$srcdir$ac_dir_suffix;
1070    ac_top_srcdir=$srcdir ;;
1071  *) # Relative path.
1072    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074esac
1075
1076# Do not use `cd foo && pwd` to compute absolute paths, because
1077# the directories may not exist.
1078case `pwd` in
1079.) ac_abs_builddir="$ac_dir";;
1080*)
1081  case "$ac_dir" in
1082  .) ac_abs_builddir=`pwd`;;
1083  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1084  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085  esac;;
1086esac
1087case $ac_abs_builddir in
1088.) ac_abs_top_builddir=${ac_top_builddir}.;;
1089*)
1090  case ${ac_top_builddir}. in
1091  .) ac_abs_top_builddir=$ac_abs_builddir;;
1092  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1093  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094  esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_srcdir=$ac_srcdir;;
1098*)
1099  case $ac_srcdir in
1100  .) ac_abs_srcdir=$ac_abs_builddir;;
1101  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1102  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103  esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_top_srcdir=$ac_top_srcdir;;
1107*)
1108  case $ac_top_srcdir in
1109  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1110  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1111  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1112  esac;;
1113esac
1114
1115    cd $ac_dir
1116    # Check for guested configure; otherwise get Cygnus style configure.
1117    if test -f $ac_srcdir/configure.gnu; then
1118      echo
1119      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1120    elif test -f $ac_srcdir/configure; then
1121      echo
1122      $SHELL $ac_srcdir/configure  --help=recursive
1123    elif test -f $ac_srcdir/configure.ac ||
1124	   test -f $ac_srcdir/configure.in; then
1125      echo
1126      $ac_configure --help
1127    else
1128      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129    fi
1130    cd $ac_popdir
1131  done
1132fi
1133
1134test -n "$ac_init_help" && exit 0
1135if $ac_init_version; then
1136  cat <<\_ACEOF
1137
1138Copyright (C) 2003 Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142  exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by $as_me, which was
1150generated by GNU Autoconf 2.59.  Invocation command line was
1151
1152  $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183  IFS=$as_save_IFS
1184  test -z "$as_dir" && as_dir=.
1185  echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212  for ac_arg
1213  do
1214    case $ac_arg in
1215    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217    | -silent | --silent | --silen | --sile | --sil)
1218      continue ;;
1219    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221    esac
1222    case $ac_pass in
1223    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224    2)
1225      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226      if test $ac_must_keep_next = true; then
1227	ac_must_keep_next=false # Got value, back to normal.
1228      else
1229	case $ac_arg in
1230	  *=* | --config-cache | -C | -disable-* | --disable-* \
1231	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233	  | -with-* | --with-* | -without-* | --without-* | --x)
1234	    case "$ac_configure_args0 " in
1235	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236	    esac
1237	    ;;
1238	  -* ) ac_must_keep_next=true ;;
1239	esac
1240      fi
1241      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242      # Get rid of the leading space.
1243      ac_sep=" "
1244      ;;
1245    esac
1246  done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log.  We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257  # Save into config.log some information that might help in debugging.
1258  {
1259    echo
1260
1261    cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266    echo
1267    # The following way of writing the cache mishandles newlines in values,
1268{
1269  (set) 2>&1 |
1270    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271    *ac_space=\ *)
1272      sed -n \
1273	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275      ;;
1276    *)
1277      sed -n \
1278	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279      ;;
1280    esac;
1281}
1282    echo
1283
1284    cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289    echo
1290    for ac_var in $ac_subst_vars
1291    do
1292      eval ac_val=$`echo $ac_var`
1293      echo "$ac_var='"'"'$ac_val'"'"'"
1294    done | sort
1295    echo
1296
1297    if test -n "$ac_subst_files"; then
1298      cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303      echo
1304      for ac_var in $ac_subst_files
1305      do
1306	eval ac_val=$`echo $ac_var`
1307	echo "$ac_var='"'"'$ac_val'"'"'"
1308      done | sort
1309      echo
1310    fi
1311
1312    if test -s confdefs.h; then
1313      cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318      echo
1319      sed "/^$/d" confdefs.h | sort
1320      echo
1321    fi
1322    test "$ac_signal" != 0 &&
1323      echo "$as_me: caught signal $ac_signal"
1324    echo "$as_me: exit $exit_status"
1325  } >&5
1326  rm -f core *.core &&
1327  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328    exit $exit_status
1329     ' 0
1330for ac_signal in 1 2 13 15; do
1331  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370  if test "x$prefix" != xNONE; then
1371    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372  else
1373    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374  fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377  if test -r "$ac_site_file"; then
1378    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380    sed 's/^/| /' "$ac_site_file" >&5
1381    . "$ac_site_file"
1382  fi
1383done
1384
1385if test -r "$cache_file"; then
1386  # Some versions of bash will fail to source /dev/null (special
1387  # files actually), so we avoid doing that.
1388  if test -f "$cache_file"; then
1389    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391    case $cache_file in
1392      [\\/]* | ?:[\\/]* ) . $cache_file;;
1393      *)                      . ./$cache_file;;
1394    esac
1395  fi
1396else
1397  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399  >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408  eval ac_new_set=\$ac_env_${ac_var}_set
1409  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410  eval ac_new_val="\$ac_env_${ac_var}_value"
1411  case $ac_old_set,$ac_new_set in
1412    set,)
1413      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415      ac_cache_corrupted=: ;;
1416    ,set)
1417      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419      ac_cache_corrupted=: ;;
1420    ,);;
1421    *)
1422      if test "x$ac_old_val" != "x$ac_new_val"; then
1423	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426echo "$as_me:   former value:  $ac_old_val" >&2;}
1427	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428echo "$as_me:   current value: $ac_new_val" >&2;}
1429	ac_cache_corrupted=:
1430      fi;;
1431  esac
1432  # Pass precious variables to config.status.
1433  if test "$ac_new_set" = set; then
1434    case $ac_new_val in
1435    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437    *) ac_arg=$ac_var=$ac_new_val ;;
1438    esac
1439    case " $ac_configure_args " in
1440      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442    esac
1443  fi
1444done
1445if $ac_cache_corrupted; then
1446  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450   { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478ac_aux_dir=
1479for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1480  if test -f $ac_dir/install-sh; then
1481    ac_aux_dir=$ac_dir
1482    ac_install_sh="$ac_aux_dir/install-sh -c"
1483    break
1484  elif test -f $ac_dir/install.sh; then
1485    ac_aux_dir=$ac_dir
1486    ac_install_sh="$ac_aux_dir/install.sh -c"
1487    break
1488  elif test -f $ac_dir/shtool; then
1489    ac_aux_dir=$ac_dir
1490    ac_install_sh="$ac_aux_dir/shtool install -c"
1491    break
1492  fi
1493done
1494if test -z "$ac_aux_dir"; then
1495  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1496echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1497   { (exit 1); exit 1; }; }
1498fi
1499ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502
1503# Make sure we can run config.sub.
1504$ac_config_sub sun4 >/dev/null 2>&1 ||
1505  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1506echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1507   { (exit 1); exit 1; }; }
1508
1509echo "$as_me:$LINENO: checking build system type" >&5
1510echo $ECHO_N "checking build system type... $ECHO_C" >&6
1511if test "${ac_cv_build+set}" = set; then
1512  echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514  ac_cv_build_alias=$build_alias
1515test -z "$ac_cv_build_alias" &&
1516  ac_cv_build_alias=`$ac_config_guess`
1517test -z "$ac_cv_build_alias" &&
1518  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1519echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1520   { (exit 1); exit 1; }; }
1521ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1522  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1523echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1524   { (exit 1); exit 1; }; }
1525
1526fi
1527echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1528echo "${ECHO_T}$ac_cv_build" >&6
1529build=$ac_cv_build
1530build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1531build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1532build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533
1534
1535echo "$as_me:$LINENO: checking host system type" >&5
1536echo $ECHO_N "checking host system type... $ECHO_C" >&6
1537if test "${ac_cv_host+set}" = set; then
1538  echo $ECHO_N "(cached) $ECHO_C" >&6
1539else
1540  ac_cv_host_alias=$host_alias
1541test -z "$ac_cv_host_alias" &&
1542  ac_cv_host_alias=$ac_cv_build_alias
1543ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1544  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1545echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1546   { (exit 1); exit 1; }; }
1547
1548fi
1549echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1550echo "${ECHO_T}$ac_cv_host" >&6
1551host=$ac_cv_host
1552host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1553host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1554host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555
1556
1557echo "$as_me:$LINENO: checking target system type" >&5
1558echo $ECHO_N "checking target system type... $ECHO_C" >&6
1559if test "${ac_cv_target+set}" = set; then
1560  echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562  ac_cv_target_alias=$target_alias
1563test "x$ac_cv_target_alias" = "x" &&
1564  ac_cv_target_alias=$ac_cv_host_alias
1565ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1566  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1567echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1568   { (exit 1); exit 1; }; }
1569
1570fi
1571echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1572echo "${ECHO_T}$ac_cv_target" >&6
1573target=$ac_cv_target
1574target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577
1578
1579# The aliases save the names the user supplied, while $host etc.
1580# will get canonicalized.
1581test -n "$target_alias" &&
1582  test "$program_prefix$program_suffix$program_transform_name" = \
1583    NONENONEs,x,x, &&
1584  program_prefix=${target_alias}-
1585ac_ext=c
1586ac_cpp='$CPP $CPPFLAGS'
1587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589ac_compiler_gnu=$ac_cv_c_compiler_gnu
1590if test -n "$ac_tool_prefix"; then
1591  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592set dummy ${ac_tool_prefix}gcc; ac_word=$2
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_CC+set}" = set; then
1596  echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598  if test -n "$CC"; then
1599  ac_cv_prog_CC="$CC" # Let the user override the test.
1600else
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604  IFS=$as_save_IFS
1605  test -z "$as_dir" && as_dir=.
1606  for ac_exec_ext in '' $ac_executable_extensions; do
1607  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610    break 2
1611  fi
1612done
1613done
1614
1615fi
1616fi
1617CC=$ac_cv_prog_CC
1618if test -n "$CC"; then
1619  echo "$as_me:$LINENO: result: $CC" >&5
1620echo "${ECHO_T}$CC" >&6
1621else
1622  echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
1624fi
1625
1626fi
1627if test -z "$ac_cv_prog_CC"; then
1628  ac_ct_CC=$CC
1629  # Extract the first word of "gcc", so it can be a program name with args.
1630set dummy gcc; ac_word=$2
1631echo "$as_me:$LINENO: checking for $ac_word" >&5
1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1634  echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636  if test -n "$ac_ct_CC"; then
1637  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1638else
1639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642  IFS=$as_save_IFS
1643  test -z "$as_dir" && as_dir=.
1644  for ac_exec_ext in '' $ac_executable_extensions; do
1645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646    ac_cv_prog_ac_ct_CC="gcc"
1647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648    break 2
1649  fi
1650done
1651done
1652
1653fi
1654fi
1655ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656if test -n "$ac_ct_CC"; then
1657  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1658echo "${ECHO_T}$ac_ct_CC" >&6
1659else
1660  echo "$as_me:$LINENO: result: no" >&5
1661echo "${ECHO_T}no" >&6
1662fi
1663
1664  CC=$ac_ct_CC
1665else
1666  CC="$ac_cv_prog_CC"
1667fi
1668
1669if test -z "$CC"; then
1670  if test -n "$ac_tool_prefix"; then
1671  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1672set dummy ${ac_tool_prefix}cc; ac_word=$2
1673echo "$as_me:$LINENO: checking for $ac_word" >&5
1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_CC+set}" = set; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  if test -n "$CC"; then
1679  ac_cv_prog_CC="$CC" # Let the user override the test.
1680else
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684  IFS=$as_save_IFS
1685  test -z "$as_dir" && as_dir=.
1686  for ac_exec_ext in '' $ac_executable_extensions; do
1687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688    ac_cv_prog_CC="${ac_tool_prefix}cc"
1689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690    break 2
1691  fi
1692done
1693done
1694
1695fi
1696fi
1697CC=$ac_cv_prog_CC
1698if test -n "$CC"; then
1699  echo "$as_me:$LINENO: result: $CC" >&5
1700echo "${ECHO_T}$CC" >&6
1701else
1702  echo "$as_me:$LINENO: result: no" >&5
1703echo "${ECHO_T}no" >&6
1704fi
1705
1706fi
1707if test -z "$ac_cv_prog_CC"; then
1708  ac_ct_CC=$CC
1709  # Extract the first word of "cc", so it can be a program name with args.
1710set dummy cc; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$ac_ct_CC"; then
1717  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726    ac_cv_prog_ac_ct_CC="cc"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732
1733fi
1734fi
1735ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736if test -n "$ac_ct_CC"; then
1737  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738echo "${ECHO_T}$ac_ct_CC" >&6
1739else
1740  echo "$as_me:$LINENO: result: no" >&5
1741echo "${ECHO_T}no" >&6
1742fi
1743
1744  CC=$ac_ct_CC
1745else
1746  CC="$ac_cv_prog_CC"
1747fi
1748
1749fi
1750if test -z "$CC"; then
1751  # Extract the first word of "cc", so it can be a program name with args.
1752set dummy cc; ac_word=$2
1753echo "$as_me:$LINENO: checking for $ac_word" >&5
1754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755if test "${ac_cv_prog_CC+set}" = set; then
1756  echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758  if test -n "$CC"; then
1759  ac_cv_prog_CC="$CC" # Let the user override the test.
1760else
1761  ac_prog_rejected=no
1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765  IFS=$as_save_IFS
1766  test -z "$as_dir" && as_dir=.
1767  for ac_exec_ext in '' $ac_executable_extensions; do
1768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1770       ac_prog_rejected=yes
1771       continue
1772     fi
1773    ac_cv_prog_CC="cc"
1774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775    break 2
1776  fi
1777done
1778done
1779
1780if test $ac_prog_rejected = yes; then
1781  # We found a bogon in the path, so make sure we never use it.
1782  set dummy $ac_cv_prog_CC
1783  shift
1784  if test $# != 0; then
1785    # We chose a different compiler from the bogus one.
1786    # However, it has the same basename, so the bogon will be chosen
1787    # first if we set CC to just the basename; use the full file name.
1788    shift
1789    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1790  fi
1791fi
1792fi
1793fi
1794CC=$ac_cv_prog_CC
1795if test -n "$CC"; then
1796  echo "$as_me:$LINENO: result: $CC" >&5
1797echo "${ECHO_T}$CC" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$CC"; then
1805  if test -n "$ac_tool_prefix"; then
1806  for ac_prog in cl
1807  do
1808    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_CC+set}" = set; then
1813  echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815  if test -n "$CC"; then
1816  ac_cv_prog_CC="$CC" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821  IFS=$as_save_IFS
1822  test -z "$as_dir" && as_dir=.
1823  for ac_exec_ext in '' $ac_executable_extensions; do
1824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827    break 2
1828  fi
1829done
1830done
1831
1832fi
1833fi
1834CC=$ac_cv_prog_CC
1835if test -n "$CC"; then
1836  echo "$as_me:$LINENO: result: $CC" >&5
1837echo "${ECHO_T}$CC" >&6
1838else
1839  echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843    test -n "$CC" && break
1844  done
1845fi
1846if test -z "$CC"; then
1847  ac_ct_CC=$CC
1848  for ac_prog in cl
1849do
1850  # Extract the first word of "$ac_prog", so it can be a program name with args.
1851set dummy $ac_prog; ac_word=$2
1852echo "$as_me:$LINENO: checking for $ac_word" >&5
1853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855  echo $ECHO_N "(cached) $ECHO_C" >&6
1856else
1857  if test -n "$ac_ct_CC"; then
1858  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859else
1860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863  IFS=$as_save_IFS
1864  test -z "$as_dir" && as_dir=.
1865  for ac_exec_ext in '' $ac_executable_extensions; do
1866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867    ac_cv_prog_ac_ct_CC="$ac_prog"
1868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869    break 2
1870  fi
1871done
1872done
1873
1874fi
1875fi
1876ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877if test -n "$ac_ct_CC"; then
1878  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879echo "${ECHO_T}$ac_ct_CC" >&6
1880else
1881  echo "$as_me:$LINENO: result: no" >&5
1882echo "${ECHO_T}no" >&6
1883fi
1884
1885  test -n "$ac_ct_CC" && break
1886done
1887
1888  CC=$ac_ct_CC
1889fi
1890
1891fi
1892
1893
1894test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1895See \`config.log' for more details." >&5
1896echo "$as_me: error: no acceptable C compiler found in \$PATH
1897See \`config.log' for more details." >&2;}
1898   { (exit 1); exit 1; }; }
1899
1900# Provide some information about the compiler.
1901echo "$as_me:$LINENO:" \
1902     "checking for C compiler version" >&5
1903ac_compiler=`set X $ac_compile; echo $2`
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1905  (eval $ac_compiler --version </dev/null >&5) 2>&5
1906  ac_status=$?
1907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908  (exit $ac_status); }
1909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1910  (eval $ac_compiler -v </dev/null >&5) 2>&5
1911  ac_status=$?
1912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913  (exit $ac_status); }
1914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1915  (eval $ac_compiler -V </dev/null >&5) 2>&5
1916  ac_status=$?
1917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918  (exit $ac_status); }
1919
1920cat >conftest.$ac_ext <<_ACEOF
1921/* confdefs.h.  */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h.  */
1926
1927int
1928main ()
1929{
1930
1931  ;
1932  return 0;
1933}
1934_ACEOF
1935ac_clean_files_save=$ac_clean_files
1936ac_clean_files="$ac_clean_files a.out a.exe b.out"
1937# Try to create an executable without -o first, disregard a.out.
1938# It will help us diagnose broken compilers, and finding out an intuition
1939# of exeext.
1940echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1941echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1942ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1943if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1944  (eval $ac_link_default) 2>&5
1945  ac_status=$?
1946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947  (exit $ac_status); }; then
1948  # Find the output, starting from the most likely.  This scheme is
1949# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1950# resort.
1951
1952# Be careful to initialize this variable, since it used to be cached.
1953# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1954ac_cv_exeext=
1955# b.out is created by i960 compilers.
1956for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1957do
1958  test -f "$ac_file" || continue
1959  case $ac_file in
1960    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1961	;;
1962    conftest.$ac_ext )
1963	# This is the source file.
1964	;;
1965    [ab].out )
1966	# We found the default executable, but exeext='' is most
1967	# certainly right.
1968	break;;
1969    *.* )
1970	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1971	# FIXME: I believe we export ac_cv_exeext for Libtool,
1972	# but it would be cool to find out if it's true.  Does anybody
1973	# maintain Libtool? --akim.
1974	export ac_cv_exeext
1975	break;;
1976    * )
1977	break;;
1978  esac
1979done
1980else
1981  echo "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1985See \`config.log' for more details." >&5
1986echo "$as_me: error: C compiler cannot create executables
1987See \`config.log' for more details." >&2;}
1988   { (exit 77); exit 77; }; }
1989fi
1990
1991ac_exeext=$ac_cv_exeext
1992echo "$as_me:$LINENO: result: $ac_file" >&5
1993echo "${ECHO_T}$ac_file" >&6
1994
1995# Check the compiler produces executables we can run.  If not, either
1996# the compiler is broken, or we cross compile.
1997echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1998echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1999# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2000# If not cross compiling, check that we can run a simple program.
2001if test "$cross_compiling" != yes; then
2002  if { ac_try='./$ac_file'
2003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004  (eval $ac_try) 2>&5
2005  ac_status=$?
2006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007  (exit $ac_status); }; }; then
2008    cross_compiling=no
2009  else
2010    if test "$cross_compiling" = maybe; then
2011	cross_compiling=yes
2012    else
2013	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2014If you meant to cross compile, use \`--host'.
2015See \`config.log' for more details." >&5
2016echo "$as_me: error: cannot run C compiled programs.
2017If you meant to cross compile, use \`--host'.
2018See \`config.log' for more details." >&2;}
2019   { (exit 1); exit 1; }; }
2020    fi
2021  fi
2022fi
2023echo "$as_me:$LINENO: result: yes" >&5
2024echo "${ECHO_T}yes" >&6
2025
2026rm -f a.out a.exe conftest$ac_cv_exeext b.out
2027ac_clean_files=$ac_clean_files_save
2028# Check the compiler produces executables we can run.  If not, either
2029# the compiler is broken, or we cross compile.
2030echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2031echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2032echo "$as_me:$LINENO: result: $cross_compiling" >&5
2033echo "${ECHO_T}$cross_compiling" >&6
2034
2035echo "$as_me:$LINENO: checking for suffix of executables" >&5
2036echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2038  (eval $ac_link) 2>&5
2039  ac_status=$?
2040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041  (exit $ac_status); }; then
2042  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2043# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2044# work properly (i.e., refer to `conftest.exe'), while it won't with
2045# `rm'.
2046for ac_file in conftest.exe conftest conftest.*; do
2047  test -f "$ac_file" || continue
2048  case $ac_file in
2049    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2050    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2051	  export ac_cv_exeext
2052	  break;;
2053    * ) break;;
2054  esac
2055done
2056else
2057  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2058See \`config.log' for more details." >&5
2059echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2060See \`config.log' for more details." >&2;}
2061   { (exit 1); exit 1; }; }
2062fi
2063
2064rm -f conftest$ac_cv_exeext
2065echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2066echo "${ECHO_T}$ac_cv_exeext" >&6
2067
2068rm -f conftest.$ac_ext
2069EXEEXT=$ac_cv_exeext
2070ac_exeext=$EXEEXT
2071echo "$as_me:$LINENO: checking for suffix of object files" >&5
2072echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2073if test "${ac_cv_objext+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  cat >conftest.$ac_ext <<_ACEOF
2077/* confdefs.h.  */
2078_ACEOF
2079cat confdefs.h >>conftest.$ac_ext
2080cat >>conftest.$ac_ext <<_ACEOF
2081/* end confdefs.h.  */
2082
2083int
2084main ()
2085{
2086
2087  ;
2088  return 0;
2089}
2090_ACEOF
2091rm -f conftest.o conftest.obj
2092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093  (eval $ac_compile) 2>&5
2094  ac_status=$?
2095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096  (exit $ac_status); }; then
2097  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2098  case $ac_file in
2099    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2100    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2101       break;;
2102  esac
2103done
2104else
2105  echo "$as_me: failed program was:" >&5
2106sed 's/^/| /' conftest.$ac_ext >&5
2107
2108{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: cannot compute suffix of object files: cannot compile
2111See \`config.log' for more details." >&2;}
2112   { (exit 1); exit 1; }; }
2113fi
2114
2115rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116fi
2117echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2118echo "${ECHO_T}$ac_cv_objext" >&6
2119OBJEXT=$ac_cv_objext
2120ac_objext=$OBJEXT
2121echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2122echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2123if test "${ac_cv_c_compiler_gnu+set}" = set; then
2124  echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126  cat >conftest.$ac_ext <<_ACEOF
2127/* confdefs.h.  */
2128_ACEOF
2129cat confdefs.h >>conftest.$ac_ext
2130cat >>conftest.$ac_ext <<_ACEOF
2131/* end confdefs.h.  */
2132
2133int
2134main ()
2135{
2136#ifndef __GNUC__
2137       choke me
2138#endif
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146  (eval $ac_compile) 2>conftest.er1
2147  ac_status=$?
2148  grep -v '^ *+' conftest.er1 >conftest.err
2149  rm -f conftest.er1
2150  cat conftest.err >&5
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); } &&
2153	 { ac_try='test -z "$ac_c_werror_flag"
2154			 || test ! -s conftest.err'
2155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156  (eval $ac_try) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; } &&
2160	 { ac_try='test -s conftest.$ac_objext'
2161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162  (eval $ac_try) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; }; then
2166  ac_compiler_gnu=yes
2167else
2168  echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171ac_compiler_gnu=no
2172fi
2173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174ac_cv_c_compiler_gnu=$ac_compiler_gnu
2175
2176fi
2177echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2178echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2179GCC=`test $ac_compiler_gnu = yes && echo yes`
2180ac_test_CFLAGS=${CFLAGS+set}
2181ac_save_CFLAGS=$CFLAGS
2182CFLAGS="-g"
2183echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2184echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2185if test "${ac_cv_prog_cc_g+set}" = set; then
2186  echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188  cat >conftest.$ac_ext <<_ACEOF
2189/* confdefs.h.  */
2190_ACEOF
2191cat confdefs.h >>conftest.$ac_ext
2192cat >>conftest.$ac_ext <<_ACEOF
2193/* end confdefs.h.  */
2194
2195int
2196main ()
2197{
2198
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203rm -f conftest.$ac_objext
2204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205  (eval $ac_compile) 2>conftest.er1
2206  ac_status=$?
2207  grep -v '^ *+' conftest.er1 >conftest.err
2208  rm -f conftest.er1
2209  cat conftest.err >&5
2210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211  (exit $ac_status); } &&
2212	 { ac_try='test -z "$ac_c_werror_flag"
2213			 || test ! -s conftest.err'
2214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215  (eval $ac_try) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; } &&
2219	 { ac_try='test -s conftest.$ac_objext'
2220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221  (eval $ac_try) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; }; then
2225  ac_cv_prog_cc_g=yes
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230ac_cv_prog_cc_g=no
2231fi
2232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233fi
2234echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2235echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2236if test "$ac_test_CFLAGS" = set; then
2237  CFLAGS=$ac_save_CFLAGS
2238elif test $ac_cv_prog_cc_g = yes; then
2239  if test "$GCC" = yes; then
2240    CFLAGS="-g -O2"
2241  else
2242    CFLAGS="-g"
2243  fi
2244else
2245  if test "$GCC" = yes; then
2246    CFLAGS="-O2"
2247  else
2248    CFLAGS=
2249  fi
2250fi
2251echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2252echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2253if test "${ac_cv_prog_cc_stdc+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256  ac_cv_prog_cc_stdc=no
2257ac_save_CC=$CC
2258cat >conftest.$ac_ext <<_ACEOF
2259/* confdefs.h.  */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h.  */
2264#include <stdarg.h>
2265#include <stdio.h>
2266#include <sys/types.h>
2267#include <sys/stat.h>
2268/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2269struct buf { int x; };
2270FILE * (*rcsopen) (struct buf *, struct stat *, int);
2271static char *e (p, i)
2272     char **p;
2273     int i;
2274{
2275  return p[i];
2276}
2277static char *f (char * (*g) (char **, int), char **p, ...)
2278{
2279  char *s;
2280  va_list v;
2281  va_start (v,p);
2282  s = g (p, va_arg (v,int));
2283  va_end (v);
2284  return s;
2285}
2286
2287/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2288   function prototypes and stuff, but not '\xHH' hex character constants.
2289   These don't provoke an error unfortunately, instead are silently treated
2290   as 'x'.  The following induces an error, until -std1 is added to get
2291   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2292   array size at least.  It's necessary to write '\x00'==0 to get something
2293   that's true only with -std1.  */
2294int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2295
2296int test (int i, double x);
2297struct s1 {int (*f) (int a);};
2298struct s2 {int (*f) (double a);};
2299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2300int argc;
2301char **argv;
2302int
2303main ()
2304{
2305return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310# Don't try gcc -ansi; that turns off useful extensions and
2311# breaks some systems' header files.
2312# AIX			-qlanglvl=ansi
2313# Ultrix and OSF/1	-std1
2314# HP-UX 10.20 and later	-Ae
2315# HP-UX older versions	-Aa -D_HPUX_SOURCE
2316# SVR4			-Xc -D__EXTENSIONS__
2317for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2318do
2319  CC="$ac_save_CC $ac_arg"
2320  rm -f conftest.$ac_objext
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>conftest.er1
2323  ac_status=$?
2324  grep -v '^ *+' conftest.er1 >conftest.err
2325  rm -f conftest.er1
2326  cat conftest.err >&5
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); } &&
2329	 { ac_try='test -z "$ac_c_werror_flag"
2330			 || test ! -s conftest.err'
2331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332  (eval $ac_try) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }; } &&
2336	 { ac_try='test -s conftest.$ac_objext'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; }; then
2342  ac_cv_prog_cc_stdc=$ac_arg
2343break
2344else
2345  echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348fi
2349rm -f conftest.err conftest.$ac_objext
2350done
2351rm -f conftest.$ac_ext conftest.$ac_objext
2352CC=$ac_save_CC
2353
2354fi
2355
2356case "x$ac_cv_prog_cc_stdc" in
2357  x|xno)
2358    echo "$as_me:$LINENO: result: none needed" >&5
2359echo "${ECHO_T}none needed" >&6 ;;
2360  *)
2361    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2362echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2363    CC="$CC $ac_cv_prog_cc_stdc" ;;
2364esac
2365
2366# Some people use a C++ compiler to compile C.  Since we use `exit',
2367# in C++ we need to declare it.  In case someone uses the same compiler
2368# for both compiling C and C++ we need to have the C++ compiler decide
2369# the declaration of exit, since it's the most demanding environment.
2370cat >conftest.$ac_ext <<_ACEOF
2371#ifndef __cplusplus
2372  choke me
2373#endif
2374_ACEOF
2375rm -f conftest.$ac_objext
2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377  (eval $ac_compile) 2>conftest.er1
2378  ac_status=$?
2379  grep -v '^ *+' conftest.er1 >conftest.err
2380  rm -f conftest.er1
2381  cat conftest.err >&5
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); } &&
2384	 { ac_try='test -z "$ac_c_werror_flag"
2385			 || test ! -s conftest.err'
2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387  (eval $ac_try) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; } &&
2391	 { ac_try='test -s conftest.$ac_objext'
2392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393  (eval $ac_try) 2>&5
2394  ac_status=$?
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); }; }; then
2397  for ac_declaration in \
2398   '' \
2399   'extern "C" void std::exit (int) throw (); using std::exit;' \
2400   'extern "C" void std::exit (int); using std::exit;' \
2401   'extern "C" void exit (int) throw ();' \
2402   'extern "C" void exit (int);' \
2403   'void exit (int);'
2404do
2405  cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h.  */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h.  */
2411$ac_declaration
2412#include <stdlib.h>
2413int
2414main ()
2415{
2416exit (42);
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423  (eval $ac_compile) 2>conftest.er1
2424  ac_status=$?
2425  grep -v '^ *+' conftest.er1 >conftest.err
2426  rm -f conftest.er1
2427  cat conftest.err >&5
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); } &&
2430	 { ac_try='test -z "$ac_c_werror_flag"
2431			 || test ! -s conftest.err'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; } &&
2437	 { ac_try='test -s conftest.$ac_objext'
2438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439  (eval $ac_try) 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); }; }; then
2443  :
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448continue
2449fi
2450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451  cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457$ac_declaration
2458int
2459main ()
2460{
2461exit (42);
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.$ac_objext
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>conftest.er1
2469  ac_status=$?
2470  grep -v '^ *+' conftest.er1 >conftest.err
2471  rm -f conftest.er1
2472  cat conftest.err >&5
2473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474  (exit $ac_status); } &&
2475	 { ac_try='test -z "$ac_c_werror_flag"
2476			 || test ! -s conftest.err'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; } &&
2482	 { ac_try='test -s conftest.$ac_objext'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; }; then
2488  break
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493fi
2494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495done
2496rm -f conftest*
2497if test -n "$ac_declaration"; then
2498  echo '#ifdef __cplusplus' >>confdefs.h
2499  echo $ac_declaration      >>confdefs.h
2500  echo '#endif'             >>confdefs.h
2501fi
2502
2503else
2504  echo "$as_me: failed program was:" >&5
2505sed 's/^/| /' conftest.$ac_ext >&5
2506
2507fi
2508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516echo "$as_me:$LINENO: checking for library containing strerror" >&5
2517echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2518if test "${ac_cv_search_strerror+set}" = set; then
2519  echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521  ac_func_search_save_LIBS=$LIBS
2522ac_cv_search_strerror=no
2523cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529
2530/* Override any gcc2 internal prototype to avoid an error.  */
2531#ifdef __cplusplus
2532extern "C"
2533#endif
2534/* We use char because int might match the return type of a gcc2
2535   builtin and then its argument prototype would still apply.  */
2536char strerror ();
2537int
2538main ()
2539{
2540strerror ();
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545rm -f conftest.$ac_objext conftest$ac_exeext
2546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547  (eval $ac_link) 2>conftest.er1
2548  ac_status=$?
2549  grep -v '^ *+' conftest.er1 >conftest.err
2550  rm -f conftest.er1
2551  cat conftest.err >&5
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); } &&
2554	 { ac_try='test -z "$ac_c_werror_flag"
2555			 || test ! -s conftest.err'
2556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557  (eval $ac_try) 2>&5
2558  ac_status=$?
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); }; } &&
2561	 { ac_try='test -s conftest$ac_exeext'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; }; then
2567  ac_cv_search_strerror="none required"
2568else
2569  echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572fi
2573rm -f conftest.err conftest.$ac_objext \
2574      conftest$ac_exeext conftest.$ac_ext
2575if test "$ac_cv_search_strerror" = no; then
2576  for ac_lib in cposix; do
2577    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2578    cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584
2585/* Override any gcc2 internal prototype to avoid an error.  */
2586#ifdef __cplusplus
2587extern "C"
2588#endif
2589/* We use char because int might match the return type of a gcc2
2590   builtin and then its argument prototype would still apply.  */
2591char strerror ();
2592int
2593main ()
2594{
2595strerror ();
2596  ;
2597  return 0;
2598}
2599_ACEOF
2600rm -f conftest.$ac_objext conftest$ac_exeext
2601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2602  (eval $ac_link) 2>conftest.er1
2603  ac_status=$?
2604  grep -v '^ *+' conftest.er1 >conftest.err
2605  rm -f conftest.er1
2606  cat conftest.err >&5
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); } &&
2609	 { ac_try='test -z "$ac_c_werror_flag"
2610			 || test ! -s conftest.err'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; } &&
2616	 { ac_try='test -s conftest$ac_exeext'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; }; then
2622  ac_cv_search_strerror="-l$ac_lib"
2623break
2624else
2625  echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628fi
2629rm -f conftest.err conftest.$ac_objext \
2630      conftest$ac_exeext conftest.$ac_ext
2631  done
2632fi
2633LIBS=$ac_func_search_save_LIBS
2634fi
2635echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2636echo "${ECHO_T}$ac_cv_search_strerror" >&6
2637if test "$ac_cv_search_strerror" != no; then
2638  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2639
2640fi
2641
2642
2643BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ 	]*\([^ 	]*\)[ 	]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2644am__api_version="1.9"
2645# Find a good install program.  We prefer a C program (faster),
2646# so one script is as good as another.  But avoid the broken or
2647# incompatible versions:
2648# SysV /etc/install, /usr/sbin/install
2649# SunOS /usr/etc/install
2650# IRIX /sbin/install
2651# AIX /bin/install
2652# AmigaOS /C/install, which installs bootblocks on floppy discs
2653# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2654# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2655# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2656# OS/2's system install, which has a completely different semantic
2657# ./install, which can be erroneously created by make from ./install.sh.
2658echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2659echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2660if test -z "$INSTALL"; then
2661if test "${ac_cv_path_install+set}" = set; then
2662  echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
2664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667  IFS=$as_save_IFS
2668  test -z "$as_dir" && as_dir=.
2669  # Account for people who put trailing slashes in PATH elements.
2670case $as_dir/ in
2671  ./ | .// | /cC/* | \
2672  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2673  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2674  /usr/ucb/* ) ;;
2675  *)
2676    # OSF1 and SCO ODT 3.0 have their own names for install.
2677    # Don't use installbsd from OSF since it installs stuff as root
2678    # by default.
2679    for ac_prog in ginstall scoinst install; do
2680      for ac_exec_ext in '' $ac_executable_extensions; do
2681	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2682	  if test $ac_prog = install &&
2683	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684	    # AIX install.  It has an incompatible calling convention.
2685	    :
2686	  elif test $ac_prog = install &&
2687	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688	    # program-specific install script used by HP pwplus--don't use.
2689	    :
2690	  else
2691	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2692	    break 3
2693	  fi
2694	fi
2695      done
2696    done
2697    ;;
2698esac
2699done
2700
2701
2702fi
2703  if test "${ac_cv_path_install+set}" = set; then
2704    INSTALL=$ac_cv_path_install
2705  else
2706    # As a last resort, use the slow shell script.  We don't cache a
2707    # path for INSTALL within a source directory, because that will
2708    # break other packages using the cache if that directory is
2709    # removed, or if the path is relative.
2710    INSTALL=$ac_install_sh
2711  fi
2712fi
2713echo "$as_me:$LINENO: result: $INSTALL" >&5
2714echo "${ECHO_T}$INSTALL" >&6
2715
2716# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2717# It thinks the first close brace ends the variable substitution.
2718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2719
2720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2721
2722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2723
2724echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2725echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2726# Just in case
2727sleep 1
2728echo timestamp > conftest.file
2729# Do `set' in a subshell so we don't clobber the current shell's
2730# arguments.  Must try -L first in case configure is actually a
2731# symlink; some systems play weird games with the mod time of symlinks
2732# (eg FreeBSD returns the mod time of the symlink's containing
2733# directory).
2734if (
2735   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2736   if test "$*" = "X"; then
2737      # -L didn't work.
2738      set X `ls -t $srcdir/configure conftest.file`
2739   fi
2740   rm -f conftest.file
2741   if test "$*" != "X $srcdir/configure conftest.file" \
2742      && test "$*" != "X conftest.file $srcdir/configure"; then
2743
2744      # If neither matched, then we have a broken ls.  This can happen
2745      # if, for instance, CONFIG_SHELL is bash and it inherits a
2746      # broken ls alias from the environment.  This has actually
2747      # happened.  Such a system could not be considered "sane".
2748      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2749alias in your environment" >&5
2750echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2751alias in your environment" >&2;}
2752   { (exit 1); exit 1; }; }
2753   fi
2754
2755   test "$2" = conftest.file
2756   )
2757then
2758   # Ok.
2759   :
2760else
2761   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2762Check your system clock" >&5
2763echo "$as_me: error: newly created file is older than distributed files!
2764Check your system clock" >&2;}
2765   { (exit 1); exit 1; }; }
2766fi
2767echo "$as_me:$LINENO: result: yes" >&5
2768echo "${ECHO_T}yes" >&6
2769test "$program_prefix" != NONE &&
2770  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2771# Use a double $ so make ignores it.
2772test "$program_suffix" != NONE &&
2773  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2774# Double any \ or $.  echo might interpret backslashes.
2775# By default was `s,x,x', remove it if useless.
2776cat <<\_ACEOF >conftest.sed
2777s/[\\$]/&&/g;s/;s,x,x,$//
2778_ACEOF
2779program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2780rm conftest.sed
2781
2782# expand $ac_aux_dir to an absolute path
2783am_aux_dir=`cd $ac_aux_dir && pwd`
2784
2785test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2786# Use eval to expand $SHELL
2787if eval "$MISSING --run true"; then
2788  am_missing_run="$MISSING --run "
2789else
2790  am_missing_run=
2791  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2792echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2793fi
2794
2795if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2796  # We used to keeping the `.' as first argument, in order to
2797  # allow $(mkdir_p) to be used without argument.  As in
2798  #   $(mkdir_p) $(somedir)
2799  # where $(somedir) is conditionally defined.  However this is wrong
2800  # for two reasons:
2801  #  1. if the package is installed by a user who cannot write `.'
2802  #     make install will fail,
2803  #  2. the above comment should most certainly read
2804  #     $(mkdir_p) $(DESTDIR)$(somedir)
2805  #     so it does not work when $(somedir) is undefined and
2806  #     $(DESTDIR) is not.
2807  #  To support the latter case, we have to write
2808  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2809  #  so the `.' trick is pointless.
2810  mkdir_p='mkdir -p --'
2811else
2812  # On NextStep and OpenStep, the `mkdir' command does not
2813  # recognize any option.  It will interpret all options as
2814  # directories to create, and then abort because `.' already
2815  # exists.
2816  for d in ./-p ./--version;
2817  do
2818    test -d $d && rmdir $d
2819  done
2820  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2821  if test -f "$ac_aux_dir/mkinstalldirs"; then
2822    mkdir_p='$(mkinstalldirs)'
2823  else
2824    mkdir_p='$(install_sh) -d'
2825  fi
2826fi
2827
2828for ac_prog in gawk mawk nawk awk
2829do
2830  # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834if test "${ac_cv_prog_AWK+set}" = set; then
2835  echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837  if test -n "$AWK"; then
2838  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  test -z "$as_dir" && as_dir=.
2845  for ac_exec_ext in '' $ac_executable_extensions; do
2846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847    ac_cv_prog_AWK="$ac_prog"
2848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852done
2853
2854fi
2855fi
2856AWK=$ac_cv_prog_AWK
2857if test -n "$AWK"; then
2858  echo "$as_me:$LINENO: result: $AWK" >&5
2859echo "${ECHO_T}$AWK" >&6
2860else
2861  echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
2863fi
2864
2865  test -n "$AWK" && break
2866done
2867
2868echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2870set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2871if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2872  echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874  cat >conftest.make <<\_ACEOF
2875all:
2876	@echo 'ac_maketemp="$(MAKE)"'
2877_ACEOF
2878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2879eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2880if test -n "$ac_maketemp"; then
2881  eval ac_cv_prog_make_${ac_make}_set=yes
2882else
2883  eval ac_cv_prog_make_${ac_make}_set=no
2884fi
2885rm -f conftest.make
2886fi
2887if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2888  echo "$as_me:$LINENO: result: yes" >&5
2889echo "${ECHO_T}yes" >&6
2890  SET_MAKE=
2891else
2892  echo "$as_me:$LINENO: result: no" >&5
2893echo "${ECHO_T}no" >&6
2894  SET_MAKE="MAKE=${MAKE-make}"
2895fi
2896
2897rm -rf .tst 2>/dev/null
2898mkdir .tst 2>/dev/null
2899if test -d .tst; then
2900  am__leading_dot=.
2901else
2902  am__leading_dot=_
2903fi
2904rmdir .tst 2>/dev/null
2905
2906DEPDIR="${am__leading_dot}deps"
2907
2908          ac_config_commands="$ac_config_commands depfiles"
2909
2910
2911am_make=${MAKE-make}
2912cat > confinc << 'END'
2913am__doit:
2914	@echo done
2915.PHONY: am__doit
2916END
2917# If we don't find an include directive, just comment out the code.
2918echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2919echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2920am__include="#"
2921am__quote=
2922_am_result=none
2923# First try GNU make style include.
2924echo "include confinc" > confmf
2925# We grep out `Entering directory' and `Leaving directory'
2926# messages which can occur if `w' ends up in MAKEFLAGS.
2927# In particular we don't look at `^make:' because GNU make might
2928# be invoked under some other name (usually "gmake"), in which
2929# case it prints its new name instead of `make'.
2930if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2931   am__include=include
2932   am__quote=
2933   _am_result=GNU
2934fi
2935# Now try BSD make style include.
2936if test "$am__include" = "#"; then
2937   echo '.include "confinc"' > confmf
2938   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2939      am__include=.include
2940      am__quote="\""
2941      _am_result=BSD
2942   fi
2943fi
2944
2945
2946echo "$as_me:$LINENO: result: $_am_result" >&5
2947echo "${ECHO_T}$_am_result" >&6
2948rm -f confinc confmf
2949
2950# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2951if test "${enable_dependency_tracking+set}" = set; then
2952  enableval="$enable_dependency_tracking"
2953
2954fi;
2955if test "x$enable_dependency_tracking" != xno; then
2956  am_depcomp="$ac_aux_dir/depcomp"
2957  AMDEPBACKSLASH='\'
2958fi
2959
2960
2961if test "x$enable_dependency_tracking" != xno; then
2962  AMDEP_TRUE=
2963  AMDEP_FALSE='#'
2964else
2965  AMDEP_TRUE='#'
2966  AMDEP_FALSE=
2967fi
2968
2969
2970
2971# test to see if srcdir already configured
2972if test "`cd $srcdir && pwd`" != "`pwd`" &&
2973   test -f $srcdir/config.status; then
2974  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2975echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2976   { (exit 1); exit 1; }; }
2977fi
2978
2979# test whether we have cygpath
2980if test -z "$CYGPATH_W"; then
2981  if (cygpath --version) >/dev/null 2>/dev/null; then
2982    CYGPATH_W='cygpath -w'
2983  else
2984    CYGPATH_W=echo
2985  fi
2986fi
2987
2988
2989# Define the identity of the package.
2990 PACKAGE=binutils
2991 VERSION=${BFD_VERSION}
2992
2993
2994cat >>confdefs.h <<_ACEOF
2995#define PACKAGE "$PACKAGE"
2996_ACEOF
2997
2998
2999cat >>confdefs.h <<_ACEOF
3000#define VERSION "$VERSION"
3001_ACEOF
3002
3003# Some tools Automake needs.
3004
3005ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3006
3007
3008AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3009
3010
3011AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3012
3013
3014AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3015
3016
3017MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3018
3019install_sh=${install_sh-"$am_aux_dir/install-sh"}
3020
3021# Installed binaries are usually stripped using `strip' when the user
3022# run `make install-strip'.  However `strip' might not be the right
3023# tool to use in cross-compilation environments, therefore Automake
3024# will honor the `STRIP' environment variable to overrule this program.
3025if test "$cross_compiling" != no; then
3026  if test -n "$ac_tool_prefix"; then
3027  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3028set dummy ${ac_tool_prefix}strip; ac_word=$2
3029echo "$as_me:$LINENO: checking for $ac_word" >&5
3030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3031if test "${ac_cv_prog_STRIP+set}" = set; then
3032  echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034  if test -n "$STRIP"; then
3035  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  test -z "$as_dir" && as_dir=.
3042  for ac_exec_ext in '' $ac_executable_extensions; do
3043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049done
3050
3051fi
3052fi
3053STRIP=$ac_cv_prog_STRIP
3054if test -n "$STRIP"; then
3055  echo "$as_me:$LINENO: result: $STRIP" >&5
3056echo "${ECHO_T}$STRIP" >&6
3057else
3058  echo "$as_me:$LINENO: result: no" >&5
3059echo "${ECHO_T}no" >&6
3060fi
3061
3062fi
3063if test -z "$ac_cv_prog_STRIP"; then
3064  ac_ct_STRIP=$STRIP
3065  # Extract the first word of "strip", so it can be a program name with args.
3066set dummy strip; ac_word=$2
3067echo "$as_me:$LINENO: checking for $ac_word" >&5
3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3070  echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072  if test -n "$ac_ct_STRIP"; then
3073  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078  IFS=$as_save_IFS
3079  test -z "$as_dir" && as_dir=.
3080  for ac_exec_ext in '' $ac_executable_extensions; do
3081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082    ac_cv_prog_ac_ct_STRIP="strip"
3083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087done
3088
3089  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3090fi
3091fi
3092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093if test -n "$ac_ct_STRIP"; then
3094  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3095echo "${ECHO_T}$ac_ct_STRIP" >&6
3096else
3097  echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099fi
3100
3101  STRIP=$ac_ct_STRIP
3102else
3103  STRIP="$ac_cv_prog_STRIP"
3104fi
3105
3106fi
3107INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3108
3109# We need awk for the "check" target.  The system "awk" is bad on
3110# some platforms.
3111# Always define AMTAR for backward compatibility.
3112
3113AMTAR=${AMTAR-"${am_missing_run}tar"}
3114
3115am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3116
3117
3118
3119
3120depcc="$CC"   am_compiler_list=
3121
3122echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3123echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3124if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3125  echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3128  # We make a subdir and do the tests there.  Otherwise we can end up
3129  # making bogus files that we don't know about and never remove.  For
3130  # instance it was reported that on HP-UX the gcc test will end up
3131  # making a dummy file named `D' -- because `-MD' means `put the output
3132  # in D'.
3133  mkdir conftest.dir
3134  # Copy depcomp to subdir because otherwise we won't find it if we're
3135  # using a relative directory.
3136  cp "$am_depcomp" conftest.dir
3137  cd conftest.dir
3138  # We will build objects and dependencies in a subdirectory because
3139  # it helps to detect inapplicable dependency modes.  For instance
3140  # both Tru64's cc and ICC support -MD to output dependencies as a
3141  # side effect of compilation, but ICC will put the dependencies in
3142  # the current directory while Tru64 will put them in the object
3143  # directory.
3144  mkdir sub
3145
3146  am_cv_CC_dependencies_compiler_type=none
3147  if test "$am_compiler_list" = ""; then
3148     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3149  fi
3150  for depmode in $am_compiler_list; do
3151    # Setup a source with many dependencies, because some compilers
3152    # like to wrap large dependency lists on column 80 (with \), and
3153    # we should not choose a depcomp mode which is confused by this.
3154    #
3155    # We need to recreate these files for each test, as the compiler may
3156    # overwrite some of them when testing with obscure command lines.
3157    # This happens at least with the AIX C compiler.
3158    : > sub/conftest.c
3159    for i in 1 2 3 4 5 6; do
3160      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3161      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3162      # Solaris 8's {/usr,}/bin/sh.
3163      touch sub/conftst$i.h
3164    done
3165    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3166
3167    case $depmode in
3168    nosideeffect)
3169      # after this tag, mechanisms are not by side-effect, so they'll
3170      # only be used when explicitly requested
3171      if test "x$enable_dependency_tracking" = xyes; then
3172	continue
3173      else
3174	break
3175      fi
3176      ;;
3177    none) break ;;
3178    esac
3179    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3180    # mode.  It turns out that the SunPro C++ compiler does not properly
3181    # handle `-M -o', and we need to detect this.
3182    if depmode=$depmode \
3183       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3184       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3185       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3186         >/dev/null 2>conftest.err &&
3187       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3188       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3189       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3190      # icc doesn't choke on unknown options, it will just issue warnings
3191      # or remarks (even with -Werror).  So we grep stderr for any message
3192      # that says an option was ignored or not supported.
3193      # When given -MP, icc 7.0 and 7.1 complain thusly:
3194      #   icc: Command line warning: ignoring option '-M'; no argument required
3195      # The diagnosis changed in icc 8.0:
3196      #   icc: Command line remark: option '-MP' not supported
3197      if (grep 'ignoring option' conftest.err ||
3198          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3199        am_cv_CC_dependencies_compiler_type=$depmode
3200        break
3201      fi
3202    fi
3203  done
3204
3205  cd ..
3206  rm -rf conftest.dir
3207else
3208  am_cv_CC_dependencies_compiler_type=none
3209fi
3210
3211fi
3212echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3213echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3214CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3215
3216
3217
3218if
3219  test "x$enable_dependency_tracking" != xno \
3220  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3221  am__fastdepCC_TRUE=
3222  am__fastdepCC_FALSE='#'
3223else
3224  am__fastdepCC_TRUE='#'
3225  am__fastdepCC_FALSE=
3226fi
3227
3228
3229
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236if test -n "$ac_tool_prefix"; then
3237  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}gcc; ac_word=$2
3239echo "$as_me:$LINENO: checking for $ac_word" >&5
3240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241if test "${ac_cv_prog_CC+set}" = set; then
3242  echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244  if test -n "$CC"; then
3245  ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250  IFS=$as_save_IFS
3251  test -z "$as_dir" && as_dir=.
3252  for ac_exec_ext in '' $ac_executable_extensions; do
3253  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256    break 2
3257  fi
3258done
3259done
3260
3261fi
3262fi
3263CC=$ac_cv_prog_CC
3264if test -n "$CC"; then
3265  echo "$as_me:$LINENO: result: $CC" >&5
3266echo "${ECHO_T}$CC" >&6
3267else
3268  echo "$as_me:$LINENO: result: no" >&5
3269echo "${ECHO_T}no" >&6
3270fi
3271
3272fi
3273if test -z "$ac_cv_prog_CC"; then
3274  ac_ct_CC=$CC
3275  # Extract the first word of "gcc", so it can be a program name with args.
3276set dummy gcc; ac_word=$2
3277echo "$as_me:$LINENO: checking for $ac_word" >&5
3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3280  echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282  if test -n "$ac_ct_CC"; then
3283  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284else
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286for as_dir in $PATH
3287do
3288  IFS=$as_save_IFS
3289  test -z "$as_dir" && as_dir=.
3290  for ac_exec_ext in '' $ac_executable_extensions; do
3291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292    ac_cv_prog_ac_ct_CC="gcc"
3293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294    break 2
3295  fi
3296done
3297done
3298
3299fi
3300fi
3301ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302if test -n "$ac_ct_CC"; then
3303  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3304echo "${ECHO_T}$ac_ct_CC" >&6
3305else
3306  echo "$as_me:$LINENO: result: no" >&5
3307echo "${ECHO_T}no" >&6
3308fi
3309
3310  CC=$ac_ct_CC
3311else
3312  CC="$ac_cv_prog_CC"
3313fi
3314
3315if test -z "$CC"; then
3316  if test -n "$ac_tool_prefix"; then
3317  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3318set dummy ${ac_tool_prefix}cc; ac_word=$2
3319echo "$as_me:$LINENO: checking for $ac_word" >&5
3320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321if test "${ac_cv_prog_CC+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -n "$CC"; then
3325  ac_cv_prog_CC="$CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332  for ac_exec_ext in '' $ac_executable_extensions; do
3333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_CC="${ac_tool_prefix}cc"
3335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339done
3340
3341fi
3342fi
3343CC=$ac_cv_prog_CC
3344if test -n "$CC"; then
3345  echo "$as_me:$LINENO: result: $CC" >&5
3346echo "${ECHO_T}$CC" >&6
3347else
3348  echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
3350fi
3351
3352fi
3353if test -z "$ac_cv_prog_CC"; then
3354  ac_ct_CC=$CC
3355  # Extract the first word of "cc", so it can be a program name with args.
3356set dummy cc; ac_word=$2
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362  if test -n "$ac_ct_CC"; then
3363  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368  IFS=$as_save_IFS
3369  test -z "$as_dir" && as_dir=.
3370  for ac_exec_ext in '' $ac_executable_extensions; do
3371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372    ac_cv_prog_ac_ct_CC="cc"
3373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377done
3378
3379fi
3380fi
3381ac_ct_CC=$ac_cv_prog_ac_ct_CC
3382if test -n "$ac_ct_CC"; then
3383  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3384echo "${ECHO_T}$ac_ct_CC" >&6
3385else
3386  echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
3388fi
3389
3390  CC=$ac_ct_CC
3391else
3392  CC="$ac_cv_prog_CC"
3393fi
3394
3395fi
3396if test -z "$CC"; then
3397  # Extract the first word of "cc", so it can be a program name with args.
3398set dummy cc; ac_word=$2
3399echo "$as_me:$LINENO: checking for $ac_word" >&5
3400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401if test "${ac_cv_prog_CC+set}" = set; then
3402  echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404  if test -n "$CC"; then
3405  ac_cv_prog_CC="$CC" # Let the user override the test.
3406else
3407  ac_prog_rejected=no
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411  IFS=$as_save_IFS
3412  test -z "$as_dir" && as_dir=.
3413  for ac_exec_ext in '' $ac_executable_extensions; do
3414  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416       ac_prog_rejected=yes
3417       continue
3418     fi
3419    ac_cv_prog_CC="cc"
3420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421    break 2
3422  fi
3423done
3424done
3425
3426if test $ac_prog_rejected = yes; then
3427  # We found a bogon in the path, so make sure we never use it.
3428  set dummy $ac_cv_prog_CC
3429  shift
3430  if test $# != 0; then
3431    # We chose a different compiler from the bogus one.
3432    # However, it has the same basename, so the bogon will be chosen
3433    # first if we set CC to just the basename; use the full file name.
3434    shift
3435    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3436  fi
3437fi
3438fi
3439fi
3440CC=$ac_cv_prog_CC
3441if test -n "$CC"; then
3442  echo "$as_me:$LINENO: result: $CC" >&5
3443echo "${ECHO_T}$CC" >&6
3444else
3445  echo "$as_me:$LINENO: result: no" >&5
3446echo "${ECHO_T}no" >&6
3447fi
3448
3449fi
3450if test -z "$CC"; then
3451  if test -n "$ac_tool_prefix"; then
3452  for ac_prog in cl
3453  do
3454    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456echo "$as_me:$LINENO: checking for $ac_word" >&5
3457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458if test "${ac_cv_prog_CC+set}" = set; then
3459  echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461  if test -n "$CC"; then
3462  ac_cv_prog_CC="$CC" # Let the user override the test.
3463else
3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467  IFS=$as_save_IFS
3468  test -z "$as_dir" && as_dir=.
3469  for ac_exec_ext in '' $ac_executable_extensions; do
3470  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3472    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473    break 2
3474  fi
3475done
3476done
3477
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482  echo "$as_me:$LINENO: result: $CC" >&5
3483echo "${ECHO_T}$CC" >&6
3484else
3485  echo "$as_me:$LINENO: result: no" >&5
3486echo "${ECHO_T}no" >&6
3487fi
3488
3489    test -n "$CC" && break
3490  done
3491fi
3492if test -z "$CC"; then
3493  ac_ct_CC=$CC
3494  for ac_prog in cl
3495do
3496  # Extract the first word of "$ac_prog", so it can be a program name with args.
3497set dummy $ac_prog; ac_word=$2
3498echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3501  echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503  if test -n "$ac_ct_CC"; then
3504  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509  IFS=$as_save_IFS
3510  test -z "$as_dir" && as_dir=.
3511  for ac_exec_ext in '' $ac_executable_extensions; do
3512  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513    ac_cv_prog_ac_ct_CC="$ac_prog"
3514    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515    break 2
3516  fi
3517done
3518done
3519
3520fi
3521fi
3522ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523if test -n "$ac_ct_CC"; then
3524  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3525echo "${ECHO_T}$ac_ct_CC" >&6
3526else
3527  echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
3529fi
3530
3531  test -n "$ac_ct_CC" && break
3532done
3533
3534  CC=$ac_ct_CC
3535fi
3536
3537fi
3538
3539
3540test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3541See \`config.log' for more details." >&5
3542echo "$as_me: error: no acceptable C compiler found in \$PATH
3543See \`config.log' for more details." >&2;}
3544   { (exit 1); exit 1; }; }
3545
3546# Provide some information about the compiler.
3547echo "$as_me:$LINENO:" \
3548     "checking for C compiler version" >&5
3549ac_compiler=`set X $ac_compile; echo $2`
3550{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3551  (eval $ac_compiler --version </dev/null >&5) 2>&5
3552  ac_status=$?
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); }
3555{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3556  (eval $ac_compiler -v </dev/null >&5) 2>&5
3557  ac_status=$?
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); }
3560{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3561  (eval $ac_compiler -V </dev/null >&5) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }
3565
3566echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3567echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3568if test "${ac_cv_c_compiler_gnu+set}" = set; then
3569  echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571  cat >conftest.$ac_ext <<_ACEOF
3572/* confdefs.h.  */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h.  */
3577
3578int
3579main ()
3580{
3581#ifndef __GNUC__
3582       choke me
3583#endif
3584
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589rm -f conftest.$ac_objext
3590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591  (eval $ac_compile) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } &&
3598	 { ac_try='test -z "$ac_c_werror_flag"
3599			 || test ! -s conftest.err'
3600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; } &&
3605	 { ac_try='test -s conftest.$ac_objext'
3606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607  (eval $ac_try) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); }; }; then
3611  ac_compiler_gnu=yes
3612else
3613  echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616ac_compiler_gnu=no
3617fi
3618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619ac_cv_c_compiler_gnu=$ac_compiler_gnu
3620
3621fi
3622echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3623echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3624GCC=`test $ac_compiler_gnu = yes && echo yes`
3625ac_test_CFLAGS=${CFLAGS+set}
3626ac_save_CFLAGS=$CFLAGS
3627CFLAGS="-g"
3628echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3629echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3630if test "${ac_cv_prog_cc_g+set}" = set; then
3631  echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633  cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h.  */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h.  */
3639
3640int
3641main ()
3642{
3643
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650  (eval $ac_compile) 2>conftest.er1
3651  ac_status=$?
3652  grep -v '^ *+' conftest.er1 >conftest.err
3653  rm -f conftest.er1
3654  cat conftest.err >&5
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); } &&
3657	 { ac_try='test -z "$ac_c_werror_flag"
3658			 || test ! -s conftest.err'
3659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660  (eval $ac_try) 2>&5
3661  ac_status=$?
3662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663  (exit $ac_status); }; } &&
3664	 { ac_try='test -s conftest.$ac_objext'
3665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666  (eval $ac_try) 2>&5
3667  ac_status=$?
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); }; }; then
3670  ac_cv_prog_cc_g=yes
3671else
3672  echo "$as_me: failed program was:" >&5
3673sed 's/^/| /' conftest.$ac_ext >&5
3674
3675ac_cv_prog_cc_g=no
3676fi
3677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678fi
3679echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3680echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3681if test "$ac_test_CFLAGS" = set; then
3682  CFLAGS=$ac_save_CFLAGS
3683elif test $ac_cv_prog_cc_g = yes; then
3684  if test "$GCC" = yes; then
3685    CFLAGS="-g -O2"
3686  else
3687    CFLAGS="-g"
3688  fi
3689else
3690  if test "$GCC" = yes; then
3691    CFLAGS="-O2"
3692  else
3693    CFLAGS=
3694  fi
3695fi
3696echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3697echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3698if test "${ac_cv_prog_cc_stdc+set}" = set; then
3699  echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701  ac_cv_prog_cc_stdc=no
3702ac_save_CC=$CC
3703cat >conftest.$ac_ext <<_ACEOF
3704/* confdefs.h.  */
3705_ACEOF
3706cat confdefs.h >>conftest.$ac_ext
3707cat >>conftest.$ac_ext <<_ACEOF
3708/* end confdefs.h.  */
3709#include <stdarg.h>
3710#include <stdio.h>
3711#include <sys/types.h>
3712#include <sys/stat.h>
3713/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3714struct buf { int x; };
3715FILE * (*rcsopen) (struct buf *, struct stat *, int);
3716static char *e (p, i)
3717     char **p;
3718     int i;
3719{
3720  return p[i];
3721}
3722static char *f (char * (*g) (char **, int), char **p, ...)
3723{
3724  char *s;
3725  va_list v;
3726  va_start (v,p);
3727  s = g (p, va_arg (v,int));
3728  va_end (v);
3729  return s;
3730}
3731
3732/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3733   function prototypes and stuff, but not '\xHH' hex character constants.
3734   These don't provoke an error unfortunately, instead are silently treated
3735   as 'x'.  The following induces an error, until -std1 is added to get
3736   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3737   array size at least.  It's necessary to write '\x00'==0 to get something
3738   that's true only with -std1.  */
3739int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740
3741int test (int i, double x);
3742struct s1 {int (*f) (int a);};
3743struct s2 {int (*f) (double a);};
3744int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745int argc;
3746char **argv;
3747int
3748main ()
3749{
3750return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3751  ;
3752  return 0;
3753}
3754_ACEOF
3755# Don't try gcc -ansi; that turns off useful extensions and
3756# breaks some systems' header files.
3757# AIX			-qlanglvl=ansi
3758# Ultrix and OSF/1	-std1
3759# HP-UX 10.20 and later	-Ae
3760# HP-UX older versions	-Aa -D_HPUX_SOURCE
3761# SVR4			-Xc -D__EXTENSIONS__
3762for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763do
3764  CC="$ac_save_CC $ac_arg"
3765  rm -f conftest.$ac_objext
3766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767  (eval $ac_compile) 2>conftest.er1
3768  ac_status=$?
3769  grep -v '^ *+' conftest.er1 >conftest.err
3770  rm -f conftest.er1
3771  cat conftest.err >&5
3772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); } &&
3774	 { ac_try='test -z "$ac_c_werror_flag"
3775			 || test ! -s conftest.err'
3776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777  (eval $ac_try) 2>&5
3778  ac_status=$?
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); }; } &&
3781	 { ac_try='test -s conftest.$ac_objext'
3782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783  (eval $ac_try) 2>&5
3784  ac_status=$?
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); }; }; then
3787  ac_cv_prog_cc_stdc=$ac_arg
3788break
3789else
3790  echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793fi
3794rm -f conftest.err conftest.$ac_objext
3795done
3796rm -f conftest.$ac_ext conftest.$ac_objext
3797CC=$ac_save_CC
3798
3799fi
3800
3801case "x$ac_cv_prog_cc_stdc" in
3802  x|xno)
3803    echo "$as_me:$LINENO: result: none needed" >&5
3804echo "${ECHO_T}none needed" >&6 ;;
3805  *)
3806    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3807echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3808    CC="$CC $ac_cv_prog_cc_stdc" ;;
3809esac
3810
3811# Some people use a C++ compiler to compile C.  Since we use `exit',
3812# in C++ we need to declare it.  In case someone uses the same compiler
3813# for both compiling C and C++ we need to have the C++ compiler decide
3814# the declaration of exit, since it's the most demanding environment.
3815cat >conftest.$ac_ext <<_ACEOF
3816#ifndef __cplusplus
3817  choke me
3818#endif
3819_ACEOF
3820rm -f conftest.$ac_objext
3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822  (eval $ac_compile) 2>conftest.er1
3823  ac_status=$?
3824  grep -v '^ *+' conftest.er1 >conftest.err
3825  rm -f conftest.er1
3826  cat conftest.err >&5
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); } &&
3829	 { ac_try='test -z "$ac_c_werror_flag"
3830			 || test ! -s conftest.err'
3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832  (eval $ac_try) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); }; } &&
3836	 { ac_try='test -s conftest.$ac_objext'
3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838  (eval $ac_try) 2>&5
3839  ac_status=$?
3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841  (exit $ac_status); }; }; then
3842  for ac_declaration in \
3843   '' \
3844   'extern "C" void std::exit (int) throw (); using std::exit;' \
3845   'extern "C" void std::exit (int); using std::exit;' \
3846   'extern "C" void exit (int) throw ();' \
3847   'extern "C" void exit (int);' \
3848   'void exit (int);'
3849do
3850  cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856$ac_declaration
3857#include <stdlib.h>
3858int
3859main ()
3860{
3861exit (42);
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866rm -f conftest.$ac_objext
3867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868  (eval $ac_compile) 2>conftest.er1
3869  ac_status=$?
3870  grep -v '^ *+' conftest.er1 >conftest.err
3871  rm -f conftest.er1
3872  cat conftest.err >&5
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); } &&
3875	 { ac_try='test -z "$ac_c_werror_flag"
3876			 || test ! -s conftest.err'
3877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878  (eval $ac_try) 2>&5
3879  ac_status=$?
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); }; } &&
3882	 { ac_try='test -s conftest.$ac_objext'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; }; then
3888  :
3889else
3890  echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893continue
3894fi
3895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3896  cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h.  */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h.  */
3902$ac_declaration
3903int
3904main ()
3905{
3906exit (42);
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911rm -f conftest.$ac_objext
3912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913  (eval $ac_compile) 2>conftest.er1
3914  ac_status=$?
3915  grep -v '^ *+' conftest.er1 >conftest.err
3916  rm -f conftest.er1
3917  cat conftest.err >&5
3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); } &&
3920	 { ac_try='test -z "$ac_c_werror_flag"
3921			 || test ! -s conftest.err'
3922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923  (eval $ac_try) 2>&5
3924  ac_status=$?
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); }; } &&
3927	 { ac_try='test -s conftest.$ac_objext'
3928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929  (eval $ac_try) 2>&5
3930  ac_status=$?
3931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932  (exit $ac_status); }; }; then
3933  break
3934else
3935  echo "$as_me: failed program was:" >&5
3936sed 's/^/| /' conftest.$ac_ext >&5
3937
3938fi
3939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3940done
3941rm -f conftest*
3942if test -n "$ac_declaration"; then
3943  echo '#ifdef __cplusplus' >>confdefs.h
3944  echo $ac_declaration      >>confdefs.h
3945  echo '#endif'             >>confdefs.h
3946fi
3947
3948else
3949  echo "$as_me: failed program was:" >&5
3950sed 's/^/| /' conftest.$ac_ext >&5
3951
3952fi
3953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3954ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960
3961cat >>confdefs.h <<\_ACEOF
3962#define _GNU_SOURCE 1
3963_ACEOF
3964
3965
3966
3967
3968macro_version='2.1a'
3969macro_revision='1.2435'
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982ltmain="$ac_aux_dir/ltmain.sh"
3983
3984# Set options
3985
3986enable_dlopen=no
3987
3988
3989enable_win32_dll=no
3990
3991
3992# Check whether --enable-shared or --disable-shared was given.
3993if test "${enable_shared+set}" = set; then
3994  enableval="$enable_shared"
3995  p=${PACKAGE-default}
3996    case $enableval in
3997    yes) enable_shared=yes ;;
3998    no) enable_shared=no ;;
3999    *)
4000      enable_shared=no
4001      # Look at the argument we got.  We use all the common list separators.
4002      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4003      for pkg in $enableval; do
4004	IFS="$lt_save_ifs"
4005	if test "X$pkg" = "X$p"; then
4006	  enable_shared=yes
4007	fi
4008      done
4009      IFS="$lt_save_ifs"
4010      ;;
4011    esac
4012else
4013  enable_shared=yes
4014fi;
4015
4016
4017
4018
4019
4020
4021
4022
4023# Check whether --enable-static or --disable-static was given.
4024if test "${enable_static+set}" = set; then
4025  enableval="$enable_static"
4026  p=${PACKAGE-default}
4027    case $enableval in
4028    yes) enable_static=yes ;;
4029    no) enable_static=no ;;
4030    *)
4031     enable_static=no
4032      # Look at the argument we got.  We use all the common list separators.
4033      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4034      for pkg in $enableval; do
4035	IFS="$lt_save_ifs"
4036	if test "X$pkg" = "X$p"; then
4037	  enable_static=yes
4038	fi
4039      done
4040      IFS="$lt_save_ifs"
4041      ;;
4042    esac
4043else
4044  enable_static=yes
4045fi;
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055# Check whether --with-pic or --without-pic was given.
4056if test "${with_pic+set}" = set; then
4057  withval="$with_pic"
4058  pic_mode="$withval"
4059else
4060  pic_mode=default
4061fi;
4062
4063test -z "$pic_mode" && pic_mode=default
4064
4065
4066
4067
4068
4069
4070
4071# Check whether --enable-fast-install or --disable-fast-install was given.
4072if test "${enable_fast_install+set}" = set; then
4073  enableval="$enable_fast_install"
4074  p=${PACKAGE-default}
4075    case $enableval in
4076    yes) enable_fast_install=yes ;;
4077    no) enable_fast_install=no ;;
4078    *)
4079      enable_fast_install=no
4080      # Look at the argument we got.  We use all the common list separators.
4081      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4082      for pkg in $enableval; do
4083	IFS="$lt_save_ifs"
4084	if test "X$pkg" = "X$p"; then
4085	  enable_fast_install=yes
4086	fi
4087      done
4088      IFS="$lt_save_ifs"
4089      ;;
4090    esac
4091else
4092  enable_fast_install=yes
4093fi;
4094
4095
4096
4097
4098
4099
4100
4101
4102echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4103echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4104if test "${lt_cv_path_SED+set}" = set; then
4105  echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107  # Loop through the user's path and test for sed and gsed.
4108# Then use that list of sed's as ones to test for truncation.
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112  IFS=$as_save_IFS
4113  test -z "$as_dir" && as_dir=.
4114  for lt_ac_prog in sed gsed; do
4115    for ac_exec_ext in '' $ac_executable_extensions; do
4116      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4117        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4118      fi
4119    done
4120  done
4121done
4122IFS=$as_save_IFS
4123lt_ac_max=0
4124lt_ac_count=0
4125# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4126# along with /bin/sed that truncates output.
4127for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4128  test ! -f $lt_ac_sed && continue
4129  cat /dev/null > conftest.in
4130  lt_ac_count=0
4131  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4132  # Check for GNU sed and select it if it is found.
4133  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4134    lt_cv_path_SED=$lt_ac_sed
4135    break
4136  fi
4137  while true; do
4138    cat conftest.in conftest.in >conftest.tmp
4139    mv conftest.tmp conftest.in
4140    cp conftest.in conftest.nl
4141    echo >>conftest.nl
4142    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4143    cmp -s conftest.out conftest.nl || break
4144    # 10000 chars as input seems more than enough
4145    test $lt_ac_count -gt 10 && break
4146    lt_ac_count=`expr $lt_ac_count + 1`
4147    if test $lt_ac_count -gt $lt_ac_max; then
4148      lt_ac_max=$lt_ac_count
4149      lt_cv_path_SED=$lt_ac_sed
4150    fi
4151  done
4152done
4153
4154fi
4155
4156SED=$lt_cv_path_SED
4157
4158echo "$as_me:$LINENO: result: $SED" >&5
4159echo "${ECHO_T}$SED" >&6
4160
4161test -z "$SED" && SED=sed
4162Xsed="$SED -e 1s/^X//"
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174echo "$as_me:$LINENO: checking for egrep" >&5
4175echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4176if test "${ac_cv_prog_egrep+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4180    then ac_cv_prog_egrep='grep -E'
4181    else ac_cv_prog_egrep='egrep'
4182    fi
4183fi
4184echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4185echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4186 EGREP=$ac_cv_prog_egrep
4187
4188
4189echo "$as_me:$LINENO: checking for fgrep" >&5
4190echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4191if test "${ac_cv_prog_fgrep+set}" = set; then
4192  echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4195    then ac_cv_prog_fgrep='grep -F'
4196    else ac_cv_prog_fgrep='fgrep'
4197    fi
4198fi
4199echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4200echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4201 FGREP=$ac_cv_prog_fgrep
4202
4203
4204test -z "$GREP" && GREP=grep
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224# Check whether --with-gnu-ld or --without-gnu-ld was given.
4225if test "${with_gnu_ld+set}" = set; then
4226  withval="$with_gnu_ld"
4227  test "$withval" = no || with_gnu_ld=yes
4228else
4229  with_gnu_ld=no
4230fi;
4231ac_prog=ld
4232if test "$GCC" = yes; then
4233  # Check if gcc -print-prog-name=ld gives a path.
4234  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4235echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4236  case $host in
4237  *-*-mingw*)
4238    # gcc leaves a trailing carriage return which upsets mingw
4239    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4240  *)
4241    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4242  esac
4243  case $ac_prog in
4244    # Accept absolute paths.
4245    [\\/]* | ?:[\\/]*)
4246      re_direlt='/[^/][^/]*/\.\./'
4247      # Canonicalize the pathname of ld
4248      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4249      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4250	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4251      done
4252      test -z "$LD" && LD="$ac_prog"
4253      ;;
4254  "")
4255    # If it fails, then pretend we aren't using GCC.
4256    ac_prog=ld
4257    ;;
4258  *)
4259    # If it is relative, then search for the first ld in PATH.
4260    with_gnu_ld=unknown
4261    ;;
4262  esac
4263elif test "$with_gnu_ld" = yes; then
4264  echo "$as_me:$LINENO: checking for GNU ld" >&5
4265echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4266else
4267  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4268echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4269fi
4270if test "${lt_cv_path_LD+set}" = set; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  if test -z "$LD"; then
4274  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4275  for ac_dir in $PATH; do
4276    IFS="$lt_save_ifs"
4277    test -z "$ac_dir" && ac_dir=.
4278    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4279      lt_cv_path_LD="$ac_dir/$ac_prog"
4280      # Check to see if the program is GNU ld.  I'd rather use --version,
4281      # but apparently some variants of GNU ld only accept -v.
4282      # Break only if it was the GNU/non-GNU ld that we prefer.
4283      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4284      *GNU* | *'with BFD'*)
4285	test "$with_gnu_ld" != no && break
4286	;;
4287      *)
4288	test "$with_gnu_ld" != yes && break
4289	;;
4290      esac
4291    fi
4292  done
4293  IFS="$lt_save_ifs"
4294else
4295  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4296fi
4297fi
4298
4299LD="$lt_cv_path_LD"
4300if test -n "$LD"; then
4301  echo "$as_me:$LINENO: result: $LD" >&5
4302echo "${ECHO_T}$LD" >&6
4303else
4304  echo "$as_me:$LINENO: result: no" >&5
4305echo "${ECHO_T}no" >&6
4306fi
4307test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4308echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4309   { (exit 1); exit 1; }; }
4310echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4311echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4312if test "${lt_cv_prog_gnu_ld+set}" = set; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4316case `$LD -v 2>&1 </dev/null` in
4317*GNU* | *'with BFD'*)
4318  lt_cv_prog_gnu_ld=yes
4319  ;;
4320*)
4321  lt_cv_prog_gnu_ld=no
4322  ;;
4323esac
4324fi
4325echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4326echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4327with_gnu_ld=$lt_cv_prog_gnu_ld
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4339echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4340if test "${lt_cv_path_NM+set}" = set; then
4341  echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343  if test -n "$NM"; then
4344  # Let the user override the test.
4345  lt_cv_path_NM="$NM"
4346else
4347  lt_nm_to_check="${ac_tool_prefix}nm"
4348  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4349    lt_nm_to_check="$lt_nm_to_check nm"
4350  fi
4351  for lt_tmp_nm in $lt_nm_to_check; do
4352    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4353    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4354      IFS="$lt_save_ifs"
4355      test -z "$ac_dir" && ac_dir=.
4356      tmp_nm="$ac_dir/$lt_tmp_nm"
4357      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4358	# Check to see if the nm accepts a BSD-compat flag.
4359	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4360	#   nm: unknown option "B" ignored
4361	# Tru64's nm complains that /dev/null is an invalid object file
4362	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4363	*/dev/null* | *'Invalid file or object type'*)
4364	  lt_cv_path_NM="$tmp_nm -B"
4365	  break
4366	  ;;
4367	*)
4368	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4369	  */dev/null*)
4370	    lt_cv_path_NM="$tmp_nm -p"
4371	    break
4372	    ;;
4373	  *)
4374	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4375	    continue # so that we can try to find one that supports BSD flags
4376	    ;;
4377	  esac
4378	  ;;
4379	esac
4380      fi
4381    done
4382    IFS="$lt_save_ifs"
4383  done
4384  : ${lt_cv_path_NM=no}
4385fi
4386fi
4387echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4388echo "${ECHO_T}$lt_cv_path_NM" >&6
4389if test "$lt_cv_path_NM" != "no"; then
4390  NM="$lt_cv_path_NM"
4391else
4392  # Didn't find any BSD compatible name lister, look for dumpbin.
4393  if test -n "$ac_tool_prefix"; then
4394  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4395  do
4396    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4397set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4398echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403  if test -n "$DUMPBIN"; then
4404  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411  for ac_exec_ext in '' $ac_executable_extensions; do
4412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415    break 2
4416  fi
4417done
4418done
4419
4420fi
4421fi
4422DUMPBIN=$ac_cv_prog_DUMPBIN
4423if test -n "$DUMPBIN"; then
4424  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4425echo "${ECHO_T}$DUMPBIN" >&6
4426else
4427  echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6
4429fi
4430
4431    test -n "$DUMPBIN" && break
4432  done
4433fi
4434if test -z "$DUMPBIN"; then
4435  ac_ct_DUMPBIN=$DUMPBIN
4436  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4437do
4438  # Extract the first word of "$ac_prog", so it can be a program name with args.
4439set dummy $ac_prog; ac_word=$2
4440echo "$as_me:$LINENO: checking for $ac_word" >&5
4441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4443  echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445  if test -n "$ac_ct_DUMPBIN"; then
4446  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451  IFS=$as_save_IFS
4452  test -z "$as_dir" && as_dir=.
4453  for ac_exec_ext in '' $ac_executable_extensions; do
4454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457    break 2
4458  fi
4459done
4460done
4461
4462fi
4463fi
4464ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4465if test -n "$ac_ct_DUMPBIN"; then
4466  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4467echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4468else
4469  echo "$as_me:$LINENO: result: no" >&5
4470echo "${ECHO_T}no" >&6
4471fi
4472
4473  test -n "$ac_ct_DUMPBIN" && break
4474done
4475test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4476
4477  DUMPBIN=$ac_ct_DUMPBIN
4478fi
4479
4480
4481  if test "$DUMPBIN" != ":"; then
4482    NM="$DUMPBIN"
4483  fi
4484fi
4485test -z "$NM" && NM=nm
4486
4487
4488
4489
4490
4491
4492echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4493echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4494if test "${lt_cv_nm_interface+set}" = set; then
4495  echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497  lt_cv_nm_interface="BSD nm"
4498  echo "int some_variable = 0;" > conftest.$ac_ext
4499  (eval echo "\"\$as_me:4499: $ac_compile\"" >&5)
4500  (eval "$ac_compile" 2>conftest.err)
4501  cat conftest.err >&5
4502  (eval echo "\"\$as_me:4502: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4503  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4504  cat conftest.err >&5
4505  (eval echo "\"\$as_me:4505: output\"" >&5)
4506  cat conftest.out >&5
4507  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4508    lt_cv_nm_interface="MS dumpbin"
4509  fi
4510  rm -f conftest*
4511fi
4512echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4513echo "${ECHO_T}$lt_cv_nm_interface" >&6
4514
4515echo "$as_me:$LINENO: checking whether ln -s works" >&5
4516echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4517LN_S=$as_ln_s
4518if test "$LN_S" = "ln -s"; then
4519  echo "$as_me:$LINENO: result: yes" >&5
4520echo "${ECHO_T}yes" >&6
4521else
4522  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4523echo "${ECHO_T}no, using $LN_S" >&6
4524fi
4525
4526# find the maximum length of command line arguments
4527echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4528echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4529if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4530  echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532    i=0
4533  teststring="ABCD"
4534
4535  case $build_os in
4536  msdosdjgpp*)
4537    # On DJGPP, this test can blow up pretty badly due to problems in libc
4538    # (any single argument exceeding 2000 bytes causes a buffer overrun
4539    # during glob expansion).  Even if it were fixed, the result of this
4540    # check would be larger than it should be.
4541    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4542    ;;
4543
4544  gnu*)
4545    # Under GNU Hurd, this test is not required because there is
4546    # no limit to the length of command line arguments.
4547    # Libtool will interpret -1 as no limit whatsoever
4548    lt_cv_sys_max_cmd_len=-1;
4549    ;;
4550
4551  cygwin* | mingw*)
4552    # On Win9x/ME, this test blows up -- it succeeds, but takes
4553    # about 5 minutes as the teststring grows exponentially.
4554    # Worse, since 9x/ME are not pre-emptively multitasking,
4555    # you end up with a "frozen" computer, even though with patience
4556    # the test eventually succeeds (with a max line length of 256k).
4557    # Instead, let's just punt: use the minimum linelength reported by
4558    # all of the supported platforms: 8192 (on NT/2K/XP).
4559    lt_cv_sys_max_cmd_len=8192;
4560    ;;
4561
4562  amigaos*)
4563    # On AmigaOS with pdksh, this test takes hours, literally.
4564    # So we just punt and use a minimum line length of 8192.
4565    lt_cv_sys_max_cmd_len=8192;
4566    ;;
4567
4568  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4569    # This has been around since 386BSD, at least.  Likely further.
4570    if test -x /sbin/sysctl; then
4571      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4572    elif test -x /usr/sbin/sysctl; then
4573      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4574    else
4575      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4576    fi
4577    # And add a safety zone
4578    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4580    ;;
4581
4582  interix*)
4583    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4584    lt_cv_sys_max_cmd_len=196608
4585    ;;
4586
4587  osf*)
4588    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4589    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4590    # nice to cause kernel panics so lets avoid the loop below.
4591    # First set a reasonable default.
4592    lt_cv_sys_max_cmd_len=16384
4593    #
4594    if test -x /sbin/sysconfig; then
4595      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4596        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4597      esac
4598    fi
4599    ;;
4600  sco3.2v5*)
4601    lt_cv_sys_max_cmd_len=102400
4602    ;;
4603  sysv5* | sco5v6* | sysv4.2uw2*)
4604    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4605    if test -n "$kargmax"; then
4606      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4607    else
4608      lt_cv_sys_max_cmd_len=32768
4609    fi
4610    ;;
4611  *)
4612    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4613    if test -n $lt_cv_sys_max_cmd_len; then
4614      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4615      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4616    else
4617      # Make teststring a little bigger before we do anything with it.
4618      # a 1K string should be a reasonable start.
4619      for i in 1 2 3 4 5 6 7 8 ; do
4620        teststring=$teststring$teststring
4621      done
4622      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4623      # If test is not a shell built-in, we'll probably end up computing a
4624      # maximum length that is only half of the actual maximum length, but
4625      # we can't tell.
4626      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4627	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4628	      test $i != 17 # 1/2 MB should be enough
4629      do
4630        i=`expr $i + 1`
4631        teststring=$teststring$teststring
4632      done
4633      # Only check the string length outside the loop.
4634      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4635      teststring=
4636      # Add a significant safety factor because C++ compilers can tack on
4637      # massive amounts of additional arguments before passing them to the
4638      # linker.  It appears as though 1/2 is a usable value.
4639      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4640    fi
4641    ;;
4642  esac
4643
4644fi
4645
4646if test -n $lt_cv_sys_max_cmd_len ; then
4647  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4648echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4649else
4650  echo "$as_me:$LINENO: result: none" >&5
4651echo "${ECHO_T}none" >&6
4652fi
4653max_cmd_len=$lt_cv_sys_max_cmd_len
4654
4655
4656
4657
4658
4659
4660
4661: ${CP="cp -f"}
4662: ${MV="mv -f"}
4663: ${RM="rm -f"}
4664
4665echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4666echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4667# Try some XSI features
4668xsi_shell=no
4669( _lt_dummy="a/b/c"
4670  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4671      = c,a/b,, ) >/dev/null 2>&1 \
4672  && xsi_shell=yes
4673echo "$as_me:$LINENO: result: $xsi_shell" >&5
4674echo "${ECHO_T}$xsi_shell" >&6
4675
4676
4677echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4678echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4679lt_shell_append=no
4680( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4681    >/dev/null 2>&1 \
4682  && lt_shell_append=yes
4683echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4684echo "${ECHO_T}$lt_shell_append" >&6
4685
4686
4687if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4688  lt_unset=unset
4689else
4690  lt_unset=false
4691fi
4692
4693
4694
4695
4696
4697# test EBCDIC or ASCII
4698case `echo X|tr X '\101'` in
4699 A) # ASCII based system
4700    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4701  lt_SP2NL='tr \040 \012'
4702  lt_NL2SP='tr \015\012 \040\040'
4703  ;;
4704 *) # EBCDIC based system
4705  lt_SP2NL='tr \100 \n'
4706  lt_NL2SP='tr \r\n \100\100'
4707  ;;
4708esac
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4719echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4720if test "${lt_cv_ld_reload_flag+set}" = set; then
4721  echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723  lt_cv_ld_reload_flag='-r'
4724fi
4725echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4726echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4727reload_flag=$lt_cv_ld_reload_flag
4728case $reload_flag in
4729"" | " "*) ;;
4730*) reload_flag=" $reload_flag" ;;
4731esac
4732reload_cmds='$LD$reload_flag -o $output$reload_objs'
4733case $host_os in
4734  darwin*)
4735    if test "$GCC" = yes; then
4736      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4737    else
4738      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4739    fi
4740    ;;
4741esac
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4753echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4754if test "${lt_cv_deplibs_check_method+set}" = set; then
4755  echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757  lt_cv_file_magic_cmd='$MAGIC_CMD'
4758lt_cv_file_magic_test_file=
4759lt_cv_deplibs_check_method='unknown'
4760# Need to set the preceding variable on all platforms that support
4761# interlibrary dependencies.
4762# 'none' -- dependencies not supported.
4763# `unknown' -- same as none, but documents that we really don't know.
4764# 'pass_all' -- all dependencies passed with no checks.
4765# 'test_compile' -- check by making test program.
4766# 'file_magic [[regex]]' -- check by looking for files in library path
4767# which responds to the $file_magic_cmd with a given extended regex.
4768# If you have `file' or equivalent on your system and you're not sure
4769# whether `pass_all' will *always* work, you probably want this one.
4770
4771case $host_os in
4772aix4* | aix5*)
4773  lt_cv_deplibs_check_method=pass_all
4774  ;;
4775
4776beos*)
4777  lt_cv_deplibs_check_method=pass_all
4778  ;;
4779
4780bsdi[45]*)
4781  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4782  lt_cv_file_magic_cmd='/usr/bin/file -L'
4783  lt_cv_file_magic_test_file=/shlib/libc.so
4784  ;;
4785
4786cygwin*)
4787  # func_win32_libid is a shell function defined in ltmain.sh
4788  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4789  lt_cv_file_magic_cmd='func_win32_libid'
4790  ;;
4791
4792mingw* | pw32*)
4793  # Base MSYS/MinGW do not provide the 'file' command needed by
4794  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4795  # unless we find 'file', for example because we are cross-compiling.
4796  if ( file / ) >/dev/null 2>&1; then
4797    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4798    lt_cv_file_magic_cmd='func_win32_libid'
4799  else
4800    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4801    lt_cv_file_magic_cmd='$OBJDUMP -f'
4802  fi
4803  ;;
4804
4805darwin* | rhapsody*)
4806  lt_cv_deplibs_check_method=pass_all
4807  ;;
4808
4809freebsd* | dragonfly*)
4810  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4811    case $host_cpu in
4812    i*86 )
4813      # Not sure whether the presence of OpenBSD here was a mistake.
4814      # Let's accept both of them until this is cleared up.
4815      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4816      lt_cv_file_magic_cmd=/usr/bin/file
4817      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4818      ;;
4819    esac
4820  else
4821    lt_cv_deplibs_check_method=pass_all
4822  fi
4823  ;;
4824
4825gnu*)
4826  lt_cv_deplibs_check_method=pass_all
4827  ;;
4828
4829hpux10.20* | hpux11*)
4830  lt_cv_file_magic_cmd=/usr/bin/file
4831  case $host_cpu in
4832  ia64*)
4833    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4834    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4835    ;;
4836  hppa*64*)
4837    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]'
4838    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4839    ;;
4840  *)
4841    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4842    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4843    ;;
4844  esac
4845  ;;
4846
4847interix[3-9]*)
4848  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4849  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4850  ;;
4851
4852irix5* | irix6* | nonstopux*)
4853  case $LD in
4854  *-32|*"-32 ") libmagic=32-bit;;
4855  *-n32|*"-n32 ") libmagic=N32;;
4856  *-64|*"-64 ") libmagic=64-bit;;
4857  *) libmagic=never-match;;
4858  esac
4859  lt_cv_deplibs_check_method=pass_all
4860  ;;
4861
4862# This must be Linux ELF.
4863linux* | k*bsd*-gnu)
4864  lt_cv_deplibs_check_method=pass_all
4865  ;;
4866
4867netbsd*)
4868  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4869    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4870  else
4871    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4872  fi
4873  ;;
4874
4875newos6*)
4876  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4877  lt_cv_file_magic_cmd=/usr/bin/file
4878  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4879  ;;
4880
4881*nto* | *qnx*)
4882  lt_cv_deplibs_check_method=pass_all
4883  ;;
4884
4885openbsd*)
4886  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4887    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4888  else
4889    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4890  fi
4891  ;;
4892
4893osf3* | osf4* | osf5*)
4894  lt_cv_deplibs_check_method=pass_all
4895  ;;
4896
4897rdos*)
4898  lt_cv_deplibs_check_method=pass_all
4899  ;;
4900
4901solaris*)
4902  lt_cv_deplibs_check_method=pass_all
4903  ;;
4904
4905sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4906  lt_cv_deplibs_check_method=pass_all
4907  ;;
4908
4909sysv4 | sysv4.3*)
4910  case $host_vendor in
4911  motorola)
4912    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]'
4913    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4914    ;;
4915  ncr)
4916    lt_cv_deplibs_check_method=pass_all
4917    ;;
4918  sequent)
4919    lt_cv_file_magic_cmd='/bin/file'
4920    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4921    ;;
4922  sni)
4923    lt_cv_file_magic_cmd='/bin/file'
4924    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4925    lt_cv_file_magic_test_file=/lib/libc.so
4926    ;;
4927  siemens)
4928    lt_cv_deplibs_check_method=pass_all
4929    ;;
4930  pc)
4931    lt_cv_deplibs_check_method=pass_all
4932    ;;
4933  esac
4934  ;;
4935
4936tpf*)
4937  lt_cv_deplibs_check_method=pass_all
4938  ;;
4939esac
4940
4941fi
4942echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4943echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4944file_magic_cmd=$lt_cv_file_magic_cmd
4945deplibs_check_method=$lt_cv_deplibs_check_method
4946test -z "$deplibs_check_method" && deplibs_check_method=unknown
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959if test -n "$ac_tool_prefix"; then
4960  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4961set dummy ${ac_tool_prefix}ar; ac_word=$2
4962echo "$as_me:$LINENO: checking for $ac_word" >&5
4963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964if test "${ac_cv_prog_AR+set}" = set; then
4965  echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967  if test -n "$AR"; then
4968  ac_cv_prog_AR="$AR" # Let the user override the test.
4969else
4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971for as_dir in $PATH
4972do
4973  IFS=$as_save_IFS
4974  test -z "$as_dir" && as_dir=.
4975  for ac_exec_ext in '' $ac_executable_extensions; do
4976  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977    ac_cv_prog_AR="${ac_tool_prefix}ar"
4978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979    break 2
4980  fi
4981done
4982done
4983
4984fi
4985fi
4986AR=$ac_cv_prog_AR
4987if test -n "$AR"; then
4988  echo "$as_me:$LINENO: result: $AR" >&5
4989echo "${ECHO_T}$AR" >&6
4990else
4991  echo "$as_me:$LINENO: result: no" >&5
4992echo "${ECHO_T}no" >&6
4993fi
4994
4995fi
4996if test -z "$ac_cv_prog_AR"; then
4997  ac_ct_AR=$AR
4998  # Extract the first word of "ar", so it can be a program name with args.
4999set dummy ar; ac_word=$2
5000echo "$as_me:$LINENO: checking for $ac_word" >&5
5001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5003  echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005  if test -n "$ac_ct_AR"; then
5006  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5007else
5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009for as_dir in $PATH
5010do
5011  IFS=$as_save_IFS
5012  test -z "$as_dir" && as_dir=.
5013  for ac_exec_ext in '' $ac_executable_extensions; do
5014  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015    ac_cv_prog_ac_ct_AR="ar"
5016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017    break 2
5018  fi
5019done
5020done
5021
5022  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5023fi
5024fi
5025ac_ct_AR=$ac_cv_prog_ac_ct_AR
5026if test -n "$ac_ct_AR"; then
5027  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5028echo "${ECHO_T}$ac_ct_AR" >&6
5029else
5030  echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032fi
5033
5034  AR=$ac_ct_AR
5035else
5036  AR="$ac_cv_prog_AR"
5037fi
5038
5039test -z "$AR" && AR=ar
5040test -z "$AR_FLAGS" && AR_FLAGS=cru
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052if test -n "$ac_tool_prefix"; then
5053  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5054set dummy ${ac_tool_prefix}strip; ac_word=$2
5055echo "$as_me:$LINENO: checking for $ac_word" >&5
5056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057if test "${ac_cv_prog_STRIP+set}" = set; then
5058  echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060  if test -n "$STRIP"; then
5061  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068  for ac_exec_ext in '' $ac_executable_extensions; do
5069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075done
5076
5077fi
5078fi
5079STRIP=$ac_cv_prog_STRIP
5080if test -n "$STRIP"; then
5081  echo "$as_me:$LINENO: result: $STRIP" >&5
5082echo "${ECHO_T}$STRIP" >&6
5083else
5084  echo "$as_me:$LINENO: result: no" >&5
5085echo "${ECHO_T}no" >&6
5086fi
5087
5088fi
5089if test -z "$ac_cv_prog_STRIP"; then
5090  ac_ct_STRIP=$STRIP
5091  # Extract the first word of "strip", so it can be a program name with args.
5092set dummy strip; ac_word=$2
5093echo "$as_me:$LINENO: checking for $ac_word" >&5
5094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5096  echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098  if test -n "$ac_ct_STRIP"; then
5099  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104  IFS=$as_save_IFS
5105  test -z "$as_dir" && as_dir=.
5106  for ac_exec_ext in '' $ac_executable_extensions; do
5107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108    ac_cv_prog_ac_ct_STRIP="strip"
5109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110    break 2
5111  fi
5112done
5113done
5114
5115  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5116fi
5117fi
5118ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5119if test -n "$ac_ct_STRIP"; then
5120  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5121echo "${ECHO_T}$ac_ct_STRIP" >&6
5122else
5123  echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125fi
5126
5127  STRIP=$ac_ct_STRIP
5128else
5129  STRIP="$ac_cv_prog_STRIP"
5130fi
5131
5132test -z "$STRIP" && STRIP=:
5133
5134
5135
5136
5137
5138
5139if test -n "$ac_tool_prefix"; then
5140  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5141set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5142echo "$as_me:$LINENO: checking for $ac_word" >&5
5143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144if test "${ac_cv_prog_RANLIB+set}" = set; then
5145  echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147  if test -n "$RANLIB"; then
5148  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153  IFS=$as_save_IFS
5154  test -z "$as_dir" && as_dir=.
5155  for ac_exec_ext in '' $ac_executable_extensions; do
5156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159    break 2
5160  fi
5161done
5162done
5163
5164fi
5165fi
5166RANLIB=$ac_cv_prog_RANLIB
5167if test -n "$RANLIB"; then
5168  echo "$as_me:$LINENO: result: $RANLIB" >&5
5169echo "${ECHO_T}$RANLIB" >&6
5170else
5171  echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173fi
5174
5175fi
5176if test -z "$ac_cv_prog_RANLIB"; then
5177  ac_ct_RANLIB=$RANLIB
5178  # Extract the first word of "ranlib", so it can be a program name with args.
5179set dummy ranlib; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5183  echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185  if test -n "$ac_ct_RANLIB"; then
5186  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193  for ac_exec_ext in '' $ac_executable_extensions; do
5194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_ac_ct_RANLIB="ranlib"
5196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200done
5201
5202  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5203fi
5204fi
5205ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5206if test -n "$ac_ct_RANLIB"; then
5207  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5208echo "${ECHO_T}$ac_ct_RANLIB" >&6
5209else
5210  echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
5213
5214  RANLIB=$ac_ct_RANLIB
5215else
5216  RANLIB="$ac_cv_prog_RANLIB"
5217fi
5218
5219test -z "$RANLIB" && RANLIB=:
5220
5221
5222
5223
5224
5225
5226# Determine commands to create old-style static archives.
5227old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5228old_postinstall_cmds='chmod 644 $oldlib'
5229old_postuninstall_cmds=
5230
5231if test -n "$RANLIB"; then
5232  case $host_os in
5233  openbsd*)
5234    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5235    ;;
5236  *)
5237    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5238    ;;
5239  esac
5240  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5241fi
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276# If no C compiler was specified, use CC.
5277LTCC=${LTCC-"$CC"}
5278
5279# If no C compiler flags were specified, use CFLAGS.
5280LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5281
5282# Allow CC to be a program name with arguments.
5283compiler=$CC
5284
5285
5286# Check for command to grab the raw symbol name followed by C symbol from nm.
5287echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5288echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5289if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5290  echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292
5293# These are sane defaults that work on at least a few old systems.
5294# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5295
5296# Character class describing NM global symbol codes.
5297symcode='[BCDEGRST]'
5298
5299# Regexp to match symbols that can be accessed directly from C.
5300sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5301
5302# Define system-specific variables.
5303case $host_os in
5304aix*)
5305  symcode='[BCDT]'
5306  ;;
5307cygwin* | mingw* | pw32*)
5308  symcode='[ABCDGISTW]'
5309  ;;
5310hpux*)
5311  if test "$host_cpu" = ia64; then
5312    symcode='[ABCDEGRST]'
5313  fi
5314  ;;
5315irix* | nonstopux*)
5316  symcode='[BCDEGRST]'
5317  ;;
5318osf*)
5319  symcode='[BCDEGQRST]'
5320  ;;
5321solaris*)
5322  symcode='[BDRT]'
5323  ;;
5324sco3.2v5*)
5325  symcode='[DT]'
5326  ;;
5327sysv4.2uw2*)
5328  symcode='[DT]'
5329  ;;
5330sysv5* | sco5v6* | unixware* | OpenUNIX*)
5331  symcode='[ABDT]'
5332  ;;
5333sysv4)
5334  symcode='[DFNSTU]'
5335  ;;
5336esac
5337
5338# If we're using GNU nm, then use its standard symbol codes.
5339case `$NM -V 2>&1` in
5340*GNU* | *'with BFD'*)
5341  symcode='[ABCDGIRSTW]' ;;
5342esac
5343
5344# Transform an extracted symbol line into a proper C declaration.
5345# Some systems (esp. on ia64) link data and code symbols differently,
5346# so use this general approach.
5347lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5348
5349# Transform an extracted symbol line into symbol name and symbol address
5350lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5351
5352# Handle CRLF in mingw tool chain
5353opt_cr=
5354case $build_os in
5355mingw*)
5356  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5357  ;;
5358esac
5359
5360# Try without a prefix underscore, then with it.
5361for ac_symprfx in "" "_"; do
5362
5363  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5364  symxfrm="\\1 $ac_symprfx\\2 \\2"
5365
5366  # Write the raw and C identifiers.
5367  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5368    # Fake it for dumpbin and say T for any non-static function
5369    # and D for any global variable.
5370    # Also find C++ and __fastcall symbols from MSVC++,
5371    # which start with @ or ?.
5372    lt_cv_sys_global_symbol_pipe="$AWK '"\
5373"     {last_section=section; section=\$ 3};"\
5374"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5375"     \$ 0!~/External *\|/{next};"\
5376"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5377"     {if(hide[section]) next};"\
5378"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5379"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5380"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5381"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5382"     ' prfx=^$ac_symprfx"
5383  else
5384    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5385  fi
5386
5387  # Check to see that the pipe works correctly.
5388  pipe_works=no
5389
5390  rm -f conftest*
5391  cat > conftest.$ac_ext <<_LT_EOF
5392#ifdef __cplusplus
5393extern "C" {
5394#endif
5395char nm_test_var;
5396void nm_test_func(void);
5397void nm_test_func(void){}
5398#ifdef __cplusplus
5399}
5400#endif
5401int main(){nm_test_var='a';nm_test_func();return(0);}
5402_LT_EOF
5403
5404  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405  (eval $ac_compile) 2>&5
5406  ac_status=$?
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); }; then
5409    # Now try to grab the symbols.
5410    nlist=conftest.nm
5411    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5412  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); } && test -s "$nlist"; then
5416      # Try sorting and uniquifying the output.
5417      if sort "$nlist" | uniq > "$nlist"T; then
5418	mv -f "$nlist"T "$nlist"
5419      else
5420	rm -f "$nlist"T
5421      fi
5422
5423      # Make sure that we snagged all the symbols we need.
5424      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5425	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5426	  cat <<_LT_EOF > conftest.$ac_ext
5427#ifdef __cplusplus
5428extern "C" {
5429#endif
5430
5431_LT_EOF
5432	  # Now generate the symbol file.
5433	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5434
5435	  cat <<_LT_EOF >> conftest.$ac_ext
5436
5437/* The mapping between symbol names and symbols.  */
5438const struct {
5439  const char *name;
5440  void       *address;
5441}
5442lt__PROGRAM__LTX_preloaded_symbols[] =
5443{
5444  { "@PROGRAM@", (void *) 0 },
5445_LT_EOF
5446	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5447	  cat <<\_LT_EOF >> conftest.$ac_ext
5448  {0, (void *) 0}
5449};
5450
5451/* This works around a problem in FreeBSD linker */
5452#ifdef FREEBSD_WORKAROUND
5453static const void *lt_preloaded_setup() {
5454  return lt__PROGRAM__LTX_preloaded_symbols;
5455}
5456#endif
5457
5458#ifdef __cplusplus
5459}
5460#endif
5461_LT_EOF
5462	  # Now try linking the two files.
5463	  mv conftest.$ac_objext conftstm.$ac_objext
5464	  lt_save_LIBS="$LIBS"
5465	  lt_save_CFLAGS="$CFLAGS"
5466	  LIBS="conftstm.$ac_objext"
5467	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5468	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5469  (eval $ac_link) 2>&5
5470  ac_status=$?
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5473	    pipe_works=yes
5474	  fi
5475	  LIBS="$lt_save_LIBS"
5476	  CFLAGS="$lt_save_CFLAGS"
5477	else
5478	  echo "cannot find nm_test_func in $nlist" >&5
5479	fi
5480      else
5481	echo "cannot find nm_test_var in $nlist" >&5
5482      fi
5483    else
5484      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5485    fi
5486  else
5487    echo "$progname: failed program was:" >&5
5488    cat conftest.$ac_ext >&5
5489  fi
5490  rm -f conftest* conftst*
5491
5492  # Do not use the global_symbol_pipe unless it works.
5493  if test "$pipe_works" = yes; then
5494    break
5495  else
5496    lt_cv_sys_global_symbol_pipe=
5497  fi
5498done
5499
5500fi
5501
5502if test -z "$lt_cv_sys_global_symbol_pipe"; then
5503  lt_cv_sys_global_symbol_to_cdecl=
5504fi
5505if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5506  echo "$as_me:$LINENO: result: failed" >&5
5507echo "${ECHO_T}failed" >&6
5508else
5509  echo "$as_me:$LINENO: result: ok" >&5
5510echo "${ECHO_T}ok" >&6
5511fi
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5530if test "${enable_libtool_lock+set}" = set; then
5531  enableval="$enable_libtool_lock"
5532
5533fi;
5534test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5535
5536# Some flags need to be propagated to the compiler or linker for good
5537# libtool support.
5538case $host in
5539ia64-*-hpux*)
5540  # Find out which ABI we are using.
5541  echo 'int i;' > conftest.$ac_ext
5542  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543  (eval $ac_compile) 2>&5
5544  ac_status=$?
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); }; then
5547    case `/usr/bin/file conftest.$ac_objext` in
5548      *ELF-32*)
5549	HPUX_IA64_MODE="32"
5550	;;
5551      *ELF-64*)
5552	HPUX_IA64_MODE="64"
5553	;;
5554    esac
5555  fi
5556  rm -rf conftest*
5557  ;;
5558*-*-irix6*)
5559  # Find out which ABI we are using.
5560  echo '#line 5560 "configure"' > conftest.$ac_ext
5561  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562  (eval $ac_compile) 2>&5
5563  ac_status=$?
5564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565  (exit $ac_status); }; then
5566    if test "$lt_cv_prog_gnu_ld" = yes; then
5567      case `/usr/bin/file conftest.$ac_objext` in
5568	*32-bit*)
5569	  LD="${LD-ld} -melf32bsmip"
5570	  ;;
5571	*N32*)
5572	  LD="${LD-ld} -melf32bmipn32"
5573	  ;;
5574	*64-bit*)
5575	  LD="${LD-ld} -melf64bmip"
5576	;;
5577      esac
5578    else
5579      case `/usr/bin/file conftest.$ac_objext` in
5580	*32-bit*)
5581	  LD="${LD-ld} -32"
5582	  ;;
5583	*N32*)
5584	  LD="${LD-ld} -n32"
5585	  ;;
5586	*64-bit*)
5587	  LD="${LD-ld} -64"
5588	  ;;
5589      esac
5590    fi
5591  fi
5592  rm -rf conftest*
5593  ;;
5594
5595x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5596s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5597  # Find out which ABI we are using.
5598  echo 'int i;' > conftest.$ac_ext
5599  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600  (eval $ac_compile) 2>&5
5601  ac_status=$?
5602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603  (exit $ac_status); }; then
5604    case `/usr/bin/file conftest.o` in
5605      *32-bit*)
5606	case $host in
5607	  x86_64-*kfreebsd*-gnu)
5608	    LD="${LD-ld} -m elf_i386_fbsd"
5609	    ;;
5610	  x86_64-*linux*)
5611	    LD="${LD-ld} -m elf_i386"
5612	    ;;
5613	  ppc64-*linux*|powerpc64-*linux*)
5614	    LD="${LD-ld} -m elf32ppclinux"
5615	    ;;
5616	  s390x-*linux*)
5617	    LD="${LD-ld} -m elf_s390"
5618	    ;;
5619	  sparc64-*linux*)
5620	    LD="${LD-ld} -m elf32_sparc"
5621	    ;;
5622	esac
5623	;;
5624      *64-bit*)
5625	case $host in
5626	  x86_64-*kfreebsd*-gnu)
5627	    LD="${LD-ld} -m elf_x86_64_fbsd"
5628	    ;;
5629	  x86_64-*linux*)
5630	    LD="${LD-ld} -m elf_x86_64"
5631	    ;;
5632	  ppc*-*linux*|powerpc*-*linux*)
5633	    LD="${LD-ld} -m elf64ppc"
5634	    ;;
5635	  s390*-*linux*|s390*-*tpf*)
5636	    LD="${LD-ld} -m elf64_s390"
5637	    ;;
5638	  sparc*-*linux*)
5639	    LD="${LD-ld} -m elf64_sparc"
5640	    ;;
5641	esac
5642	;;
5643    esac
5644  fi
5645  rm -rf conftest*
5646  ;;
5647
5648*-*-sco3.2v5*)
5649  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5650  SAVE_CFLAGS="$CFLAGS"
5651  CFLAGS="$CFLAGS -belf"
5652  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5653echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5654if test "${lt_cv_cc_needs_belf+set}" = set; then
5655  echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657  ac_ext=c
5658ac_cpp='$CPP $CPPFLAGS'
5659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662
5663     cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669
5670int
5671main ()
5672{
5673
5674  ;
5675  return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext conftest$ac_exeext
5679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680  (eval $ac_link) 2>conftest.er1
5681  ac_status=$?
5682  grep -v '^ *+' conftest.er1 >conftest.err
5683  rm -f conftest.er1
5684  cat conftest.err >&5
5685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686  (exit $ac_status); } &&
5687	 { ac_try='test -z "$ac_c_werror_flag"
5688			 || test ! -s conftest.err'
5689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690  (eval $ac_try) 2>&5
5691  ac_status=$?
5692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693  (exit $ac_status); }; } &&
5694	 { ac_try='test -s conftest$ac_exeext'
5695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696  (eval $ac_try) 2>&5
5697  ac_status=$?
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); }; }; then
5700  lt_cv_cc_needs_belf=yes
5701else
5702  echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
5704
5705lt_cv_cc_needs_belf=no
5706fi
5707rm -f conftest.err conftest.$ac_objext \
5708      conftest$ac_exeext conftest.$ac_ext
5709     ac_ext=c
5710ac_cpp='$CPP $CPPFLAGS'
5711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713ac_compiler_gnu=$ac_cv_c_compiler_gnu
5714
5715fi
5716echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5717echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5718  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5719    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5720    CFLAGS="$SAVE_CFLAGS"
5721  fi
5722  ;;
5723sparc*-*solaris*)
5724  # Find out which ABI we are using.
5725  echo 'int i;' > conftest.$ac_ext
5726  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727  (eval $ac_compile) 2>&5
5728  ac_status=$?
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); }; then
5731    case `/usr/bin/file conftest.o` in
5732    *64-bit*)
5733      case $lt_cv_prog_gnu_ld in
5734      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5735      *)    LD="${LD-ld} -64" ;;
5736      esac
5737      ;;
5738    esac
5739  fi
5740  rm -rf conftest*
5741  ;;
5742esac
5743
5744need_locks="$enable_libtool_lock"
5745
5746ac_ext=c
5747ac_cpp='$CPP $CPPFLAGS'
5748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5752echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5753# On Suns, sometimes $CPP names a directory.
5754if test -n "$CPP" && test -d "$CPP"; then
5755  CPP=
5756fi
5757if test -z "$CPP"; then
5758  if test "${ac_cv_prog_CPP+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761      # Double quotes because CPP needs to be expanded
5762    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5763    do
5764      ac_preproc_ok=false
5765for ac_c_preproc_warn_flag in '' yes
5766do
5767  # Use a header file that comes with gcc, so configuring glibc
5768  # with a fresh cross-compiler works.
5769  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5770  # <limits.h> exists even on freestanding compilers.
5771  # On the NeXT, cc -E runs the code through the compiler's parser,
5772  # not just through cpp. "Syntax error" is here to catch this case.
5773  cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h.  */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h.  */
5779#ifdef __STDC__
5780# include <limits.h>
5781#else
5782# include <assert.h>
5783#endif
5784		     Syntax error
5785_ACEOF
5786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5787  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5788  ac_status=$?
5789  grep -v '^ *+' conftest.er1 >conftest.err
5790  rm -f conftest.er1
5791  cat conftest.err >&5
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); } >/dev/null; then
5794  if test -s conftest.err; then
5795    ac_cpp_err=$ac_c_preproc_warn_flag
5796    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5797  else
5798    ac_cpp_err=
5799  fi
5800else
5801  ac_cpp_err=yes
5802fi
5803if test -z "$ac_cpp_err"; then
5804  :
5805else
5806  echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809  # Broken: fails on valid input.
5810continue
5811fi
5812rm -f conftest.err conftest.$ac_ext
5813
5814  # OK, works on sane cases.  Now check whether non-existent headers
5815  # can be detected and how.
5816  cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h.  */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h.  */
5822#include <ac_nonexistent.h>
5823_ACEOF
5824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5825  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5826  ac_status=$?
5827  grep -v '^ *+' conftest.er1 >conftest.err
5828  rm -f conftest.er1
5829  cat conftest.err >&5
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); } >/dev/null; then
5832  if test -s conftest.err; then
5833    ac_cpp_err=$ac_c_preproc_warn_flag
5834    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5835  else
5836    ac_cpp_err=
5837  fi
5838else
5839  ac_cpp_err=yes
5840fi
5841if test -z "$ac_cpp_err"; then
5842  # Broken: success on invalid input.
5843continue
5844else
5845  echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848  # Passes both tests.
5849ac_preproc_ok=:
5850break
5851fi
5852rm -f conftest.err conftest.$ac_ext
5853
5854done
5855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5856rm -f conftest.err conftest.$ac_ext
5857if $ac_preproc_ok; then
5858  break
5859fi
5860
5861    done
5862    ac_cv_prog_CPP=$CPP
5863
5864fi
5865  CPP=$ac_cv_prog_CPP
5866else
5867  ac_cv_prog_CPP=$CPP
5868fi
5869echo "$as_me:$LINENO: result: $CPP" >&5
5870echo "${ECHO_T}$CPP" >&6
5871ac_preproc_ok=false
5872for ac_c_preproc_warn_flag in '' yes
5873do
5874  # Use a header file that comes with gcc, so configuring glibc
5875  # with a fresh cross-compiler works.
5876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877  # <limits.h> exists even on freestanding compilers.
5878  # On the NeXT, cc -E runs the code through the compiler's parser,
5879  # not just through cpp. "Syntax error" is here to catch this case.
5880  cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886#ifdef __STDC__
5887# include <limits.h>
5888#else
5889# include <assert.h>
5890#endif
5891		     Syntax error
5892_ACEOF
5893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5894  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5895  ac_status=$?
5896  grep -v '^ *+' conftest.er1 >conftest.err
5897  rm -f conftest.er1
5898  cat conftest.err >&5
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); } >/dev/null; then
5901  if test -s conftest.err; then
5902    ac_cpp_err=$ac_c_preproc_warn_flag
5903    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5904  else
5905    ac_cpp_err=
5906  fi
5907else
5908  ac_cpp_err=yes
5909fi
5910if test -z "$ac_cpp_err"; then
5911  :
5912else
5913  echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916  # Broken: fails on valid input.
5917continue
5918fi
5919rm -f conftest.err conftest.$ac_ext
5920
5921  # OK, works on sane cases.  Now check whether non-existent headers
5922  # can be detected and how.
5923  cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h.  */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h.  */
5929#include <ac_nonexistent.h>
5930_ACEOF
5931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5932  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5933  ac_status=$?
5934  grep -v '^ *+' conftest.er1 >conftest.err
5935  rm -f conftest.er1
5936  cat conftest.err >&5
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); } >/dev/null; then
5939  if test -s conftest.err; then
5940    ac_cpp_err=$ac_c_preproc_warn_flag
5941    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5942  else
5943    ac_cpp_err=
5944  fi
5945else
5946  ac_cpp_err=yes
5947fi
5948if test -z "$ac_cpp_err"; then
5949  # Broken: success on invalid input.
5950continue
5951else
5952  echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955  # Passes both tests.
5956ac_preproc_ok=:
5957break
5958fi
5959rm -f conftest.err conftest.$ac_ext
5960
5961done
5962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5963rm -f conftest.err conftest.$ac_ext
5964if $ac_preproc_ok; then
5965  :
5966else
5967