OSDN Git Service

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