OSDN Git Service

Use the emit-relocs options by default unless the user has configured
[uclinux-h8/elf2flt.git] / configure
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
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="elf2flt.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_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 CPP EGREP bfd_include_dir binutils_include_dir binutils_ldscript_dir got_check emit_relocs LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 System types:
835   --build=BUILD     configure for building on BUILD [guessed]
836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837   --target=TARGET   configure for building compilers for TARGET [HOST]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848  --disable-got-check - disable check for GOT (needed on H8)
849  --disable-emit-relocs - don't use the --emit-relocs (-q) linker option
850
851 Optional Packages:
852   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854  --with-libbfd=<file>  path to libbfd.a library to use
855  --with-libiberty=<file>  path to libiberty.a library to use
856  --with-bfd-include-dir=<dir>  include path for correct bfd.h
857  --with-binutils-include-dir=<dir>  include path for binutils headers
858  --with-binutils-ldscript-dir=<dir>  path to install elf2flt.ld
859
860 Some influential environment variables:
861   CC          C compiler command
862   CFLAGS      C compiler flags
863   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864               nonstandard directory <lib dir>
865   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866               headers in a nonstandard directory <include dir>
867   CPP         C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876   # If there are subdirs, report their specific --help.
877   ac_popdir=`pwd`
878   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879     test -d $ac_dir || continue
880     ac_builddir=.
881
882 if test "$ac_dir" != .; then
883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884   # A "../" for each directory in $ac_dir_suffix.
885   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887   ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891   .)  # No --srcdir option.  We are building in place.
892     ac_srcdir=.
893     if test -z "$ac_top_builddir"; then
894        ac_top_srcdir=.
895     else
896        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897     fi ;;
898   [\\/]* | ?:[\\/]* )  # Absolute path.
899     ac_srcdir=$srcdir$ac_dir_suffix;
900     ac_top_srcdir=$srcdir ;;
901   *) # Relative path.
902     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903     ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911   case "$ac_dir" in
912   .) ac_abs_builddir=`pwd`;;
913   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914   *) ac_abs_builddir=`pwd`/"$ac_dir";;
915   esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920   case ${ac_top_builddir}. in
921   .) ac_abs_top_builddir=$ac_abs_builddir;;
922   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929   case $ac_srcdir in
930   .) ac_abs_srcdir=$ac_abs_builddir;;
931   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938   case $ac_top_srcdir in
939   .) ac_abs_top_srcdir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942   esac;;
943 esac
944
945     cd $ac_dir
946     # Check for guested configure; otherwise get Cygnus style configure.
947     if test -f $ac_srcdir/configure.gnu; then
948       echo
949       $SHELL $ac_srcdir/configure.gnu  --help=recursive
950     elif test -f $ac_srcdir/configure; then
951       echo
952       $SHELL $ac_srcdir/configure  --help=recursive
953     elif test -f $ac_srcdir/configure.ac ||
954            test -f $ac_srcdir/configure.in; then
955       echo
956       $ac_configure --help
957     else
958       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959     fi
960     cd $ac_popdir
961   done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966   cat <<\_ACEOF
967
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
971 _ACEOF
972   exit 0
973 fi
974 exec 5>config.log
975 cat >&5 <<_ACEOF
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
978
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59.  Invocation command line was
981
982   $ $0 $@
983
984 _ACEOF
985 {
986 cat <<_ASUNAME
987 ## --------- ##
988 ## Platform. ##
989 ## --------- ##
990
991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
996
997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
999
1000 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1001 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1004 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1005 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1006 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1007
1008 _ASUNAME
1009
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 for as_dir in $PATH
1012 do
1013   IFS=$as_save_IFS
1014   test -z "$as_dir" && as_dir=.
1015   echo "PATH: $as_dir"
1016 done
1017
1018 } >&5
1019
1020 cat >&5 <<_ACEOF
1021
1022
1023 ## ----------- ##
1024 ## Core tests. ##
1025 ## ----------- ##
1026
1027 _ACEOF
1028
1029
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1035 ac_configure_args=
1036 ac_configure_args0=
1037 ac_configure_args1=
1038 ac_sep=
1039 ac_must_keep_next=false
1040 for ac_pass in 1 2
1041 do
1042   for ac_arg
1043   do
1044     case $ac_arg in
1045     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047     | -silent | --silent | --silen | --sile | --sil)
1048       continue ;;
1049     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051     esac
1052     case $ac_pass in
1053     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1054     2)
1055       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056       if test $ac_must_keep_next = true; then
1057         ac_must_keep_next=false # Got value, back to normal.
1058       else
1059         case $ac_arg in
1060           *=* | --config-cache | -C | -disable-* | --disable-* \
1061           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063           | -with-* | --with-* | -without-* | --without-* | --x)
1064             case "$ac_configure_args0 " in
1065               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066             esac
1067             ;;
1068           -* ) ac_must_keep_next=true ;;
1069         esac
1070       fi
1071       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072       # Get rid of the leading space.
1073       ac_sep=" "
1074       ;;
1075     esac
1076   done
1077 done
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1080
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log.  We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087   # Save into config.log some information that might help in debugging.
1088   {
1089     echo
1090
1091     cat <<\_ASBOX
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1095 _ASBOX
1096     echo
1097     # The following way of writing the cache mishandles newlines in values,
1098 {
1099   (set) 2>&1 |
1100     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101     *ac_space=\ *)
1102       sed -n \
1103         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105       ;;
1106     *)
1107       sed -n \
1108         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109       ;;
1110     esac;
1111 }
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1118 _ASBOX
1119     echo
1120     for ac_var in $ac_subst_vars
1121     do
1122       eval ac_val=$`echo $ac_var`
1123       echo "$ac_var='"'"'$ac_val'"'"'"
1124     done | sort
1125     echo
1126
1127     if test -n "$ac_subst_files"; then
1128       cat <<\_ASBOX
1129 ## ------------- ##
1130 ## Output files. ##
1131 ## ------------- ##
1132 _ASBOX
1133       echo
1134       for ac_var in $ac_subst_files
1135       do
1136         eval ac_val=$`echo $ac_var`
1137         echo "$ac_var='"'"'$ac_val'"'"'"
1138       done | sort
1139       echo
1140     fi
1141
1142     if test -s confdefs.h; then
1143       cat <<\_ASBOX
1144 ## ----------- ##
1145 ## confdefs.h. ##
1146 ## ----------- ##
1147 _ASBOX
1148       echo
1149       sed "/^$/d" confdefs.h | sort
1150       echo
1151     fi
1152     test "$ac_signal" != 0 &&
1153       echo "$as_me: caught signal $ac_signal"
1154     echo "$as_me: exit $exit_status"
1155   } >&5
1156   rm -f core *.core &&
1157   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158     exit $exit_status
1159      ' 0
1160 for ac_signal in 1 2 13 15; do
1161   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 done
1163 ac_signal=0
1164
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 echo >confdefs.h
1169
1170 # Predefined preprocessor variables.
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 _ACEOF
1195
1196
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200   if test "x$prefix" != xNONE; then
1201     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202   else
1203     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204   fi
1205 fi
1206 for ac_site_file in $CONFIG_SITE; do
1207   if test -r "$ac_site_file"; then
1208     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210     sed 's/^/| /' "$ac_site_file" >&5
1211     . "$ac_site_file"
1212   fi
1213 done
1214
1215 if test -r "$cache_file"; then
1216   # Some versions of bash will fail to source /dev/null (special
1217   # files actually), so we avoid doing that.
1218   if test -f "$cache_file"; then
1219     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1221     case $cache_file in
1222       [\\/]* | ?:[\\/]* ) . $cache_file;;
1223       *)                      . ./$cache_file;;
1224     esac
1225   fi
1226 else
1227   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1229   >$cache_file
1230 fi
1231
1232 # Check that the precious variables saved in the cache have kept the same
1233 # value.
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238   eval ac_new_set=\$ac_env_${ac_var}_set
1239   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240   eval ac_new_val="\$ac_env_${ac_var}_value"
1241   case $ac_old_set,$ac_new_set in
1242     set,)
1243       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245       ac_cache_corrupted=: ;;
1246     ,set)
1247       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249       ac_cache_corrupted=: ;;
1250     ,);;
1251     *)
1252       if test "x$ac_old_val" != "x$ac_new_val"; then
1253         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1256 echo "$as_me:   former value:  $ac_old_val" >&2;}
1257         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1258 echo "$as_me:   current value: $ac_new_val" >&2;}
1259         ac_cache_corrupted=:
1260       fi;;
1261   esac
1262   # Pass precious variables to config.status.
1263   if test "$ac_new_set" = set; then
1264     case $ac_new_val in
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     *) ac_arg=$ac_var=$ac_new_val ;;
1268     esac
1269     case " $ac_configure_args " in
1270       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1271       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272     esac
1273   fi
1274 done
1275 if $ac_cache_corrupted; then
1276   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280    { (exit 1); exit 1; }; }
1281 fi
1282
1283 ac_ext=c
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 # Check whether --with-libbfd or --without-libbfd was given.
1310 if test "${with_libbfd+set}" = set; then
1311   withval="$with_libbfd"
1312    ac_libbfd=$withval
1313 else
1314    ac_libbfd=NONE
1315
1316 fi;
1317
1318
1319 # Check whether --with-libiberty or --without-libiberty was given.
1320 if test "${with_libiberty+set}" = set; then
1321   withval="$with_libiberty"
1322    ac_libiberty=$withval
1323 else
1324    ac_libiberty=NONE
1325
1326 fi;
1327
1328
1329 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
1330 if test "${with_bfd_include_dir+set}" = set; then
1331   withval="$with_bfd_include_dir"
1332    ac_bfd_include_dir=$withval
1333 else
1334    ac_bfd_include_dir=NONE
1335
1336 fi;
1337
1338
1339 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
1340 if test "${with_binutils_include_dir+set}" = set; then
1341   withval="$with_binutils_include_dir"
1342    ac_binutils_include_dir=$withval
1343 else
1344    ac_binutils_include_dir=NONE
1345
1346 fi;
1347
1348
1349 # Check whether --with-binutils-ldscript-dir or --without-binutils-ldscript-dir was given.
1350 if test "${with_binutils_ldscript_dir+set}" = set; then
1351   withval="$with_binutils_ldscript_dir"
1352    ac_binutils_ldscript_dir=$withval
1353 else
1354    ac_binutils_ldscript_dir=NONE
1355
1356 fi;
1357
1358 # Check whether --enable-got-check or --disable-got-check was given.
1359 if test "${enable_got_check+set}" = set; then
1360   enableval="$enable_got_check"
1361    got_check=$enableval
1362 else
1363    got_check=yes
1364
1365 fi;
1366
1367 # Check whether --enable-emit_relocs or --disable-emit_relocs was given.
1368 if test "${enable_emit_relocs+set}" = set; then
1369   enableval="$enable_emit_relocs"
1370    emit_relocs=$enableval
1371 else
1372    emit_relocs=yes
1373
1374 fi;
1375
1376 ac_aux_dir=
1377 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378   if test -f $ac_dir/install-sh; then
1379     ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/install-sh -c"
1381     break
1382   elif test -f $ac_dir/install.sh; then
1383     ac_aux_dir=$ac_dir
1384     ac_install_sh="$ac_aux_dir/install.sh -c"
1385     break
1386   elif test -f $ac_dir/shtool; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/shtool install -c"
1389     break
1390   fi
1391 done
1392 if test -z "$ac_aux_dir"; then
1393   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395    { (exit 1); exit 1; }; }
1396 fi
1397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405    { (exit 1); exit 1; }; }
1406
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410   echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412   ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414   ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418    { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 fi
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1427 build=$ac_cv_build
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440   ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444    { (exit 1); exit 1; }; }
1445
1446 fi
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1449 host=$ac_cv_host
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1454
1455 echo "$as_me:$LINENO: checking target system type" >&5
1456 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1457 if test "${ac_cv_target+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   ac_cv_target_alias=$target_alias
1461 test "x$ac_cv_target_alias" = "x" &&
1462   ac_cv_target_alias=$ac_cv_host_alias
1463 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1464   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1465 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1466    { (exit 1); exit 1; }; }
1467
1468 fi
1469 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1470 echo "${ECHO_T}$ac_cv_target" >&6
1471 target=$ac_cv_target
1472 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475
1476
1477 # The aliases save the names the user supplied, while $host etc.
1478 # will get canonicalized.
1479 test -n "$target_alias" &&
1480   test "$program_prefix$program_suffix$program_transform_name" = \
1481     NONENONEs,x,x, &&
1482   program_prefix=${target_alias}-
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489 if test -n "$ac_tool_prefix"; then
1490   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1491 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_CC+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   if test -n "$CC"; then
1498   ac_cv_prog_CC="$CC" # Let the user override the test.
1499 else
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514 fi
1515 fi
1516 CC=$ac_cv_prog_CC
1517 if test -n "$CC"; then
1518   echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1520 else
1521   echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1523 fi
1524
1525 fi
1526 if test -z "$ac_cv_prog_CC"; then
1527   ac_ct_CC=$CC
1528   # Extract the first word of "gcc", so it can be a program name with args.
1529 set dummy gcc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1533   echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535   if test -n "$ac_ct_CC"; then
1536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541   IFS=$as_save_IFS
1542   test -z "$as_dir" && as_dir=.
1543   for ac_exec_ext in '' $ac_executable_extensions; do
1544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545     ac_cv_prog_ac_ct_CC="gcc"
1546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547     break 2
1548   fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1555 if test -n "$ac_ct_CC"; then
1556   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1557 echo "${ECHO_T}$ac_ct_CC" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563   CC=$ac_ct_CC
1564 else
1565   CC="$ac_cv_prog_CC"
1566 fi
1567
1568 if test -z "$CC"; then
1569   if test -n "$ac_tool_prefix"; then
1570   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1571 set dummy ${ac_tool_prefix}cc; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_CC+set}" = set; then
1575   echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577   if test -n "$CC"; then
1578   ac_cv_prog_CC="$CC" # Let the user override the test.
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583   IFS=$as_save_IFS
1584   test -z "$as_dir" && as_dir=.
1585   for ac_exec_ext in '' $ac_executable_extensions; do
1586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587     ac_cv_prog_CC="${ac_tool_prefix}cc"
1588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589     break 2
1590   fi
1591 done
1592 done
1593
1594 fi
1595 fi
1596 CC=$ac_cv_prog_CC
1597 if test -n "$CC"; then
1598   echo "$as_me:$LINENO: result: $CC" >&5
1599 echo "${ECHO_T}$CC" >&6
1600 else
1601   echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603 fi
1604
1605 fi
1606 if test -z "$ac_cv_prog_CC"; then
1607   ac_ct_CC=$CC
1608   # Extract the first word of "cc", so it can be a program name with args.
1609 set dummy cc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   if test -n "$ac_ct_CC"; then
1616   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   for ac_exec_ext in '' $ac_executable_extensions; do
1624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625     ac_cv_prog_ac_ct_CC="cc"
1626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627     break 2
1628   fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1635 if test -n "$ac_ct_CC"; then
1636   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1637 echo "${ECHO_T}$ac_ct_CC" >&6
1638 else
1639   echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643   CC=$ac_ct_CC
1644 else
1645   CC="$ac_cv_prog_CC"
1646 fi
1647
1648 fi
1649 if test -z "$CC"; then
1650   # Extract the first word of "cc", so it can be a program name with args.
1651 set dummy cc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655   echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657   if test -n "$CC"; then
1658   ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660   ac_prog_rejected=no
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664   IFS=$as_save_IFS
1665   test -z "$as_dir" && as_dir=.
1666   for ac_exec_ext in '' $ac_executable_extensions; do
1667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1669        ac_prog_rejected=yes
1670        continue
1671      fi
1672     ac_cv_prog_CC="cc"
1673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674     break 2
1675   fi
1676 done
1677 done
1678
1679 if test $ac_prog_rejected = yes; then
1680   # We found a bogon in the path, so make sure we never use it.
1681   set dummy $ac_cv_prog_CC
1682   shift
1683   if test $# != 0; then
1684     # We chose a different compiler from the bogus one.
1685     # However, it has the same basename, so the bogon will be chosen
1686     # first if we set CC to just the basename; use the full file name.
1687     shift
1688     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1689   fi
1690 fi
1691 fi
1692 fi
1693 CC=$ac_cv_prog_CC
1694 if test -n "$CC"; then
1695   echo "$as_me:$LINENO: result: $CC" >&5
1696 echo "${ECHO_T}$CC" >&6
1697 else
1698   echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 fi
1701
1702 fi
1703 if test -z "$CC"; then
1704   if test -n "$ac_tool_prefix"; then
1705   for ac_prog in cl
1706   do
1707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$CC"; then
1715   ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726     break 2
1727   fi
1728 done
1729 done
1730
1731 fi
1732 fi
1733 CC=$ac_cv_prog_CC
1734 if test -n "$CC"; then
1735   echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742     test -n "$CC" && break
1743   done
1744 fi
1745 if test -z "$CC"; then
1746   ac_ct_CC=$CC
1747   for ac_prog in cl
1748 do
1749   # Extract the first word of "$ac_prog", so it can be a program name with args.
1750 set dummy $ac_prog; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   if test -n "$ac_ct_CC"; then
1757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   for ac_exec_ext in '' $ac_executable_extensions; do
1765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766     ac_cv_prog_ac_ct_CC="$ac_prog"
1767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768     break 2
1769   fi
1770 done
1771 done
1772
1773 fi
1774 fi
1775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1776 if test -n "$ac_ct_CC"; then
1777   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1778 echo "${ECHO_T}$ac_ct_CC" >&6
1779 else
1780   echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1782 fi
1783
1784   test -n "$ac_ct_CC" && break
1785 done
1786
1787   CC=$ac_ct_CC
1788 fi
1789
1790 fi
1791
1792
1793 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&5
1795 echo "$as_me: error: no acceptable C compiler found in \$PATH
1796 See \`config.log' for more details." >&2;}
1797    { (exit 1); exit 1; }; }
1798
1799 # Provide some information about the compiler.
1800 echo "$as_me:$LINENO:" \
1801      "checking for C compiler version" >&5
1802 ac_compiler=`set X $ac_compile; echo $2`
1803 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1804   (eval $ac_compiler --version </dev/null >&5) 2>&5
1805   ac_status=$?
1806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807   (exit $ac_status); }
1808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1809   (eval $ac_compiler -v </dev/null >&5) 2>&5
1810   ac_status=$?
1811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812   (exit $ac_status); }
1813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1814   (eval $ac_compiler -V </dev/null >&5) 2>&5
1815   ac_status=$?
1816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817   (exit $ac_status); }
1818
1819 cat >conftest.$ac_ext <<_ACEOF
1820 /* confdefs.h.  */
1821 _ACEOF
1822 cat confdefs.h >>conftest.$ac_ext
1823 cat >>conftest.$ac_ext <<_ACEOF
1824 /* end confdefs.h.  */
1825
1826 int
1827 main ()
1828 {
1829
1830   ;
1831   return 0;
1832 }
1833 _ACEOF
1834 ac_clean_files_save=$ac_clean_files
1835 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1836 # Try to create an executable without -o first, disregard a.out.
1837 # It will help us diagnose broken compilers, and finding out an intuition
1838 # of exeext.
1839 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1840 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1841 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1842 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1843   (eval $ac_link_default) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }; then
1847   # Find the output, starting from the most likely.  This scheme is
1848 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1849 # resort.
1850
1851 # Be careful to initialize this variable, since it used to be cached.
1852 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1853 ac_cv_exeext=
1854 # b.out is created by i960 compilers.
1855 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1856 do
1857   test -f "$ac_file" || continue
1858   case $ac_file in
1859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1860         ;;
1861     conftest.$ac_ext )
1862         # This is the source file.
1863         ;;
1864     [ab].out )
1865         # We found the default executable, but exeext='' is most
1866         # certainly right.
1867         break;;
1868     *.* )
1869         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1870         # FIXME: I believe we export ac_cv_exeext for Libtool,
1871         # but it would be cool to find out if it's true.  Does anybody
1872         # maintain Libtool? --akim.
1873         export ac_cv_exeext
1874         break;;
1875     * )
1876         break;;
1877   esac
1878 done
1879 else
1880   echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&5
1885 echo "$as_me: error: C compiler cannot create executables
1886 See \`config.log' for more details." >&2;}
1887    { (exit 77); exit 77; }; }
1888 fi
1889
1890 ac_exeext=$ac_cv_exeext
1891 echo "$as_me:$LINENO: result: $ac_file" >&5
1892 echo "${ECHO_T}$ac_file" >&6
1893
1894 # Check the compiler produces executables we can run.  If not, either
1895 # the compiler is broken, or we cross compile.
1896 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1897 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1898 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1899 # If not cross compiling, check that we can run a simple program.
1900 if test "$cross_compiling" != yes; then
1901   if { ac_try='./$ac_file'
1902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1903   (eval $ac_try) 2>&5
1904   ac_status=$?
1905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906   (exit $ac_status); }; }; then
1907     cross_compiling=no
1908   else
1909     if test "$cross_compiling" = maybe; then
1910         cross_compiling=yes
1911     else
1912         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1913 If you meant to cross compile, use \`--host'.
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: cannot run C compiled programs.
1916 If you meant to cross compile, use \`--host'.
1917 See \`config.log' for more details." >&2;}
1918    { (exit 1); exit 1; }; }
1919     fi
1920   fi
1921 fi
1922 echo "$as_me:$LINENO: result: yes" >&5
1923 echo "${ECHO_T}yes" >&6
1924
1925 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1926 ac_clean_files=$ac_clean_files_save
1927 # Check the compiler produces executables we can run.  If not, either
1928 # the compiler is broken, or we cross compile.
1929 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1930 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1931 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1932 echo "${ECHO_T}$cross_compiling" >&6
1933
1934 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1935 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1937   (eval $ac_link) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; then
1941   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1942 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1943 # work properly (i.e., refer to `conftest.exe'), while it won't with
1944 # `rm'.
1945 for ac_file in conftest.exe conftest conftest.*; do
1946   test -f "$ac_file" || continue
1947   case $ac_file in
1948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1949     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1950           export ac_cv_exeext
1951           break;;
1952     * ) break;;
1953   esac
1954 done
1955 else
1956   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1959 See \`config.log' for more details." >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 rm -f conftest$ac_cv_exeext
1964 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1965 echo "${ECHO_T}$ac_cv_exeext" >&6
1966
1967 rm -f conftest.$ac_ext
1968 EXEEXT=$ac_cv_exeext
1969 ac_exeext=$EXEEXT
1970 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1971 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1972 if test "${ac_cv_objext+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h.  */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h.  */
1981
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); }; then
1996   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2000        break;;
2001   esac
2002 done
2003 else
2004   echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2019 ac_objext=$OBJEXT
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035 #ifndef __GNUC__
2036        choke me
2037 #endif
2038
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 rm -f conftest.$ac_objext
2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045   (eval $ac_compile) 2>conftest.er1
2046   ac_status=$?
2047   grep -v '^ *+' conftest.er1 >conftest.err
2048   rm -f conftest.er1
2049   cat conftest.err >&5
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); } &&
2052          { ac_try='test -z "$ac_c_werror_flag"
2053                          || test ! -s conftest.err'
2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; } &&
2059          { ac_try='test -s conftest.$ac_objext'
2060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061   (eval $ac_try) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; }; then
2065   ac_compiler_gnu=yes
2066 else
2067   echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_compiler_gnu=no
2071 fi
2072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2074
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2077 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2078 GCC=`test $ac_compiler_gnu = yes && echo yes`
2079 ac_test_CFLAGS=${CFLAGS+set}
2080 ac_save_CFLAGS=$CFLAGS
2081 CFLAGS="-g"
2082 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2083 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2084 if test "${ac_cv_prog_cc_g+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   cat >conftest.$ac_ext <<_ACEOF
2088 /* confdefs.h.  */
2089 _ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h.  */
2093
2094 int
2095 main ()
2096 {
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104   (eval $ac_compile) 2>conftest.er1
2105   ac_status=$?
2106   grep -v '^ *+' conftest.er1 >conftest.err
2107   rm -f conftest.er1
2108   cat conftest.err >&5
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); } &&
2111          { ac_try='test -z "$ac_c_werror_flag"
2112                          || test ! -s conftest.err'
2113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114   (eval $ac_try) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }; } &&
2118          { ac_try='test -s conftest.$ac_objext'
2119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124   ac_cv_prog_cc_g=yes
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 ac_cv_prog_cc_g=no
2130 fi
2131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2134 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2135 if test "$ac_test_CFLAGS" = set; then
2136   CFLAGS=$ac_save_CFLAGS
2137 elif test $ac_cv_prog_cc_g = yes; then
2138   if test "$GCC" = yes; then
2139     CFLAGS="-g -O2"
2140   else
2141     CFLAGS="-g"
2142   fi
2143 else
2144   if test "$GCC" = yes; then
2145     CFLAGS="-O2"
2146   else
2147     CFLAGS=
2148   fi
2149 fi
2150 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2151 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2152 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   ac_cv_prog_cc_stdc=no
2156 ac_save_CC=$CC
2157 cat >conftest.$ac_ext <<_ACEOF
2158 /* confdefs.h.  */
2159 _ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h.  */
2163 #include <stdarg.h>
2164 #include <stdio.h>
2165 #include <sys/types.h>
2166 #include <sys/stat.h>
2167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2168 struct buf { int x; };
2169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2170 static char *e (p, i)
2171      char **p;
2172      int i;
2173 {
2174   return p[i];
2175 }
2176 static char *f (char * (*g) (char **, int), char **p, ...)
2177 {
2178   char *s;
2179   va_list v;
2180   va_start (v,p);
2181   s = g (p, va_arg (v,int));
2182   va_end (v);
2183   return s;
2184 }
2185
2186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2187    function prototypes and stuff, but not '\xHH' hex character constants.
2188    These don't provoke an error unfortunately, instead are silently treated
2189    as 'x'.  The following induces an error, until -std1 is added to get
2190    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2191    array size at least.  It's necessary to write '\x00'==0 to get something
2192    that's true only with -std1.  */
2193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2194
2195 int test (int i, double x);
2196 struct s1 {int (*f) (int a);};
2197 struct s2 {int (*f) (double a);};
2198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2199 int argc;
2200 char **argv;
2201 int
2202 main ()
2203 {
2204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 # Don't try gcc -ansi; that turns off useful extensions and
2210 # breaks some systems' header files.
2211 # AIX                   -qlanglvl=ansi
2212 # Ultrix and OSF/1      -std1
2213 # HP-UX 10.20 and later -Ae
2214 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2215 # SVR4                  -Xc -D__EXTENSIONS__
2216 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2217 do
2218   CC="$ac_save_CC $ac_arg"
2219   rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221   (eval $ac_compile) 2>conftest.er1
2222   ac_status=$?
2223   grep -v '^ *+' conftest.er1 >conftest.err
2224   rm -f conftest.er1
2225   cat conftest.err >&5
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -z "$ac_c_werror_flag"
2229                          || test ! -s conftest.err'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; } &&
2235          { ac_try='test -s conftest.$ac_objext'
2236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237   (eval $ac_try) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241   ac_cv_prog_cc_stdc=$ac_arg
2242 break
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 fi
2248 rm -f conftest.err conftest.$ac_objext
2249 done
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2251 CC=$ac_save_CC
2252
2253 fi
2254
2255 case "x$ac_cv_prog_cc_stdc" in
2256   x|xno)
2257     echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2259   *)
2260     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262     CC="$CC $ac_cv_prog_cc_stdc" ;;
2263 esac
2264
2265 # Some people use a C++ compiler to compile C.  Since we use `exit',
2266 # in C++ we need to declare it.  In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #ifndef __cplusplus
2271   choke me
2272 #endif
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>conftest.er1
2277   ac_status=$?
2278   grep -v '^ *+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } &&
2283          { ac_try='test -z "$ac_c_werror_flag"
2284                          || test ! -s conftest.err'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; } &&
2290          { ac_try='test -s conftest.$ac_objext'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; }; then
2296   for ac_declaration in \
2297    '' \
2298    'extern "C" void std::exit (int) throw (); using std::exit;' \
2299    'extern "C" void std::exit (int); using std::exit;' \
2300    'extern "C" void exit (int) throw ();' \
2301    'extern "C" void exit (int);' \
2302    'void exit (int);'
2303 do
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310 $ac_declaration
2311 #include <stdlib.h>
2312 int
2313 main ()
2314 {
2315 exit (42);
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (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   :
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 continue
2348 fi
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356 $ac_declaration
2357 int
2358 main ()
2359 {
2360 exit (42);
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>conftest.er1
2368   ac_status=$?
2369   grep -v '^ *+' conftest.er1 >conftest.err
2370   rm -f conftest.er1
2371   cat conftest.err >&5
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); } &&
2374          { ac_try='test -z "$ac_c_werror_flag"
2375                          || test ! -s conftest.err'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; } &&
2381          { ac_try='test -s conftest.$ac_objext'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; }; then
2387   break
2388 else
2389   echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 rm -f conftest*
2396 if test -n "$ac_declaration"; then
2397   echo '#ifdef __cplusplus' >>confdefs.h
2398   echo $ac_declaration      >>confdefs.h
2399   echo '#endif'             >>confdefs.h
2400 fi
2401
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 fi
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 ac_ext=c
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414 # Find a good install program.  We prefer a C program (faster),
2415 # so one script is as good as another.  But avoid the broken or
2416 # incompatible versions:
2417 # SysV /etc/install, /usr/sbin/install
2418 # SunOS /usr/etc/install
2419 # IRIX /sbin/install
2420 # AIX /bin/install
2421 # AmigaOS /C/install, which installs bootblocks on floppy discs
2422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2425 # OS/2's system install, which has a completely different semantic
2426 # ./install, which can be erroneously created by make from ./install.sh.
2427 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2428 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2429 if test -z "$INSTALL"; then
2430 if test "${ac_cv_path_install+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438   # Account for people who put trailing slashes in PATH elements.
2439 case $as_dir/ in
2440   ./ | .// | /cC/* | \
2441   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2443   /usr/ucb/* ) ;;
2444   *)
2445     # OSF1 and SCO ODT 3.0 have their own names for install.
2446     # Don't use installbsd from OSF since it installs stuff as root
2447     # by default.
2448     for ac_prog in ginstall scoinst install; do
2449       for ac_exec_ext in '' $ac_executable_extensions; do
2450         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451           if test $ac_prog = install &&
2452             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453             # AIX install.  It has an incompatible calling convention.
2454             :
2455           elif test $ac_prog = install &&
2456             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457             # program-specific install script used by HP pwplus--don't use.
2458             :
2459           else
2460             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2461             break 3
2462           fi
2463         fi
2464       done
2465     done
2466     ;;
2467 esac
2468 done
2469
2470
2471 fi
2472   if test "${ac_cv_path_install+set}" = set; then
2473     INSTALL=$ac_cv_path_install
2474   else
2475     # As a last resort, use the slow shell script.  We don't cache a
2476     # path for INSTALL within a source directory, because that will
2477     # break other packages using the cache if that directory is
2478     # removed, or if the path is relative.
2479     INSTALL=$ac_install_sh
2480   fi
2481 fi
2482 echo "$as_me:$LINENO: result: $INSTALL" >&5
2483 echo "${ECHO_T}$INSTALL" >&6
2484
2485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486 # It thinks the first close brace ends the variable substitution.
2487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488
2489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490
2491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492
2493
2494 if test "$ac_libiberty" = "NONE"; then
2495
2496
2497 echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
2498 echo $ECHO_N "checking for objalloc_create in -liberty... $ECHO_C" >&6
2499 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   ac_check_lib_save_LIBS=$LIBS
2503 LIBS="-liberty  $LIBS"
2504 cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h.  */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h.  */
2510
2511 /* Override any gcc2 internal prototype to avoid an error.  */
2512 #ifdef __cplusplus
2513 extern "C"
2514 #endif
2515 /* We use char because int might match the return type of a gcc2
2516    builtin and then its argument prototype would still apply.  */
2517 char objalloc_create ();
2518 int
2519 main ()
2520 {
2521 objalloc_create ();
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.$ac_objext conftest$ac_exeext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528   (eval $ac_link) 2>conftest.er1
2529   ac_status=$?
2530   grep -v '^ *+' conftest.er1 >conftest.err
2531   rm -f conftest.er1
2532   cat conftest.err >&5
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -z "$ac_c_werror_flag"
2536                          || test ! -s conftest.err'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest$ac_exeext'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   ac_cv_lib_iberty_objalloc_create=yes
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 ac_cv_lib_iberty_objalloc_create=no
2554 fi
2555 rm -f conftest.err conftest.$ac_objext \
2556       conftest$ac_exeext conftest.$ac_ext
2557 LIBS=$ac_check_lib_save_LIBS
2558 fi
2559 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
2560 echo "${ECHO_T}$ac_cv_lib_iberty_objalloc_create" >&6
2561 if test $ac_cv_lib_iberty_objalloc_create = yes; then
2562   cat >>confdefs.h <<_ACEOF
2563 #define HAVE_LIBIBERTY 1
2564 _ACEOF
2565
2566   LIBS="-liberty $LIBS"
2567
2568 fi
2569
2570   ac_libiberty=auto
2571 else
2572   LIBS="$ac_libiberty $LIBS"
2573 fi
2574 if test "$ac_libbfd" = "NONE"; then
2575
2576 echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
2577 echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
2578 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   ac_check_lib_save_LIBS=$LIBS
2582 LIBS="-lbfd  $LIBS"
2583 cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589
2590 /* Override any gcc2 internal prototype to avoid an error.  */
2591 #ifdef __cplusplus
2592 extern "C"
2593 #endif
2594 /* We use char because int might match the return type of a gcc2
2595    builtin and then its argument prototype would still apply.  */
2596 char bfd_openr ();
2597 int
2598 main ()
2599 {
2600 bfd_openr ();
2601   ;
2602   return 0;
2603 }
2604 _ACEOF
2605 rm -f conftest.$ac_objext conftest$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607   (eval $ac_link) 2>conftest.er1
2608   ac_status=$?
2609   grep -v '^ *+' conftest.er1 >conftest.err
2610   rm -f conftest.er1
2611   cat conftest.err >&5
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -z "$ac_c_werror_flag"
2615                          || test ! -s conftest.err'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; } &&
2621          { ac_try='test -s conftest$ac_exeext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_cv_lib_bfd_bfd_openr=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 ac_cv_lib_bfd_bfd_openr=no
2633 fi
2634 rm -f conftest.err conftest.$ac_objext \
2635       conftest$ac_exeext conftest.$ac_ext
2636 LIBS=$ac_check_lib_save_LIBS
2637 fi
2638 echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
2639 echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
2640 if test $ac_cv_lib_bfd_bfd_openr = yes; then
2641   cat >>confdefs.h <<_ACEOF
2642 #define HAVE_LIBBFD 1
2643 _ACEOF
2644
2645   LIBS="-lbfd $LIBS"
2646
2647 fi
2648
2649   ac_libbfd=auto
2650 else
2651   LIBS="$ac_libbfd $LIBS"
2652 fi
2653
2654 bfd_include_dir=
2655 if test "$ac_bfd_include_dir" != "NONE"; then
2656   bfd_include_dir="-I$ac_bfd_include_dir"
2657 fi
2658
2659 binutils_include_dir=
2660 if test "$ac_binutils_include_dir" != "NONE"; then
2661   binutils_include_dir="-I$ac_binutils_include_dir"
2662 fi
2663
2664 binutils_ldscript_dir=
2665 if test "$ac_binutils_ldscript_dir" = "NONE"; then
2666   ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
2667 fi
2668 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
2669
2670 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
2671         echo
2672         echo "You need to specify the location of the libfd.a and libiberty.a"
2673         echo "host libraries from the binutils package."
2674         echo
2675         echo "Run configure again specifying these options:"
2676         echo
2677         echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2678         echo
2679         exit 1
2680 fi
2681
2682 if test "$ac_bfd_include_dir" = "NONE" ; then
2683         echo
2684         echo "You need to specify the location of the bfd.h header from a"
2685         echo "configured/compiled version of the binutils package for your target."
2686         echo "Without this your elf2flt may crash as it will try to use the"
2687         echo "systems bfd.h which may be from a different binutils package."
2688         echo
2689         echo "Run configure again specifying these options:"
2690         echo
2691         echo "  ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
2692         echo
2693         exit 1
2694 fi
2695
2696 ac_ext=c
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2702 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2703 # On Suns, sometimes $CPP names a directory.
2704 if test -n "$CPP" && test -d "$CPP"; then
2705   CPP=
2706 fi
2707 if test -z "$CPP"; then
2708   if test "${ac_cv_prog_CPP+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711       # Double quotes because CPP needs to be expanded
2712     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2713     do
2714       ac_preproc_ok=false
2715 for ac_c_preproc_warn_flag in '' yes
2716 do
2717   # Use a header file that comes with gcc, so configuring glibc
2718   # with a fresh cross-compiler works.
2719   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2720   # <limits.h> exists even on freestanding compilers.
2721   # On the NeXT, cc -E runs the code through the compiler's parser,
2722   # not just through cpp. "Syntax error" is here to catch this case.
2723   cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729 #ifdef __STDC__
2730 # include <limits.h>
2731 #else
2732 # include <assert.h>
2733 #endif
2734                      Syntax error
2735 _ACEOF
2736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2738   ac_status=$?
2739   grep -v '^ *+' conftest.er1 >conftest.err
2740   rm -f conftest.er1
2741   cat conftest.err >&5
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); } >/dev/null; then
2744   if test -s conftest.err; then
2745     ac_cpp_err=$ac_c_preproc_warn_flag
2746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2747   else
2748     ac_cpp_err=
2749   fi
2750 else
2751   ac_cpp_err=yes
2752 fi
2753 if test -z "$ac_cpp_err"; then
2754   :
2755 else
2756   echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759   # Broken: fails on valid input.
2760 continue
2761 fi
2762 rm -f conftest.err conftest.$ac_ext
2763
2764   # OK, works on sane cases.  Now check whether non-existent headers
2765   # can be detected and how.
2766   cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772 #include <ac_nonexistent.h>
2773 _ACEOF
2774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2776   ac_status=$?
2777   grep -v '^ *+' conftest.er1 >conftest.err
2778   rm -f conftest.er1
2779   cat conftest.err >&5
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); } >/dev/null; then
2782   if test -s conftest.err; then
2783     ac_cpp_err=$ac_c_preproc_warn_flag
2784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2785   else
2786     ac_cpp_err=
2787   fi
2788 else
2789   ac_cpp_err=yes
2790 fi
2791 if test -z "$ac_cpp_err"; then
2792   # Broken: success on invalid input.
2793 continue
2794 else
2795   echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798   # Passes both tests.
2799 ac_preproc_ok=:
2800 break
2801 fi
2802 rm -f conftest.err conftest.$ac_ext
2803
2804 done
2805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2806 rm -f conftest.err conftest.$ac_ext
2807 if $ac_preproc_ok; then
2808   break
2809 fi
2810
2811     done
2812     ac_cv_prog_CPP=$CPP
2813
2814 fi
2815   CPP=$ac_cv_prog_CPP
2816 else
2817   ac_cv_prog_CPP=$CPP
2818 fi
2819 echo "$as_me:$LINENO: result: $CPP" >&5
2820 echo "${ECHO_T}$CPP" >&6
2821 ac_preproc_ok=false
2822 for ac_c_preproc_warn_flag in '' yes
2823 do
2824   # Use a header file that comes with gcc, so configuring glibc
2825   # with a fresh cross-compiler works.
2826   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2827   # <limits.h> exists even on freestanding compilers.
2828   # On the NeXT, cc -E runs the code through the compiler's parser,
2829   # not just through cpp. "Syntax error" is here to catch this case.
2830   cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h.  */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h.  */
2836 #ifdef __STDC__
2837 # include <limits.h>
2838 #else
2839 # include <assert.h>
2840 #endif
2841                      Syntax error
2842 _ACEOF
2843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } >/dev/null; then
2851   if test -s conftest.err; then
2852     ac_cpp_err=$ac_c_preproc_warn_flag
2853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2854   else
2855     ac_cpp_err=
2856   fi
2857 else
2858   ac_cpp_err=yes
2859 fi
2860 if test -z "$ac_cpp_err"; then
2861   :
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866   # Broken: fails on valid input.
2867 continue
2868 fi
2869 rm -f conftest.err conftest.$ac_ext
2870
2871   # OK, works on sane cases.  Now check whether non-existent headers
2872   # can be detected and how.
2873   cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879 #include <ac_nonexistent.h>
2880 _ACEOF
2881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2882   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2883   ac_status=$?
2884   grep -v '^ *+' conftest.er1 >conftest.err
2885   rm -f conftest.er1
2886   cat conftest.err >&5
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); } >/dev/null; then
2889   if test -s conftest.err; then
2890     ac_cpp_err=$ac_c_preproc_warn_flag
2891     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2892   else
2893     ac_cpp_err=
2894   fi
2895 else
2896   ac_cpp_err=yes
2897 fi
2898 if test -z "$ac_cpp_err"; then
2899   # Broken: success on invalid input.
2900 continue
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905   # Passes both tests.
2906 ac_preproc_ok=:
2907 break
2908 fi
2909 rm -f conftest.err conftest.$ac_ext
2910
2911 done
2912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2913 rm -f conftest.err conftest.$ac_ext
2914 if $ac_preproc_ok; then
2915   :
2916 else
2917   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2918 See \`config.log' for more details." >&5
2919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2920 See \`config.log' for more details." >&2;}
2921    { (exit 1); exit 1; }; }
2922 fi
2923
2924 ac_ext=c
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929
2930
2931 echo "$as_me:$LINENO: checking for egrep" >&5
2932 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2933 if test "${ac_cv_prog_egrep+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2937     then ac_cv_prog_egrep='grep -E'
2938     else ac_cv_prog_egrep='egrep'
2939     fi
2940 fi
2941 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2942 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2943  EGREP=$ac_cv_prog_egrep
2944
2945
2946 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2948 if test "${ac_cv_header_stdc+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957 #include <stdlib.h>
2958 #include <stdarg.h>
2959 #include <string.h>
2960 #include <float.h>
2961
2962 int
2963 main ()
2964 {
2965
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972   (eval $ac_compile) 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } &&
2979          { ac_try='test -z "$ac_c_werror_flag"
2980                          || test ! -s conftest.err'
2981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; } &&
2986          { ac_try='test -s conftest.$ac_objext'
2987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988   (eval $ac_try) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }; }; then
2992   ac_cv_header_stdc=yes
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997 ac_cv_header_stdc=no
2998 fi
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000
3001 if test $ac_cv_header_stdc = yes; then
3002   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009 #include <string.h>
3010
3011 _ACEOF
3012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013   $EGREP "memchr" >/dev/null 2>&1; then
3014   :
3015 else
3016   ac_cv_header_stdc=no
3017 fi
3018 rm -f conftest*
3019
3020 fi
3021
3022 if test $ac_cv_header_stdc = yes; then
3023   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #include <stdlib.h>
3031
3032 _ACEOF
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034   $EGREP "free" >/dev/null 2>&1; then
3035   :
3036 else
3037   ac_cv_header_stdc=no
3038 fi
3039 rm -f conftest*
3040
3041 fi
3042
3043 if test $ac_cv_header_stdc = yes; then
3044   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3045   if test "$cross_compiling" = yes; then
3046   :
3047 else
3048   cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054 #include <ctype.h>
3055 #if ((' ' & 0x0FF) == 0x020)
3056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3058 #else
3059 # define ISLOWER(c) \
3060                    (('a' <= (c) && (c) <= 'i') \
3061                      || ('j' <= (c) && (c) <= 'r') \
3062                      || ('s' <= (c) && (c) <= 'z'))
3063 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3064 #endif
3065
3066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3067 int
3068 main ()
3069 {
3070   int i;
3071   for (i = 0; i < 256; i++)
3072     if (XOR (islower (i), ISLOWER (i))
3073         || toupper (i) != TOUPPER (i))
3074       exit(2);
3075   exit (0);
3076 }
3077 _ACEOF
3078 rm -f conftest$ac_exeext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3080   (eval $ac_link) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085   (eval $ac_try) 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; }; then
3089   :
3090 else
3091   echo "$as_me: program exited with status $ac_status" >&5
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095 ( exit $ac_status )
3096 ac_cv_header_stdc=no
3097 fi
3098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3099 fi
3100 fi
3101 fi
3102 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3103 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3104 if test $ac_cv_header_stdc = yes; then
3105
3106 cat >>confdefs.h <<\_ACEOF
3107 #define STDC_HEADERS 1
3108 _ACEOF
3109
3110 fi
3111
3112 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3123                   inttypes.h stdint.h unistd.h
3124 do
3125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3126 echo "$as_me:$LINENO: checking for $ac_header" >&5
3127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3129   echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131   cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h.  */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h.  */
3137 $ac_includes_default
3138
3139 #include <$ac_header>
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143   (eval $ac_compile) 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } &&
3150          { ac_try='test -z "$ac_c_werror_flag"
3151                          || test ! -s conftest.err'
3152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153   (eval $ac_try) 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; } &&
3157          { ac_try='test -s conftest.$ac_objext'
3158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159   (eval $ac_try) 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   eval "$as_ac_Header=yes"
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 eval "$as_ac_Header=no"
3169 fi
3170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3171 fi
3172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3175   cat >>confdefs.h <<_ACEOF
3176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3177 _ACEOF
3178
3179 fi
3180
3181 done
3182
3183
3184
3185
3186
3187 for ac_header in fcntl.h unistd.h bfd.h
3188 do
3189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3191   echo "$as_me:$LINENO: checking for $ac_header" >&5
3192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 fi
3196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3198 else
3199   # Is the header compilable?
3200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208 $ac_includes_default
3209 #include <$ac_header>
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213   (eval $ac_compile) 2>conftest.er1
3214   ac_status=$?
3215   grep -v '^ *+' conftest.er1 >conftest.err
3216   rm -f conftest.er1
3217   cat conftest.err >&5
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); } &&
3220          { ac_try='test -z "$ac_c_werror_flag"
3221                          || test ! -s conftest.err'
3222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223   (eval $ac_try) 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; } &&
3227          { ac_try='test -s conftest.$ac_objext'
3228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229   (eval $ac_try) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }; }; then
3233   ac_header_compiler=yes
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 ac_header_compiler=no
3239 fi
3240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3242 echo "${ECHO_T}$ac_header_compiler" >&6
3243
3244 # Is the header present?
3245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253 #include <$ac_header>
3254 _ACEOF
3255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266   else
3267     ac_cpp_err=
3268   fi
3269 else
3270   ac_cpp_err=yes
3271 fi
3272 if test -z "$ac_cpp_err"; then
3273   ac_header_preproc=yes
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278   ac_header_preproc=no
3279 fi
3280 rm -f conftest.err conftest.$ac_ext
3281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3282 echo "${ECHO_T}$ac_header_preproc" >&6
3283
3284 # So?  What about this header?
3285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3286   yes:no: )
3287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3291     ac_header_preproc=yes
3292     ;;
3293   no:yes:* )
3294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3306     (
3307       cat <<\_ASBOX
3308 ## ------------------------------------------ ##
3309 ## Report this to the AC_PACKAGE_NAME lists.  ##
3310 ## ------------------------------------------ ##
3311 _ASBOX
3312     ) |
3313       sed "s/^/$as_me: WARNING:     /" >&2
3314     ;;
3315 esac
3316 echo "$as_me:$LINENO: checking for $ac_header" >&5
3317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   eval "$as_ac_Header=\$ac_header_preproc"
3322 fi
3323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3325
3326 fi
3327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3328   cat >>confdefs.h <<_ACEOF
3329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3330 _ACEOF
3331
3332 fi
3333
3334 done
3335
3336
3337 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3338 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3339 if test "${ac_cv_c_const+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h.  */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h.  */
3348
3349 int
3350 main ()
3351 {
3352 /* FIXME: Include the comments suggested by Paul. */
3353 #ifndef __cplusplus
3354   /* Ultrix mips cc rejects this.  */
3355   typedef int charset[2];
3356   const charset x;
3357   /* SunOS 4.1.1 cc rejects this.  */
3358   char const *const *ccp;
3359   char **p;
3360   /* NEC SVR4.0.2 mips cc rejects this.  */
3361   struct point {int x, y;};
3362   static struct point const zero = {0,0};
3363   /* AIX XL C 1.02.0.0 rejects this.
3364      It does not let you subtract one const X* pointer from another in
3365      an arm of an if-expression whose if-part is not a constant
3366      expression */
3367   const char *g = "string";
3368   ccp = &g + (g ? g-g : 0);
3369   /* HPUX 7.0 cc rejects these. */
3370   ++ccp;
3371   p = (char**) ccp;
3372   ccp = (char const *const *) p;
3373   { /* SCO 3.2v4 cc rejects this.  */
3374     char *t;
3375     char const *s = 0 ? (char *) 0 : (char const *) 0;
3376
3377     *t++ = 0;
3378   }
3379   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3380     int x[] = {25, 17};
3381     const int *foo = &x[0];
3382     ++foo;
3383   }
3384   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3385     typedef const int *iptr;
3386     iptr p = 0;
3387     ++p;
3388   }
3389   { /* AIX XL C 1.02.0.0 rejects this saying
3390        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3391     struct s { int j; const int *ap[3]; };
3392     struct s *b; b->j = 5;
3393   }
3394   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3395     const int foo = 10;
3396   }
3397 #endif
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405   (eval $ac_compile) 2>conftest.er1
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
3409   cat conftest.err >&5
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } &&
3412          { ac_try='test -z "$ac_c_werror_flag"
3413                          || test ! -s conftest.err'
3414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415   (eval $ac_try) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); }; } &&
3419          { ac_try='test -s conftest.$ac_objext'
3420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421   (eval $ac_try) 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   ac_cv_c_const=yes
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 ac_cv_c_const=no
3431 fi
3432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3433 fi
3434 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3435 echo "${ECHO_T}$ac_cv_c_const" >&6
3436 if test $ac_cv_c_const = no; then
3437
3438 cat >>confdefs.h <<\_ACEOF
3439 #define const
3440 _ACEOF
3441
3442 fi
3443
3444
3445
3446 for ac_func in vprintf
3447 do
3448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3449 echo "$as_me:$LINENO: checking for $ac_func" >&5
3450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3451 if eval "test \"\${$as_ac_var+set}\" = set"; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3462 #define $ac_func innocuous_$ac_func
3463
3464 /* System header to define __stub macros and hopefully few prototypes,
3465     which can conflict with char $ac_func (); below.
3466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467     <limits.h> exists even on freestanding compilers.  */
3468
3469 #ifdef __STDC__
3470 # include <limits.h>
3471 #else
3472 # include <assert.h>
3473 #endif
3474
3475 #undef $ac_func
3476
3477 /* Override any gcc2 internal prototype to avoid an error.  */
3478 #ifdef __cplusplus
3479 extern "C"
3480 {
3481 #endif
3482 /* We use char because int might match the return type of a gcc2
3483    builtin and then its argument prototype would still apply.  */
3484 char $ac_func ();
3485 /* The GNU C library defines this for functions which it implements
3486     to always fail with ENOSYS.  Some functions are actually named
3487     something starting with __ and the normal name is an alias.  */
3488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 choke me
3490 #else
3491 char (*f) () = $ac_func;
3492 #endif
3493 #ifdef __cplusplus
3494 }
3495 #endif
3496
3497 int
3498 main ()
3499 {
3500 return f != $ac_func;
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext conftest$ac_exeext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507   (eval $ac_link) 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } &&
3514          { ac_try='test -z "$ac_c_werror_flag"
3515                          || test ! -s conftest.err'
3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517   (eval $ac_try) 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }; } &&
3521          { ac_try='test -s conftest$ac_exeext'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; }; then
3527   eval "$as_ac_var=yes"
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 eval "$as_ac_var=no"
3533 fi
3534 rm -f conftest.err conftest.$ac_objext \
3535       conftest$ac_exeext conftest.$ac_ext
3536 fi
3537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3539 if test `eval echo '${'$as_ac_var'}'` = yes; then
3540   cat >>confdefs.h <<_ACEOF
3541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3542 _ACEOF
3543
3544 echo "$as_me:$LINENO: checking for _doprnt" >&5
3545 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3546 if test "${ac_cv_func__doprnt+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3557 #define _doprnt innocuous__doprnt
3558
3559 /* System header to define __stub macros and hopefully few prototypes,
3560     which can conflict with char _doprnt (); below.
3561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562     <limits.h> exists even on freestanding compilers.  */
3563
3564 #ifdef __STDC__
3565 # include <limits.h>
3566 #else
3567 # include <assert.h>
3568 #endif
3569
3570 #undef _doprnt
3571
3572 /* Override any gcc2 internal prototype to avoid an error.  */
3573 #ifdef __cplusplus
3574 extern "C"
3575 {
3576 #endif
3577 /* We use char because int might match the return type of a gcc2
3578    builtin and then its argument prototype would still apply.  */
3579 char _doprnt ();
3580 /* The GNU C library defines this for functions which it implements
3581     to always fail with ENOSYS.  Some functions are actually named
3582     something starting with __ and the normal name is an alias.  */
3583 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3584 choke me
3585 #else
3586 char (*f) () = _doprnt;
3587 #endif
3588 #ifdef __cplusplus
3589 }
3590 #endif
3591
3592 int
3593 main ()
3594 {
3595 return f != _doprnt;
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.$ac_objext conftest$ac_exeext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602   (eval $ac_link) 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } &&
3609          { ac_try='test -z "$ac_c_werror_flag"
3610                          || test ! -s conftest.err'
3611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612   (eval $ac_try) 2>&5
3613   ac_status=$?
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); }; } &&
3616          { ac_try='test -s conftest$ac_exeext'
3617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618   (eval $ac_try) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); }; }; then
3622   ac_cv_func__doprnt=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 ac_cv_func__doprnt=no
3628 fi
3629 rm -f conftest.err conftest.$ac_objext \
3630       conftest$ac_exeext conftest.$ac_ext
3631 fi
3632 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3633 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3634 if test $ac_cv_func__doprnt = yes; then
3635
3636 cat >>confdefs.h <<\_ACEOF
3637 #define HAVE_DOPRNT 1
3638 _ACEOF
3639
3640 fi
3641
3642 fi
3643 done
3644
3645
3646
3647
3648 for ac_func in dcgettext
3649 do
3650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3651 echo "$as_me:$LINENO: checking for $ac_func" >&5
3652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3653 if eval "test \"\${$as_ac_var+set}\" = set"; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3664 #define $ac_func innocuous_$ac_func
3665
3666 /* System header to define __stub macros and hopefully few prototypes,
3667     which can conflict with char $ac_func (); below.
3668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669     <limits.h> exists even on freestanding compilers.  */
3670
3671 #ifdef __STDC__
3672 # include <limits.h>
3673 #else
3674 # include <assert.h>
3675 #endif
3676
3677 #undef $ac_func
3678
3679 /* Override any gcc2 internal prototype to avoid an error.  */
3680 #ifdef __cplusplus
3681 extern "C"
3682 {
3683 #endif
3684 /* We use char because int might match the return type of a gcc2
3685    builtin and then its argument prototype would still apply.  */
3686 char $ac_func ();
3687 /* The GNU C library defines this for functions which it implements
3688     to always fail with ENOSYS.  Some functions are actually named
3689     something starting with __ and the normal name is an alias.  */
3690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3691 choke me
3692 #else
3693 char (*f) () = $ac_func;
3694 #endif
3695 #ifdef __cplusplus
3696 }
3697 #endif
3698
3699 int
3700 main ()
3701 {
3702 return f != $ac_func;
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 rm -f conftest.$ac_objext conftest$ac_exeext
3708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3709   (eval $ac_link) 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -z "$ac_c_werror_flag"
3717                          || test ! -s conftest.err'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } &&
3723          { ac_try='test -s conftest$ac_exeext'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; }; then
3729   eval "$as_ac_var=yes"
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 eval "$as_ac_var=no"
3735 fi
3736 rm -f conftest.err conftest.$ac_objext \
3737       conftest$ac_exeext conftest.$ac_ext
3738 fi
3739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3741 if test `eval echo '${'$as_ac_var'}'` = yes; then
3742   cat >>confdefs.h <<_ACEOF
3743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3744 _ACEOF
3745
3746 fi
3747 done
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761                     ac_config_files="$ac_config_files Makefile ld-elf2flt"
3762 cat >confcache <<\_ACEOF
3763 # This file is a shell script that caches the results of configure
3764 # tests run on this system so they can be shared between configure
3765 # scripts and configure runs, see configure's option --config-cache.
3766 # It is not useful on other systems.  If it contains results you don't
3767 # want to keep, you may remove or edit it.
3768 #
3769 # config.status only pays attention to the cache file if you give it
3770 # the --recheck option to rerun configure.
3771 #
3772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3774 # following values.
3775
3776 _ACEOF
3777
3778 # The following way of writing the cache mishandles newlines in values,
3779 # but we know of no workaround that is simple, portable, and efficient.
3780 # So, don't put newlines in cache variables' values.
3781 # Ultrix sh set writes to stderr and can't be redirected directly,
3782 # and sets the high bit in the cache file unless we assign to the vars.
3783 {
3784   (set) 2>&1 |
3785     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3786     *ac_space=\ *)
3787       # `set' does not quote correctly, so add quotes (double-quote
3788       # substitution turns \\\\ into \\, and sed turns \\ into \).
3789       sed -n \
3790         "s/'/'\\\\''/g;
3791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3792       ;;
3793     *)
3794       # `set' quotes correctly as required by POSIX, so do not add quotes.
3795       sed -n \
3796         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3797       ;;
3798     esac;
3799 } |
3800   sed '
3801      t clear
3802      : clear
3803      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3804      t end
3805      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3806      : end' >>confcache
3807 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3808   if test -w $cache_file; then
3809     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3810     cat confcache >$cache_file
3811   else
3812     echo "not updating unwritable cache $cache_file"
3813   fi
3814 fi
3815 rm -f confcache
3816
3817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3818 # Let make expand exec_prefix.
3819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3820
3821 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3822 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3823 # trailing colons and then remove the whole line if VPATH becomes empty
3824 # (actually we leave an empty line to preserve line numbers).
3825 if test "x$srcdir" = x.; then
3826   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3827 s/:*\$(srcdir):*/:/;
3828 s/:*\${srcdir}:*/:/;
3829 s/:*@srcdir@:*/:/;
3830 s/^\([^=]*=[     ]*\):*/\1/;
3831 s/:*$//;
3832 s/^[^=]*=[       ]*$//;
3833 }'
3834 fi
3835
3836 # Transform confdefs.h into DEFS.
3837 # Protect against shell expansion while executing Makefile rules.
3838 # Protect against Makefile macro expansion.
3839 #
3840 # If the first sed substitution is executed (which looks for macros that
3841 # take arguments), then we branch to the quote section.  Otherwise,
3842 # look for a macro that doesn't take arguments.
3843 cat >confdef2opt.sed <<\_ACEOF
3844 t clear
3845 : clear
3846 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3847 t quote
3848 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3849 t quote
3850 d
3851 : quote
3852 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3853 s,\[,\\&,g
3854 s,\],\\&,g
3855 s,\$,$$,g
3856 p
3857 _ACEOF
3858 # We use echo to avoid assuming a particular line-breaking character.
3859 # The extra dot is to prevent the shell from consuming trailing
3860 # line-breaks from the sub-command output.  A line-break within
3861 # single-quotes doesn't work because, if this script is created in a
3862 # platform that uses two characters for line-breaks (e.g., DOS), tr
3863 # would break.
3864 ac_LF_and_DOT=`echo; echo .`
3865 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3866 rm -f confdef2opt.sed
3867
3868
3869 ac_libobjs=
3870 ac_ltlibobjs=
3871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3872   # 1. Remove the extension, and $U if already installed.
3873   ac_i=`echo "$ac_i" |
3874          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3875   # 2. Add them.
3876   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3877   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3878 done
3879 LIBOBJS=$ac_libobjs
3880
3881 LTLIBOBJS=$ac_ltlibobjs
3882
3883
3884
3885 : ${CONFIG_STATUS=./config.status}
3886 ac_clean_files_save=$ac_clean_files
3887 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3888 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3889 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3890 cat >$CONFIG_STATUS <<_ACEOF
3891 #! $SHELL
3892 # Generated by $as_me.
3893 # Run this file to recreate the current configuration.
3894 # Compiler output produced by configure, useful for debugging
3895 # configure, is in config.log if it exists.
3896
3897 debug=false
3898 ac_cs_recheck=false
3899 ac_cs_silent=false
3900 SHELL=\${CONFIG_SHELL-$SHELL}
3901 _ACEOF
3902
3903 cat >>$CONFIG_STATUS <<\_ACEOF
3904 ## --------------------- ##
3905 ## M4sh Initialization.  ##
3906 ## --------------------- ##
3907
3908 # Be Bourne compatible
3909 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3910   emulate sh
3911   NULLCMD=:
3912   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3913   # is contrary to our usage.  Disable this feature.
3914   alias -g '${1+"$@"}'='"$@"'
3915 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3916   set -o posix
3917 fi
3918 DUALCASE=1; export DUALCASE # for MKS sh
3919
3920 # Support unset when possible.
3921 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3922   as_unset=unset
3923 else
3924   as_unset=false
3925 fi
3926
3927
3928 # Work around bugs in pre-3.0 UWIN ksh.
3929 $as_unset ENV MAIL MAILPATH
3930 PS1='$ '
3931 PS2='> '
3932 PS4='+ '
3933
3934 # NLS nuisances.
3935 for as_var in \
3936   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3937   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3938   LC_TELEPHONE LC_TIME
3939 do
3940   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3941     eval $as_var=C; export $as_var
3942   else
3943     $as_unset $as_var
3944   fi
3945 done
3946
3947 # Required to use basename.
3948 if expr a : '\(a\)' >/dev/null 2>&1; then
3949   as_expr=expr
3950 else
3951   as_expr=false
3952 fi
3953
3954 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3955   as_basename=basename
3956 else
3957   as_basename=false
3958 fi
3959
3960
3961 # Name of the executable.
3962 as_me=`$as_basename "$0" ||
3963 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3964          X"$0" : 'X\(//\)$' \| \
3965          X"$0" : 'X\(/\)$' \| \
3966          .     : '\(.\)' 2>/dev/null ||
3967 echo X/"$0" |
3968     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3969           /^X\/\(\/\/\)$/{ s//\1/; q; }
3970           /^X\/\(\/\).*/{ s//\1/; q; }
3971           s/.*/./; q'`
3972
3973
3974 # PATH needs CR, and LINENO needs CR and PATH.
3975 # Avoid depending upon Character Ranges.
3976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3979 as_cr_digits='0123456789'
3980 as_cr_alnum=$as_cr_Letters$as_cr_digits
3981
3982 # The user is always right.
3983 if test "${PATH_SEPARATOR+set}" != set; then
3984   echo "#! /bin/sh" >conf$$.sh
3985   echo  "exit 0"   >>conf$$.sh
3986   chmod +x conf$$.sh
3987   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3988     PATH_SEPARATOR=';'
3989   else
3990     PATH_SEPARATOR=:
3991   fi
3992   rm -f conf$$.sh
3993 fi
3994
3995
3996   as_lineno_1=$LINENO
3997   as_lineno_2=$LINENO
3998   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3999   test "x$as_lineno_1" != "x$as_lineno_2" &&
4000   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4001   # Find who we are.  Look in the path if we contain no path at all
4002   # relative or not.
4003   case $0 in
4004     *[\\/]* ) as_myself=$0 ;;
4005     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4011 done
4012
4013        ;;
4014   esac
4015   # We did not find ourselves, most probably we were run as `sh COMMAND'
4016   # in which case we are not to be found in the path.
4017   if test "x$as_myself" = x; then
4018     as_myself=$0
4019   fi
4020   if test ! -f "$as_myself"; then
4021     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4022 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4023    { (exit 1); exit 1; }; }
4024   fi
4025   case $CONFIG_SHELL in
4026   '')
4027     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4029 do
4030   IFS=$as_save_IFS
4031   test -z "$as_dir" && as_dir=.
4032   for as_base in sh bash ksh sh5; do
4033          case $as_dir in
4034          /*)
4035            if ("$as_dir/$as_base" -c '
4036   as_lineno_1=$LINENO
4037   as_lineno_2=$LINENO
4038   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4039   test "x$as_lineno_1" != "x$as_lineno_2" &&
4040   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4041              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4042              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4043              CONFIG_SHELL=$as_dir/$as_base
4044              export CONFIG_SHELL
4045              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4046            fi;;
4047          esac
4048        done
4049 done
4050 ;;
4051   esac
4052
4053   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4054   # uniformly replaced by the line number.  The first 'sed' inserts a
4055   # line-number line before each line; the second 'sed' does the real
4056   # work.  The second script uses 'N' to pair each line-number line
4057   # with the numbered line, and appends trailing '-' during
4058   # substitution so that $LINENO is not a special case at line end.
4059   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4060   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4061   sed '=' <$as_myself |
4062     sed '
4063       N
4064       s,$,-,
4065       : loop
4066       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4067       t loop
4068       s,-$,,
4069       s,^['$as_cr_digits']*\n,,
4070     ' >$as_me.lineno &&
4071   chmod +x $as_me.lineno ||
4072     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4073 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4074    { (exit 1); exit 1; }; }
4075
4076   # Don't try to exec as it changes $[0], causing all sort of problems
4077   # (the dirname of $[0] is not the place where we might find the
4078   # original and so on.  Autoconf is especially sensible to this).
4079   . ./$as_me.lineno
4080   # Exit status is that of the last command.
4081   exit
4082 }
4083
4084
4085 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4086   *c*,-n*) ECHO_N= ECHO_C='
4087 ' ECHO_T='      ' ;;
4088   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4089   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4090 esac
4091
4092 if expr a : '\(a\)' >/dev/null 2>&1; then
4093   as_expr=expr
4094 else
4095   as_expr=false
4096 fi
4097
4098 rm -f conf$$ conf$$.exe conf$$.file
4099 echo >conf$$.file
4100 if ln -s conf$$.file conf$$ 2>/dev/null; then
4101   # We could just check for DJGPP; but this test a) works b) is more generic
4102   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4103   if test -f conf$$.exe; then
4104     # Don't use ln at all; we don't have any links
4105     as_ln_s='cp -p'
4106   else
4107     as_ln_s='ln -s'
4108   fi
4109 elif ln conf$$.file conf$$ 2>/dev/null; then
4110   as_ln_s=ln
4111 else
4112   as_ln_s='cp -p'
4113 fi
4114 rm -f conf$$ conf$$.exe conf$$.file
4115
4116 if mkdir -p . 2>/dev/null; then
4117   as_mkdir_p=:
4118 else
4119   test -d ./-p && rmdir ./-p
4120   as_mkdir_p=false
4121 fi
4122
4123 as_executable_p="test -f"
4124
4125 # Sed expression to map a string onto a valid CPP name.
4126 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4127
4128 # Sed expression to map a string onto a valid variable name.
4129 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4130
4131
4132 # IFS
4133 # We need space, tab and new line, in precisely that order.
4134 as_nl='
4135 '
4136 IFS="   $as_nl"
4137
4138 # CDPATH.
4139 $as_unset CDPATH
4140
4141 exec 6>&1
4142
4143 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4144 # report actual input values of CONFIG_FILES etc. instead of their
4145 # values after options handling.  Logging --version etc. is OK.
4146 exec 5>>config.log
4147 {
4148   echo
4149   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4150 ## Running $as_me. ##
4151 _ASBOX
4152 } >&5
4153 cat >&5 <<_CSEOF
4154
4155 This file was extended by $as_me, which was
4156 generated by GNU Autoconf 2.59.  Invocation command line was
4157
4158   CONFIG_FILES    = $CONFIG_FILES
4159   CONFIG_HEADERS  = $CONFIG_HEADERS
4160   CONFIG_LINKS    = $CONFIG_LINKS
4161   CONFIG_COMMANDS = $CONFIG_COMMANDS
4162   $ $0 $@
4163
4164 _CSEOF
4165 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4166 echo >&5
4167 _ACEOF
4168
4169 # Files that config.status was made for.
4170 if test -n "$ac_config_files"; then
4171   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4172 fi
4173
4174 if test -n "$ac_config_headers"; then
4175   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4176 fi
4177
4178 if test -n "$ac_config_links"; then
4179   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4180 fi
4181
4182 if test -n "$ac_config_commands"; then
4183   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4184 fi
4185
4186 cat >>$CONFIG_STATUS <<\_ACEOF
4187
4188 ac_cs_usage="\
4189 \`$as_me' instantiates files from templates according to the
4190 current configuration.
4191
4192 Usage: $0 [OPTIONS] [FILE]...
4193
4194   -h, --help       print this help, then exit
4195   -V, --version    print version number, then exit
4196   -q, --quiet      do not print progress messages
4197   -d, --debug      don't remove temporary files
4198       --recheck    update $as_me by reconfiguring in the same conditions
4199   --file=FILE[:TEMPLATE]
4200                    instantiate the configuration file FILE
4201
4202 Configuration files:
4203 $config_files
4204
4205 Report bugs to <bug-autoconf@gnu.org>."
4206 _ACEOF
4207
4208 cat >>$CONFIG_STATUS <<_ACEOF
4209 ac_cs_version="\\
4210 config.status
4211 configured by $0, generated by GNU Autoconf 2.59,
4212   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4213
4214 Copyright (C) 2003 Free Software Foundation, Inc.
4215 This config.status script is free software; the Free Software Foundation
4216 gives unlimited permission to copy, distribute and modify it."
4217 srcdir=$srcdir
4218 INSTALL="$INSTALL"
4219 _ACEOF
4220
4221 cat >>$CONFIG_STATUS <<\_ACEOF
4222 # If no file are specified by the user, then we need to provide default
4223 # value.  By we need to know if files were specified by the user.
4224 ac_need_defaults=:
4225 while test $# != 0
4226 do
4227   case $1 in
4228   --*=*)
4229     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4230     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4231     ac_shift=:
4232     ;;
4233   -*)
4234     ac_option=$1
4235     ac_optarg=$2
4236     ac_shift=shift
4237     ;;
4238   *) # This is not an option, so the user has probably given explicit
4239      # arguments.
4240      ac_option=$1
4241      ac_need_defaults=false;;
4242   esac
4243
4244   case $ac_option in
4245   # Handling of the options.
4246 _ACEOF
4247 cat >>$CONFIG_STATUS <<\_ACEOF
4248   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4249     ac_cs_recheck=: ;;
4250   --version | --vers* | -V )
4251     echo "$ac_cs_version"; exit 0 ;;
4252   --he | --h)
4253     # Conflict between --help and --header
4254     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4255 Try \`$0 --help' for more information." >&5
4256 echo "$as_me: error: ambiguous option: $1
4257 Try \`$0 --help' for more information." >&2;}
4258    { (exit 1); exit 1; }; };;
4259   --help | --hel | -h )
4260     echo "$ac_cs_usage"; exit 0 ;;
4261   --debug | --d* | -d )
4262     debug=: ;;
4263   --file | --fil | --fi | --f )
4264     $ac_shift
4265     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4266     ac_need_defaults=false;;
4267   --header | --heade | --head | --hea )
4268     $ac_shift
4269     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4270     ac_need_defaults=false;;
4271   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4272   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4273     ac_cs_silent=: ;;
4274
4275   # This is an error.
4276   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4277 Try \`$0 --help' for more information." >&5
4278 echo "$as_me: error: unrecognized option: $1
4279 Try \`$0 --help' for more information." >&2;}
4280    { (exit 1); exit 1; }; } ;;
4281
4282   *) ac_config_targets="$ac_config_targets $1" ;;
4283
4284   esac
4285   shift
4286 done
4287
4288 ac_configure_extra_args=
4289
4290 if $ac_cs_silent; then
4291   exec 6>/dev/null
4292   ac_configure_extra_args="$ac_configure_extra_args --silent"
4293 fi
4294
4295 _ACEOF
4296 cat >>$CONFIG_STATUS <<_ACEOF
4297 if \$ac_cs_recheck; then
4298   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4299   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4300 fi
4301
4302 _ACEOF
4303
4304
4305
4306
4307
4308 cat >>$CONFIG_STATUS <<\_ACEOF
4309 for ac_config_target in $ac_config_targets
4310 do
4311   case "$ac_config_target" in
4312   # Handling of arguments.
4313   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4314   "ld-elf2flt" ) CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
4315   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4317    { (exit 1); exit 1; }; };;
4318   esac
4319 done
4320
4321 # If the user did not use the arguments to specify the items to instantiate,
4322 # then the envvar interface is used.  Set only those that are not.
4323 # We use the long form for the default assignment because of an extremely
4324 # bizarre bug on SunOS 4.1.3.
4325 if $ac_need_defaults; then
4326   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4327 fi
4328
4329 # Have a temporary directory for convenience.  Make it in the build tree
4330 # simply because there is no reason to put it here, and in addition,
4331 # creating and moving files from /tmp can sometimes cause problems.
4332 # Create a temporary directory, and hook for its removal unless debugging.
4333 $debug ||
4334 {
4335   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4336   trap '{ (exit 1); exit 1; }' 1 2 13 15
4337 }
4338
4339 # Create a (secure) tmp directory for tmp files.
4340
4341 {
4342   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4343   test -n "$tmp" && test -d "$tmp"
4344 }  ||
4345 {
4346   tmp=./confstat$$-$RANDOM
4347   (umask 077 && mkdir $tmp)
4348 } ||
4349 {
4350    echo "$me: cannot create a temporary directory in ." >&2
4351    { (exit 1); exit 1; }
4352 }
4353
4354 _ACEOF
4355
4356 cat >>$CONFIG_STATUS <<_ACEOF
4357
4358 #
4359 # CONFIG_FILES section.
4360 #
4361
4362 # No need to generate the scripts if there are no CONFIG_FILES.
4363 # This happens for instance when ./config.status config.h
4364 if test -n "\$CONFIG_FILES"; then
4365   # Protect against being on the right side of a sed subst in config.status.
4366   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4367    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4368 s,@SHELL@,$SHELL,;t t
4369 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4370 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4371 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4372 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4373 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4374 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4375 s,@exec_prefix@,$exec_prefix,;t t
4376 s,@prefix@,$prefix,;t t
4377 s,@program_transform_name@,$program_transform_name,;t t
4378 s,@bindir@,$bindir,;t t
4379 s,@sbindir@,$sbindir,;t t
4380 s,@libexecdir@,$libexecdir,;t t
4381 s,@datadir@,$datadir,;t t
4382 s,@sysconfdir@,$sysconfdir,;t t
4383 s,@sharedstatedir@,$sharedstatedir,;t t
4384 s,@localstatedir@,$localstatedir,;t t
4385 s,@libdir@,$libdir,;t t
4386 s,@includedir@,$includedir,;t t
4387 s,@oldincludedir@,$oldincludedir,;t t
4388 s,@infodir@,$infodir,;t t
4389 s,@mandir@,$mandir,;t t
4390 s,@build_alias@,$build_alias,;t t
4391 s,@host_alias@,$host_alias,;t t
4392 s,@target_alias@,$target_alias,;t t
4393 s,@DEFS@,$DEFS,;t t
4394 s,@ECHO_C@,$ECHO_C,;t t
4395 s,@ECHO_N@,$ECHO_N,;t t
4396 s,@ECHO_T@,$ECHO_T,;t t
4397 s,@LIBS@,$LIBS,;t t
4398 s,@build@,$build,;t t
4399 s,@build_cpu@,$build_cpu,;t t
4400 s,@build_vendor@,$build_vendor,;t t
4401 s,@build_os@,$build_os,;t t
4402 s,@host@,$host,;t t
4403 s,@host_cpu@,$host_cpu,;t t
4404 s,@host_vendor@,$host_vendor,;t t
4405 s,@host_os@,$host_os,;t t
4406 s,@target@,$target,;t t
4407 s,@target_cpu@,$target_cpu,;t t
4408 s,@target_vendor@,$target_vendor,;t t
4409 s,@target_os@,$target_os,;t t
4410 s,@CC@,$CC,;t t
4411 s,@CFLAGS@,$CFLAGS,;t t
4412 s,@LDFLAGS@,$LDFLAGS,;t t
4413 s,@CPPFLAGS@,$CPPFLAGS,;t t
4414 s,@ac_ct_CC@,$ac_ct_CC,;t t
4415 s,@EXEEXT@,$EXEEXT,;t t
4416 s,@OBJEXT@,$OBJEXT,;t t
4417 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4418 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4419 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4420 s,@CPP@,$CPP,;t t
4421 s,@EGREP@,$EGREP,;t t
4422 s,@bfd_include_dir@,$bfd_include_dir,;t t
4423 s,@binutils_include_dir@,$binutils_include_dir,;t t
4424 s,@binutils_ldscript_dir@,$binutils_ldscript_dir,;t t
4425 s,@got_check@,$got_check,;t t
4426 s,@emit_relocs@,$emit_relocs,;t t
4427 s,@LIBOBJS@,$LIBOBJS,;t t
4428 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4429 CEOF
4430
4431 _ACEOF
4432
4433   cat >>$CONFIG_STATUS <<\_ACEOF
4434   # Split the substitutions into bite-sized pieces for seds with
4435   # small command number limits, like on Digital OSF/1 and HP-UX.
4436   ac_max_sed_lines=48
4437   ac_sed_frag=1 # Number of current file.
4438   ac_beg=1 # First line for current file.
4439   ac_end=$ac_max_sed_lines # Line after last line for current file.
4440   ac_more_lines=:
4441   ac_sed_cmds=
4442   while $ac_more_lines; do
4443     if test $ac_beg -gt 1; then
4444       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4445     else
4446       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4447     fi
4448     if test ! -s $tmp/subs.frag; then
4449       ac_more_lines=false
4450     else
4451       # The purpose of the label and of the branching condition is to
4452       # speed up the sed processing (if there are no `@' at all, there
4453       # is no need to browse any of the substitutions).
4454       # These are the two extra sed commands mentioned above.
4455       (echo ':t
4456   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4457       if test -z "$ac_sed_cmds"; then
4458         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4459       else
4460         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4461       fi
4462       ac_sed_frag=`expr $ac_sed_frag + 1`
4463       ac_beg=$ac_end
4464       ac_end=`expr $ac_end + $ac_max_sed_lines`
4465     fi
4466   done
4467   if test -z "$ac_sed_cmds"; then
4468     ac_sed_cmds=cat
4469   fi
4470 fi # test -n "$CONFIG_FILES"
4471
4472 _ACEOF
4473 cat >>$CONFIG_STATUS <<\_ACEOF
4474 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4475   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4476   case $ac_file in
4477   - | *:- | *:-:* ) # input from stdin
4478         cat >$tmp/stdin
4479         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4480         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4481   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4482         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4483   * )   ac_file_in=$ac_file.in ;;
4484   esac
4485
4486   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4487   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4489          X"$ac_file" : 'X\(//\)[^/]' \| \
4490          X"$ac_file" : 'X\(//\)$' \| \
4491          X"$ac_file" : 'X\(/\)' \| \
4492          .     : '\(.\)' 2>/dev/null ||
4493 echo X"$ac_file" |
4494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4495           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4496           /^X\(\/\/\)$/{ s//\1/; q; }
4497           /^X\(\/\).*/{ s//\1/; q; }
4498           s/.*/./; q'`
4499   { if $as_mkdir_p; then
4500     mkdir -p "$ac_dir"
4501   else
4502     as_dir="$ac_dir"
4503     as_dirs=
4504     while test ! -d "$as_dir"; do
4505       as_dirs="$as_dir $as_dirs"
4506       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4508          X"$as_dir" : 'X\(//\)[^/]' \| \
4509          X"$as_dir" : 'X\(//\)$' \| \
4510          X"$as_dir" : 'X\(/\)' \| \
4511          .     : '\(.\)' 2>/dev/null ||
4512 echo X"$as_dir" |
4513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4514           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4515           /^X\(\/\/\)$/{ s//\1/; q; }
4516           /^X\(\/\).*/{ s//\1/; q; }
4517           s/.*/./; q'`
4518     done
4519     test ! -n "$as_dirs" || mkdir $as_dirs
4520   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4521 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4522    { (exit 1); exit 1; }; }; }
4523
4524   ac_builddir=.
4525
4526 if test "$ac_dir" != .; then
4527   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4528   # A "../" for each directory in $ac_dir_suffix.
4529   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4530 else
4531   ac_dir_suffix= ac_top_builddir=
4532 fi
4533
4534 case $srcdir in
4535   .)  # No --srcdir option.  We are building in place.
4536     ac_srcdir=.
4537     if test -z "$ac_top_builddir"; then
4538        ac_top_srcdir=.
4539     else
4540        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4541     fi ;;
4542   [\\/]* | ?:[\\/]* )  # Absolute path.
4543     ac_srcdir=$srcdir$ac_dir_suffix;
4544     ac_top_srcdir=$srcdir ;;
4545   *) # Relative path.
4546     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4547     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4548 esac
4549
4550 # Do not use `cd foo && pwd` to compute absolute paths, because
4551 # the directories may not exist.
4552 case `pwd` in
4553 .) ac_abs_builddir="$ac_dir";;
4554 *)
4555   case "$ac_dir" in
4556   .) ac_abs_builddir=`pwd`;;
4557   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4558   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4559   esac;;
4560 esac
4561 case $ac_abs_builddir in
4562 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4563 *)
4564   case ${ac_top_builddir}. in
4565   .) ac_abs_top_builddir=$ac_abs_builddir;;
4566   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4567   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4568   esac;;
4569 esac
4570 case $ac_abs_builddir in
4571 .) ac_abs_srcdir=$ac_srcdir;;
4572 *)
4573   case $ac_srcdir in
4574   .) ac_abs_srcdir=$ac_abs_builddir;;
4575   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4576   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4577   esac;;
4578 esac
4579 case $ac_abs_builddir in
4580 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4581 *)
4582   case $ac_top_srcdir in
4583   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4584   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4585   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4586   esac;;
4587 esac
4588
4589
4590   case $INSTALL in
4591   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4592   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4593   esac
4594
4595   if test x"$ac_file" != x-; then
4596     { echo "$as_me:$LINENO: creating $ac_file" >&5
4597 echo "$as_me: creating $ac_file" >&6;}
4598     rm -f "$ac_file"
4599   fi
4600   # Let's still pretend it is `configure' which instantiates (i.e., don't
4601   # use $as_me), people would be surprised to read:
4602   #    /* config.h.  Generated by config.status.  */
4603   if test x"$ac_file" = x-; then
4604     configure_input=
4605   else
4606     configure_input="$ac_file.  "
4607   fi
4608   configure_input=$configure_input"Generated from `echo $ac_file_in |
4609                                      sed 's,.*/,,'` by configure."
4610
4611   # First look for the input files in the build tree, otherwise in the
4612   # src tree.
4613   ac_file_inputs=`IFS=:
4614     for f in $ac_file_in; do
4615       case $f in
4616       -) echo $tmp/stdin ;;
4617       [\\/$]*)
4618          # Absolute (can't be DOS-style, as IFS=:)
4619          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4620 echo "$as_me: error: cannot find input file: $f" >&2;}
4621    { (exit 1); exit 1; }; }
4622          echo "$f";;
4623       *) # Relative
4624          if test -f "$f"; then
4625            # Build tree
4626            echo "$f"
4627          elif test -f "$srcdir/$f"; then
4628            # Source tree
4629            echo "$srcdir/$f"
4630          else
4631            # /dev/null tree
4632            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4633 echo "$as_me: error: cannot find input file: $f" >&2;}
4634    { (exit 1); exit 1; }; }
4635          fi;;
4636       esac
4637     done` || { (exit 1); exit 1; }
4638 _ACEOF
4639 cat >>$CONFIG_STATUS <<_ACEOF
4640   sed "$ac_vpsub
4641 $extrasub
4642 _ACEOF
4643 cat >>$CONFIG_STATUS <<\_ACEOF
4644 :t
4645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4646 s,@configure_input@,$configure_input,;t t
4647 s,@srcdir@,$ac_srcdir,;t t
4648 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4649 s,@top_srcdir@,$ac_top_srcdir,;t t
4650 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4651 s,@builddir@,$ac_builddir,;t t
4652 s,@abs_builddir@,$ac_abs_builddir,;t t
4653 s,@top_builddir@,$ac_top_builddir,;t t
4654 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4655 s,@INSTALL@,$ac_INSTALL,;t t
4656 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4657   rm -f $tmp/stdin
4658   if test x"$ac_file" != x-; then
4659     mv $tmp/out $ac_file
4660   else
4661     cat $tmp/out
4662     rm -f $tmp/out
4663   fi
4664
4665 done
4666 _ACEOF
4667
4668 cat >>$CONFIG_STATUS <<\_ACEOF
4669
4670 { (exit 0); exit 0; }
4671 _ACEOF
4672 chmod +x $CONFIG_STATUS
4673 ac_clean_files=$ac_clean_files_save
4674
4675
4676 # configure is writing to config.log, and then calls config.status.
4677 # config.status does its own redirection, appending to config.log.
4678 # Unfortunately, on DOS this fails, as config.log is still kept open
4679 # by configure, so config.status won't be able to write to it; its
4680 # output is simply discarded.  So we exec the FD to /dev/null,
4681 # effectively closing config.log, so it can be properly (re)opened and
4682 # appended to by config.status.  When coming back to configure, we
4683 # need to make the FD available again.
4684 if test "$no_create" != yes; then
4685   ac_cs_success=:
4686   ac_config_status_args=
4687   test "$silent" = yes &&
4688     ac_config_status_args="$ac_config_status_args --quiet"
4689   exec 5>/dev/null
4690   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4691   exec 5>>config.log
4692   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4693   # would make configure fail if this is the last instruction.
4694   $ac_cs_success || { (exit 1); exit 1; }
4695 fi
4696
4697